Comparing version 0.10.3 to 0.10.4
@@ -0,1 +1,4 @@ | ||
2015.02.09 Version 0.10.4 | ||
* regenerate client lib code for the latest service api | ||
2015.01.21 Version 0.10.3 | ||
@@ -2,0 +5,0 @@ * Added option to overwrite the http agent |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.9.0-pre.4", | ||
"version": "0.9.0-pre.5", | ||
"description": "Microsoft Azure Authorization Management Client Library for node", | ||
@@ -13,0 +13,0 @@ "tags": [ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Microsoft Azure Client Library in node for miscellaneous items", | ||
@@ -13,0 +13,0 @@ "tags": [ |
@@ -121,3 +121,7 @@ /* jshint latedef:false */ | ||
// Construct URL | ||
var url2 = '/Microsoft.Gallery/galleryitems/' + (itemIdentity !== null && itemIdentity !== undefined ? itemIdentity.trim() : ''); | ||
var url2 = ''; | ||
url2 = url2 + '/Microsoft.Gallery/galleryitems/'; | ||
if (itemIdentity !== null && itemIdentity !== undefined) { | ||
url2 = url2 + encodeURIComponent(itemIdentity); | ||
} | ||
var baseUrl = this.client.baseUri; | ||
@@ -158,120 +162,122 @@ // Trim '/' character from the end of baseUrl and beginning of url. | ||
// Deserialize Response | ||
var responseContent = body; | ||
result = {}; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var itemInstance = { categoryIds: [], iconFileUrls: {}, screenshotUrls: [] }; | ||
result.item = itemInstance; | ||
var identityValue = responseDoc['identity']; | ||
if (identityValue !== null && identityValue !== undefined) { | ||
var identityInstance = identityValue; | ||
itemInstance.identity = identityInstance; | ||
if (statusCode === 200) { | ||
var responseContent = body; | ||
result = {}; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
var itemNameValue = responseDoc['itemName']; | ||
if (itemNameValue !== null && itemNameValue !== undefined) { | ||
var itemNameInstance = itemNameValue; | ||
itemInstance.name = itemNameInstance; | ||
} | ||
var itemDisplayNameValue = responseDoc['itemDisplayName']; | ||
if (itemDisplayNameValue !== null && itemDisplayNameValue !== undefined) { | ||
var itemDisplayNameInstance = itemDisplayNameValue; | ||
itemInstance.displayName = itemDisplayNameInstance; | ||
} | ||
var publisherValue = responseDoc['publisher']; | ||
if (publisherValue !== null && publisherValue !== undefined) { | ||
var publisherInstance = publisherValue; | ||
itemInstance.publisher = publisherInstance; | ||
} | ||
var publisherDisplayNameValue = responseDoc['publisherDisplayName']; | ||
if (publisherDisplayNameValue !== null && publisherDisplayNameValue !== undefined) { | ||
var publisherDisplayNameInstance = publisherDisplayNameValue; | ||
itemInstance.publisherDisplayName = publisherDisplayNameInstance; | ||
} | ||
var versionValue = responseDoc['version']; | ||
if (versionValue !== null && versionValue !== undefined) { | ||
var versionInstance = versionValue; | ||
itemInstance.version = versionInstance; | ||
} | ||
var summaryValue = responseDoc['summary']; | ||
if (summaryValue !== null && summaryValue !== undefined) { | ||
var summaryInstance = summaryValue; | ||
itemInstance.summary = summaryInstance; | ||
} | ||
var descriptionValue = responseDoc['description']; | ||
if (descriptionValue !== null && descriptionValue !== undefined) { | ||
var descriptionInstance = descriptionValue; | ||
itemInstance.description = descriptionInstance; | ||
} | ||
var resourceGroupNameValue = responseDoc['resourceGroupName']; | ||
if (resourceGroupNameValue !== null && resourceGroupNameValue !== undefined) { | ||
var resourceGroupNameInstance = resourceGroupNameValue; | ||
itemInstance.resourceGroupName = resourceGroupNameInstance; | ||
} | ||
var definitionTemplatesValue = responseDoc['definitionTemplates']; | ||
if (definitionTemplatesValue !== null && definitionTemplatesValue !== undefined) { | ||
var definitionTemplatesInstance = { deploymentTemplateFileUrls: {} }; | ||
itemInstance.definitionTemplates = definitionTemplatesInstance; | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var itemInstance = { categoryIds: [], iconFileUrls: {}, screenshotUrls: [] }; | ||
result.item = itemInstance; | ||
var uiDefinitionFileUrlValue = definitionTemplatesValue['uiDefinitionFileUrl']; | ||
if (uiDefinitionFileUrlValue !== null && uiDefinitionFileUrlValue !== undefined) { | ||
var uiDefinitionFileUrlInstance = uiDefinitionFileUrlValue; | ||
definitionTemplatesInstance.uiDefinitionFileUrl = uiDefinitionFileUrlInstance; | ||
var identityValue = responseDoc['identity']; | ||
if (identityValue !== null && identityValue !== undefined) { | ||
var identityInstance = identityValue; | ||
itemInstance.identity = identityInstance; | ||
} | ||
var defaultDeploymentTemplateIdValue = definitionTemplatesValue['defaultDeploymentTemplateId']; | ||
if (defaultDeploymentTemplateIdValue !== null && defaultDeploymentTemplateIdValue !== undefined) { | ||
var defaultDeploymentTemplateIdInstance = defaultDeploymentTemplateIdValue; | ||
definitionTemplatesInstance.defaultDeploymentTemplateId = defaultDeploymentTemplateIdInstance; | ||
var itemNameValue = responseDoc['itemName']; | ||
if (itemNameValue !== null && itemNameValue !== undefined) { | ||
var itemNameInstance = itemNameValue; | ||
itemInstance.name = itemNameInstance; | ||
} | ||
var deploymentTemplateFileUrlsSequenceElement = definitionTemplatesValue['deploymentTemplateFileUrls']; | ||
if (deploymentTemplateFileUrlsSequenceElement !== null && deploymentTemplateFileUrlsSequenceElement !== undefined) { | ||
for (var property in deploymentTemplateFileUrlsSequenceElement) { | ||
var deploymentTemplateFileUrlsKey = property; | ||
var deploymentTemplateFileUrlsValue = deploymentTemplateFileUrlsSequenceElement[property]; | ||
definitionTemplatesInstance.deploymentTemplateFileUrls[deploymentTemplateFileUrlsKey] = deploymentTemplateFileUrlsValue; | ||
var itemDisplayNameValue = responseDoc['itemDisplayName']; | ||
if (itemDisplayNameValue !== null && itemDisplayNameValue !== undefined) { | ||
var itemDisplayNameInstance = itemDisplayNameValue; | ||
itemInstance.displayName = itemDisplayNameInstance; | ||
} | ||
var publisherValue = responseDoc['publisher']; | ||
if (publisherValue !== null && publisherValue !== undefined) { | ||
var publisherInstance = publisherValue; | ||
itemInstance.publisher = publisherInstance; | ||
} | ||
var publisherDisplayNameValue = responseDoc['publisherDisplayName']; | ||
if (publisherDisplayNameValue !== null && publisherDisplayNameValue !== undefined) { | ||
var publisherDisplayNameInstance = publisherDisplayNameValue; | ||
itemInstance.publisherDisplayName = publisherDisplayNameInstance; | ||
} | ||
var versionValue = responseDoc['version']; | ||
if (versionValue !== null && versionValue !== undefined) { | ||
var versionInstance = versionValue; | ||
itemInstance.version = versionInstance; | ||
} | ||
var summaryValue = responseDoc['summary']; | ||
if (summaryValue !== null && summaryValue !== undefined) { | ||
var summaryInstance = summaryValue; | ||
itemInstance.summary = summaryInstance; | ||
} | ||
var descriptionValue = responseDoc['description']; | ||
if (descriptionValue !== null && descriptionValue !== undefined) { | ||
var descriptionInstance = descriptionValue; | ||
itemInstance.description = descriptionInstance; | ||
} | ||
var resourceGroupNameValue = responseDoc['resourceGroupName']; | ||
if (resourceGroupNameValue !== null && resourceGroupNameValue !== undefined) { | ||
var resourceGroupNameInstance = resourceGroupNameValue; | ||
itemInstance.resourceGroupName = resourceGroupNameInstance; | ||
} | ||
var definitionTemplatesValue = responseDoc['definitionTemplates']; | ||
if (definitionTemplatesValue !== null && definitionTemplatesValue !== undefined) { | ||
var definitionTemplatesInstance = { deploymentTemplateFileUrls: {} }; | ||
itemInstance.definitionTemplates = definitionTemplatesInstance; | ||
var uiDefinitionFileUrlValue = definitionTemplatesValue['uiDefinitionFileUrl']; | ||
if (uiDefinitionFileUrlValue !== null && uiDefinitionFileUrlValue !== undefined) { | ||
var uiDefinitionFileUrlInstance = uiDefinitionFileUrlValue; | ||
definitionTemplatesInstance.uiDefinitionFileUrl = uiDefinitionFileUrlInstance; | ||
} | ||
var defaultDeploymentTemplateIdValue = definitionTemplatesValue['defaultDeploymentTemplateId']; | ||
if (defaultDeploymentTemplateIdValue !== null && defaultDeploymentTemplateIdValue !== undefined) { | ||
var defaultDeploymentTemplateIdInstance = defaultDeploymentTemplateIdValue; | ||
definitionTemplatesInstance.defaultDeploymentTemplateId = defaultDeploymentTemplateIdInstance; | ||
} | ||
var deploymentTemplateFileUrlsSequenceElement = definitionTemplatesValue['deploymentTemplateFileUrls']; | ||
if (deploymentTemplateFileUrlsSequenceElement !== null && deploymentTemplateFileUrlsSequenceElement !== undefined) { | ||
for (var property in deploymentTemplateFileUrlsSequenceElement) { | ||
var deploymentTemplateFileUrlsKey = property; | ||
var deploymentTemplateFileUrlsValue = deploymentTemplateFileUrlsSequenceElement[property]; | ||
definitionTemplatesInstance.deploymentTemplateFileUrls[deploymentTemplateFileUrlsKey] = deploymentTemplateFileUrlsValue; | ||
} | ||
} | ||
} | ||
} | ||
var categoryIdsArray = responseDoc['categoryIds']; | ||
if (categoryIdsArray !== null && categoryIdsArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < categoryIdsArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var categoryIdsValue = categoryIdsArray[loweredIndex1]; | ||
itemInstance.categoryIds.push(categoryIdsValue); | ||
var categoryIdsArray = responseDoc['categoryIds']; | ||
if (categoryIdsArray !== null && categoryIdsArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < categoryIdsArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var categoryIdsValue = categoryIdsArray[loweredIndex1]; | ||
itemInstance.categoryIds.push(categoryIdsValue); | ||
} | ||
} | ||
} | ||
var screenshotUrlsArray = responseDoc['screenshotUrls']; | ||
if (screenshotUrlsArray !== null && screenshotUrlsArray !== undefined) { | ||
for (var loweredIndex2 = 0; loweredIndex2 < screenshotUrlsArray.length; loweredIndex2 = loweredIndex2 + 1) { | ||
var screenshotUrlsValue = screenshotUrlsArray[loweredIndex2]; | ||
itemInstance.screenshotUrls.push(screenshotUrlsValue); | ||
var screenshotUrlsArray = responseDoc['screenshotUrls']; | ||
if (screenshotUrlsArray !== null && screenshotUrlsArray !== undefined) { | ||
for (var loweredIndex2 = 0; loweredIndex2 < screenshotUrlsArray.length; loweredIndex2 = loweredIndex2 + 1) { | ||
var screenshotUrlsValue = screenshotUrlsArray[loweredIndex2]; | ||
itemInstance.screenshotUrls.push(screenshotUrlsValue); | ||
} | ||
} | ||
var iconFileUrlsSequenceElement = responseDoc['iconFileUrls']; | ||
if (iconFileUrlsSequenceElement !== null && iconFileUrlsSequenceElement !== undefined) { | ||
for (var property2 in iconFileUrlsSequenceElement) { | ||
var iconFileUrlsKey = property2; | ||
var iconFileUrlsValue = iconFileUrlsSequenceElement[property2]; | ||
itemInstance.iconFileUrls[iconFileUrlsKey] = iconFileUrlsValue; | ||
} | ||
} | ||
} | ||
var iconFileUrlsSequenceElement = responseDoc['iconFileUrls']; | ||
if (iconFileUrlsSequenceElement !== null && iconFileUrlsSequenceElement !== undefined) { | ||
for (var property2 in iconFileUrlsSequenceElement) { | ||
var iconFileUrlsKey = property2; | ||
var iconFileUrlsValue = iconFileUrlsSequenceElement[property2]; | ||
itemInstance.iconFileUrls[iconFileUrlsKey] = iconFileUrlsValue; | ||
} | ||
} | ||
} | ||
result.statusCode = statusCode; | ||
@@ -314,11 +320,18 @@ result.requestId = response.headers['x-ms-request-id']; | ||
// Construct URL | ||
var url2 = '/Microsoft.Gallery/galleryitems?'; | ||
var appendFilter = true; | ||
var url2 = ''; | ||
url2 = url2 + '/Microsoft.Gallery/galleryitems'; | ||
var queryParameters = []; | ||
var odataFilter = []; | ||
if (parameters !== null && parameters !== undefined && parameters.filter !== null && parameters.filter !== undefined) { | ||
appendFilter = false; | ||
url2 = url2 + '$filter=' + encodeURIComponent(parameters.filter !== null && parameters.filter !== undefined ? parameters.filter.trim() : ''); | ||
odataFilter.push(encodeURIComponent(parameters.filter)); | ||
} | ||
if (odataFilter.length > 0) { | ||
queryParameters.push('$filter=' + odataFilter.join(null)); | ||
} | ||
if (parameters !== null && parameters !== undefined && parameters.top !== null && parameters.top !== undefined) { | ||
url2 = url2 + '&$top=' + encodeURIComponent(parameters.top.toString()); | ||
queryParameters.push('$top=' + encodeURIComponent(parameters.top.toString())); | ||
} | ||
if (queryParameters.length > 0) { | ||
url2 = url2 + '?' + queryParameters.join('&'); | ||
} | ||
var baseUrl = this.client.baseUri; | ||
@@ -359,120 +372,122 @@ // Trim '/' character from the end of baseUrl and beginning of url. | ||
// Deserialize Response | ||
var responseContent = body; | ||
result = { items: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var itemsArray = responseDoc; | ||
if (itemsArray !== null && itemsArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < itemsArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var itemsValue = itemsArray[loweredIndex1]; | ||
var galleryItemInstance = { categoryIds: [], iconFileUrls: {}, screenshotUrls: [] }; | ||
result.items.push(galleryItemInstance); | ||
var identityValue = itemsValue['identity']; | ||
if (identityValue !== null && identityValue !== undefined) { | ||
var identityInstance = identityValue; | ||
galleryItemInstance.identity = identityInstance; | ||
} | ||
var itemNameValue = itemsValue['itemName']; | ||
if (itemNameValue !== null && itemNameValue !== undefined) { | ||
var itemNameInstance = itemNameValue; | ||
galleryItemInstance.name = itemNameInstance; | ||
} | ||
var itemDisplayNameValue = itemsValue['itemDisplayName']; | ||
if (itemDisplayNameValue !== null && itemDisplayNameValue !== undefined) { | ||
var itemDisplayNameInstance = itemDisplayNameValue; | ||
galleryItemInstance.displayName = itemDisplayNameInstance; | ||
} | ||
var publisherValue = itemsValue['publisher']; | ||
if (publisherValue !== null && publisherValue !== undefined) { | ||
var publisherInstance = publisherValue; | ||
galleryItemInstance.publisher = publisherInstance; | ||
} | ||
var publisherDisplayNameValue = itemsValue['publisherDisplayName']; | ||
if (publisherDisplayNameValue !== null && publisherDisplayNameValue !== undefined) { | ||
var publisherDisplayNameInstance = publisherDisplayNameValue; | ||
galleryItemInstance.publisherDisplayName = publisherDisplayNameInstance; | ||
} | ||
var versionValue = itemsValue['version']; | ||
if (versionValue !== null && versionValue !== undefined) { | ||
var versionInstance = versionValue; | ||
galleryItemInstance.version = versionInstance; | ||
} | ||
var summaryValue = itemsValue['summary']; | ||
if (summaryValue !== null && summaryValue !== undefined) { | ||
var summaryInstance = summaryValue; | ||
galleryItemInstance.summary = summaryInstance; | ||
} | ||
var descriptionValue = itemsValue['description']; | ||
if (descriptionValue !== null && descriptionValue !== undefined) { | ||
var descriptionInstance = descriptionValue; | ||
galleryItemInstance.description = descriptionInstance; | ||
} | ||
var resourceGroupNameValue = itemsValue['resourceGroupName']; | ||
if (resourceGroupNameValue !== null && resourceGroupNameValue !== undefined) { | ||
var resourceGroupNameInstance = resourceGroupNameValue; | ||
galleryItemInstance.resourceGroupName = resourceGroupNameInstance; | ||
} | ||
var definitionTemplatesValue = itemsValue['definitionTemplates']; | ||
if (definitionTemplatesValue !== null && definitionTemplatesValue !== undefined) { | ||
var definitionTemplatesInstance = { deploymentTemplateFileUrls: {} }; | ||
galleryItemInstance.definitionTemplates = definitionTemplatesInstance; | ||
if (statusCode === 200) { | ||
var responseContent = body; | ||
result = { items: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var itemsArray = responseDoc; | ||
if (itemsArray !== null && itemsArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < itemsArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var itemsValue = itemsArray[loweredIndex1]; | ||
var galleryItemInstance = { categoryIds: [], iconFileUrls: {}, screenshotUrls: [] }; | ||
result.items.push(galleryItemInstance); | ||
var uiDefinitionFileUrlValue = definitionTemplatesValue['uiDefinitionFileUrl']; | ||
if (uiDefinitionFileUrlValue !== null && uiDefinitionFileUrlValue !== undefined) { | ||
var uiDefinitionFileUrlInstance = uiDefinitionFileUrlValue; | ||
definitionTemplatesInstance.uiDefinitionFileUrl = uiDefinitionFileUrlInstance; | ||
var identityValue = itemsValue['identity']; | ||
if (identityValue !== null && identityValue !== undefined) { | ||
var identityInstance = identityValue; | ||
galleryItemInstance.identity = identityInstance; | ||
} | ||
var defaultDeploymentTemplateIdValue = definitionTemplatesValue['defaultDeploymentTemplateId']; | ||
if (defaultDeploymentTemplateIdValue !== null && defaultDeploymentTemplateIdValue !== undefined) { | ||
var defaultDeploymentTemplateIdInstance = defaultDeploymentTemplateIdValue; | ||
definitionTemplatesInstance.defaultDeploymentTemplateId = defaultDeploymentTemplateIdInstance; | ||
var itemNameValue = itemsValue['itemName']; | ||
if (itemNameValue !== null && itemNameValue !== undefined) { | ||
var itemNameInstance = itemNameValue; | ||
galleryItemInstance.name = itemNameInstance; | ||
} | ||
var deploymentTemplateFileUrlsSequenceElement = definitionTemplatesValue['deploymentTemplateFileUrls']; | ||
if (deploymentTemplateFileUrlsSequenceElement !== null && deploymentTemplateFileUrlsSequenceElement !== undefined) { | ||
for (var property in deploymentTemplateFileUrlsSequenceElement) { | ||
var deploymentTemplateFileUrlsKey = property; | ||
var deploymentTemplateFileUrlsValue = deploymentTemplateFileUrlsSequenceElement[property]; | ||
definitionTemplatesInstance.deploymentTemplateFileUrls[deploymentTemplateFileUrlsKey] = deploymentTemplateFileUrlsValue; | ||
var itemDisplayNameValue = itemsValue['itemDisplayName']; | ||
if (itemDisplayNameValue !== null && itemDisplayNameValue !== undefined) { | ||
var itemDisplayNameInstance = itemDisplayNameValue; | ||
galleryItemInstance.displayName = itemDisplayNameInstance; | ||
} | ||
var publisherValue = itemsValue['publisher']; | ||
if (publisherValue !== null && publisherValue !== undefined) { | ||
var publisherInstance = publisherValue; | ||
galleryItemInstance.publisher = publisherInstance; | ||
} | ||
var publisherDisplayNameValue = itemsValue['publisherDisplayName']; | ||
if (publisherDisplayNameValue !== null && publisherDisplayNameValue !== undefined) { | ||
var publisherDisplayNameInstance = publisherDisplayNameValue; | ||
galleryItemInstance.publisherDisplayName = publisherDisplayNameInstance; | ||
} | ||
var versionValue = itemsValue['version']; | ||
if (versionValue !== null && versionValue !== undefined) { | ||
var versionInstance = versionValue; | ||
galleryItemInstance.version = versionInstance; | ||
} | ||
var summaryValue = itemsValue['summary']; | ||
if (summaryValue !== null && summaryValue !== undefined) { | ||
var summaryInstance = summaryValue; | ||
galleryItemInstance.summary = summaryInstance; | ||
} | ||
var descriptionValue = itemsValue['description']; | ||
if (descriptionValue !== null && descriptionValue !== undefined) { | ||
var descriptionInstance = descriptionValue; | ||
galleryItemInstance.description = descriptionInstance; | ||
} | ||
var resourceGroupNameValue = itemsValue['resourceGroupName']; | ||
if (resourceGroupNameValue !== null && resourceGroupNameValue !== undefined) { | ||
var resourceGroupNameInstance = resourceGroupNameValue; | ||
galleryItemInstance.resourceGroupName = resourceGroupNameInstance; | ||
} | ||
var definitionTemplatesValue = itemsValue['definitionTemplates']; | ||
if (definitionTemplatesValue !== null && definitionTemplatesValue !== undefined) { | ||
var definitionTemplatesInstance = { deploymentTemplateFileUrls: {} }; | ||
galleryItemInstance.definitionTemplates = definitionTemplatesInstance; | ||
var uiDefinitionFileUrlValue = definitionTemplatesValue['uiDefinitionFileUrl']; | ||
if (uiDefinitionFileUrlValue !== null && uiDefinitionFileUrlValue !== undefined) { | ||
var uiDefinitionFileUrlInstance = uiDefinitionFileUrlValue; | ||
definitionTemplatesInstance.uiDefinitionFileUrl = uiDefinitionFileUrlInstance; | ||
} | ||
var defaultDeploymentTemplateIdValue = definitionTemplatesValue['defaultDeploymentTemplateId']; | ||
if (defaultDeploymentTemplateIdValue !== null && defaultDeploymentTemplateIdValue !== undefined) { | ||
var defaultDeploymentTemplateIdInstance = defaultDeploymentTemplateIdValue; | ||
definitionTemplatesInstance.defaultDeploymentTemplateId = defaultDeploymentTemplateIdInstance; | ||
} | ||
var deploymentTemplateFileUrlsSequenceElement = definitionTemplatesValue['deploymentTemplateFileUrls']; | ||
if (deploymentTemplateFileUrlsSequenceElement !== null && deploymentTemplateFileUrlsSequenceElement !== undefined) { | ||
for (var property in deploymentTemplateFileUrlsSequenceElement) { | ||
var deploymentTemplateFileUrlsKey = property; | ||
var deploymentTemplateFileUrlsValue = deploymentTemplateFileUrlsSequenceElement[property]; | ||
definitionTemplatesInstance.deploymentTemplateFileUrls[deploymentTemplateFileUrlsKey] = deploymentTemplateFileUrlsValue; | ||
} | ||
} | ||
} | ||
} | ||
var categoryIdsArray = itemsValue['categoryIds']; | ||
if (categoryIdsArray !== null && categoryIdsArray !== undefined) { | ||
for (var loweredIndex2 = 0; loweredIndex2 < categoryIdsArray.length; loweredIndex2 = loweredIndex2 + 1) { | ||
var categoryIdsValue = categoryIdsArray[loweredIndex2]; | ||
galleryItemInstance.categoryIds.push(categoryIdsValue); | ||
var categoryIdsArray = itemsValue['categoryIds']; | ||
if (categoryIdsArray !== null && categoryIdsArray !== undefined) { | ||
for (var loweredIndex2 = 0; loweredIndex2 < categoryIdsArray.length; loweredIndex2 = loweredIndex2 + 1) { | ||
var categoryIdsValue = categoryIdsArray[loweredIndex2]; | ||
galleryItemInstance.categoryIds.push(categoryIdsValue); | ||
} | ||
} | ||
} | ||
var screenshotUrlsArray = itemsValue['screenshotUrls']; | ||
if (screenshotUrlsArray !== null && screenshotUrlsArray !== undefined) { | ||
for (var loweredIndex3 = 0; loweredIndex3 < screenshotUrlsArray.length; loweredIndex3 = loweredIndex3 + 1) { | ||
var screenshotUrlsValue = screenshotUrlsArray[loweredIndex3]; | ||
galleryItemInstance.screenshotUrls.push(screenshotUrlsValue); | ||
var screenshotUrlsArray = itemsValue['screenshotUrls']; | ||
if (screenshotUrlsArray !== null && screenshotUrlsArray !== undefined) { | ||
for (var loweredIndex3 = 0; loweredIndex3 < screenshotUrlsArray.length; loweredIndex3 = loweredIndex3 + 1) { | ||
var screenshotUrlsValue = screenshotUrlsArray[loweredIndex3]; | ||
galleryItemInstance.screenshotUrls.push(screenshotUrlsValue); | ||
} | ||
} | ||
} | ||
var iconFileUrlsSequenceElement = itemsValue['iconFileUrls']; | ||
if (iconFileUrlsSequenceElement !== null && iconFileUrlsSequenceElement !== undefined) { | ||
for (var property2 in iconFileUrlsSequenceElement) { | ||
var iconFileUrlsKey = property2; | ||
var iconFileUrlsValue = iconFileUrlsSequenceElement[property2]; | ||
galleryItemInstance.iconFileUrls[iconFileUrlsKey] = iconFileUrlsValue; | ||
var iconFileUrlsSequenceElement = itemsValue['iconFileUrls']; | ||
if (iconFileUrlsSequenceElement !== null && iconFileUrlsSequenceElement !== undefined) { | ||
for (var property2 in iconFileUrlsSequenceElement) { | ||
var iconFileUrlsKey = property2; | ||
var iconFileUrlsValue = iconFileUrlsSequenceElement[property2]; | ||
galleryItemInstance.iconFileUrls[iconFileUrlsKey] = iconFileUrlsValue; | ||
} | ||
} | ||
@@ -482,4 +497,4 @@ } | ||
} | ||
} | ||
result.statusCode = statusCode; | ||
@@ -486,0 +501,0 @@ result.requestId = response.headers['x-ms-request-id']; |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "2.0.0-pre.13", | ||
"version": "2.0.0-pre.14", | ||
"description": "Microsoft Azure Gallery Client Library for node", | ||
@@ -16,0 +16,0 @@ "tags": [ |
@@ -128,4 +128,10 @@ /* jshint latedef:false */ | ||
// Construct URL | ||
var url2 = '/subscriptions/' + subscriptionId.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04-01-preview'; | ||
var url2 = ''; | ||
url2 = url2 + '/subscriptions/'; | ||
url2 = url2 + encodeURIComponent(subscriptionId); | ||
var queryParameters = []; | ||
queryParameters.push('api-version=2014-04-01-preview'); | ||
if (queryParameters.length > 0) { | ||
url2 = url2 + '?' + queryParameters.join('&'); | ||
} | ||
var baseUrl = this.client.baseUri; | ||
@@ -166,38 +172,40 @@ // Trim '/' character from the end of baseUrl and beginning of url. | ||
// Deserialize Response | ||
var responseContent = body; | ||
result = {}; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var subscriptionInstance = {}; | ||
result.subscription = subscriptionInstance; | ||
var idValue = responseDoc['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
subscriptionInstance.id = idInstance; | ||
if (statusCode === 200) { | ||
var responseContent = body; | ||
result = {}; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
var subscriptionIdValue = responseDoc['subscriptionId']; | ||
if (subscriptionIdValue !== null && subscriptionIdValue !== undefined) { | ||
var subscriptionIdInstance = subscriptionIdValue; | ||
subscriptionInstance.subscriptionId = subscriptionIdInstance; | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var subscriptionInstance = {}; | ||
result.subscription = subscriptionInstance; | ||
var idValue = responseDoc['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
subscriptionInstance.id = idInstance; | ||
} | ||
var subscriptionIdValue = responseDoc['subscriptionId']; | ||
if (subscriptionIdValue !== null && subscriptionIdValue !== undefined) { | ||
var subscriptionIdInstance = subscriptionIdValue; | ||
subscriptionInstance.subscriptionId = subscriptionIdInstance; | ||
} | ||
var displayNameValue = responseDoc['displayName']; | ||
if (displayNameValue !== null && displayNameValue !== undefined) { | ||
var displayNameInstance = displayNameValue; | ||
subscriptionInstance.displayName = displayNameInstance; | ||
} | ||
var stateValue = responseDoc['state']; | ||
if (stateValue !== null && stateValue !== undefined) { | ||
var stateInstance = stateValue; | ||
subscriptionInstance.state = stateInstance; | ||
} | ||
} | ||
var displayNameValue = responseDoc['displayName']; | ||
if (displayNameValue !== null && displayNameValue !== undefined) { | ||
var displayNameInstance = displayNameValue; | ||
subscriptionInstance.displayName = displayNameInstance; | ||
} | ||
var stateValue = responseDoc['state']; | ||
if (stateValue !== null && stateValue !== undefined) { | ||
var stateInstance = stateValue; | ||
subscriptionInstance.state = stateInstance; | ||
} | ||
} | ||
result.statusCode = statusCode; | ||
@@ -226,4 +234,9 @@ result.requestId = response.headers['x-ms-request-id']; | ||
// Construct URL | ||
var url2 = '/subscriptions?'; | ||
url2 = url2 + 'api-version=2014-04-01-preview'; | ||
var url2 = ''; | ||
url2 = url2 + '/subscriptions'; | ||
var queryParameters = []; | ||
queryParameters.push('api-version=2014-04-01-preview'); | ||
if (queryParameters.length > 0) { | ||
url2 = url2 + '?' + queryParameters.join('&'); | ||
} | ||
var baseUrl = this.client.baseUri; | ||
@@ -264,44 +277,46 @@ // Trim '/' character from the end of baseUrl and beginning of url. | ||
// Deserialize Response | ||
var responseContent = body; | ||
result = { subscriptions: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var valueArray = responseDoc['value']; | ||
if (valueArray !== null && valueArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < valueArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var valueValue = valueArray[loweredIndex1]; | ||
var subscriptionInstance = {}; | ||
result.subscriptions.push(subscriptionInstance); | ||
var idValue = valueValue['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
subscriptionInstance.id = idInstance; | ||
if (statusCode === 200) { | ||
var responseContent = body; | ||
result = { subscriptions: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var valueArray = responseDoc['value']; | ||
if (valueArray !== null && valueArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < valueArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var valueValue = valueArray[loweredIndex1]; | ||
var subscriptionInstance = {}; | ||
result.subscriptions.push(subscriptionInstance); | ||
var idValue = valueValue['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
subscriptionInstance.id = idInstance; | ||
} | ||
var subscriptionIdValue = valueValue['subscriptionId']; | ||
if (subscriptionIdValue !== null && subscriptionIdValue !== undefined) { | ||
var subscriptionIdInstance = subscriptionIdValue; | ||
subscriptionInstance.subscriptionId = subscriptionIdInstance; | ||
} | ||
var displayNameValue = valueValue['displayName']; | ||
if (displayNameValue !== null && displayNameValue !== undefined) { | ||
var displayNameInstance = displayNameValue; | ||
subscriptionInstance.displayName = displayNameInstance; | ||
} | ||
var stateValue = valueValue['state']; | ||
if (stateValue !== null && stateValue !== undefined) { | ||
var stateInstance = stateValue; | ||
subscriptionInstance.state = stateInstance; | ||
} | ||
} | ||
var subscriptionIdValue = valueValue['subscriptionId']; | ||
if (subscriptionIdValue !== null && subscriptionIdValue !== undefined) { | ||
var subscriptionIdInstance = subscriptionIdValue; | ||
subscriptionInstance.subscriptionId = subscriptionIdInstance; | ||
} | ||
var displayNameValue = valueValue['displayName']; | ||
if (displayNameValue !== null && displayNameValue !== undefined) { | ||
var displayNameInstance = displayNameValue; | ||
subscriptionInstance.displayName = displayNameInstance; | ||
} | ||
var stateValue = valueValue['state']; | ||
if (stateValue !== null && stateValue !== undefined) { | ||
var stateInstance = stateValue; | ||
subscriptionInstance.state = stateInstance; | ||
} | ||
} | ||
} | ||
} | ||
result.statusCode = statusCode; | ||
@@ -350,4 +365,9 @@ result.requestId = response.headers['x-ms-request-id']; | ||
// Construct URL | ||
var url2 = '/tenants?'; | ||
url2 = url2 + 'api-version=2014-04-01-preview'; | ||
var url2 = ''; | ||
url2 = url2 + '/tenants'; | ||
var queryParameters = []; | ||
queryParameters.push('api-version=2014-04-01-preview'); | ||
if (queryParameters.length > 0) { | ||
url2 = url2 + '?' + queryParameters.join('&'); | ||
} | ||
var baseUrl = this.client.baseUri; | ||
@@ -388,32 +408,34 @@ // Trim '/' character from the end of baseUrl and beginning of url. | ||
// Deserialize Response | ||
var responseContent = body; | ||
result = { tenantIds: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var valueArray = responseDoc['value']; | ||
if (valueArray !== null && valueArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < valueArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var valueValue = valueArray[loweredIndex1]; | ||
var tenantIdDescriptionInstance = {}; | ||
result.tenantIds.push(tenantIdDescriptionInstance); | ||
var idValue = valueValue['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
tenantIdDescriptionInstance.id = idInstance; | ||
if (statusCode === 200) { | ||
var responseContent = body; | ||
result = { tenantIds: [] }; | ||
var responseDoc = null; | ||
if (responseContent) { | ||
responseDoc = JSON.parse(responseContent); | ||
} | ||
if (responseDoc !== null && responseDoc !== undefined) { | ||
var valueArray = responseDoc['value']; | ||
if (valueArray !== null && valueArray !== undefined) { | ||
for (var loweredIndex1 = 0; loweredIndex1 < valueArray.length; loweredIndex1 = loweredIndex1 + 1) { | ||
var valueValue = valueArray[loweredIndex1]; | ||
var tenantIdDescriptionInstance = {}; | ||
result.tenantIds.push(tenantIdDescriptionInstance); | ||
var idValue = valueValue['id']; | ||
if (idValue !== null && idValue !== undefined) { | ||
var idInstance = idValue; | ||
tenantIdDescriptionInstance.id = idInstance; | ||
} | ||
var tenantIdValue = valueValue['tenantId']; | ||
if (tenantIdValue !== null && tenantIdValue !== undefined) { | ||
var tenantIdInstance = tenantIdValue; | ||
tenantIdDescriptionInstance.tenantId = tenantIdInstance; | ||
} | ||
} | ||
var tenantIdValue = valueValue['tenantId']; | ||
if (tenantIdValue !== null && tenantIdValue !== undefined) { | ||
var tenantIdInstance = tenantIdValue; | ||
tenantIdDescriptionInstance.tenantId = tenantIdInstance; | ||
} | ||
} | ||
} | ||
} | ||
result.statusCode = statusCode; | ||
@@ -420,0 +442,0 @@ result.requestId = response.headers['x-ms-request-id']; |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "2.0.0-pre.14", | ||
"version": "2.0.0-pre.15", | ||
"description": "Microsoft Azure Resource Management Client Library for node", | ||
@@ -16,0 +16,0 @@ "tags": [ |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "Microsoft Azure Client Library for node", | ||
@@ -40,19 +40,19 @@ "tags": [ | ||
"azure-common": "0.9.10", | ||
"azure-mgmt-authorization": "0.9.0-pre.4", | ||
"azure-mgmt-compute": "0.9.14", | ||
"azure-gallery": "2.0.0-pre.13", | ||
"azure-mgmt-authorization": "0.9.0-pre.5", | ||
"azure-mgmt-compute": "0.9.15", | ||
"azure-gallery": "2.0.0-pre.14", | ||
"azure-mgmt-hdinsight": "0.9.13", | ||
"azure-mgmt": "0.9.14", | ||
"azure-monitoring": "0.9.1-pre.14", | ||
"azure-mgmt-vnet": "0.9.15", | ||
"azure-mgmt-resource": "2.0.0-pre.14", | ||
"azure-scheduler": "0.9.1-pre.14", | ||
"azure-mgmt-scheduler": "0.9.1-pre.14", | ||
"azure-mgmt": "0.9.15", | ||
"azure-monitoring": "0.9.1-pre.15", | ||
"azure-mgmt-vnet": "0.9.16", | ||
"azure-mgmt-resource": "2.0.0-pre.15", | ||
"azure-scheduler": "0.9.1-pre.15", | ||
"azure-mgmt-scheduler": "0.9.1-pre.15", | ||
"azure-sb": "0.9.15", | ||
"azure-mgmt-sb": "0.9.14", | ||
"azure-mgmt-sql": "0.9.15", | ||
"azure-mgmt-storage": "0.9.14", | ||
"azure-mgmt-subscription": "0.9.14", | ||
"azure-mgmt-website": "0.9.14", | ||
"azure-rm-website": "0.9.0-pre.8", | ||
"azure-mgmt-sb": "0.9.15", | ||
"azure-mgmt-sql": "0.9.16", | ||
"azure-mgmt-storage": "0.9.15", | ||
"azure-mgmt-subscription": "0.9.15", | ||
"azure-mgmt-website": "0.9.15", | ||
"azure-rm-website": "0.9.0-pre.9", | ||
"mime": "~1.2.4", | ||
@@ -59,0 +59,0 @@ "underscore": "1.4.x", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
785197
15640
+ Addedazure-gallery@2.0.0-pre.14(transitive)
+ Addedazure-mgmt@0.9.15(transitive)
+ Addedazure-mgmt-authorization@0.9.0-pre.5(transitive)
+ Addedazure-mgmt-compute@0.9.15(transitive)
+ Addedazure-mgmt-resource@2.0.0-pre.15(transitive)
+ Addedazure-mgmt-sb@0.9.15(transitive)
+ Addedazure-mgmt-scheduler@0.9.1-pre.15(transitive)
+ Addedazure-mgmt-sql@0.9.16(transitive)
+ Addedazure-mgmt-storage@0.9.15(transitive)
+ Addedazure-mgmt-subscription@0.9.15(transitive)
+ Addedazure-mgmt-vnet@0.9.16(transitive)
+ Addedazure-mgmt-website@0.9.15(transitive)
+ Addedazure-monitoring@0.9.1-pre.15(transitive)
+ Addedazure-rm-website@0.9.0-pre.9(transitive)
+ Addedazure-scheduler@0.9.1-pre.15(transitive)
- Removedazure-gallery@2.0.0-pre.13(transitive)
- Removedazure-mgmt@0.9.14(transitive)
- Removedazure-mgmt-authorization@0.9.0-pre.4(transitive)
- Removedazure-mgmt-compute@0.9.14(transitive)
- Removedazure-mgmt-resource@2.0.0-pre.14(transitive)
- Removedazure-mgmt-sb@0.9.14(transitive)
- Removedazure-mgmt-scheduler@0.9.1-pre.14(transitive)
- Removedazure-mgmt-sql@0.9.15(transitive)
- Removedazure-mgmt-storage@0.9.14(transitive)
- Removedazure-mgmt-subscription@0.9.14(transitive)
- Removedazure-mgmt-vnet@0.9.15(transitive)
- Removedazure-mgmt-website@0.9.14(transitive)
- Removedazure-monitoring@0.9.1-pre.14(transitive)
- Removedazure-rm-website@0.9.0-pre.8(transitive)
- Removedazure-scheduler@0.9.1-pre.14(transitive)
Updatedazure-gallery@2.0.0-pre.14
Updatedazure-mgmt@0.9.15
Updatedazure-mgmt-compute@0.9.15
Updatedazure-mgmt-sb@0.9.15
Updatedazure-mgmt-sql@0.9.16
Updatedazure-mgmt-storage@0.9.15
Updatedazure-mgmt-vnet@0.9.16
Updatedazure-mgmt-website@0.9.15
Updatedazure-rm-website@0.9.0-pre.9
Updatedazure-scheduler@0.9.1-pre.15