azure-mgmt-resource
Advanced tools
Comparing version 2.0.0-pre.14 to 2.0.0-pre.15
@@ -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": [ |
Sorry, the diff of this file is too big to display
310122
6272