describe azure.RoleEnvironment interface

This commit is contained in:
anti.veeranna
2013-09-20 08:08:42 -04:00
parent a8d8c2ac66
commit 19687e02c0
2 changed files with 25 additions and 4 deletions
+10 -1
View File
@@ -10,4 +10,13 @@ ts.createTable("babbsies", function (error, table) {
function () {
ts.deleteEntity(table.TableName, { PartitionKey: "Midwest", RowKey: "1" });
});
});
});
Azure.RoleEnvironment.on('stopping', () => {
});
Azure.RoleEnvironment.getDeploymentId((error, id) => {
});
Azure.RoleEnvironment.isAvailable((error, available) => {
});
+15 -3
View File
@@ -1,6 +1,6 @@
// Type definitions for Azure SDK for Node - v0.6.10
// Project: https://github.com/WindowsAzure/azure-sdk-for-node
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar>
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar> and Anti Veeranna <https://github.com/antiveeranna>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
@@ -139,11 +139,23 @@ declare module "azure" {
export function createSqlManagementService(subscriptionId: string, authentication: string, hostOptions: string): SqlManagementService;
//#endregion
export module RoleEnvironment {
interface RoleEnvironmentInterface extends events.EventEmitter {
getCurrentRoleInstance(callback: (error, instance) => void): void;
getDeploymentId(callback: (error, id:string) => void): void;
isAvailable(callback: (error, available: boolean) => void): void;
isEmulated(callback: (error, emulated: boolean) => void): void;
getRoles(callback: (error, roles) => void): void;
getConfigurationSettings(callback: (error, settings) => void): void;
getLocalResources(callback: (error, resources) => void): void;
requestRecycle(callback: (error) => void): void;
setStatus(roleInstanceStatus, expirationUtc, callback: (error) => void): void;
clearStatus(callback: (error) => void): void;
}
export var RoleEnvironment: RoleEnvironmentInterface;
//#region Export of internal classes
export class WebResource {