Updated to latest packages, generator, & nuget.exe

This commit is contained in:
Chris Tavares 2014-02-11 12:12:04 -08:00
Родитель 75e19b696a
Коммит 216c4757a6
15 изменённых файлов: 3423 добавлений и 584 удалений

Просмотреть файл

@ -54,13 +54,15 @@ var ComputeManagementClient = ( /** @lends ComputeManagementClient */ function()
*
* @param {string} [baseUri] The URI used as the base for all Service
* Management requests.
*
* @param {Array} filters
*/
function ComputeManagementClient(credentials, baseUri) {
function ComputeManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
ComputeManagementClient['super_'].call(this, credentials);
ComputeManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;
@ -3635,12 +3637,6 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
resourceExtensionReferenceInstance.version = versionInstance;
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
var resourceExtensionParameterValuesSequenceElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'RESOURCEEXTENSIONPARAMETERVALUES', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (resourceExtensionParameterValuesSequenceElement) {
for (var loweredIndex13 = 0; loweredIndex13 < js2xml.getElements(responseDoc, resourceExtensionParameterValuesSequenceElement, 'RESOURCEEXTENSIONPARAMETERVALUE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE').length; loweredIndex13 = loweredIndex13 + 1) {
@ -3667,6 +3663,12 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
}
}
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
}
}
@ -3803,7 +3805,7 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
var rollbackAllowedElement = js2xml.getElement(responseDoc, deploymentElement, 'ROLLBACKALLOWED', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (rollbackAllowedElement) {
var rollbackAllowedInstance = rollbackAllowedElement;
var rollbackAllowedInstance = rollbackAllowedElement === 'true';
result.rollbackAllowed = rollbackAllowedInstance;
}
@ -4658,12 +4660,6 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
resourceExtensionReferenceInstance.version = versionInstance;
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
var resourceExtensionParameterValuesSequenceElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'RESOURCEEXTENSIONPARAMETERVALUES', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (resourceExtensionParameterValuesSequenceElement) {
for (var loweredIndex13 = 0; loweredIndex13 < js2xml.getElements(responseDoc, resourceExtensionParameterValuesSequenceElement, 'RESOURCEEXTENSIONPARAMETERVALUE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE').length; loweredIndex13 = loweredIndex13 + 1) {
@ -4690,6 +4686,12 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
}
}
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
}
}
@ -4826,7 +4828,7 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
var rollbackAllowedElement = js2xml.getElement(responseDoc, deploymentElement, 'ROLLBACKALLOWED', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (rollbackAllowedElement) {
var rollbackAllowedInstance = rollbackAllowedElement;
var rollbackAllowedInstance = rollbackAllowedElement === 'true';
result.rollbackAllowed = rollbackAllowedInstance;
}
@ -5618,7 +5620,7 @@ var DeploymentOperations = ( /** @lends DeploymentOperations */ function() {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
if (statusCode !== 202) {
return callback(body);
}
@ -6376,6 +6378,16 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
* configuration that is defined using the schema returned by the List
* Available Extensions operation.
*
* @param {string} [parameters.version] Optional. Specifies the version of
* the extension. If this element is not specified or an asterisk (*) is
* used as the value, the latest version of the extension is used. If the
* value is specified with a major version number and an asterisk as the
* minor version number (X.*), the latest minor version of the specified
* major version is selected. If a major version number and a minor version
* number are specified (X.Y), the specific extension version is selected.
* If a version is specified, an auto-upgrade is performed on the role
* instance.
*
* @param {function} callback
*
* @returns {Stream} The response stream.
@ -6465,6 +6477,16 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
* configuration that is defined using the schema returned by the List
* Available Extensions operation.
*
* @param {string} [parameters.version] Optional. Specifies the version of
* the extension. If this element is not specified or an asterisk (*) is
* used as the value, the latest version of the extension is used. If the
* value is specified with a major version number and an asterisk as the
* minor version number (X.*), the latest minor version of the specified
* major version is selected. If a major version number and a minor version
* number are specified (X.Y), the specific extension version is selected.
* If a version is specified, an auto-upgrade is performed on the role
* instance.
*
* @param {function} callback
*
* @returns {Stream} The response stream.
@ -6548,6 +6570,12 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
js2xml.addChildElement(extensionElement, privateConfigurationElement);
}
if (parameters.version) {
var versionElement = js2xml.createElement('Version', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(versionElement, parameters.version);
js2xml.addChildElement(extensionElement, versionElement);
}
requestContent = js2xml.serializeDocument(requestDoc);
httpRequest.body = requestContent;
httpRequest.headers['Content-Length'] = Buffer.isBuffer(requestContent) ? requestContent.length : Buffer.byteLength(requestContent, 'UTF8');
@ -7930,12 +7958,6 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
resourceExtensionReferenceInstance.version = versionInstance;
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
var resourceExtensionParameterValuesSequenceElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'RESOURCEEXTENSIONPARAMETERVALUES', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (resourceExtensionParameterValuesSequenceElement) {
for (var loweredIndex14 = 0; loweredIndex14 < js2xml.getElements(responseDoc, resourceExtensionParameterValuesSequenceElement, 'RESOURCEEXTENSIONPARAMETERVALUE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE').length; loweredIndex14 = loweredIndex14 + 1) {
@ -7962,6 +7984,12 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
}
}
}
var stateElement = js2xml.getElement(responseDoc, resourceExtensionReferencesElement, 'STATE', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (stateElement && (stateElement === null || stateElement === undefined || stateElement.length === 0) === false) {
var stateInstance = stateElement;
resourceExtensionReferenceInstance.state = stateInstance;
}
}
}
@ -8098,7 +8126,7 @@ var HostedServiceOperations = ( /** @lends HostedServiceOperations */ function()
var rollbackAllowedElement = js2xml.getElement(responseDoc, deploymentsElement, 'ROLLBACKALLOWED', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (rollbackAllowedElement) {
var rollbackAllowedInstance = rollbackAllowedElement;
var rollbackAllowedInstance = rollbackAllowedElement === 'true';
deploymentInstance.rollbackAllowed = rollbackAllowedInstance;
}
@ -10268,7 +10296,7 @@ var VirtualMachineDiskOperations = ( /** @lends VirtualMachineDiskOperations */
var logicalDiskSizeInGBElement = js2xml.getElement(responseDoc, diskElement2, 'LOGICALDISKSIZEINGB', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (logicalDiskSizeInGBElement) {
var logicalDiskSizeInGBInstance = parseFloat(logicalDiskSizeInGBElement, 10);
var logicalDiskSizeInGBInstance = parseInt(logicalDiskSizeInGBElement, 10);
result.logicalSizeInGB = logicalDiskSizeInGBInstance;
}
@ -10560,7 +10588,7 @@ var VirtualMachineDiskOperations = ( /** @lends VirtualMachineDiskOperations */
var logicalDiskSizeInGBElement = js2xml.getElement(responseDoc, dataVirtualHardDiskElement, 'LOGICALDISKSIZEINGB', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (logicalDiskSizeInGBElement) {
var logicalDiskSizeInGBInstance = parseFloat(logicalDiskSizeInGBElement, 10);
var logicalDiskSizeInGBInstance = parseInt(logicalDiskSizeInGBElement, 10);
result.logicalDiskSizeInGB = logicalDiskSizeInGBInstance;
}
@ -10659,7 +10687,7 @@ var VirtualMachineDiskOperations = ( /** @lends VirtualMachineDiskOperations */
var logicalDiskSizeInGBElement = js2xml.getElement(responseDoc, diskElement, 'LOGICALDISKSIZEINGB', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (logicalDiskSizeInGBElement) {
var logicalDiskSizeInGBInstance = parseFloat(logicalDiskSizeInGBElement, 10);
var logicalDiskSizeInGBInstance = parseInt(logicalDiskSizeInGBElement, 10);
result.logicalSizeInGB = logicalDiskSizeInGBInstance;
}
@ -10812,7 +10840,7 @@ var VirtualMachineDiskOperations = ( /** @lends VirtualMachineDiskOperations */
var logicalDiskSizeInGBElement = js2xml.getElement(responseDoc, disksElement, 'LOGICALDISKSIZEINGB', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (logicalDiskSizeInGBElement) {
var logicalDiskSizeInGBInstance = parseFloat(logicalDiskSizeInGBElement, 10);
var logicalDiskSizeInGBInstance = parseInt(logicalDiskSizeInGBElement, 10);
diskInstance.logicalSizeInGB = logicalDiskSizeInGBInstance;
}
@ -11197,7 +11225,7 @@ var VirtualMachineDiskOperations = ( /** @lends VirtualMachineDiskOperations */
var logicalDiskSizeInGBElement = js2xml.getElement(responseDoc, diskElement2, 'LOGICALDISKSIZEINGB', 'HTTP://SCHEMAS.MICROSOFT.COM/WINDOWSAZURE');
if (logicalDiskSizeInGBElement) {
var logicalDiskSizeInGBInstance = parseFloat(logicalDiskSizeInGBElement, 10);
var logicalDiskSizeInGBInstance = parseInt(logicalDiskSizeInGBElement, 10);
result.logicalSizeInGB = logicalDiskSizeInGBInstance;
}
@ -13948,12 +13976,6 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
js2xml.addChildElement(resourceExtensionReferenceElement, versionElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
if (resourceExtensionReferencesItem.resourceExtensionParameterValues) {
var resourceExtensionParameterValuesSequenceElement = js2xml.createElement('ResourceExtensionParameterValues', 'http://schemas.microsoft.com/windowsazure');
for (var loweredIndex16 = 0; loweredIndex16 < resourceExtensionReferencesItem.resourceExtensionParameterValues.length; loweredIndex16 = loweredIndex16 + 1) {
@ -13981,6 +14003,12 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
}
js2xml.addChildElement(resourceExtensionReferenceElement, resourceExtensionParameterValuesSequenceElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
}
js2xml.addChildElement(persistentVMRoleElement, resourceExtensionReferencesSequenceElement);
}
@ -14711,12 +14739,6 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
js2xml.addChildElement(resourceExtensionReferenceElement, versionElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
if (resourceExtensionReferencesItem.resourceExtensionParameterValues) {
var resourceExtensionParameterValuesSequenceElement = js2xml.createElement('ResourceExtensionParameterValues', 'http://schemas.microsoft.com/windowsazure');
for (var loweredIndex18 = 0; loweredIndex18 < resourceExtensionReferencesItem.resourceExtensionParameterValues.length; loweredIndex18 = loweredIndex18 + 1) {
@ -14744,6 +14766,12 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
}
js2xml.addChildElement(resourceExtensionReferenceElement, resourceExtensionParameterValuesSequenceElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
}
js2xml.addChildElement(roleElement, resourceExtensionReferencesSequenceElement);
}
@ -16027,12 +16055,6 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
js2xml.addChildElement(resourceExtensionReferenceElement, versionElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
if (resourceExtensionReferencesItem.resourceExtensionParameterValues) {
var resourceExtensionParameterValuesSequenceElement = js2xml.createElement('ResourceExtensionParameterValues', 'http://schemas.microsoft.com/windowsazure');
for (var loweredIndex16 = 0; loweredIndex16 < resourceExtensionReferencesItem.resourceExtensionParameterValues.length; loweredIndex16 = loweredIndex16 + 1) {
@ -16060,6 +16082,12 @@ var VirtualMachineOperations = ( /** @lends VirtualMachineOperations */ function
}
js2xml.addChildElement(resourceExtensionReferenceElement, resourceExtensionParameterValuesSequenceElement);
}
if (resourceExtensionReferencesItem.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, resourceExtensionReferencesItem.state ? resourceExtensionReferencesItem.state.toString() : 'Enable');
js2xml.addChildElement(resourceExtensionReferenceElement, stateElement);
}
}
js2xml.addChildElement(persistentVMRoleElement, resourceExtensionReferencesSequenceElement);
}

Просмотреть файл

@ -54,13 +54,15 @@ var ManagementClient = ( /** @lends ManagementClient */ function() {
*
* @param {string} [baseUri] The URI used as the base for all Service
* Management requests.
*
* @param {Array} filters
*/
function ManagementClient(credentials, baseUri) {
function ManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
ManagementClient['super_'].call(this, credentials);
ManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -51,13 +51,15 @@ var VirtualNetworkManagementClient = ( /** @lends VirtualNetworkManagementClient
* @param {string} [credentials.subscriptionId]
*
* @param {string} [baseUri] The URI used as the base for all SQL requests.
*
* @param {Array} filters
*/
function VirtualNetworkManagementClient(credentials, baseUri) {
function VirtualNetworkManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
VirtualNetworkManagementClient['super_'].call(this, credentials);
VirtualNetworkManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -43,8 +43,10 @@ var SchedulerClient = ( /** @lends SchedulerClient */ function() {
* @param {string} jobCollectionName
*
* @param {string} [baseUri]
*
* @param {Array} filters
*/
function SchedulerClient(credentials, cloudServiceName, jobCollectionName, baseUri) {
function SchedulerClient(credentials, cloudServiceName, jobCollectionName, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
@ -55,7 +57,7 @@ var SchedulerClient = ( /** @lends SchedulerClient */ function() {
throw new Error('jobCollectionName cannot be null.');
}
SchedulerClient['super_'].call(this, credentials);
SchedulerClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.cloudServiceName = cloudServiceName;

Просмотреть файл

@ -41,13 +41,15 @@ var SchedulerManagementClient = ( /** @lends SchedulerManagementClient */ functi
* @param {string} [credentials.subscriptionId]
*
* @param {string} [baseUri]
*
* @param {Array} filters
*/
function SchedulerManagementClient(credentials, baseUri) {
function SchedulerManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
SchedulerManagementClient['super_'].call(this, credentials);
SchedulerManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -54,13 +54,15 @@ var ServiceBusManagementClient = ( /** @lends ServiceBusManagementClient */ func
*
* @param {string} [baseUri] The URI used as the base for all Service Bus
* requests.
*
* @param {Array} filters
*/
function ServiceBusManagementClient(credentials, baseUri) {
function ServiceBusManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
ServiceBusManagementClient['super_'].call(this, credentials);
ServiceBusManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;
@ -2541,10 +2543,6 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
js2xml.addChildElement(queueDescriptionElement, duplicateDetectionHistoryTimeWindowElement);
}
var maxDeliveryCountElement = js2xml.createElement('MaxDeliveryCount', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(maxDeliveryCountElement, queue.maxDeliveryCount.toString());
js2xml.addChildElement(queueDescriptionElement, maxDeliveryCountElement);
var enableBatchedOperationsElement = js2xml.createElement('EnableBatchedOperations', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(enableBatchedOperationsElement, queue.enableBatchedOperations.toString());
js2xml.addChildElement(queueDescriptionElement, enableBatchedOperationsElement);
@ -2630,18 +2628,6 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
js2xml.addChildElement(queueDescriptionElement, statusElement);
}
var createdAtElement = js2xml.createElement('CreatedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(createdAtElement, queue.createdAt.toString());
js2xml.addChildElement(queueDescriptionElement, createdAtElement);
var updatedAtElement = js2xml.createElement('UpdatedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(updatedAtElement, queue.updatedAt.toString());
js2xml.addChildElement(queueDescriptionElement, updatedAtElement);
var accessedAtElement = js2xml.createElement('AccessedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(accessedAtElement, queue.accessedAt.toString());
js2xml.addChildElement(queueDescriptionElement, accessedAtElement);
var supportOrderingElement = js2xml.createElement('SupportOrdering', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(supportOrderingElement, queue.supportOrdering.toString());
js2xml.addChildElement(queueDescriptionElement, supportOrderingElement);
@ -2764,9 +2750,9 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
queueDescriptionInstance.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindowInstance;
}
var maxDeliveryCountElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'MAXDELIVERYCOUNT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (maxDeliveryCountElement2) {
var maxDeliveryCountInstance = parseInt(maxDeliveryCountElement2, 10);
var maxDeliveryCountElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'MAXDELIVERYCOUNT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (maxDeliveryCountElement) {
var maxDeliveryCountInstance = parseInt(maxDeliveryCountElement, 10);
queueDescriptionInstance.maxDeliveryCount = maxDeliveryCountInstance;
}
@ -2859,21 +2845,21 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
queueDescriptionInstance.status = statusInstance;
}
var createdAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'CREATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (createdAtElement2) {
var createdAtInstance = new Date(createdAtElement2);
var createdAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'CREATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (createdAtElement) {
var createdAtInstance = new Date(createdAtElement);
queueDescriptionInstance.createdAt = createdAtInstance;
}
var updatedAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'UPDATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (updatedAtElement2) {
var updatedAtInstance = new Date(updatedAtElement2);
var updatedAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'UPDATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (updatedAtElement) {
var updatedAtInstance = new Date(updatedAtElement);
queueDescriptionInstance.updatedAt = updatedAtInstance;
}
var accessedAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'ACCESSEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (accessedAtElement2) {
var accessedAtInstance = new Date(accessedAtElement2);
var accessedAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'ACCESSEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (accessedAtElement) {
var accessedAtInstance = new Date(accessedAtElement);
queueDescriptionInstance.accessedAt = accessedAtInstance;
}
@ -3918,10 +3904,6 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
js2xml.addChildElement(queueDescriptionElement, duplicateDetectionHistoryTimeWindowElement);
}
var maxDeliveryCountElement = js2xml.createElement('MaxDeliveryCount', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(maxDeliveryCountElement, queue.maxDeliveryCount.toString());
js2xml.addChildElement(queueDescriptionElement, maxDeliveryCountElement);
var enableBatchedOperationsElement = js2xml.createElement('EnableBatchedOperations', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(enableBatchedOperationsElement, queue.enableBatchedOperations.toString());
js2xml.addChildElement(queueDescriptionElement, enableBatchedOperationsElement);
@ -4007,18 +3989,6 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
js2xml.addChildElement(queueDescriptionElement, statusElement);
}
var createdAtElement = js2xml.createElement('CreatedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(createdAtElement, queue.createdAt.toString());
js2xml.addChildElement(queueDescriptionElement, createdAtElement);
var updatedAtElement = js2xml.createElement('UpdatedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(updatedAtElement, queue.updatedAt.toString());
js2xml.addChildElement(queueDescriptionElement, updatedAtElement);
var accessedAtElement = js2xml.createElement('AccessedAt', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(accessedAtElement, queue.accessedAt.toString());
js2xml.addChildElement(queueDescriptionElement, accessedAtElement);
var supportOrderingElement = js2xml.createElement('SupportOrdering', 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect');
js2xml.setElementValue(supportOrderingElement, queue.supportOrdering.toString());
js2xml.addChildElement(queueDescriptionElement, supportOrderingElement);
@ -4141,9 +4111,9 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
queueDescriptionInstance.duplicateDetectionHistoryTimeWindow = duplicateDetectionHistoryTimeWindowInstance;
}
var maxDeliveryCountElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'MAXDELIVERYCOUNT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (maxDeliveryCountElement2) {
var maxDeliveryCountInstance = parseInt(maxDeliveryCountElement2, 10);
var maxDeliveryCountElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'MAXDELIVERYCOUNT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (maxDeliveryCountElement) {
var maxDeliveryCountInstance = parseInt(maxDeliveryCountElement, 10);
queueDescriptionInstance.maxDeliveryCount = maxDeliveryCountInstance;
}
@ -4236,21 +4206,21 @@ var QueueOperations = ( /** @lends QueueOperations */ function() {
queueDescriptionInstance.status = statusInstance;
}
var createdAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'CREATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (createdAtElement2) {
var createdAtInstance = new Date(createdAtElement2);
var createdAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'CREATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (createdAtElement) {
var createdAtInstance = new Date(createdAtElement);
queueDescriptionInstance.createdAt = createdAtInstance;
}
var updatedAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'UPDATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (updatedAtElement2) {
var updatedAtInstance = new Date(updatedAtElement2);
var updatedAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'UPDATEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (updatedAtElement) {
var updatedAtInstance = new Date(updatedAtElement);
queueDescriptionInstance.updatedAt = updatedAtInstance;
}
var accessedAtElement2 = js2xml.getElement(responseDoc, queueDescriptionElement2, 'ACCESSEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (accessedAtElement2) {
var accessedAtInstance = new Date(accessedAtElement2);
var accessedAtElement = js2xml.getElement(responseDoc, queueDescriptionElement2, 'ACCESSEDAT', 'HTTP://SCHEMAS.MICROSOFT.COM/NETSERVICES/2010/10/SERVICEBUS/CONNECT');
if (accessedAtElement) {
var accessedAtInstance = new Date(accessedAtElement);
queueDescriptionInstance.accessedAt = accessedAtInstance;
}

Просмотреть файл

@ -54,13 +54,15 @@ var SqlManagementClient = ( /** @lends SqlManagementClient */ function() {
* @param {object} [credentials.managementCertificate]
*
* @param {string} [baseUri] The URI used as the base for all SQL requests.
*
* @param {Array} filters
*/
function SqlManagementClient(credentials, baseUri) {
function SqlManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
SqlManagementClient['super_'].call(this, credentials);
SqlManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -54,13 +54,15 @@ var StorageManagementClient = ( /** @lends StorageManagementClient */ function()
*
* @param {string} [baseUri] The URI used as the base for all Service
* Management requests.
*
* @param {Array} filters
*/
function StorageManagementClient(credentials, baseUri) {
function StorageManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
StorageManagementClient['super_'].call(this, credentials);
StorageManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -51,13 +51,15 @@ var StoreManagementClient = ( /** @lends StoreManagementClient */ function() {
* @param {object} [credentials.managementCertificate]
*
* @param {string} [baseUri] The URI used as the base for all Store requests.
*
* @param {Array} filters
*/
function StoreManagementClient(credentials, baseUri) {
function StoreManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
StoreManagementClient['super_'].call(this, credentials);
StoreManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -41,13 +41,15 @@ var SubscriptionClient = ( /** @lends SubscriptionClient */ function() {
*
* @param {string} [baseUri] The URI used as the base for all Service
* Management requests.
*
* @param {Array} filters
*/
function SubscriptionClient(credentials, baseUri) {
function SubscriptionClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
SubscriptionClient['super_'].call(this, credentials);
SubscriptionClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;

Просмотреть файл

@ -32,7 +32,8 @@ var WebResource = azureCommon.WebResource;
var WebSiteExtensionsClient = ( /** @lends WebSiteExtensionsClient */ function() {
/**
* @class
* TBD.
* The websites extensions client manages the web sites deployments, web jobs
* and other extensions.
* Initializes a new instance of the WebSiteExtensionsClient class.
* @constructor
*
@ -47,8 +48,10 @@ var WebSiteExtensionsClient = ( /** @lends WebSiteExtensionsClient */ function()
* @param {string} [credentials.password]
*
* @param {string} [baseUri] The URI used as the base for all kudu requests.
*
* @param {Array} filters
*/
function WebSiteExtensionsClient(siteName, credentials, baseUri) {
function WebSiteExtensionsClient(siteName, credentials, baseUri, filters) {
if (siteName === null || siteName === undefined) {
throw new Error('siteName cannot be null.');
}
@ -56,7 +59,7 @@ var WebSiteExtensionsClient = ( /** @lends WebSiteExtensionsClient */ function()
throw new Error('credentials cannot be null.');
}
WebSiteExtensionsClient['super_'].call(this, credentials);
WebSiteExtensionsClient['super_'].call(this, credentials, filters);
this.siteName = siteName;
this.credentials = credentials;
@ -2863,7 +2866,7 @@ var WebJobOperations = ( /** @lends WebJobOperations */ function() {
// Tracing
// Construct URL
var url2 = this.client.baseUri + '/jobs/continuous/' + jobName + '/singleton?';
var url2 = this.client.baseUri + '/jobs/continuous/' + jobName + '/singleton/?';
url2 = url2 + 'isSingleton=' + encodeURIComponent(isSingleton.toString());
url2 = url2 + '&version=2';

Просмотреть файл

@ -55,13 +55,15 @@ var WebSiteManagementClient = ( /** @lends WebSiteManagementClient */ function()
*
* @param {string} [baseUri] The URI used as the base for all Service
* Management requests.
*
* @param {Array} filters
*/
function WebSiteManagementClient(credentials, baseUri) {
function WebSiteManagementClient(credentials, baseUri, filters) {
if (credentials === null || credentials === undefined) {
throw new Error('credentials cannot be null.');
}
WebSiteManagementClient['super_'].call(this, credentials);
WebSiteManagementClient['super_'].call(this, credentials, filters);
this.credentials = credentials;
this.baseUri = baseUri;
@ -3658,7 +3660,7 @@ var WebSiteOperations = ( /** @lends WebSiteOperations */ function() {
return callback(err2);
}
var booleanElement = js2xml.getElement(responseDoc, responseDoc, 'BOOLEAN', '');
var booleanElement = js2xml.getElement(responseDoc, responseDoc, 'BOOLEAN', 'HTTP://SCHEMAS.MICROSOFT.COM/2003/10/SERIALIZATION/');
if (booleanElement) {
var booleanInstance = booleanElement === 'true';
result.isAvailable = booleanInstance;
@ -3910,8 +3912,8 @@ var WebSiteOperations = ( /** @lends WebSiteOperations */ function() {
* web site mode is Shared, this value is Basic. Note: The SiteMode value
* is not used for Reserved mode. Reserved mode uses the ComputeMode setting.
*
* @param {WebSiteState} [parameters.state] A string that describes the state
* of the web site. Possible values are Stopped or Running.
* @param {string} [parameters.state] A string that describes the state of
* the web site. Possible values include Stopped, Running or QuotaExceeded.
*
* @param {function} callback
*
@ -4071,7 +4073,7 @@ var WebSiteOperations = ( /** @lends WebSiteOperations */ function() {
if (parameters.state) {
var stateElement = js2xml.createElement('State', 'http://schemas.microsoft.com/windowsazure');
js2xml.setElementValue(stateElement, parameters.state ? parameters.state.toString() : 'Stopped');
js2xml.setElementValue(stateElement, parameters.state);
js2xml.addChildElement(siteElement, stateElement);
}

Просмотреть файл

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Hydra.Generator" version="1.0.5149.25799-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Compute.Specification" version="1.0.5148.31145-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Scheduler.Specification" version="1.0.5148.31161-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Specification" version="1.0.5148.31154-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Sql.Specification" version="1.0.5148.31169-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Storage.Specification" version="1.0.5148.31170-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.WebSites.Specification" version="1.0.5148.31178-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.WebSitesExtensions.Specification" version="1.0.5148.31177-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Store.Specification" version="1.0.5148.31172-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Network.Specification" version="1.0.5148.31158-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.ServiceBus.Specification" version="1.0.5148.31163-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Subscriptions.Specification" version="1.0.5148.31173-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.Azure.Management.Resources.Specification" version="1.0.5133.30985-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Hydra.Generator" version="1.0.5151.32460-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Compute.Specification" version="1.0.5155.20591-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Scheduler.Specification" version="1.0.5155.20607-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Specification" version="1.0.5155.20600-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Sql.Specification" version="1.0.5155.20615-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Storage.Specification" version="1.0.5155.20616-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.WebSites.Specification" version="1.0.5155.20624-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.WebSitesExtensions.Specification" version="1.0.5155.20623-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Store.Specification" version="1.0.5155.20618-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.Network.Specification" version="1.0.5155.20603-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Management.ServiceBus.Specification" version="1.0.5155.20609-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.WindowsAzure.Subscriptions.Specification" version="1.0.5155.20619-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
<package id="Microsoft.Azure.Management.Resources.Specification" version="1.0.5155.20605-prerelease" targetFramework="portable-net45+sl50+wp80+win" />
</packages>

Просмотреть файл

@ -194,6 +194,7 @@ module.exports = function(grunt) {
if (configFile) {
argsTail.push('-configFile', configFile);
grunt.file.write(configFile, '<configuration></configuration>');
}
function spawnOpts() {