Коммит
c5aeeb0871
28
lib/azure.js
28
lib/azure.js
|
@ -279,7 +279,7 @@ exports.WebsiteManagementService = WebsiteManagementService;
|
|||
/**
|
||||
* Creates a new {@link WebsiteManagementService} object.
|
||||
*
|
||||
* @deprecated Use {@link createWebsiteManagementClient} instead.
|
||||
* @deprecated Use {@link createWebSiteManagementClient} instead.
|
||||
*
|
||||
* @param {string} subscriptionId The subscription ID for the account.
|
||||
* @param {object} authentication The authentication object for the client.
|
||||
|
@ -401,8 +401,9 @@ exports.createStorageManagementClient = azureStorage.createStorageManagementClie
|
|||
* Generated StoreClient client exports.
|
||||
* @ignore
|
||||
*/
|
||||
var azureStore = require('azure-mgmt-store');
|
||||
exports.StoreManagementClient = azureStore.StoreManagementClient;
|
||||
// TODO: uncomment when store is published
|
||||
// var azureStore = require('azure-mgmt-store');
|
||||
// exports.StoreManagementClient = azureStore.StoreManagementClient;
|
||||
|
||||
/**
|
||||
* Creates a new {@link StoreManagementClient} object.
|
||||
|
@ -415,14 +416,16 @@ exports.StoreManagementClient = azureStore.StoreManagementClient;
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {StoreManagementClient} A new StoreManagementClient object.
|
||||
*/
|
||||
exports.createStoreManagementClient = azureStore.createStoreManagementClient;
|
||||
// TODO: uncomment when store is published
|
||||
// exports.createStoreManagementClient = azureStore.createStoreManagementClient;
|
||||
|
||||
/**
|
||||
* Generated SubscriptionClient client exports.
|
||||
* @ignore
|
||||
*/
|
||||
var azureSubscription = require('azure-mgmt-subscription');
|
||||
exports.SubscriptionClient = azureSubscription.SubscriptionClient;
|
||||
// TODO: uncomment when subscription is published
|
||||
// var azureSubscription = require('azure-mgmt-subscription');
|
||||
// exports.SubscriptionClient = azureSubscription.SubscriptionClient;
|
||||
|
||||
/**
|
||||
* Creates a new {@link SubscriptionClient} object.
|
||||
|
@ -435,7 +438,8 @@ exports.SubscriptionClient = azureSubscription.SubscriptionClient;
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {SubscriptionClient} A new SubscriptionClient object.
|
||||
*/
|
||||
exports.createSubscriptionClient = azureSubscription.createSubscriptionClient;
|
||||
// TODO: uncomment when subscription is published
|
||||
// exports.createSubscriptionClient = azureSubscription.createSubscriptionClient;
|
||||
|
||||
/**
|
||||
* Generated WebsiteManagementService client exports.
|
||||
|
@ -454,7 +458,7 @@ exports.WebSiteManagementClient = azureWebSite.WebSiteManagementClient;
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {WebSiteManagementClient} A new WebSiteManagementClient object.
|
||||
*/
|
||||
exports.createWebsiteManagementClient = azureWebSite.createWebsiteManagementClient;
|
||||
exports.createWebSiteManagementClient = azureWebSite.createWebSiteManagementClient;
|
||||
|
||||
/**
|
||||
* Generated ComputeManagementClient client exports.
|
||||
|
@ -499,8 +503,9 @@ exports.createServiceBusManagementClient = azureServiceBus.createServiceBusManag
|
|||
* Generated SchedulerManagementClient client exports.
|
||||
* @ignore
|
||||
*/
|
||||
var azureSchedulerManagement = require('azure-mgmt-scheduler');
|
||||
exports.SchedulerManagementClient = azureSchedulerManagement.SchedulerManagementClient;
|
||||
// TODO: uncomment when scheduler management is published
|
||||
// var azureSchedulerManagement = require('azure-mgmt-scheduler');
|
||||
// exports.SchedulerManagementClient = azureSchedulerManagement.SchedulerManagementClient;
|
||||
|
||||
/**
|
||||
* Creates a new {@link SchedulerManagementClient} object.
|
||||
|
@ -513,7 +518,8 @@ exports.SchedulerManagementClient = azureSchedulerManagement.SchedulerManagement
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {SchedulerManagementClient} A new SchedulerManagementClient object.
|
||||
*/
|
||||
exports.createSchedulerManagementClient = azureSchedulerManagement.createSchedulerManagementClient;
|
||||
// TODO: uncomment when scheduler management is published
|
||||
// exports.createSchedulerManagementClient = azureSchedulerManagement.createSchedulerManagementClient;
|
||||
|
||||
/**
|
||||
* Generated SchedulerClient client exports.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Common Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Compute Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Virtual Network Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Scheduler Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Scheduler Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Service Bus Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17",
|
||||
"azure-common": "0.9.0-pre.1",
|
||||
"underscore": ">= 1.3.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure SQL Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17",
|
||||
"azure-common": "0.9.0-pre.1",
|
||||
"underscore": ">= 1.3.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Storage Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Store Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure Subscription Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17"
|
||||
"azure-common": "0.9.0-pre.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
|
|
|
@ -30,7 +30,7 @@ exports.WebSiteManagementClient = WebSiteManagementClient;
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {WebSiteManagementClient} A new WebSiteManagementClient object.
|
||||
*/
|
||||
exports.createWebsiteManagementClient = function (credentials, baseUri) {
|
||||
exports.createWebSiteManagementClient = function (credentials, baseUri) {
|
||||
return new exports.WebSiteManagementClient.WebSiteManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.17",
|
||||
"version": "0.9.0-pre.1",
|
||||
"description": "Windows Azure WebSite Management Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": " >= 0.7.17",
|
||||
"azure-common": "0.9.0-pre.1",
|
||||
"underscore": ">= 1.3.1"
|
||||
},
|
||||
"homepage": "http://github.com/WindowsAzure/azure-sdk-for-node",
|
||||
|
|
21
package.json
21
package.json
|
@ -10,7 +10,7 @@
|
|||
"Rodrigues, Andre <andrerod@microsoft.com>",
|
||||
"Tavares, Chris <ctavares@microsoft.com>"
|
||||
],
|
||||
"version": "0.7.18",
|
||||
"version": "0.8.0",
|
||||
"description": "Windows Azure Client Library for node",
|
||||
"tags": [
|
||||
"azure",
|
||||
|
@ -31,16 +31,15 @@
|
|||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"azure-common": "*",
|
||||
"azure-mgmt-compute": "*",
|
||||
"azure-mgmt": "*",
|
||||
"azure-mgmt-vnet": "*",
|
||||
"azure-mgmt-sb": "*",
|
||||
"azure-mgmt-sql": "*",
|
||||
"azure-mgmt-storage": "*",
|
||||
"azure-mgmt-store": "*",
|
||||
"azure-mgmt-subscription": "*",
|
||||
"azure-mgmt-website": "*",
|
||||
"azure-common": "0.9.0-pre.1",
|
||||
"azure-mgmt-compute": "0.9.0-pre.1",
|
||||
"azure-mgmt": "0.9.0-pre.1",
|
||||
"azure-mgmt-vnet": "0.9.0-pre.1",
|
||||
"azure-mgmt-sb": "0.9.0-pre.1",
|
||||
"azure-mgmt-sql": "0.9.0-pre.1",
|
||||
"azure-mgmt-storage": "0.9.0-pre.1",
|
||||
"azure-mgmt-website": "0.9.0-pre.1",
|
||||
"azure-scheduler": "0.9.0-pre.1",
|
||||
"mime": ">= 1.2.4",
|
||||
"underscore": ">= 1.3.1",
|
||||
"request": "2.27.0",
|
||||
|
|
|
@ -31,7 +31,7 @@ describe('Token credentials', function () {
|
|||
before(function (done) {
|
||||
assert.notEqual(process.env.AZURE_ACCESS_TOKEN, null);
|
||||
|
||||
service = azure.createWebsiteManagementClient(new TokenCloudCredentials({ token: process.env.AZURE_ACCESS_TOKEN, subscriptionId: process.env.AZURE_SUBSCRIPTION_ID }));
|
||||
service = azure.createWebSiteManagementClient(new TokenCloudCredentials({ token: process.env.AZURE_ACCESS_TOKEN, subscriptionId: process.env.AZURE_SUBSCRIPTION_ID }));
|
||||
service.strictSSL = false;
|
||||
suiteUtil = new MockedTestUtils(service, testPrefix);
|
||||
suiteUtil.setupSuite(done);
|
||||
|
|
Загрузка…
Ссылка в новой задаче