mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
describe azure.RoleEnvironment interface
This commit is contained in:
@@ -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) => {
|
||||
});
|
||||
|
||||
Vendored
+15
-3
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user