azure-gallery
Advanced tools
Comparing version 2.0.0-pre.13 to 2.0.0-pre.14
@@ -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": [ |
35146
468