diff --git a/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.d.ts b/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.d.ts index 36239aae2b..ef22b0fa2c 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.d.ts +++ b/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.d.ts @@ -56,6 +56,7 @@ export default class AzureMLCommitmentPlansManagementClient extends AzureService generateClientRequestId: boolean; // Operation groups + operations: operations.Operations; skus: operations.Skus; commitmentAssociations: operations.CommitmentAssociations; commitmentPlans: operations.CommitmentPlans; diff --git a/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.js b/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.js index bc0520e17c..22b16781aa 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.js +++ b/lib/services/machinelearning/lib/commitmentPlan/azureMLCommitmentPlansManagementClient.js @@ -72,6 +72,7 @@ class AzureMLCommitmentPlansManagementClient extends ServiceClient { if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } + this.operations = new operations.Operations(this); this.skus = new operations.Skus(this); this.commitmentAssociations = new operations.CommitmentAssociations(this); this.commitmentPlans = new operations.CommitmentPlans(this); diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/index.d.ts b/lib/services/machinelearning/lib/commitmentPlan/models/index.d.ts index 483764348f..9b158d535f 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/models/index.d.ts +++ b/lib/services/machinelearning/lib/commitmentPlan/models/index.d.ts @@ -38,7 +38,7 @@ export interface SkuCapacity { } /** - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. */ export interface SkuCapability { /** @@ -355,6 +355,48 @@ export interface PlanUsageHistory { usageDate?: Date; } +/** + * The API operation info. + */ +export interface OperationDisplayInfo { + /** + * The description of the operation. + */ + readonly description?: string; + /** + * The action that users can perform, based on their permission level. + */ + readonly operation?: string; + /** + * The service provider. + */ + readonly provider?: string; + /** + * The resource on which the operation is performed. + */ + readonly resource?: string; +} + +/** + * An API operation. + */ +export interface OperationEntity { + /** + * Operation name: {provider}/{resource}/{operation}. + */ + readonly name?: string; + /** + * The API operation info. + */ + display?: OperationDisplayInfo; +} + +/** + * The list of REST API operations. + */ +export interface OperationEntityListResult extends Array { +} + /** * The list of commitment plan SKUs. */ diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/index.js b/lib/services/machinelearning/lib/commitmentPlan/models/index.js index d4c1c19763..ecf616d105 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/models/index.js +++ b/lib/services/machinelearning/lib/commitmentPlan/models/index.js @@ -33,6 +33,9 @@ exports.PlanQuantity = require('./planQuantity'); exports.CommitmentPlanProperties = require('./commitmentPlanProperties'); exports.CommitmentPlan = require('./commitmentPlan'); exports.PlanUsageHistory = require('./planUsageHistory'); +exports.OperationDisplayInfo = require('./operationDisplayInfo'); +exports.OperationEntity = require('./operationEntity'); +exports.OperationEntityListResult = require('./operationEntityListResult'); exports.SkuListResult = require('./skuListResult'); exports.CommitmentAssociationListResult = require('./commitmentAssociationListResult'); exports.CommitmentPlanListResult = require('./commitmentPlanListResult'); diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/operationDisplayInfo.js b/lib/services/machinelearning/lib/commitmentPlan/models/operationDisplayInfo.js new file mode 100644 index 0000000000..1e0c55d4ab --- /dev/null +++ b/lib/services/machinelearning/lib/commitmentPlan/models/operationDisplayInfo.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'; + +/** + * The API operation info. + * + */ +class OperationDisplayInfo { + /** + * Create a OperationDisplayInfo. + * @property {string} [description] The description of the operation. + * @property {string} [operation] The action that users can perform, based on + * their permission level. + * @property {string} [provider] The service provider. + * @property {string} [resource] The resource on which the operation is + * performed. + */ + constructor() { + } + + /** + * Defines the metadata of OperationDisplayInfo + * + * @returns {object} metadata of OperationDisplayInfo + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationDisplayInfo', + type: { + name: 'Composite', + className: 'OperationDisplayInfo', + modelProperties: { + description: { + required: false, + readOnly: true, + serializedName: 'description', + type: { + name: 'String' + } + }, + operation: { + required: false, + readOnly: true, + serializedName: 'operation', + type: { + name: 'String' + } + }, + provider: { + required: false, + readOnly: true, + serializedName: 'provider', + type: { + name: 'String' + } + }, + resource: { + required: false, + readOnly: true, + serializedName: 'resource', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OperationDisplayInfo; diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/operationEntity.js b/lib/services/machinelearning/lib/commitmentPlan/models/operationEntity.js new file mode 100644 index 0000000000..f1f135f742 --- /dev/null +++ b/lib/services/machinelearning/lib/commitmentPlan/models/operationEntity.js @@ -0,0 +1,69 @@ +/* + * 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'; + +/** + * An API operation. + * + */ +class OperationEntity { + /** + * Create a OperationEntity. + * @property {string} [name] Operation name: + * {provider}/{resource}/{operation}. + * @property {object} [display] The API operation info. + * @property {string} [display.description] The description of the operation. + * @property {string} [display.operation] The action that users can perform, + * based on their permission level. + * @property {string} [display.provider] The service provider. + * @property {string} [display.resource] The resource on which the operation + * is performed. + */ + constructor() { + } + + /** + * Defines the metadata of OperationEntity + * + * @returns {object} metadata of OperationEntity + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationEntity', + type: { + name: 'Composite', + className: 'OperationEntity', + modelProperties: { + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + display: { + required: false, + serializedName: 'display', + type: { + name: 'Composite', + className: 'OperationDisplayInfo' + } + } + } + } + }; + } +} + +module.exports = OperationEntity; diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/operationEntityListResult.js b/lib/services/machinelearning/lib/commitmentPlan/models/operationEntityListResult.js new file mode 100644 index 0000000000..bc2f6127e5 --- /dev/null +++ b/lib/services/machinelearning/lib/commitmentPlan/models/operationEntityListResult.js @@ -0,0 +1,60 @@ +/* + * 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 list of REST API operations. + */ +class OperationEntityListResult extends Array { + /** + * Create a OperationEntityListResult. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OperationEntityListResult + * + * @returns {object} metadata of OperationEntityListResult + * + */ + mapper() { + return { + required: false, + serializedName: 'OperationEntityListResult', + type: { + name: 'Composite', + className: 'OperationEntityListResult', + modelProperties: { + value: { + required: false, + readOnly: true, + serializedName: '', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'OperationEntityElementType', + type: { + name: 'Composite', + className: 'OperationEntity' + } + } + } + } + } + } + }; + } +} + +module.exports = OperationEntityListResult; diff --git a/lib/services/machinelearning/lib/commitmentPlan/models/skuCapability.js b/lib/services/machinelearning/lib/commitmentPlan/models/skuCapability.js index dd336fc6d7..5f9b43a65b 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/models/skuCapability.js +++ b/lib/services/machinelearning/lib/commitmentPlan/models/skuCapability.js @@ -11,7 +11,7 @@ 'use strict'; /** - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. * */ class SkuCapability { diff --git a/lib/services/machinelearning/lib/commitmentPlan/operations/index.d.ts b/lib/services/machinelearning/lib/commitmentPlan/operations/index.d.ts index 144ed3d1ab..a3ddc220c7 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/operations/index.d.ts +++ b/lib/services/machinelearning/lib/commitmentPlan/operations/index.d.ts @@ -12,6 +12,69 @@ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationRes import * as models from '../models'; +/** + * @class + * Operations + * __NOTE__: An instance of this class is automatically created for an + * instance of the AzureMLCommitmentPlansManagementClient. + */ +export interface Operations { + + + /** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP + * REST API operations. + * + * @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. + */ + listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP + * REST API operations. + * + * @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 {OperationEntityListResult} - 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. + * + * {OperationEntityListResult} [result] - The deserialized result object if an error did not occur. + * See {@link OperationEntityListResult} 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. + */ + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + /** * @class * Skus diff --git a/lib/services/machinelearning/lib/commitmentPlan/operations/index.js b/lib/services/machinelearning/lib/commitmentPlan/operations/index.js index 26da863e22..1592d25544 100644 --- a/lib/services/machinelearning/lib/commitmentPlan/operations/index.js +++ b/lib/services/machinelearning/lib/commitmentPlan/operations/index.js @@ -14,6 +14,7 @@ 'use strict'; +exports.Operations = require('./operations'); exports.Skus = require('./skus'); exports.CommitmentAssociations = require('./commitmentAssociations'); exports.CommitmentPlans = require('./commitmentPlans'); diff --git a/lib/services/machinelearning/lib/commitmentPlan/operations/operations.js b/lib/services/machinelearning/lib/commitmentPlan/operations/operations.js new file mode 100644 index 0000000000..c49e3bfe32 --- /dev/null +++ b/lib/services/machinelearning/lib/commitmentPlan/operations/operations.js @@ -0,0 +1,242 @@ +/* + * 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; + +/** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP + * REST API operations. + * + * @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 OperationEntityListResult} 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 _list(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 (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.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('/') ? '' : '/') + 'providers/Microsoft.MachineLearning/operations'; + 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['OperationEntityListResult']().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 Operations. */ +class Operations { + /** + * Create a Operations. + * @param {AzureMLCommitmentPlansManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._list = _list; + } + + /** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP + * REST API operations. + * + * @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. + */ + listWithHttpOperationResponse(options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._list(options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP + * REST API operations. + * + * @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 {OperationEntityListResult} - 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 OperationEntityListResult} 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. + */ + list(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._list(options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._list(options, optionalCallback); + } + } + +} + +module.exports = Operations; diff --git a/lib/services/machinelearning/lib/webservices/models/index.d.ts b/lib/services/machinelearning/lib/webservices/models/index.d.ts index a58e3ccb96..5072dd926b 100644 --- a/lib/services/machinelearning/lib/webservices/models/index.d.ts +++ b/lib/services/machinelearning/lib/webservices/models/index.d.ts @@ -41,6 +41,32 @@ export interface Resource extends BaseResource { tags?: { [propertyName: string]: string }; } +/** + * Azure resource. + */ +export interface PatchedResource extends BaseResource { + /** + * Specifies the resource ID. + */ + readonly id?: string; + /** + * Specifies the name of the resource. + */ + readonly name?: string; + /** + * Specifies the location of the resource. + */ + readonly location?: string; + /** + * Specifies the type of the resource. + */ + readonly type?: string; + /** + * Contains resource tags defined as key/value pairs. + */ + tags?: { [propertyName: string]: string }; +} + /** * Access keys for the web service calls. */ @@ -442,7 +468,7 @@ export interface WebServiceProperties { */ payloadsInBlobStorage?: boolean; /** - * The URI of the payload blob. This paramater contains a value only if the payloadsInBlobStorage + * The URI of the payload blob. This parameter contains a value only if the payloadsInBlobStorage * parameter is set to true. Otherwise is set to null. */ payloadsLocation?: BlobLocation; @@ -462,6 +488,16 @@ export interface WebService extends Resource { properties: WebServiceProperties; } +/** + * Instance of an Patched Azure ML web service resource. + */ +export interface PatchedWebService extends PatchedResource { + /** + * Contains the property payload that describes the web service. + */ + properties?: WebServiceProperties; +} + /** * Specifies a node in the web service graph. The node can either be an input, output or asset * node, so only one of the corresponding id properties is populated at any given time. diff --git a/lib/services/machinelearning/lib/webservices/models/index.js b/lib/services/machinelearning/lib/webservices/models/index.js index f19097cebd..9a58b48b55 100644 --- a/lib/services/machinelearning/lib/webservices/models/index.js +++ b/lib/services/machinelearning/lib/webservices/models/index.js @@ -19,6 +19,7 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; exports.Resource = require('./resource'); +exports.PatchedResource = require('./patchedResource'); exports.WebServiceKeys = require('./webServiceKeys'); exports.RealtimeConfiguration = require('./realtimeConfiguration'); exports.DiagnosticsConfiguration = require('./diagnosticsConfiguration'); @@ -38,6 +39,7 @@ exports.AssetItem = require('./assetItem'); exports.WebServiceParameter = require('./webServiceParameter'); exports.WebServiceProperties = require('./webServiceProperties'); exports.WebService = require('./webService'); +exports.PatchedWebService = require('./patchedWebService'); exports.GraphNode = require('./graphNode'); exports.GraphEdge = require('./graphEdge'); exports.GraphParameterLink = require('./graphParameterLink'); diff --git a/lib/services/machinelearning/lib/webservices/models/patchedResource.js b/lib/services/machinelearning/lib/webservices/models/patchedResource.js new file mode 100644 index 0000000000..c644d49ba0 --- /dev/null +++ b/lib/services/machinelearning/lib/webservices/models/patchedResource.js @@ -0,0 +1,100 @@ +/* + * 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 models = require('./index'); + +/** + * Azure resource. + * + * @extends models['BaseResource'] + */ +class PatchedResource extends models['BaseResource'] { + /** + * Create a PatchedResource. + * @property {string} [id] Specifies the resource ID. + * @property {string} [name] Specifies the name of the resource. + * @property {string} [location] Specifies the location of the resource. + * @property {string} [type] Specifies the type of the resource. + * @property {object} [tags] Contains resource tags defined as key/value + * pairs. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PatchedResource + * + * @returns {object} metadata of PatchedResource + * + */ + mapper() { + return { + required: false, + serializedName: 'PatchedResource', + type: { + name: 'Composite', + className: 'PatchedResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + readOnly: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = PatchedResource; diff --git a/lib/services/machinelearning/lib/webservices/models/patchedWebService.js b/lib/services/machinelearning/lib/webservices/models/patchedWebService.js new file mode 100644 index 0000000000..b42712b580 --- /dev/null +++ b/lib/services/machinelearning/lib/webservices/models/patchedWebService.js @@ -0,0 +1,228 @@ +/* + * 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 models = require('./index'); + +/** + * Instance of an Patched Azure ML web service resource. + * + * @extends models['PatchedResource'] + */ +class PatchedWebService extends models['PatchedResource'] { + /** + * Create a PatchedWebService. + * @property {object} [properties] Contains the property payload that + * describes the web service. + * @property {string} [properties.title] The title of the web service. + * @property {string} [properties.description] The description of the web + * service. + * @property {date} [properties.createdOn] Read Only: The date and time when + * the web service was created. + * @property {date} [properties.modifiedOn] Read Only: The date and time when + * the web service was last modified. + * @property {string} [properties.provisioningState] Read Only: The provision + * state of the web service. Valid values are Unknown, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Provisioning', + * 'Succeeded', 'Failed' + * @property {object} [properties.keys] Contains the web service provisioning + * keys. If you do not specify provisioning keys, the Azure Machine Learning + * system generates them for you. Note: The keys are not returned from calls + * to GET operations. + * @property {string} [properties.keys.primary] The primary access key. + * @property {string} [properties.keys.secondary] The secondary access key. + * @property {boolean} [properties.readOnly] When set to true, indicates that + * the web service is read-only and can no longer be updated or patched, only + * removed. Default, is false. Note: Once set to true, you cannot change its + * value. + * @property {string} [properties.swaggerLocation] Read Only: Contains the + * URI of the swagger spec associated with this web service. + * @property {boolean} [properties.exposeSampleData] When set to true, sample + * data is included in the web service's swagger definition. The default + * value is true. + * @property {object} [properties.realtimeConfiguration] Contains the + * configuration settings for the web service endpoint. + * @property {number} [properties.realtimeConfiguration.maxConcurrentCalls] + * Specifies the maximum concurrent calls that can be made to the web + * service. Minimum value: 4, Maximum value: 200. + * @property {object} [properties.diagnostics] Settings controlling the + * diagnostics traces collection for the web service. + * @property {string} [properties.diagnostics.level] Specifies the verbosity + * of the diagnostic output. Valid values are: None - disables tracing; Error + * - collects only error (stderr) traces; All - collects all traces (stdout + * and stderr). Possible values include: 'None', 'Error', 'All' + * @property {date} [properties.diagnostics.expiry] Specifies the date and + * time when the logging will cease. If null, diagnostic collection is not + * time limited. + * @property {object} [properties.storageAccount] Specifies the storage + * account that Azure Machine Learning uses to store information about the + * web service. Only the name of the storage account is returned from calls + * to GET operations. When updating the storage account information, you must + * ensure that all necessary assets are available in the new storage account + * or calls to your web service will fail. + * @property {string} [properties.storageAccount.name] Specifies the name of + * the storage account. + * @property {string} [properties.storageAccount.key] Specifies the key used + * to access the storage account. + * @property {object} [properties.machineLearningWorkspace] Specifies the + * Machine Learning workspace containing the experiment that is source for + * the web service. + * @property {string} [properties.machineLearningWorkspace.id] Specifies the + * workspace ID of the machine learning workspace associated with the web + * service + * @property {object} [properties.commitmentPlan] Contains the commitment + * plan associated with this web service. Set at creation time. Once set, + * this value cannot be changed. Note: The commitment plan is not returned + * from calls to GET operations. + * @property {string} [properties.commitmentPlan.id] Specifies the Azure + * Resource Manager ID of the commitment plan associated with the web + * service. + * @property {object} [properties.input] Contains the Swagger 2.0 schema + * describing one or more of the web service's inputs. For more information, + * see the Swagger specification. + * @property {string} [properties.input.title] The title of your Swagger + * schema. + * @property {string} [properties.input.description] The description of the + * Swagger schema. + * @property {string} [properties.input.type] The type of the entity + * described in swagger. Always 'object'. + * @property {object} [properties.input.properties] Specifies a collection + * that contains the column schema for each input or output of the web + * service. For more information, see the Swagger specification. + * @property {object} [properties.output] Contains the Swagger 2.0 schema + * describing one or more of the web service's outputs. For more information, + * see the Swagger specification. + * @property {string} [properties.output.title] The title of your Swagger + * schema. + * @property {string} [properties.output.description] The description of the + * Swagger schema. + * @property {string} [properties.output.type] The type of the entity + * described in swagger. Always 'object'. + * @property {object} [properties.output.properties] Specifies a collection + * that contains the column schema for each input or output of the web + * service. For more information, see the Swagger specification. + * @property {object} [properties.exampleRequest] Defines sample input data + * for one or more of the service's inputs. + * @property {object} [properties.exampleRequest.inputs] Sample input data + * for the web service's input(s) given as an input name to sample input + * values matrix map. + * @property {object} [properties.exampleRequest.globalParameters] Sample + * input data for the web service's global parameters + * @property {object} [properties.assets] Contains user defined properties + * describing web service assets. Properties are expressed as Key/Value + * pairs. + * @property {object} [properties.parameters] The set of global parameters + * values defined for the web service, given as a global parameter name to + * default value map. If no default value is specified, the parameter is + * considered to be required. + * @property {boolean} [properties.payloadsInBlobStorage] When set to true, + * indicates that the payload size is larger than 3 MB. Otherwise false. If + * the payload size exceed 3 MB, the payload is stored in a blob and the + * PayloadsLocation parameter contains the URI of the blob. Otherwise, this + * will be set to false and Assets, Input, Output, Package, Parameters, + * ExampleRequest are inline. The Payload sizes is determined by adding the + * size of the Assets, Input, Output, Package, Parameters, and the + * ExampleRequest. + * @property {object} [properties.payloadsLocation] The URI of the payload + * blob. This parameter contains a value only if the payloadsInBlobStorage + * parameter is set to true. Otherwise is set to null. + * @property {string} [properties.payloadsLocation.uri] The URI from which + * the blob is accessible from. For example, aml://abc for system assets or + * https://xyz for user assets or payload. + * @property {string} [properties.payloadsLocation.credentials] Access + * credentials for the blob, if applicable (e.g. blob specified by storage + * account connection string + blob URI) + * @property {string} [properties.packageType] Polymorphic Discriminator + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PatchedWebService + * + * @returns {object} metadata of PatchedWebService + * + */ + mapper() { + return { + required: false, + serializedName: 'PatchedWebService', + type: { + name: 'Composite', + className: 'PatchedWebService', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + location: { + required: false, + readOnly: true, + serializedName: 'location', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'packageType', + clientName: 'packageType' + }, + uberParent: 'WebServiceProperties', + className: 'WebServiceProperties' + } + } + } + } + }; + } +} + +module.exports = PatchedWebService; diff --git a/lib/services/machinelearning/lib/webservices/models/webService.js b/lib/services/machinelearning/lib/webservices/models/webService.js index 0fb159abc1..55d3679f34 100644 --- a/lib/services/machinelearning/lib/webservices/models/webService.js +++ b/lib/services/machinelearning/lib/webservices/models/webService.js @@ -132,7 +132,7 @@ class WebService extends models['Resource'] { * size of the Assets, Input, Output, Package, Parameters, and the * ExampleRequest. * @property {object} [properties.payloadsLocation] The URI of the payload - * blob. This paramater contains a value only if the payloadsInBlobStorage + * blob. This parameter contains a value only if the payloadsInBlobStorage * parameter is set to true. Otherwise is set to null. * @property {string} [properties.payloadsLocation.uri] The URI from which * the blob is accessible from. For example, aml://abc for system assets or diff --git a/lib/services/machinelearning/lib/webservices/models/webServiceProperties.js b/lib/services/machinelearning/lib/webservices/models/webServiceProperties.js index 8eba365e29..36e2062642 100644 --- a/lib/services/machinelearning/lib/webservices/models/webServiceProperties.js +++ b/lib/services/machinelearning/lib/webservices/models/webServiceProperties.js @@ -119,7 +119,7 @@ class WebServiceProperties { * inline. The Payload sizes is determined by adding the size of the Assets, * Input, Output, Package, Parameters, and the ExampleRequest. * @property {object} [payloadsLocation] The URI of the payload blob. This - * paramater contains a value only if the payloadsInBlobStorage parameter is + * parameter contains a value only if the payloadsInBlobStorage parameter is * set to true. Otherwise is set to null. * @property {string} [payloadsLocation.uri] The URI from which the blob is * accessible from. For example, aml://abc for system assets or https://xyz diff --git a/lib/services/machinelearning/lib/webservices/operations/index.d.ts b/lib/services/machinelearning/lib/webservices/operations/index.d.ts index 75594b7ba1..d6d700c75b 100644 --- a/lib/services/machinelearning/lib/webservices/operations/index.d.ts +++ b/lib/services/machinelearning/lib/webservices/operations/index.d.ts @@ -226,7 +226,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -404,7 +404,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -542,7 +542,7 @@ export interface WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -671,7 +671,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -685,9 +685,6 @@ export interface WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -702,7 +699,7 @@ export interface WebServices { * * @reject {Error|ServiceError} - The error object. */ - patchWithHttpOperationResponse(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + patchWithHttpOperationResponse(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Modifies an existing web service resource. The PATCH API call is an @@ -716,7 +713,7 @@ export interface WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -845,7 +842,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -859,9 +856,6 @@ export interface WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -892,9 +886,9 @@ export interface WebServices { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - patch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - patch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, callback: ServiceCallback): void; - patch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + patch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + patch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, callback: ServiceCallback): void; + patch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1357,7 +1351,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -1535,7 +1529,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -1600,7 +1594,7 @@ export interface WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -1729,7 +1723,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -1743,9 +1737,6 @@ export interface WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -1760,7 +1751,7 @@ export interface WebServices { * * @reject {Error|ServiceError} - The error object. */ - beginPatchWithHttpOperationResponse(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginPatchWithHttpOperationResponse(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Modifies an existing web service resource. The PATCH API call is an @@ -1774,7 +1765,7 @@ export interface WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -1903,7 +1894,7 @@ export interface WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -1917,9 +1908,6 @@ export interface WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -1950,9 +1938,9 @@ export interface WebServices { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, callback: ServiceCallback): void; - beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.WebService, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, callback: ServiceCallback): void; + beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: models.PatchedWebService, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/machinelearning/lib/webservices/operations/webServices.js b/lib/services/machinelearning/lib/webservices/operations/webServices.js index 8ba9a561b6..42a72546e7 100644 --- a/lib/services/machinelearning/lib/webservices/operations/webServices.js +++ b/lib/services/machinelearning/lib/webservices/operations/webServices.js @@ -159,7 +159,7 @@ const WebResource = msRest.WebResource; * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -422,7 +422,7 @@ function _get(resourceGroupName, webServiceName, options, callback) { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -551,7 +551,7 @@ function _get(resourceGroupName, webServiceName, options, callback) { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -565,9 +565,6 @@ function _get(resourceGroupName, webServiceName, options, callback) { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -1375,7 +1372,7 @@ function _listBySubscriptionId(options, callback) { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -1580,7 +1577,7 @@ function _beginCreateOrUpdate(resourceGroupName, webServiceName, createOrUpdateP * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -1709,7 +1706,7 @@ function _beginCreateOrUpdate(resourceGroupName, webServiceName, createOrUpdateP * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -1723,9 +1720,6 @@ function _beginCreateOrUpdate(resourceGroupName, webServiceName, createOrUpdateP * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -1818,7 +1812,7 @@ function _beginPatch(resourceGroupName, webServiceName, patchPayload, options, c let requestModel = null; try { if (patchPayload !== null && patchPayload !== undefined) { - let requestModelMapper = new client.models['WebService']().mapper(); + let requestModelMapper = new client.models['PatchedWebService']().mapper(); requestModel = client.serialize(requestModelMapper, patchPayload, 'patchPayload'); requestContent = JSON.stringify(requestModel); } @@ -2594,7 +2588,7 @@ class WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -2784,7 +2778,7 @@ class WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -2964,7 +2958,7 @@ class WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -3093,7 +3087,7 @@ class WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -3107,9 +3101,6 @@ class WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -3150,7 +3141,7 @@ class WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -3279,7 +3270,7 @@ class WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -3293,9 +3284,6 @@ class WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -3941,7 +3929,7 @@ class WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -4131,7 +4119,7 @@ class WebServices { * ExampleRequest. * * @param {object} [createOrUpdatePayload.properties.payloadsLocation] The URI - * of the payload blob. This paramater contains a value only if the + * of the payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} createOrUpdatePayload.properties.payloadsLocation.uri The @@ -4211,7 +4199,7 @@ class WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -4340,7 +4328,7 @@ class WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -4354,9 +4342,6 @@ class WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. * @@ -4397,7 +4382,7 @@ class WebServices { * * @param {object} patchPayload The payload to use to patch the web service. * - * @param {object} patchPayload.properties Contains the property payload that + * @param {object} [patchPayload.properties] Contains the property payload that * describes the web service. * * @param {string} [patchPayload.properties.title] The title of the web @@ -4526,7 +4511,7 @@ class WebServices { * ExampleRequest. * * @param {object} [patchPayload.properties.payloadsLocation] The URI of the - * payload blob. This paramater contains a value only if the + * payload blob. This parameter contains a value only if the * payloadsInBlobStorage parameter is set to true. Otherwise is set to null. * * @param {string} patchPayload.properties.payloadsLocation.uri The URI from @@ -4540,9 +4525,6 @@ class WebServices { * @param {string} patchPayload.properties.packageType Polymorphic * Discriminator * - * @param {string} patchPayload.location Specifies the location of the - * resource. - * * @param {object} [patchPayload.tags] Contains resource tags defined as * key/value pairs. *