From 2ad3b7b98f93914fd2f79b0b5f58b4c47980d2f5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 14 Nov 2018 20:34:44 +0000 Subject: [PATCH 1/3] Generated from e8183a03edd1178ade3f773ba48e88a45609d705 added example --- .../lib/apiManagementClient.d.ts | 1 + .../apimanagement/lib/apiManagementClient.js | 1 + .../apimanagement/lib/models/index.d.ts | 68 +++ .../apimanagement/lib/models/index.js | 4 + .../apimanagement/lib/models/resourceSku.js | 53 ++ .../lib/models/resourceSkuCapacity.js | 82 +++ .../lib/models/resourceSkuResult.js | 80 +++ .../lib/models/resourceSkuResults.js | 68 +++ .../operations/apiManagementServiceSkus.js | 499 ++++++++++++++++++ .../apimanagement/lib/operations/index.d.ts | 133 +++++ .../apimanagement/lib/operations/index.js | 1 + 11 files changed, 990 insertions(+) create mode 100644 lib/services/apimanagement/lib/models/resourceSku.js create mode 100644 lib/services/apimanagement/lib/models/resourceSkuCapacity.js create mode 100644 lib/services/apimanagement/lib/models/resourceSkuResult.js create mode 100644 lib/services/apimanagement/lib/models/resourceSkuResults.js create mode 100644 lib/services/apimanagement/lib/operations/apiManagementServiceSkus.js diff --git a/lib/services/apimanagement/lib/apiManagementClient.d.ts b/lib/services/apimanagement/lib/apiManagementClient.d.ts index bed85f554d..91572f7b8c 100644 --- a/lib/services/apimanagement/lib/apiManagementClient.d.ts +++ b/lib/services/apimanagement/lib/apiManagementClient.d.ts @@ -76,6 +76,7 @@ export default class ApiManagementClient extends AzureServiceClient { backend: operations.Backend; certificate: operations.Certificate; apiManagementOperations: operations.ApiManagementOperations; + apiManagementServiceSkus: operations.ApiManagementServiceSkus; apiManagementService: operations.ApiManagementService; diagnostic: operations.Diagnostic; diagnosticLogger: operations.DiagnosticLogger; diff --git a/lib/services/apimanagement/lib/apiManagementClient.js b/lib/services/apimanagement/lib/apiManagementClient.js index 60372ae4c7..322bda52a4 100644 --- a/lib/services/apimanagement/lib/apiManagementClient.js +++ b/lib/services/apimanagement/lib/apiManagementClient.js @@ -92,6 +92,7 @@ class ApiManagementClient extends ServiceClient { this.backend = new operations.Backend(this); this.certificate = new operations.Certificate(this); this.apiManagementOperations = new operations.ApiManagementOperations(this); + this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this); this.apiManagementService = new operations.ApiManagementService(this); this.diagnostic = new operations.Diagnostic(this); this.diagnosticLogger = new operations.DiagnosticLogger(this); diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index b94dbeef3f..b26c3b542e 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -1860,6 +1860,61 @@ export interface CertificateCreateOrUpdateParameters { password: string; } +/** + * @class + * Initializes a new instance of the ResourceSku class. + * @constructor + * Describes an available API Management SKU. + * + * @member {string} [name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic' + */ +export interface ResourceSku { + name?: string; +} + +/** + * @class + * Initializes a new instance of the ResourceSkuCapacity class. + * @constructor + * Describes scaling information of a SKU. + * + * @member {number} [minimum] The minimum capacity. + * @member {number} [maximum] The maximum capacity that can be set. + * @member {number} [default] The default capacity. + * @member {string} [scaleType] The scale type applicable to the sku. Possible + * values include: 'Automatic', 'Manual', 'None' + */ +export interface ResourceSkuCapacity { + readonly minimum?: number; + readonly maximum?: number; + readonly default?: number; + readonly scaleType?: string; +} + +/** + * @class + * Initializes a new instance of the ResourceSkuResult class. + * @constructor + * Describes an available API Management service SKU. + * + * @member {string} [resourceType] The type of resource the SKU applies to. + * @member {object} [sku] Specifies API Management SKU. + * @member {string} [sku.name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic' + * @member {object} [capacity] Specifies the number of API Management units. + * @member {number} [capacity.minimum] The minimum capacity. + * @member {number} [capacity.maximum] The maximum capacity that can be set. + * @member {number} [capacity.default] The default capacity. + * @member {string} [capacity.scaleType] The scale type applicable to the sku. + * Possible values include: 'Automatic', 'Manual', 'None' + */ +export interface ResourceSkuResult { + readonly resourceType?: string; + readonly sku?: ResourceSku; + readonly capacity?: ResourceSkuCapacity; +} + /** * @class * Initializes a new instance of the CertificateInformation class. @@ -4229,6 +4284,19 @@ export interface OperationListResult extends Array { nextLink?: string; } +/** + * @class + * Initializes a new instance of the ResourceSkuResults class. + * @constructor + * The API Management service SKUs operation response. + * + * @member {string} [nextLink] The uri to fetch the next page of API Management + * service Skus. + */ +export interface ResourceSkuResults extends Array { + nextLink?: string; +} + /** * @class * Initializes a new instance of the ApiManagementServiceListResult class. diff --git a/lib/services/apimanagement/lib/models/index.js b/lib/services/apimanagement/lib/models/index.js index b52dfa401d..e96aea9d34 100644 --- a/lib/services/apimanagement/lib/models/index.js +++ b/lib/services/apimanagement/lib/models/index.js @@ -81,6 +81,9 @@ exports.BackendUpdateParameters = require('./backendUpdateParameters'); exports.BackendReconnectContract = require('./backendReconnectContract'); exports.CertificateContract = require('./certificateContract'); exports.CertificateCreateOrUpdateParameters = require('./certificateCreateOrUpdateParameters'); +exports.ResourceSku = require('./resourceSku'); +exports.ResourceSkuCapacity = require('./resourceSkuCapacity'); +exports.ResourceSkuResult = require('./resourceSkuResult'); exports.CertificateInformation = require('./certificateInformation'); exports.CertificateConfiguration = require('./certificateConfiguration'); exports.HostnameConfiguration = require('./hostnameConfiguration'); @@ -183,6 +186,7 @@ exports.AuthorizationServerCollection = require('./authorizationServerCollection exports.BackendCollection = require('./backendCollection'); exports.CertificateCollection = require('./certificateCollection'); exports.OperationListResult = require('./operationListResult'); +exports.ResourceSkuResults = require('./resourceSkuResults'); exports.ApiManagementServiceListResult = require('./apiManagementServiceListResult'); exports.EmailTemplateCollection = require('./emailTemplateCollection'); exports.GroupCollection = require('./groupCollection'); diff --git a/lib/services/apimanagement/lib/models/resourceSku.js b/lib/services/apimanagement/lib/models/resourceSku.js new file mode 100644 index 0000000000..44433060f5 --- /dev/null +++ b/lib/services/apimanagement/lib/models/resourceSku.js @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Describes an available API Management SKU. + * + */ +class ResourceSku { + /** + * Create a ResourceSku. + * @member {string} [name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic' + */ + constructor() { + } + + /** + * Defines the metadata of ResourceSku + * + * @returns {object} metadata of ResourceSku + * + */ + mapper() { + return { + required: false, + serializedName: 'ResourceSku', + type: { + name: 'Composite', + className: 'ResourceSku', + modelProperties: { + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ResourceSku; diff --git a/lib/services/apimanagement/lib/models/resourceSkuCapacity.js b/lib/services/apimanagement/lib/models/resourceSkuCapacity.js new file mode 100644 index 0000000000..b36906fb80 --- /dev/null +++ b/lib/services/apimanagement/lib/models/resourceSkuCapacity.js @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Describes scaling information of a SKU. + * + */ +class ResourceSkuCapacity { + /** + * Create a ResourceSkuCapacity. + * @member {number} [minimum] The minimum capacity. + * @member {number} [maximum] The maximum capacity that can be set. + * @member {number} [default] The default capacity. + * @member {string} [scaleType] The scale type applicable to the sku. + * Possible values include: 'Automatic', 'Manual', 'None' + */ + constructor() { + } + + /** + * Defines the metadata of ResourceSkuCapacity + * + * @returns {object} metadata of ResourceSkuCapacity + * + */ + mapper() { + return { + required: false, + serializedName: 'ResourceSkuCapacity', + type: { + name: 'Composite', + className: 'ResourceSkuCapacity', + modelProperties: { + minimum: { + required: false, + readOnly: true, + serializedName: 'minimum', + type: { + name: 'Number' + } + }, + maximum: { + required: false, + readOnly: true, + serializedName: 'maximum', + type: { + name: 'Number' + } + }, + default: { + required: false, + readOnly: true, + serializedName: 'default', + type: { + name: 'Number' + } + }, + scaleType: { + required: false, + readOnly: true, + serializedName: 'scaleType', + type: { + name: 'Enum', + allowedValues: [ 'Automatic', 'Manual', 'None' ] + } + } + } + } + }; + } +} + +module.exports = ResourceSkuCapacity; diff --git a/lib/services/apimanagement/lib/models/resourceSkuResult.js b/lib/services/apimanagement/lib/models/resourceSkuResult.js new file mode 100644 index 0000000000..4138c2330c --- /dev/null +++ b/lib/services/apimanagement/lib/models/resourceSkuResult.js @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Describes an available API Management service SKU. + * + */ +class ResourceSkuResult { + /** + * Create a ResourceSkuResult. + * @member {string} [resourceType] The type of resource the SKU applies to. + * @member {object} [sku] Specifies API Management SKU. + * @member {string} [sku.name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic' + * @member {object} [capacity] Specifies the number of API Management units. + * @member {number} [capacity.minimum] The minimum capacity. + * @member {number} [capacity.maximum] The maximum capacity that can be set. + * @member {number} [capacity.default] The default capacity. + * @member {string} [capacity.scaleType] The scale type applicable to the + * sku. Possible values include: 'Automatic', 'Manual', 'None' + */ + constructor() { + } + + /** + * Defines the metadata of ResourceSkuResult + * + * @returns {object} metadata of ResourceSkuResult + * + */ + mapper() { + return { + required: false, + serializedName: 'ResourceSkuResult', + type: { + name: 'Composite', + className: 'ResourceSkuResult', + modelProperties: { + resourceType: { + required: false, + readOnly: true, + serializedName: 'resourceType', + type: { + name: 'String' + } + }, + sku: { + required: false, + readOnly: true, + serializedName: 'sku', + type: { + name: 'Composite', + className: 'ResourceSku' + } + }, + capacity: { + required: false, + readOnly: true, + serializedName: 'capacity', + type: { + name: 'Composite', + className: 'ResourceSkuCapacity' + } + } + } + } + }; + } +} + +module.exports = ResourceSkuResult; diff --git a/lib/services/apimanagement/lib/models/resourceSkuResults.js b/lib/services/apimanagement/lib/models/resourceSkuResults.js new file mode 100644 index 0000000000..a368e0cd7e --- /dev/null +++ b/lib/services/apimanagement/lib/models/resourceSkuResults.js @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * The API Management service SKUs operation response. + */ +class ResourceSkuResults extends Array { + /** + * Create a ResourceSkuResults. + * @member {string} [nextLink] The uri to fetch the next page of API + * Management service Skus. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of ResourceSkuResults + * + * @returns {object} metadata of ResourceSkuResults + * + */ + mapper() { + return { + required: false, + serializedName: 'ResourceSkuResults', + type: { + name: 'Composite', + className: 'ResourceSkuResults', + modelProperties: { + value: { + required: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ResourceSkuResultElementType', + type: { + name: 'Composite', + className: 'ResourceSkuResult' + } + } + } + }, + nextLink: { + required: false, + serializedName: 'nextLink', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ResourceSkuResults; diff --git a/lib/services/apimanagement/lib/operations/apiManagementServiceSkus.js b/lib/services/apimanagement/lib/operations/apiManagementServiceSkus.js new file mode 100644 index 0000000000..db088db138 --- /dev/null +++ b/lib/services/apimanagement/lib/operations/apiManagementServiceSkus.js @@ -0,0 +1,499 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listAvailableServiceSkus(resourceGroupName, serviceName, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (serviceName === null || serviceName === undefined || typeof serviceName.valueOf() !== 'string') { + throw new Error('serviceName cannot be null or undefined and it must be of type string.'); + } + if (serviceName !== null && serviceName !== undefined) { + if (serviceName.length > 50) + { + throw new Error('"serviceName" should satisfy the constraint - "MaxLength": 50'); + } + if (serviceName.length < 1) + { + throw new Error('"serviceName" should satisfy the constraint - "MinLength": 1'); + } + if (serviceName.match(/^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/) === null) + { + throw new Error('"serviceName" should satisfy the constraint - "Pattern": /^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus'; + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{serviceName}', encodeURIComponent(serviceName)); + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ResourceSkuResults']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listAvailableServiceSkusNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['ResourceSkuResults']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ApiManagementServiceSkus. */ +class ApiManagementServiceSkus { + /** + * Create a ApiManagementServiceSkus. + * @param {ApiManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._listAvailableServiceSkus = _listAvailableServiceSkus; + this._listAvailableServiceSkusNext = _listAvailableServiceSkusNext; + } + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listAvailableServiceSkusWithHttpOperationResponse(resourceGroupName, serviceName, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listAvailableServiceSkus(resourceGroupName, serviceName, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ResourceSkuResults} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listAvailableServiceSkus(resourceGroupName, serviceName, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listAvailableServiceSkus(resourceGroupName, serviceName, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listAvailableServiceSkus(resourceGroupName, serviceName, options, optionalCallback); + } + } + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listAvailableServiceSkusNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listAvailableServiceSkusNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {ResourceSkuResults} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listAvailableServiceSkusNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listAvailableServiceSkusNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listAvailableServiceSkusNext(nextPageLink, options, optionalCallback); + } + } + +} + +module.exports = ApiManagementServiceSkus; diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index 4f14bed73a..95f4192fa3 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -9157,6 +9157,139 @@ export interface ApiManagementOperations { listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } +/** + * @class + * ApiManagementServiceSkus + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface ApiManagementServiceSkus { + + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listAvailableServiceSkusWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ResourceSkuResults} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ResourceSkuResults} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listAvailableServiceSkus(resourceGroupName: string, serviceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableServiceSkus(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; + listAvailableServiceSkus(resourceGroupName: string, serviceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listAvailableServiceSkusNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * @summary Gets available SKUs for API Management service + * + * Gets all available SKU for a given API Management service + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ResourceSkuResults} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ResourceSkuResults} [result] - The deserialized result object if an error did not occur. + * See {@link ResourceSkuResults} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listAvailableServiceSkusNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableServiceSkusNext(nextPageLink: string, callback: ServiceCallback): void; + listAvailableServiceSkusNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + /** * @class * ApiManagementService diff --git a/lib/services/apimanagement/lib/operations/index.js b/lib/services/apimanagement/lib/operations/index.js index e5955aa5a7..83485d74cc 100644 --- a/lib/services/apimanagement/lib/operations/index.js +++ b/lib/services/apimanagement/lib/operations/index.js @@ -34,6 +34,7 @@ exports.AuthorizationServer = require('./authorizationServer'); exports.Backend = require('./backend'); exports.Certificate = require('./certificate'); exports.ApiManagementOperations = require('./apiManagementOperations'); +exports.ApiManagementServiceSkus = require('./apiManagementServiceSkus'); exports.ApiManagementService = require('./apiManagementService'); exports.Diagnostic = require('./diagnostic'); exports.DiagnosticLogger = require('./diagnosticLogger'); From 12ed6a0fe54d5436c9d93dd280212c481e201e97 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 15 Nov 2018 01:50:43 +0000 Subject: [PATCH 2/3] Generated from 4fb410f50024ecc29bfb3e8ca857bf7c31a15e30 more PR comment fixes --- lib/services/apimanagement/lib/models/index.d.ts | 4 ++-- lib/services/apimanagement/lib/models/resourceSkuCapacity.js | 4 ++-- lib/services/apimanagement/lib/models/resourceSkuResult.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index b26c3b542e..1ca2a5971f 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -1883,7 +1883,7 @@ export interface ResourceSku { * @member {number} [maximum] The maximum capacity that can be set. * @member {number} [default] The default capacity. * @member {string} [scaleType] The scale type applicable to the sku. Possible - * values include: 'Automatic', 'Manual', 'None' + * values include: 'automatic', 'manual', 'none' */ export interface ResourceSkuCapacity { readonly minimum?: number; @@ -1907,7 +1907,7 @@ export interface ResourceSkuCapacity { * @member {number} [capacity.maximum] The maximum capacity that can be set. * @member {number} [capacity.default] The default capacity. * @member {string} [capacity.scaleType] The scale type applicable to the sku. - * Possible values include: 'Automatic', 'Manual', 'None' + * Possible values include: 'automatic', 'manual', 'none' */ export interface ResourceSkuResult { readonly resourceType?: string; diff --git a/lib/services/apimanagement/lib/models/resourceSkuCapacity.js b/lib/services/apimanagement/lib/models/resourceSkuCapacity.js index b36906fb80..dd0887c629 100644 --- a/lib/services/apimanagement/lib/models/resourceSkuCapacity.js +++ b/lib/services/apimanagement/lib/models/resourceSkuCapacity.js @@ -21,7 +21,7 @@ class ResourceSkuCapacity { * @member {number} [maximum] The maximum capacity that can be set. * @member {number} [default] The default capacity. * @member {string} [scaleType] The scale type applicable to the sku. - * Possible values include: 'Automatic', 'Manual', 'None' + * Possible values include: 'automatic', 'manual', 'none' */ constructor() { } @@ -70,7 +70,7 @@ class ResourceSkuCapacity { serializedName: 'scaleType', type: { name: 'Enum', - allowedValues: [ 'Automatic', 'Manual', 'None' ] + allowedValues: [ 'automatic', 'manual', 'none' ] } } } diff --git a/lib/services/apimanagement/lib/models/resourceSkuResult.js b/lib/services/apimanagement/lib/models/resourceSkuResult.js index 4138c2330c..4ccfae75d8 100644 --- a/lib/services/apimanagement/lib/models/resourceSkuResult.js +++ b/lib/services/apimanagement/lib/models/resourceSkuResult.js @@ -26,7 +26,7 @@ class ResourceSkuResult { * @member {number} [capacity.maximum] The maximum capacity that can be set. * @member {number} [capacity.default] The default capacity. * @member {string} [capacity.scaleType] The scale type applicable to the - * sku. Possible values include: 'Automatic', 'Manual', 'None' + * sku. Possible values include: 'automatic', 'manual', 'none' */ constructor() { } From 641425ff7e9ba81be42d254ee59fda97ed24cfd1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 4 Dec 2018 07:29:37 +0000 Subject: [PATCH 3/3] Generated from b2942f357046a206ce8895f555a1e9f4071402a9 correct casing --- .../apiManagementServiceBaseProperties.js | 2 +- .../models/apiManagementServiceResource.js | 2 +- .../apiManagementServiceUpdateParameters.js | 2 +- .../lib/models/backendBaseParameters.js | 2 +- .../lib/models/backendContract.js | 2 +- .../lib/models/backendProperties.js | 2 +- .../lib/models/backendReconnectContract.js | 2 +- .../backendServiceFabricClusterProperties.js | 2 +- .../lib/models/backendUpdateParameters.js | 2 +- .../lib/models/certificateConfiguration.js | 2 +- .../apimanagement/lib/models/index.d.ts | 52 ++++----- .../lib/models/reportRecordContract.js | 8 +- .../lib/models/requestReportRecordContract.js | 2 +- .../models/subscriptionCreateParameters.js | 2 +- .../lib/operations/apiDiagnosticLogger.js | 18 +-- .../apimanagement/lib/operations/apiIssue.js | 12 +- .../lib/operations/apiIssueAttachment.js | 12 +- .../lib/operations/apiIssueComment.js | 12 +- .../lib/operations/apiManagementService.js | 24 ++-- .../apimanagement/lib/operations/backend.js | 18 +-- .../lib/operations/diagnosticLogger.js | 18 +-- .../apimanagement/lib/operations/index.d.ts | 104 +++++++++--------- .../apimanagement/lib/operations/property.js | 6 +- .../apimanagement/lib/operations/reports.js | 18 +-- .../lib/operations/subscription.js | 12 +- .../lib/operations/tagDescription.js | 6 +- 26 files changed, 172 insertions(+), 172 deletions(-) diff --git a/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js b/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js index 5f05e16c31..da9771ce18 100644 --- a/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js +++ b/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js @@ -69,7 +69,7 @@ class ApiManagementServiceBaseProperties { * installed in the API Management service. Max supported certificates that * can be installed is 10. * @member {string} [virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means + * Management service needs to be configured in. None (Default Value) means * the API Management service is not part of any Virtual Network, External * means the API Management deployment is set up inside a Virtual Network * having an Internet Facing Endpoint, and Internal means that API Management diff --git a/lib/services/apimanagement/lib/models/apiManagementServiceResource.js b/lib/services/apimanagement/lib/models/apiManagementServiceResource.js index e27f9c993d..e8d75d4a66 100644 --- a/lib/services/apimanagement/lib/models/apiManagementServiceResource.js +++ b/lib/services/apimanagement/lib/models/apiManagementServiceResource.js @@ -72,7 +72,7 @@ class ApiManagementServiceResource extends models['ApimResource'] { * installed in the API Management service. Max supported certificates that * can be installed is 10. * @member {string} [virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means + * Management service needs to be configured in. None (Default Value) means * the API Management service is not part of any Virtual Network, External * means the API Management deployment is set up inside a Virtual Network * having an Internet Facing Endpoint, and Internal means that API Management diff --git a/lib/services/apimanagement/lib/models/apiManagementServiceUpdateParameters.js b/lib/services/apimanagement/lib/models/apiManagementServiceUpdateParameters.js index f098b0acc3..f030ba432d 100644 --- a/lib/services/apimanagement/lib/models/apiManagementServiceUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/apiManagementServiceUpdateParameters.js @@ -72,7 +72,7 @@ class ApiManagementServiceUpdateParameters extends models['ApimResource'] { * installed in the API Management service. Max supported certificates that * can be installed is 10. * @member {string} [virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means + * Management service needs to be configured in. None (Default Value) means * the API Management service is not part of any Virtual Network, External * means the API Management deployment is set up inside a Virtual Network * having an Internet Facing Endpoint, and Internal means that API Management diff --git a/lib/services/apimanagement/lib/models/backendBaseParameters.js b/lib/services/apimanagement/lib/models/backendBaseParameters.js index 48e543a095..b9c51515eb 100644 --- a/lib/services/apimanagement/lib/models/backendBaseParameters.js +++ b/lib/services/apimanagement/lib/models/backendBaseParameters.js @@ -30,7 +30,7 @@ class BackendBaseParameters { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} diff --git a/lib/services/apimanagement/lib/models/backendContract.js b/lib/services/apimanagement/lib/models/backendContract.js index d7305d194a..6f2f9d3e50 100644 --- a/lib/services/apimanagement/lib/models/backendContract.js +++ b/lib/services/apimanagement/lib/models/backendContract.js @@ -33,7 +33,7 @@ class BackendContract extends models['Resource'] { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} diff --git a/lib/services/apimanagement/lib/models/backendProperties.js b/lib/services/apimanagement/lib/models/backendProperties.js index ac6eece213..577e03d27d 100644 --- a/lib/services/apimanagement/lib/models/backendProperties.js +++ b/lib/services/apimanagement/lib/models/backendProperties.js @@ -22,7 +22,7 @@ class BackendProperties { * @member {string} [serviceFabricCluster.clientCertificatethumbprint] The * client certificate thumbprint for the management endpoint. * @member {number} [serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * @member {array} [serviceFabricCluster.managementEndpoints] The cluster * management endpoint. * @member {array} [serviceFabricCluster.serverCertificateThumbprints] diff --git a/lib/services/apimanagement/lib/models/backendReconnectContract.js b/lib/services/apimanagement/lib/models/backendReconnectContract.js index 27708c409a..ad7dec6c51 100644 --- a/lib/services/apimanagement/lib/models/backendReconnectContract.js +++ b/lib/services/apimanagement/lib/models/backendReconnectContract.js @@ -21,7 +21,7 @@ class BackendReconnectContract extends models['Resource'] { /** * Create a BackendReconnectContract. * @member {moment.duration} [after] Duration in ISO8601 format after which - * reconnect will be initiated. Minimum duration of the Reconect is PT2M. + * reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ constructor() { super(); diff --git a/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js b/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js index 2e9aba9f1d..f6a1dc7372 100644 --- a/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js +++ b/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js @@ -20,7 +20,7 @@ class BackendServiceFabricClusterProperties { * @member {string} clientCertificatethumbprint The client certificate * thumbprint for the management endpoint. * @member {number} [maxPartitionResolutionRetries] Maximum number of retries - * while attempting resolve the parition. + * while attempting resolve the partition. * @member {array} managementEndpoints The cluster management endpoint. * @member {array} [serverCertificateThumbprints] Thumbprints of certificates * cluster management service uses for tls communication diff --git a/lib/services/apimanagement/lib/models/backendUpdateParameters.js b/lib/services/apimanagement/lib/models/backendUpdateParameters.js index 646197eba5..e94188c1aa 100644 --- a/lib/services/apimanagement/lib/models/backendUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/backendUpdateParameters.js @@ -30,7 +30,7 @@ class BackendUpdateParameters { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} diff --git a/lib/services/apimanagement/lib/models/certificateConfiguration.js b/lib/services/apimanagement/lib/models/certificateConfiguration.js index f2450a9812..4a38a794c0 100644 --- a/lib/services/apimanagement/lib/models/certificateConfiguration.js +++ b/lib/services/apimanagement/lib/models/certificateConfiguration.js @@ -21,7 +21,7 @@ class CertificateConfiguration { * @member {string} [encodedCertificate] Base64 Encoded certificate. * @member {string} [certificatePassword] Certificate Password. * @member {string} storeName The - * System.Security.Cryptography.x509certificates.Storename certificate store + * System.Security.Cryptography.x509certificates.StoreName certificate store * location. Only Root and CertificateAuthority are valid locations. Possible * values include: 'CertificateAuthority', 'Root' * @member {object} [certificate] Certificate information. diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index 1ca2a5971f..9a8d8c32cc 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -1524,7 +1524,7 @@ export interface X509CertificateName { * @member {string} clientCertificatethumbprint The client certificate * thumbprint for the management endpoint. * @member {number} [maxPartitionResolutionRetries] Maximum number of retries - * while attempting resolve the parition. + * while attempting resolve the partition. * @member {array} managementEndpoints The cluster management endpoint. * @member {array} [serverCertificateThumbprints] Thumbprints of certificates * cluster management service uses for tls communication @@ -1549,7 +1549,7 @@ export interface BackendServiceFabricClusterProperties { * @member {string} [serviceFabricCluster.clientCertificatethumbprint] The * client certificate thumbprint for the management endpoint. * @member {number} [serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * @member {array} [serviceFabricCluster.managementEndpoints] The cluster * management endpoint. * @member {array} [serviceFabricCluster.serverCertificateThumbprints] @@ -1637,7 +1637,7 @@ export interface BackendTlsProperties { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} @@ -1699,7 +1699,7 @@ export interface BackendBaseParameters { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} @@ -1766,7 +1766,7 @@ export interface BackendContract extends Resource { * certificate thumbprint for the management endpoint. * @member {number} * [properties.serviceFabricCluster.maxPartitionResolutionRetries] Maximum - * number of retries while attempting resolve the parition. + * number of retries while attempting resolve the partition. * @member {array} [properties.serviceFabricCluster.managementEndpoints] The * cluster management endpoint. * @member {array} @@ -1821,7 +1821,7 @@ export interface BackendUpdateParameters { * Reconnect request parameters. * * @member {moment.duration} [after] Duration in ISO8601 format after which - * reconnect will be initiated. Minimum duration of the Reconect is PT2M. + * reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ export interface BackendReconnectContract extends Resource { after?: moment.Duration; @@ -1943,7 +1943,7 @@ export interface CertificateInformation { * @member {string} [encodedCertificate] Base64 Encoded certificate. * @member {string} [certificatePassword] Certificate Password. * @member {string} storeName The - * System.Security.Cryptography.x509certificates.Storename certificate store + * System.Security.Cryptography.x509certificates.StoreName certificate store * location. Only Root and CertificateAuthority are valid locations. Possible * values include: 'CertificateAuthority', 'Root' * @member {object} [certificate] Certificate information. @@ -2158,10 +2158,10 @@ export interface ApiManagementServiceBackupRestoreParameters { * @member {array} [certificates] List of Certificates that need to be * installed in the API Management service. Max supported certificates that can * be installed is 10. - * @member {string} [virtualNetworkType] The type of VPN in which API Managemet - * service needs to be configured in. None (Default Value) means the API - * Management service is not part of any Virtual Network, External means the - * API Management deployment is set up inside a Virtual Network having an + * @member {string} [virtualNetworkType] The type of VPN in which API + * Management service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment * is setup inside a Virtual Network having an Intranet Facing Endpoint only. * Possible values include: 'None', 'External', 'Internal'. Default value: @@ -2277,10 +2277,10 @@ export interface ApimResource extends BaseResource { * @member {array} [certificates] List of Certificates that need to be * installed in the API Management service. Max supported certificates that can * be installed is 10. - * @member {string} [virtualNetworkType] The type of VPN in which API Managemet - * service needs to be configured in. None (Default Value) means the API - * Management service is not part of any Virtual Network, External means the - * API Management deployment is set up inside a Virtual Network having an + * @member {string} [virtualNetworkType] The type of VPN in which API + * Management service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment * is setup inside a Virtual Network having an Intranet Facing Endpoint only. * Possible values include: 'None', 'External', 'Internal'. Default value: @@ -2382,10 +2382,10 @@ export interface ApiManagementServiceResource extends ApimResource { * @member {array} [certificates] List of Certificates that need to be * installed in the API Management service. Max supported certificates that can * be installed is 10. - * @member {string} [virtualNetworkType] The type of VPN in which API Managemet - * service needs to be configured in. None (Default Value) means the API - * Management service is not part of any Virtual Network, External means the - * API Management deployment is set up inside a Virtual Network having an + * @member {string} [virtualNetworkType] The type of VPN in which API + * Management service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment * is setup inside a Virtual Network having an Intranet Facing Endpoint only. * Possible values include: 'None', 'External', 'Internal'. Default value: @@ -3478,7 +3478,7 @@ export interface QuotaCounterValueContract { * @member {date} [timestamp] Start of aggregation period. The date conforms to * the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 * standard. - * @member {string} [interval] Length of agregation period. Interval must be + * @member {string} [interval] Length of aggregation period. Interval must be * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations). * @member {string} [country] Country to which this record data is related. @@ -3493,11 +3493,11 @@ export interface QuotaCounterValueContract { * @member {string} [apiRegion] API region identifier. * @member {string} [subscriptionId] Subscription identifier path. * /subscriptions/{subscriptionId} - * @member {number} [callCountSuccess] Number of succesful calls. This includes - * calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and - * HttpStatusCode.TemporaryRedirect + * @member {number} [callCountSuccess] Number of successful calls. This + * includes calls returning HttpStatusCode <= 301 and + * HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect * @member {number} [callCountBlocked] Number of calls blocked due to invalid - * credentials. This includes calls returning HttpStatusCode.Unauthorize and + * credentials. This includes calls returning HttpStatusCode.Unauthorized and * HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests * @member {number} [callCountFailed] Number of calls failed due to proxy or * backend errors. This includes calls returning HttpStatusCode.BadRequest(400) @@ -3574,7 +3574,7 @@ export interface ReportRecordContract { * @member {string} [cache] Specifies if response cache was involved in * generating the response. If the value is none, the cache was not used. If * the value is hit, cached response was returned. If the value is miss, the - * cache was used but lookup resulted in a miss and request was fullfilled by + * cache was used but lookup resulted in a miss and request was fulfilled by * the backend. * @member {number} [apiTime] The total time it took to process this request. * @member {number} [serviceTime] he time it took to forward this request to @@ -3616,7 +3616,7 @@ export interface RequestReportRecordContract { * @member {string} userId User (user id path) for whom subscription is being * created in form /users/{uid} * @member {string} productId Product (product id path) for which subscription - * is being created in form /products/{productid} + * is being created in form /products/{productId} * @member {string} displayName Subscription name. * @member {string} [primaryKey] Primary subscription key. If not specified * during request key will be generated automatically. diff --git a/lib/services/apimanagement/lib/models/reportRecordContract.js b/lib/services/apimanagement/lib/models/reportRecordContract.js index a12cfce6b9..ed2af3bbbe 100644 --- a/lib/services/apimanagement/lib/models/reportRecordContract.js +++ b/lib/services/apimanagement/lib/models/reportRecordContract.js @@ -22,8 +22,8 @@ class ReportRecordContract { * @member {date} [timestamp] Start of aggregation period. The date conforms * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO * 8601 standard. - * @member {string} [interval] Length of agregation period. Interval must be - * multiple of 15 minutes and may not be zero. The value should be in ISO + * @member {string} [interval] Length of aggregation period. Interval must + * be multiple of 15 minutes and may not be zero. The value should be in ISO * 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). * @member {string} [country] Country to which this record data is related. * @member {string} [region] Country region to which this record data is @@ -38,11 +38,11 @@ class ReportRecordContract { * @member {string} [apiRegion] API region identifier. * @member {string} [subscriptionId] Subscription identifier path. * /subscriptions/{subscriptionId} - * @member {number} [callCountSuccess] Number of succesful calls. This + * @member {number} [callCountSuccess] Number of successful calls. This * includes calls returning HttpStatusCode <= 301 and * HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect * @member {number} [callCountBlocked] Number of calls blocked due to invalid - * credentials. This includes calls returning HttpStatusCode.Unauthorize and + * credentials. This includes calls returning HttpStatusCode.Unauthorized and * HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests * @member {number} [callCountFailed] Number of calls failed due to proxy or * backend errors. This includes calls returning diff --git a/lib/services/apimanagement/lib/models/requestReportRecordContract.js b/lib/services/apimanagement/lib/models/requestReportRecordContract.js index 5d49dcb773..f7ff5b56bf 100644 --- a/lib/services/apimanagement/lib/models/requestReportRecordContract.js +++ b/lib/services/apimanagement/lib/models/requestReportRecordContract.js @@ -38,7 +38,7 @@ class RequestReportRecordContract { * @member {string} [cache] Specifies if response cache was involved in * generating the response. If the value is none, the cache was not used. If * the value is hit, cached response was returned. If the value is miss, the - * cache was used but lookup resulted in a miss and request was fullfilled by + * cache was used but lookup resulted in a miss and request was fulfilled by * the backend. * @member {number} [apiTime] The total time it took to process this request. * @member {number} [serviceTime] he time it took to forward this request to diff --git a/lib/services/apimanagement/lib/models/subscriptionCreateParameters.js b/lib/services/apimanagement/lib/models/subscriptionCreateParameters.js index 3c12b3ff4f..83d574c95b 100644 --- a/lib/services/apimanagement/lib/models/subscriptionCreateParameters.js +++ b/lib/services/apimanagement/lib/models/subscriptionCreateParameters.js @@ -20,7 +20,7 @@ class SubscriptionCreateParameters { * @member {string} userId User (user id path) for whom subscription is being * created in form /users/{uid} * @member {string} productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * @member {string} displayName Subscription name. * @member {string} [primaryKey] Primary subscription key. If not specified * during request key will be generated automatically. diff --git a/lib/services/apimanagement/lib/operations/apiDiagnosticLogger.js b/lib/services/apimanagement/lib/operations/apiDiagnosticLogger.js index cb899743c1..4107829ea5 100644 --- a/lib/services/apimanagement/lib/operations/apiDiagnosticLogger.js +++ b/lib/services/apimanagement/lib/operations/apiDiagnosticLogger.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -463,7 +463,7 @@ function _checkEntityExists(resourceGroupName, serviceName, apiId, diagnosticId, } /** - * Attaches a logger to a dignostic for an API. + * Attaches a logger to a diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -900,7 +900,7 @@ function _deleteMethod(resourceGroupName, serviceName, apiId, diagnosticId, logg } /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1043,7 +1043,7 @@ class ApiDiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1091,7 +1091,7 @@ class ApiDiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1266,7 +1266,7 @@ class ApiDiagnosticLogger { } /** - * Attaches a logger to a dignostic for an API. + * Attaches a logger to a diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1307,7 +1307,7 @@ class ApiDiagnosticLogger { } /** - * Attaches a logger to a dignostic for an API. + * Attaches a logger to a diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1473,7 +1473,7 @@ class ApiDiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1504,7 +1504,7 @@ class ApiDiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/apimanagement/lib/operations/apiIssue.js b/lib/services/apimanagement/lib/operations/apiIssue.js index 0f9ce8b7d9..d0ac0ffe80 100644 --- a/lib/services/apimanagement/lib/operations/apiIssue.js +++ b/lib/services/apimanagement/lib/operations/apiIssue.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1318,7 +1318,7 @@ function _deleteMethod(resourceGroupName, serviceName, apiId, issueId, ifMatch, } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1463,7 +1463,7 @@ class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1511,7 +1511,7 @@ class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -2166,7 +2166,7 @@ class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2197,7 +2197,7 @@ class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/apimanagement/lib/operations/apiIssueAttachment.js b/lib/services/apimanagement/lib/operations/apiIssueAttachment.js index 227dac18a5..42eaa65cfd 100644 --- a/lib/services/apimanagement/lib/operations/apiIssueAttachment.js +++ b/lib/services/apimanagement/lib/operations/apiIssueAttachment.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1189,7 +1189,7 @@ function _deleteMethod(resourceGroupName, serviceName, apiId, issueId, attachmen } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1334,7 +1334,7 @@ class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1383,7 +1383,7 @@ class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1915,7 +1915,7 @@ class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1946,7 +1946,7 @@ class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/apimanagement/lib/operations/apiIssueComment.js b/lib/services/apimanagement/lib/operations/apiIssueComment.js index 91997c41ee..42ebaca346 100644 --- a/lib/services/apimanagement/lib/operations/apiIssueComment.js +++ b/lib/services/apimanagement/lib/operations/apiIssueComment.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1185,7 +1185,7 @@ function _deleteMethod(resourceGroupName, serviceName, apiId, issueId, commentId } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1330,7 +1330,7 @@ class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1379,7 +1379,7 @@ class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -1905,7 +1905,7 @@ class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1936,7 +1936,7 @@ class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/apimanagement/lib/operations/apiManagementService.js b/lib/services/apimanagement/lib/operations/apiManagementService.js index 1415cfb247..0f8b0c958d 100644 --- a/lib/services/apimanagement/lib/operations/apiManagementService.js +++ b/lib/services/apimanagement/lib/operations/apiManagementService.js @@ -247,7 +247,7 @@ function _backup(resourceGroupName, serviceName, parameters, options, callback) * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -386,7 +386,7 @@ function _createOrUpdate(resourceGroupName, serviceName, parameters, options, ca * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -2168,7 +2168,7 @@ function _beginBackup(resourceGroupName, serviceName, parameters, options, callb * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -2443,7 +2443,7 @@ function _beginCreateOrUpdate(resourceGroupName, serviceName, parameters, option * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -3598,7 +3598,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -3691,7 +3691,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -3806,7 +3806,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -3897,7 +3897,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -5085,7 +5085,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -5178,7 +5178,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -5293,7 +5293,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -5384,7 +5384,7 @@ class ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment diff --git a/lib/services/apimanagement/lib/operations/backend.js b/lib/services/apimanagement/lib/operations/backend.js index 38350c60c4..fff5836424 100644 --- a/lib/services/apimanagement/lib/operations/backend.js +++ b/lib/services/apimanagement/lib/operations/backend.js @@ -596,7 +596,7 @@ function _get(resourceGroupName, serviceName, backendid, options, callback) { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -903,7 +903,7 @@ function _createOrUpdate(resourceGroupName, serviceName, backendid, parameters, * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -1335,7 +1335,7 @@ function _deleteMethod(resourceGroupName, serviceName, backendid, ifMatch, optio * * @param {moment.duration} [options.parameters.after] Duration in ISO8601 * format after which reconnect will be initiated. Minimum duration of the - * Reconect is PT2M. + * Reconnect is PT2M. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -1975,7 +1975,7 @@ class Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -2095,7 +2095,7 @@ class Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -2237,7 +2237,7 @@ class Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -2358,7 +2358,7 @@ class Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -2586,7 +2586,7 @@ class Backend { * * @param {moment.duration} [options.parameters.after] Duration in ISO8601 * format after which reconnect will be initiated. Minimum duration of the - * Reconect is PT2M. + * Reconnect is PT2M. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -2629,7 +2629,7 @@ class Backend { * * @param {moment.duration} [options.parameters.after] Duration in ISO8601 * format after which reconnect will be initiated. Minimum duration of the - * Reconect is PT2M. + * Reconnect is PT2M. * * @param {object} [options.customHeaders] Headers that will be added to the * request diff --git a/lib/services/apimanagement/lib/operations/diagnosticLogger.js b/lib/services/apimanagement/lib/operations/diagnosticLogger.js index f1ced7a5a8..7019c6fce1 100644 --- a/lib/services/apimanagement/lib/operations/diagnosticLogger.js +++ b/lib/services/apimanagement/lib/operations/diagnosticLogger.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} resourceGroupName The name of the resource group. @@ -422,7 +422,7 @@ function _checkEntityExists(resourceGroupName, serviceName, diagnosticId, logger } /** - * Attaches a logger to a dignostic. + * Attaches a logger to a diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -817,7 +817,7 @@ function _deleteMethod(resourceGroupName, serviceName, diagnosticId, loggerid, o } /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call @@ -961,7 +961,7 @@ class DiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} resourceGroupName The name of the resource group. @@ -1007,7 +1007,7 @@ class DiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} resourceGroupName The name of the resource group. @@ -1174,7 +1174,7 @@ class DiagnosticLogger { } /** - * Attaches a logger to a dignostic. + * Attaches a logger to a diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -1212,7 +1212,7 @@ class DiagnosticLogger { } /** - * Attaches a logger to a dignostic. + * Attaches a logger to a diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -1369,7 +1369,7 @@ class DiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call @@ -1401,7 +1401,7 @@ class DiagnosticLogger { } /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index 95f4192fa3..b242eea30a 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -4946,7 +4946,7 @@ export interface ApiDiagnosticLogger { /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -4982,7 +4982,7 @@ export interface ApiDiagnosticLogger { listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5115,7 +5115,7 @@ export interface ApiDiagnosticLogger { /** - * Attaches a logger to a dignostic for an API. + * Attaches a logger to a diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5144,7 +5144,7 @@ export interface ApiDiagnosticLogger { createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Attaches a logger to a dignostic for an API. + * Attaches a logger to a diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5268,7 +5268,7 @@ export interface ApiDiagnosticLogger { /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5287,7 +5287,7 @@ export interface ApiDiagnosticLogger { listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all loggers assosiated with the specified Diagnostic of an API. + * Lists all loggers associated with the specified Diagnostic of an API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5334,7 +5334,7 @@ export interface ApiIssue { /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5370,7 +5370,7 @@ export interface ApiIssue { listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5875,7 +5875,7 @@ export interface ApiIssue { /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5894,7 +5894,7 @@ export interface ApiIssue { listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5941,7 +5941,7 @@ export interface ApiIssueComment { /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5978,7 +5978,7 @@ export interface ApiIssueComment { listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -6381,7 +6381,7 @@ export interface ApiIssueComment { /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6400,7 +6400,7 @@ export interface ApiIssueComment { listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6448,7 +6448,7 @@ export interface ApiIssueAttachment { /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -6485,7 +6485,7 @@ export interface ApiIssueAttachment { listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -6894,7 +6894,7 @@ export interface ApiIssueAttachment { /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -6913,7 +6913,7 @@ export interface ApiIssueAttachment { listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -7940,7 +7940,7 @@ export interface Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -8048,7 +8048,7 @@ export interface Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -8175,7 +8175,7 @@ export interface Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -8284,7 +8284,7 @@ export interface Backend { * * @param {number} * [parameters.properties.serviceFabricCluster.maxPartitionResolutionRetries] - * Maximum number of retries while attempting resolve the parition. + * Maximum number of retries while attempting resolve the partition. * * @param {array} * parameters.properties.serviceFabricCluster.managementEndpoints The cluster @@ -8470,7 +8470,7 @@ export interface Backend { * * @param {moment.duration} [options.parameters.after] Duration in ISO8601 * format after which reconnect will be initiated. Minimum duration of the - * Reconect is PT2M. + * Reconnect is PT2M. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -8501,7 +8501,7 @@ export interface Backend { * * @param {moment.duration} [options.parameters.after] Duration in ISO8601 * format after which reconnect will be initiated. Minimum duration of the - * Reconect is PT2M. + * Reconnect is PT2M. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -9525,7 +9525,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -9606,7 +9606,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -9706,7 +9706,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -9785,7 +9785,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -10661,7 +10661,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -10742,7 +10742,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -10842,7 +10842,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -10921,7 +10921,7 @@ export interface ApiManagementService { * can be installed is 10. * * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the + * Management service needs to be configured in. None (Default Value) means the * API Management service is not part of any Virtual Network, External means * the API Management deployment is set up inside a Virtual Network having an * Internet Facing Endpoint, and Internal means that API Management deployment @@ -11774,7 +11774,7 @@ export interface DiagnosticLogger { /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} resourceGroupName The name of the resource group. @@ -11808,7 +11808,7 @@ export interface DiagnosticLogger { listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} resourceGroupName The name of the resource group. @@ -11933,7 +11933,7 @@ export interface DiagnosticLogger { /** - * Attaches a logger to a dignostic. + * Attaches a logger to a diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -11959,7 +11959,7 @@ export interface DiagnosticLogger { createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Attaches a logger to a dignostic. + * Attaches a logger to a diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -12074,7 +12074,7 @@ export interface DiagnosticLogger { /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call @@ -12094,7 +12094,7 @@ export interface DiagnosticLogger { listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all loggers assosiated with the specified Diagnostic of the API + * Lists all loggers associated with the specified Diagnostic of the API * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call @@ -19741,7 +19741,7 @@ export interface Property { /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property from the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -19767,7 +19767,7 @@ export interface Property { deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property from the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -20508,7 +20508,7 @@ export interface Reports { /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} resourceGroupName The name of the resource group. * @@ -20534,7 +20534,7 @@ export interface Reports { listByGeoWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} resourceGroupName The name of the resource group. * @@ -20660,7 +20660,7 @@ export interface Reports { * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be * used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)) * * @param {object} [options] Optional Parameters. * @@ -20692,7 +20692,7 @@ export interface Reports { * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be * used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)) * * @param {object} [options] Optional Parameters. * @@ -21033,7 +21033,7 @@ export interface Reports { /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -21052,7 +21052,7 @@ export interface Reports { listByGeoNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -21460,7 +21460,7 @@ export interface Subscription { * is being created in form /users/{uid} * * @param {string} parameters.productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * * @param {string} parameters.displayName Subscription name. * @@ -21519,7 +21519,7 @@ export interface Subscription { * is being created in form /users/{uid} * * @param {string} parameters.productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * * @param {string} parameters.displayName Subscription name. * @@ -21581,7 +21581,7 @@ export interface Subscription { /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -21645,7 +21645,7 @@ export interface Subscription { updateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, sid: string, parameters: models.SubscriptionUpdateParameters, ifMatch: string, options?: { notify? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -24324,7 +24324,7 @@ export interface TagDescription { /** - * Create/Update tag fescription in scope of the Api. + * Create/Update tag description in scope of the Api. * * @param {string} resourceGroupName The name of the resource group. * @@ -24364,7 +24364,7 @@ export interface TagDescription { createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, parameters: models.TagDescriptionCreateParameters, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create/Update tag fescription in scope of the Api. + * Create/Update tag description in scope of the Api. * * @param {string} resourceGroupName The name of the resource group. * diff --git a/lib/services/apimanagement/lib/operations/property.js b/lib/services/apimanagement/lib/operations/property.js index d8d8fcc7c6..ddf2c76ae4 100644 --- a/lib/services/apimanagement/lib/operations/property.js +++ b/lib/services/apimanagement/lib/operations/property.js @@ -987,7 +987,7 @@ function _update(resourceGroupName, serviceName, propId, parameters, ifMatch, op } /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property from the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -1839,7 +1839,7 @@ class Property { } /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property from the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -1877,7 +1877,7 @@ class Property { } /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property from the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * diff --git a/lib/services/apimanagement/lib/operations/reports.js b/lib/services/apimanagement/lib/operations/reports.js index 8942083285..416d6137b9 100644 --- a/lib/services/apimanagement/lib/operations/reports.js +++ b/lib/services/apimanagement/lib/operations/reports.js @@ -796,7 +796,7 @@ function _listByProduct(resourceGroupName, serviceName, filter, options, callbac } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} resourceGroupName The name of the resource group. * @@ -1202,7 +1202,7 @@ function _listBySubscription(resourceGroupName, serviceName, options, callback) * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be * used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)) * * @param {object} [options] Optional Parameters. * @@ -2104,7 +2104,7 @@ function _listByProductNext(nextPageLink, options, callback) { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2902,7 +2902,7 @@ class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} resourceGroupName The name of the resource group. * @@ -2940,7 +2940,7 @@ class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} resourceGroupName The name of the resource group. * @@ -3108,7 +3108,7 @@ class Reports { * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be * used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)) * * @param {object} [options] Optional Parameters. * @@ -3152,7 +3152,7 @@ class Reports { * multiple of 15 minutes and may not be zero. The value should be in ISO 8601 * format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be * used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)) * * @param {object} [options] Optional Parameters. * @@ -3643,7 +3643,7 @@ class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3674,7 +3674,7 @@ class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/apimanagement/lib/operations/subscription.js b/lib/services/apimanagement/lib/operations/subscription.js index 4be8608bad..8b4a1da0f5 100644 --- a/lib/services/apimanagement/lib/operations/subscription.js +++ b/lib/services/apimanagement/lib/operations/subscription.js @@ -582,7 +582,7 @@ function _get(resourceGroupName, serviceName, sid, options, callback) { * is being created in form /users/{uid} * * @param {string} parameters.productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * * @param {string} parameters.displayName Subscription name. * @@ -827,7 +827,7 @@ function _createOrUpdate(resourceGroupName, serviceName, sid, parameters, option } /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -2022,7 +2022,7 @@ class Subscription { * is being created in form /users/{uid} * * @param {string} parameters.productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * * @param {string} parameters.displayName Subscription name. * @@ -2093,7 +2093,7 @@ class Subscription { * is being created in form /users/{uid} * * @param {string} parameters.productId Product (product id path) for which - * subscription is being created in form /products/{productid} + * subscription is being created in form /products/{productId} * * @param {string} parameters.displayName Subscription name. * @@ -2170,7 +2170,7 @@ class Subscription { } /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -2246,7 +2246,7 @@ class Subscription { } /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * diff --git a/lib/services/apimanagement/lib/operations/tagDescription.js b/lib/services/apimanagement/lib/operations/tagDescription.js index a3d960cf0b..e9a18e5e33 100644 --- a/lib/services/apimanagement/lib/operations/tagDescription.js +++ b/lib/services/apimanagement/lib/operations/tagDescription.js @@ -634,7 +634,7 @@ function _get(resourceGroupName, serviceName, apiId, tagId, options, callback) { } /** - * Create/Update tag fescription in scope of the Api. + * Create/Update tag description in scope of the Api. * * @param {string} resourceGroupName The name of the resource group. * @@ -1557,7 +1557,7 @@ class TagDescription { } /** - * Create/Update tag fescription in scope of the Api. + * Create/Update tag description in scope of the Api. * * @param {string} resourceGroupName The name of the resource group. * @@ -1609,7 +1609,7 @@ class TagDescription { } /** - * Create/Update tag fescription in scope of the Api. + * Create/Update tag description in scope of the Api. * * @param {string} resourceGroupName The name of the resource group. *