Syncing with current public repo.
packages.config
This commit is contained in:
Коммит
0419856716
|
@ -23,5 +23,6 @@
|
|||
"strict": false,
|
||||
"trailing": true,
|
||||
"undef": true,
|
||||
"unused": true
|
||||
"unused": true,
|
||||
"shadow": true
|
||||
}
|
|
@ -1,3 +1,8 @@
|
|||
2013.01.15 Version 0.8.0
|
||||
* Added the Preview Service Management libraries as separate modules
|
||||
* Added ability to consume PEM files directly from the Service Management libraries
|
||||
* Added support for createOrUpdate and createRegistrationId in the Notification Hubs libraries
|
||||
|
||||
2013.01.10 Version 0.7.19
|
||||
* Lock validator version
|
||||
|
||||
|
|
|
@ -543,8 +543,9 @@ exports.createResourceManagementClient = resourceManagement.createResourceManage
|
|||
* Generated SchedulerClient client exports.
|
||||
* @ignore
|
||||
*/
|
||||
var azureScheduler = require('azure-scheduler');
|
||||
exports.SchedulerClient = azureScheduler.SchedulerClient;
|
||||
// TODO: uncomment when scheduler is published
|
||||
// var azureScheduler = require('azure-scheduler');
|
||||
// exports.SchedulerClient = azureScheduler.SchedulerClient;
|
||||
|
||||
/**
|
||||
* Creates a new {@link SchedulerClient} object.
|
||||
|
@ -557,7 +558,8 @@ exports.SchedulerClient = azureScheduler.SchedulerClient;
|
|||
* @param {string} [baseUri] The base uri.
|
||||
* @return {SchedulerClient} A new SchedulerClient object.
|
||||
*/
|
||||
exports.createSchedulerClient = azureScheduler.createSchedulerClient;
|
||||
// TODO: uncomment when scheduler is published
|
||||
// exports.createSchedulerClient = azureScheduler.createSchedulerClient;
|
||||
|
||||
/**
|
||||
* Service Runtime exports.
|
||||
|
|
|
@ -4,4 +4,4 @@ This project provides a Node.js package that serves as the building block for th
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
|
|
|
@ -33,12 +33,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the ComputeManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
computeManagement = require("azure-mgmt-compute");
|
||||
var fs = require('fs'),
|
||||
computeManagement = require('azure-mgmt-compute');
|
||||
|
||||
var computeManagementClient = computeManagement.createComputeManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var computeManagementClient = computeManagement.createComputeManagementClient(computeManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -128,5 +128,5 @@ computeManagementClient.hostedServices.create({
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js - Network Management](https://github.com/andrerod/azure-sdk-for-node/tree/master/lib/services/networkManagement)
|
||||
|
|
|
@ -35,4 +35,20 @@ exports.ComputeManagementClient = ComputeManagementClient;
|
|||
*/
|
||||
exports.createComputeManagementClient = function (credentials, baseUri) {
|
||||
return new exports.ComputeManagementClient.ComputeManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -30,13 +30,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the ManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
management = require("azure-mgmt");
|
||||
var fs = require('fs'),
|
||||
management = require('azure-mgmt');
|
||||
|
||||
var managementClient = management.createManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var managementClient = management.createManagementClient(management.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -65,4 +64,4 @@ managementClient.affinityGroups.list(function (err, result) {
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
|
|
|
@ -59,4 +59,20 @@ exports.ServiceManagementService = ServiceManagementService;
|
|||
*/
|
||||
exports.createServiceManagementService = function (subscriptionId, authentication, hostOptions) {
|
||||
return new ServiceManagementService(subscriptionId, authentication, hostOptions);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -30,13 +30,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the VirtualNetworkManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
vnetManagement = require("azure-mgmt-vnet");
|
||||
var fs = require('fs'),
|
||||
vnetManagement = require('azure-mgmt-vnet');
|
||||
|
||||
var vnetManagementClient = vnetManagement.createVirtualNetworkManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var vnetManagementClient = vnetManagement.createVirtualNetworkManagementClient(vnetManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -100,5 +99,5 @@ vnetManagementClient.networks.getConfiguration(function (err, result) {
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js - Compute Management](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/computeManagement)
|
||||
|
|
|
@ -32,4 +32,20 @@ exports.VirtualNetworkManagementClient = VirtualNetworkManagementClient;
|
|||
*/
|
||||
exports.createVirtualNetworkManagementClient = function (credentials, baseUri) {
|
||||
return new exports.VirtualNetworkManagementClient.VirtualNetworkManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -32,4 +32,20 @@ exports.SchedulerClient = SchedulerClient;
|
|||
*/
|
||||
exports.createSchedulerClient = function (credentials, baseUri) {
|
||||
return new exports.SchedulerClient.SchedulerClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -28,18 +28,18 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the SchedulerManagementClient
|
||||
|
||||
```javascript
|
||||
var schedulerManagement = require("azure-mgmt-scheduler");
|
||||
var schedulerManagement = require('azure-mgmt-scheduler');
|
||||
|
||||
var schedulerManagementClient = schedulerManagement.createSchedulerManagementClient({
|
||||
subscriptionId: "<your subscription id>",
|
||||
certvalue: "<your management certificate value>",
|
||||
keyvalue: "<your management certificate key value>"
|
||||
});
|
||||
var schedulerManagementClient = schedulerManagement.createSchedulerManagementClient(schedulerManagement.createCloudCertificateCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
certvalue: '<your management certificate value>',
|
||||
keyvalue: '<your management certificate key value>'
|
||||
}));
|
||||
```
|
||||
|
||||
### Manage Job Collection
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js - Scheduler](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/scheduler)
|
||||
|
|
|
@ -32,4 +32,20 @@ exports.SchedulerManagementClient = SchedulerManagementClient;
|
|||
*/
|
||||
exports.createSchedulerManagementClient = function (credentials, baseUri) {
|
||||
return new exports.SchedulerManagementClient.SchedulerManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -31,13 +31,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the ServiceBusManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
sbManagement = require("azure-mgmt-sb");
|
||||
var fs = require('fs'),
|
||||
sbManagement = require('azure-mgmt-sb');
|
||||
|
||||
var sbManagementClient = sbManagement.createServiceBusManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var sbManagementClient = sbManagement.createServiceBusManagementClient(sbManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -58,5 +57,5 @@ sbManagementClient.namespaces.create(namespaceName, "West US", function (err, re
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js - Service Bus](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/serviceBus)
|
|
@ -65,4 +65,20 @@ exports.ServiceBusManagementClient = require('./serviceBusManagementClient');
|
|||
*/
|
||||
exports.createServiceBusManagementClient = function (credentials, baseUri) {
|
||||
return new exports.ServiceBusManagementClient.ServiceBusManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -34,13 +34,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the SqlManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
sqlManagement = require("azure-mgmt-sql");
|
||||
var fs = require('fs'),
|
||||
sqlManagement = require('azure-mgmt-sql');
|
||||
|
||||
var sqlManagementClient = sqlManagement.createSqlManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var sqlManagementClient = sqlManagement.createSqlManagementClient(sqlManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -80,4 +79,4 @@ sqlManagementClient.servers.create({
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
|
|
|
@ -65,4 +65,20 @@ exports.SqlManagementClient = require('./sqlManagementClient');
|
|||
*/
|
||||
exports.createSqlManagementClient = function (credentials, baseUri) {
|
||||
return new exports.SqlManagementClient.SqlManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -28,13 +28,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the StorageManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
storageManagement = require("azure-mgmt-storage");
|
||||
var fs = require('fs'),
|
||||
storageManagement = require('azure-mgmt-storage');
|
||||
|
||||
var storageManagementClient = storageManagement.createStorageManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var storageManagementClient = storageManagement.createStorageManagementClient(storageManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
@ -130,7 +129,7 @@ storageManagementClient.storageAccounts.regenerateKeys({
|
|||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js - Storage Blob](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/blob)
|
||||
- [Windows Azure SDK for Node.js - Storage Table](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/table)
|
||||
- [Windows Azure SDK for Node.js - Storage Queue](https://github.com/WindowsAzure/azure-sdk-for-node/tree/master/lib/services/queue)
|
||||
|
|
|
@ -32,4 +32,20 @@ exports.StorageManagementClient = StorageManagementClient;
|
|||
*/
|
||||
exports.createStorageManagementClient = function (credentials, baseUri) {
|
||||
return new exports.StorageManagementClient.StorageManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -28,17 +28,17 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the StoreManagementClient
|
||||
|
||||
```javascript
|
||||
var storeManagement = require("azure-mgmt-store");
|
||||
var storeManagement = require('azure-mgmt-store');
|
||||
|
||||
var storeManagementClient = storeManagement.createStoreManagementClient({
|
||||
subscriptionId: "<your subscription id>",
|
||||
certvalue: "<your management certificate value>",
|
||||
keyvalue: "<your management certificate key value>"
|
||||
});
|
||||
var storeManagementClient = storeManagement.createStoreManagementClient(storeManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
certvalue: '<your management certificate value>',
|
||||
keyvalue: '<your management certificate key value>'
|
||||
}));
|
||||
```
|
||||
|
||||
### Manage Add-On
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Windows Azure SDK for Node.js - All-up](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
- [Windows Azure SDK for Node.js](https://github.com/WindowsAzure/azure-sdk-for-node)
|
||||
|
|
|
@ -32,4 +32,20 @@ exports.StoreManagementClient = StoreManagementClient;
|
|||
*/
|
||||
exports.createStoreManagementClient = function (credentials, baseUri) {
|
||||
return new exports.StoreManagementClient.StoreManagementClient(credentials, baseUri);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -28,10 +28,10 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the SubscriptionClient
|
||||
|
||||
```javascript
|
||||
var subscriptionManagement = require("azure-mgmt-subscription");
|
||||
var subscriptionManagement = require('azure-mgmt-subscription');
|
||||
|
||||
var subscriptionClient = subscriptionManagement.createSubscriptionClient({
|
||||
subscriptionId: "<your subscription id>",
|
||||
subscriptionId: '<your subscription id>',
|
||||
certvalue: "<your management certificate value>",
|
||||
keyvalue: "<your management certificate key value>"
|
||||
});
|
||||
|
|
|
@ -29,13 +29,12 @@ This library support management certificate authentication. To authenticate the
|
|||
### Create the WebSiteManagementClient
|
||||
|
||||
```javascript
|
||||
var fs = require("fs"),
|
||||
common = require("azure-common"),
|
||||
webSiteManagement = require("azure-mgmt-website");
|
||||
var fs = require('fs'),
|
||||
webSiteManagement = require('azure-mgmt-website');
|
||||
|
||||
var webSiteManagementClient = webSiteManagement.createWebsiteManagementClient(new common.CertificateCloudCredentials({
|
||||
subscriptionId: "<your subscription id>",
|
||||
pem: fs.readFileSync("<your pem file>")
|
||||
var webSiteManagementClient = webSiteManagement.createWebsiteManagementClient(webSiteManagement.createCertificateCloudCredentials({
|
||||
subscriptionId: '<your subscription id>',
|
||||
pem: fs.readFileSync('<your pem file>')
|
||||
}));
|
||||
```
|
||||
|
||||
|
|
|
@ -1162,9 +1162,7 @@ var WebSiteOperations = ( /** @lends WebSiteOperations */ function() {
|
|||
// Tracing
|
||||
|
||||
// Construct URL
|
||||
var url2 = this.client.baseUri + '/' + this.client.credentials.subscriptionId + '/services/WebSpaces/' + webSpaceName + '/sites/' + webSiteName + '/slots?';
|
||||
url2 = url2 + 'Command=swap';
|
||||
url2 = url2 + '&targetSlot=' + encodeURIComponent(slotName);
|
||||
var url2 = this.client.baseUri + '/' + this.client.credentials.subscriptionId + '/services/WebSpaces/' + webSpaceName + '/sites/' + webSiteName + '/slots?Command=swap&targetSlot=' + slotName;
|
||||
|
||||
// Create HTTP transport objects
|
||||
var httpRequest = new WebResource();
|
||||
|
@ -3721,69 +3719,6 @@ var WebSiteOperations = ( /** @lends WebSiteOperations */ function() {
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* A web site repository is essentially a GIT repository that you can use to
|
||||
* manage your web site content. By using GIT source control tools, you can
|
||||
* push or pull version controlled changes to your site. This API executes a
|
||||
* repository sync operation. (see
|
||||
* http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for
|
||||
* more information)
|
||||
*
|
||||
* @param {string} webSpaceName The name of the web space.
|
||||
*
|
||||
* @param {string} webSiteName The name of the web site.
|
||||
*
|
||||
* @param {function} callback
|
||||
*
|
||||
* @returns {Stream} The response stream.
|
||||
*/
|
||||
WebSiteOperations.prototype.syncRepository = function(webSpaceName, webSiteName, callback) {
|
||||
if (callback === null || callback === undefined) {
|
||||
throw new Error('callback cannot be null.');
|
||||
}
|
||||
// Validate
|
||||
if (webSpaceName === null || webSpaceName === undefined) {
|
||||
return callback(new Error('webSpaceName cannot be null.'));
|
||||
}
|
||||
if (webSiteName === null || webSiteName === undefined) {
|
||||
return callback(new Error('webSiteName cannot be null.'));
|
||||
}
|
||||
|
||||
// Tracing
|
||||
|
||||
// Construct URL
|
||||
var url2 = this.client.baseUri + '/' + this.client.credentials.subscriptionId + '/services/WebSpaces/' + webSpaceName + '/sites/' + webSiteName + '/repository?action=sync';
|
||||
|
||||
// Create HTTP transport objects
|
||||
var httpRequest = new WebResource();
|
||||
httpRequest.method = 'POST';
|
||||
httpRequest.headers = {};
|
||||
httpRequest.url = url2;
|
||||
|
||||
// Set Headers
|
||||
httpRequest.headers['Content-Length'] = '0';
|
||||
httpRequest.headers['x-ms-version'] = '2013-08-01';
|
||||
|
||||
// Send Request
|
||||
return this.client.pipeline(httpRequest, function (err, response, body) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
var statusCode = response.statusCode;
|
||||
if (statusCode !== 200) {
|
||||
return callback(body);
|
||||
}
|
||||
|
||||
// Create Result
|
||||
var result = null;
|
||||
result = {};
|
||||
result.statusCode = statusCode;
|
||||
result.requestId = response.headers['x-ms-request-id'];
|
||||
|
||||
return callback(null, result);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* You can update the settings for a web site by using the HTTP PUT method
|
||||
* and by specifying the settings in the request body. (see
|
||||
|
|
|
@ -56,4 +56,20 @@ exports.WebsiteManagementService = WebsiteManagementService;
|
|||
*/
|
||||
exports.createWebsiteManagementService = function (subscriptionId, authentication, hostOptions) {
|
||||
return new WebsiteManagementService(subscriptionId, authentication, hostOptions);
|
||||
};
|
||||
|
||||
var common = require('azure-common');
|
||||
|
||||
/**
|
||||
* Creates a new CertificateCloudCredentials object.
|
||||
* Either a pair of cert / key values need to be pass or a pem file location.
|
||||
*
|
||||
* @param {string} credentials.subscription The subscription identifier.
|
||||
* @param {string} [credentials.cert] The certificate.
|
||||
* @param {string} [credentials.key] The certificate key.
|
||||
* @param {string} [credentials.pem] The PEM file content.
|
||||
* @return {CertificateCloudCredentials}
|
||||
*/
|
||||
exports.createCertificateCloudCredentials = function (credentials) {
|
||||
return new common.CertificateCloudCredentials(credentials);
|
||||
};
|
|
@ -39,7 +39,6 @@
|
|||
"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.4.0",
|
||||
"request": "2.27.0",
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Hydra.Generator" version="1.0.5129.25209-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Compute.Specification" version="1.0.5129.28683-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Scheduler.Specification" version="1.0.5129.28697-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Specification" version="1.0.5129.28690-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Sql.Specification" version="1.0.5129.28705-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Storage.Specification" version="1.0.5129.28707-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.WebSites.Specification" version="1.0.5129.28710-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Store.Specification" version="1.0.5129.28709-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Network.Specification" version="1.0.5129.28693-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.ServiceBus.Specification" version="1.0.5129.28699-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.Azure.Management.Resources.Specification" version="1.0.5129.28696-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
</packages>
|
||||
<package id="Hydra.Generator" version="1.0.5126.41990-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Compute.Specification" version="1.0.5126.42333-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Scheduler.Specification" version="1.0.5126.42351-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Specification" version="1.0.5126.42344-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Sql.Specification" version="1.0.5126.42364-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Storage.Specification" version="1.0.5126.42367-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.WebSites.Specification" version="1.0.5126.42372-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Store.Specification" version="1.0.5126.42370-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.Network.Specification" version="1.0.5126.42349-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
<package id="Microsoft.WindowsAzure.Management.ServiceBus.Specification" version="1.0.5126.42354-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
|
||||
</packages>
|
||||
|
|
Загрузка…
Ссылка в новой задаче