From d397bbfb8cf143161983eae9917b275b144784fc Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 1 Nov 2019 08:12:12 +0000 Subject: [PATCH] Generated from 27d5fcbffb59163e5aeda0e779ecd92fff5ae415 add clear-output-folder in resource-manager readme.typescript.md to fix js sdk build failure --- .../arm-webservices/LICENSE.txt | 2 +- sdk/machinelearning/arm-webservices/README.md | 12 +- .../arm-webservices/package.json | 24 +- .../arm-webservices/rollup.config.js | 22 +- .../arm-webservices/src/models/index.ts | 751 +++++++----------- .../arm-webservices/src/models/mappers.ts | 74 +- .../src/models/operationsMappers.ts | 13 +- .../src/models/webServicesMappers.ts | 59 +- .../src/operations/webServices.ts | 6 +- .../arm-webservices/tsconfig.json | 2 +- 10 files changed, 424 insertions(+), 541 deletions(-) diff --git a/sdk/machinelearning/arm-webservices/LICENSE.txt b/sdk/machinelearning/arm-webservices/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/machinelearning/arm-webservices/LICENSE.txt +++ b/sdk/machinelearning/arm-webservices/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/machinelearning/arm-webservices/README.md b/sdk/machinelearning/arm-webservices/README.md index 163255bef51b..8408e6479159 100644 --- a/sdk/machinelearning/arm-webservices/README.md +++ b/sdk/machinelearning/arm-webservices/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for AzureMLWebServicesManagementClient. ### How to Install -``` +```bash npm install @azure/arm-webservices ``` @@ -19,13 +19,14 @@ npm install @azure/arm-webservices ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearning/arm-webservices/README.png) diff --git a/sdk/machinelearning/arm-webservices/package.json b/sdk/machinelearning/arm-webservices/package.json index 19e6596d06f4..d6d02ebfe0c9 100644 --- a/sdk/machinelearning/arm-webservices/package.json +++ b/sdk/machinelearning/arm-webservices/package.json @@ -4,9 +4,9 @@ "description": "AzureMLWebServicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.1.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/azureMLWebServicesManagementClient.js", "types": "./esm/azureMLWebServicesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/webservices/arm-webservices", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearning/arm-webservices", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/machinelearning/arm-webservices/rollup.config.js b/sdk/machinelearning/arm-webservices/rollup.config.js index fca84a1233db..843335dcfe83 100644 --- a/sdk/machinelearning/arm-webservices/rollup.config.js +++ b/sdk/machinelearning/arm-webservices/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/azureMLWebServicesManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureMLWebServicesManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-webservices.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/machinelearning/arm-webservices/src/models/index.ts b/sdk/machinelearning/arm-webservices/src/models/index.ts index 10498bb1304a..d32ceb3786e5 100644 --- a/sdk/machinelearning/arm-webservices/src/models/index.ts +++ b/sdk/machinelearning/arm-webservices/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,417 +11,356 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * Azure resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Specifies the name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} location Specifies the location of the resource. + * Specifies the location of the resource. */ location: string; /** - * @member {string} [type] Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Specifies the type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Contains resource tags - * defined as key/value pairs. + * Contains resource tags defined as key/value pairs. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Azure resource. + */ +export interface PatchedResource extends BaseResource { + /** + * Specifies the resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Specifies the name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Specifies the location of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Specifies the type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Contains resource tags defined as key/value pairs. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing WebServiceKeys. * Access keys for the web service calls. - * */ export interface WebServiceKeys { /** - * @member {string} [primary] The primary access key. + * The primary access key. */ primary?: string; /** - * @member {string} [secondary] The secondary access key. + * The secondary access key. */ secondary?: string; } /** - * @interface - * An interface representing RealtimeConfiguration. - * Holds the available configuration options for an Azure ML web service - * endpoint. - * + * Holds the available configuration options for an Azure ML web service endpoint. */ export interface RealtimeConfiguration { /** - * @member {number} [maxConcurrentCalls] Specifies the maximum concurrent - * calls that can be made to the web service. Minimum value: 4, Maximum - * value: 200. + * Specifies the maximum concurrent calls that can be made to the web service. Minimum value: 4, + * Maximum value: 200. */ maxConcurrentCalls?: number; } /** - * @interface - * An interface representing DiagnosticsConfiguration. * Diagnostics settings for an Azure ML web service. - * */ export interface DiagnosticsConfiguration { /** - * @member {DiagnosticsLevel} 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). + * 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' */ level: DiagnosticsLevel; /** - * @member {Date} [expiry] Specifies the date and time when the logging will - * cease. If null, diagnostic collection is not time limited. + * Specifies the date and time when the logging will cease. If null, diagnostic collection is not + * time limited. */ expiry?: Date; } /** - * @interface - * An interface representing StorageAccount. * Access information for a storage account. - * */ export interface StorageAccount { /** - * @member {string} [name] Specifies the name of the storage account. + * Specifies the name of the storage account. */ name?: string; /** - * @member {string} [key] Specifies the key used to access the storage - * account. + * Specifies the key used to access the storage account. */ key?: string; } /** - * @interface - * An interface representing MachineLearningWorkspace. - * Information about the machine learning workspace containing the experiment - * that is source for the web service. - * + * Information about the machine learning workspace containing the experiment that is source for + * the web service. */ export interface MachineLearningWorkspace { /** - * @member {string} id Specifies the workspace ID of the machine learning - * workspace associated with the web service + * Specifies the workspace ID of the machine learning workspace associated with the web service */ id: string; } /** - * @interface - * An interface representing CommitmentPlan. - * Information about the machine learning commitment plan associated with the - * web service. - * + * Information about the machine learning commitment plan associated with the web service. */ export interface CommitmentPlan { /** - * @member {string} id Specifies the Azure Resource Manager ID of the - * commitment plan associated with the web service. + * Specifies the Azure Resource Manager ID of the commitment plan associated with the web + * service. */ id: string; } /** - * @interface - * An interface representing ColumnSpecification. - * Swagger 2.0 schema for a column within the data table representing a web - * service input or output. See Swagger specification: - * http://swagger.io/specification/ - * + * Swagger 2.0 schema for a column within the data table representing a web service input or + * output. See Swagger specification: http://swagger.io/specification/ */ export interface ColumnSpecification { /** - * @member {ColumnType} type Data type of the column. Possible values - * include: 'Boolean', 'Integer', 'Number', 'String' + * Data type of the column. Possible values include: 'Boolean', 'Integer', 'Number', 'String' */ type: ColumnType; /** - * @member {ColumnFormat} [format] Additional format information for the data - * type. Possible values include: 'Byte', 'Char', 'Complex64', 'Complex128', - * 'Date-time', 'Date-timeOffset', 'Double', 'Duration', 'Float', 'Int8', - * 'Int16', 'Int32', 'Int64', 'Uint8', 'Uint16', 'Uint32', 'Uint64' + * Additional format information for the data type. Possible values include: 'Byte', 'Char', + * 'Complex64', 'Complex128', 'Date-time', 'Date-timeOffset', 'Double', 'Duration', 'Float', + * 'Int8', 'Int16', 'Int32', 'Int64', 'Uint8', 'Uint16', 'Uint32', 'Uint64' */ format?: ColumnFormat; /** - * @member {any[]} [enum] If the data type is categorical, this provides the - * list of accepted categories. + * If the data type is categorical, this provides the list of accepted categories. */ enum?: any[]; /** - * @member {boolean} [xMsIsnullable] Flag indicating if the type supports - * null values or not. + * Flag indicating if the type supports null values or not. */ xMsIsnullable?: boolean; /** - * @member {boolean} [xMsIsordered] Flag indicating whether the categories - * are treated as an ordered set or not, if this is a categorical column. + * Flag indicating whether the categories are treated as an ordered set or not, if this is a + * categorical column. */ xMsIsordered?: boolean; } /** - * @interface - * An interface representing TableSpecification. - * The swagger 2.0 schema describing a single service input or output. See - * Swagger specification: http://swagger.io/specification/ - * + * The swagger 2.0 schema describing a single service input or output. See Swagger specification: + * http://swagger.io/specification/ */ export interface TableSpecification { /** - * @member {string} [title] Swagger schema title. + * Swagger schema title. */ title?: string; /** - * @member {string} [description] Swagger schema description. + * Swagger schema description. */ description?: string; /** - * @member {string} type The type of the entity described in swagger. Default - * value: 'object' . + * The type of the entity described in swagger. Default value: 'object'. */ type: string; /** - * @member {string} [format] The format, if 'type' is not 'object' + * The format, if 'type' is not 'object' */ format?: string; /** - * @member {{ [propertyName: string]: ColumnSpecification }} [properties] The - * set of columns within the data table. + * The set of columns within the data table. */ properties?: { [propertyName: string]: ColumnSpecification }; } /** - * @interface - * An interface representing ServiceInputOutputSpecification. - * The swagger 2.0 schema describing the service's inputs or outputs. See - * Swagger specification: http://swagger.io/specification/ - * + * The swagger 2.0 schema describing the service's inputs or outputs. See Swagger specification: + * http://swagger.io/specification/ */ export interface ServiceInputOutputSpecification { /** - * @member {string} [title] The title of your Swagger schema. + * The title of your Swagger schema. */ title?: string; /** - * @member {string} [description] The description of the Swagger schema. + * The description of the Swagger schema. */ description?: string; /** - * @member {string} type The type of the entity described in swagger. Always - * 'object'. Default value: 'object' . + * The type of the entity described in swagger. Always 'object'. Default value: 'object'. */ type: string; /** - * @member {{ [propertyName: string]: TableSpecification }} 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. + * Specifies a collection that contains the column schema for each input or output of the web + * service. For more information, see the Swagger specification. */ properties: { [propertyName: string]: TableSpecification }; } /** - * @interface - * An interface representing ExampleRequest. * Sample input data for the service's input(s). - * */ export interface ExampleRequest { /** - * @member {{ [propertyName: string]: any[][] }} [inputs] Sample input data - * for the web service's input(s) given as an input name to sample input - * values matrix map. + * Sample input data for the web service's input(s) given as an input name to sample input values + * matrix map. */ inputs?: { [propertyName: string]: any[][] }; /** - * @member {{ [propertyName: string]: any }} [globalParameters] Sample input - * data for the web service's global parameters + * Sample input data for the web service's global parameters */ globalParameters?: { [propertyName: string]: any }; } /** - * @interface - * An interface representing BlobLocation. * Describes the access location for a blob. - * */ export interface BlobLocation { /** - * @member {string} 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. + * The URI from which the blob is accessible from. For example, aml://abc for system assets or + * https://xyz for user assets or payload. */ uri: string; /** - * @member {string} [credentials] Access credentials for the blob, if - * applicable (e.g. blob specified by storage account connection string + - * blob URI) + * Access credentials for the blob, if applicable (e.g. blob specified by storage account + * connection string + blob URI) */ credentials?: string; } /** - * @interface - * An interface representing InputPort. * Asset input port - * */ export interface InputPort { /** - * @member {InputPortType} [type] Port data type. Possible values include: - * 'Dataset'. Default value: 'Dataset' . + * Port data type. Possible values include: 'Dataset'. Default value: 'Dataset'. */ type?: InputPortType; } /** - * @interface - * An interface representing OutputPort. * Asset output port - * */ export interface OutputPort { /** - * @member {OutputPortType} [type] Port data type. Possible values include: - * 'Dataset'. Default value: 'Dataset' . + * Port data type. Possible values include: 'Dataset'. Default value: 'Dataset'. */ type?: OutputPortType; } /** - * @interface - * An interface representing ModeValueInfo. * Nested parameter definition. - * */ export interface ModeValueInfo { /** - * @member {string} [interfaceString] The interface string name for the - * nested parameter. + * The interface string name for the nested parameter. */ interfaceString?: string; /** - * @member {ModuleAssetParameter[]} [parameters] The definition of the - * parameter. + * The definition of the parameter. */ parameters?: ModuleAssetParameter[]; } /** - * @interface - * An interface representing ModuleAssetParameter. * Parameter definition for a module asset. - * */ export interface ModuleAssetParameter { /** - * @member {string} [name] Parameter name. + * Parameter name. */ name?: string; /** - * @member {string} [parameterType] Parameter type. + * Parameter type. */ parameterType?: string; /** - * @member {{ [propertyName: string]: ModeValueInfo }} [modeValuesInfo] - * Definitions for nested interface parameters if this is a complex module - * parameter. + * Definitions for nested interface parameters if this is a complex module parameter. */ modeValuesInfo?: { [propertyName: string]: ModeValueInfo }; } /** - * @interface - * An interface representing AssetItem. * Information about an asset associated with the web service. - * */ export interface AssetItem { /** - * @member {string} name Asset's friendly name. + * Asset's friendly name. */ name: string; /** - * @member {string} [id] Asset's Id. + * Asset's Id. */ id?: string; /** - * @member {AssetType} type Asset's type. Possible values include: 'Module', - * 'Resource' + * Asset's type. Possible values include: 'Module', 'Resource' */ type: AssetType; /** - * @member {BlobLocation} locationInfo Access information for the asset. + * Access information for the asset. */ locationInfo: BlobLocation; /** - * @member {{ [propertyName: string]: InputPort }} [inputPorts] Information - * about the asset's input ports. + * Information about the asset's input ports. */ inputPorts?: { [propertyName: string]: InputPort }; /** - * @member {{ [propertyName: string]: OutputPort }} [outputPorts] Information - * about the asset's output ports. + * Information about the asset's output ports. */ outputPorts?: { [propertyName: string]: OutputPort }; /** - * @member {{ [propertyName: string]: string }} [metadata] If the asset is a - * custom module, this holds the module's metadata. + * If the asset is a custom module, this holds the module's metadata. */ metadata?: { [propertyName: string]: string }; /** - * @member {ModuleAssetParameter[]} [parameters] If the asset is a custom - * module, this holds the module's parameters. + * If the asset is a custom module, this holds the module's parameters. */ parameters?: ModuleAssetParameter[]; } /** - * @interface - * An interface representing WebServiceParameter. * Web Service Parameter object for node and global parameter - * */ export interface WebServiceParameter { /** - * @member {any} [value] The parameter value + * The parameter value */ value?: any; /** - * @member {string} [certificateThumbprint] If the parameter value in 'value' - * field is encrypted, the thumbprint of the certificate should be put here. + * If the parameter value in 'value' field is encrypted, the thumbprint of the certificate should + * be put here. */ certificateThumbprint?: string; } @@ -434,653 +371,519 @@ export interface WebServiceParameter { export type WebServicePropertiesUnion = WebServiceProperties | WebServicePropertiesForGraph; /** - * @interface - * An interface representing WebServiceProperties. * The set of properties specific to the Azure ML web service resource. - * */ export interface WebServiceProperties { /** - * @member {string} packageType Polymorphic Discriminator + * Polymorphic Discriminator */ packageType: "WebServiceProperties"; /** - * @member {string} [title] The title of the web service. + * The title of the web service. */ title?: string; /** - * @member {string} [description] The description of the web service. + * The description of the web service. */ description?: string; /** - * @member {Date} [createdOn] Read Only: The date and time when the web - * service was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The date and time when the web service was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] Read Only: The date and time when the web - * service was last modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The date and time when the web service was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {ProvisioningState} [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' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The provision state of the web service. Valid values are Unknown, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Provisioning', 'Succeeded', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {WebServiceKeys} [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. + * 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. */ keys?: WebServiceKeys; /** - * @member {boolean} [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. + * 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. */ readOnly?: boolean; /** - * @member {string} [swaggerLocation] Read Only: Contains the URI of the - * swagger spec associated with this web service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: Contains the URI of the swagger spec associated with this web service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly swaggerLocation?: string; /** - * @member {boolean} [exposeSampleData] When set to true, sample data is - * included in the web service's swagger definition. The default value is - * true. + * When set to true, sample data is included in the web service's swagger definition. The default + * value is true. */ exposeSampleData?: boolean; /** - * @member {RealtimeConfiguration} [realtimeConfiguration] Contains the - * configuration settings for the web service endpoint. + * Contains the configuration settings for the web service endpoint. */ realtimeConfiguration?: RealtimeConfiguration; /** - * @member {DiagnosticsConfiguration} [diagnostics] Settings controlling the - * diagnostics traces collection for the web service. + * Settings controlling the diagnostics traces collection for the web service. */ diagnostics?: DiagnosticsConfiguration; /** - * @member {StorageAccount} [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. + * 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. */ storageAccount?: StorageAccount; /** - * @member {MachineLearningWorkspace} [machineLearningWorkspace] Specifies - * the Machine Learning workspace containing the experiment that is source - * for the web service. + * Specifies the Machine Learning workspace containing the experiment that is source for the web + * service. */ machineLearningWorkspace?: MachineLearningWorkspace; /** - * @member {CommitmentPlan} [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. + * 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. */ commitmentPlan?: CommitmentPlan; /** - * @member {ServiceInputOutputSpecification} [input] Contains the Swagger 2.0 - * schema describing one or more of the web service's inputs. For more + * Contains the Swagger 2.0 schema describing one or more of the web service's inputs. For more * information, see the Swagger specification. */ input?: ServiceInputOutputSpecification; /** - * @member {ServiceInputOutputSpecification} [output] Contains the Swagger - * 2.0 schema describing one or more of the web service's outputs. For more + * Contains the Swagger 2.0 schema describing one or more of the web service's outputs. For more * information, see the Swagger specification. */ output?: ServiceInputOutputSpecification; /** - * @member {ExampleRequest} [exampleRequest] Defines sample input data for - * one or more of the service's inputs. + * Defines sample input data for one or more of the service's inputs. */ exampleRequest?: ExampleRequest; /** - * @member {{ [propertyName: string]: AssetItem }} [assets] Contains user - * defined properties describing web service assets. Properties are expressed - * as Key/Value pairs. + * Contains user defined properties describing web service assets. Properties are expressed as + * Key/Value pairs. */ assets?: { [propertyName: string]: AssetItem }; /** - * @member {{ [propertyName: string]: WebServiceParameter }} [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. + * 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. */ parameters?: { [propertyName: string]: WebServiceParameter }; /** - * @member {boolean} [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. + * 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. */ payloadsInBlobStorage?: boolean; /** - * @member {BlobLocation} [payloadsLocation] 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; } /** - * @interface - * An interface representing WebService. * Instance of an Azure ML web service resource. - * - * @extends Resource */ export interface WebService extends Resource { /** - * @member {WebServicePropertiesUnion} properties Contains the property - * payload that describes the web service. + * Contains the property payload that describes the web service. */ properties: WebServicePropertiesUnion; } /** - * @interface - * An interface representing GraphNode. - * 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. - * + * Instance of an Patched Azure ML web service resource. + */ +export interface PatchedWebService extends PatchedResource { + /** + * Contains the property payload that describes the web service. + */ + properties?: WebServicePropertiesUnion; +} + +/** + * 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. */ export interface GraphNode { /** - * @member {string} [assetId] The id of the asset represented by this node. + * The id of the asset represented by this node. */ assetId?: string; /** - * @member {string} [inputId] The id of the input element represented by this - * node. + * The id of the input element represented by this node. */ inputId?: string; /** - * @member {string} [outputId] The id of the output element represented by - * this node. + * The id of the output element represented by this node. */ outputId?: string; /** - * @member {{ [propertyName: string]: WebServiceParameter }} [parameters] If - * applicable, parameters of the node. Global graph parameters map into - * these, with values set at runtime. + * If applicable, parameters of the node. Global graph parameters map into these, with values set + * at runtime. */ parameters?: { [propertyName: string]: WebServiceParameter }; } /** - * @interface - * An interface representing GraphEdge. * Defines an edge within the web service's graph. - * */ export interface GraphEdge { /** - * @member {string} [sourceNodeId] The source graph node's identifier. + * The source graph node's identifier. */ sourceNodeId?: string; /** - * @member {string} [sourcePortId] The identifier of the source node's port - * that the edge connects from. + * The identifier of the source node's port that the edge connects from. */ sourcePortId?: string; /** - * @member {string} [targetNodeId] The destination graph node's identifier. + * The destination graph node's identifier. */ targetNodeId?: string; /** - * @member {string} [targetPortId] The identifier of the destination node's - * port that the edge connects into. + * The identifier of the destination node's port that the edge connects into. */ targetPortId?: string; } /** - * @interface - * An interface representing GraphParameterLink. * Association link for a graph global parameter to a node in the graph. - * */ export interface GraphParameterLink { /** - * @member {string} nodeId The graph node's identifier + * The graph node's identifier */ nodeId: string; /** - * @member {string} parameterKey The identifier of the node parameter that - * the global parameter maps to. + * The identifier of the node parameter that the global parameter maps to. */ parameterKey: string; } /** - * @interface - * An interface representing GraphParameter. * Defines a global parameter in the graph. - * */ export interface GraphParameter { /** - * @member {string} [description] Description of this graph parameter. + * Description of this graph parameter. */ description?: string; /** - * @member {ParameterType} type Graph parameter's type. Possible values - * include: 'String', 'Int', 'Float', 'Enumerated', 'Script', 'Mode', - * 'Credential', 'Boolean', 'Double', 'ColumnPicker', 'ParameterRange', + * Graph parameter's type. Possible values include: 'String', 'Int', 'Float', 'Enumerated', + * 'Script', 'Mode', 'Credential', 'Boolean', 'Double', 'ColumnPicker', 'ParameterRange', * 'DataGatewayName' */ type: ParameterType; /** - * @member {GraphParameterLink[]} links Association links for this parameter - * to nodes in the graph. + * Association links for this parameter to nodes in the graph. */ links: GraphParameterLink[]; } /** - * @interface - * An interface representing GraphPackage. * Defines the graph of modules making up the machine learning solution. - * */ export interface GraphPackage { /** - * @member {{ [propertyName: string]: GraphNode }} [nodes] The set of nodes - * making up the graph, provided as a nodeId to GraphNode map + * The set of nodes making up the graph, provided as a nodeId to GraphNode map */ nodes?: { [propertyName: string]: GraphNode }; /** - * @member {GraphEdge[]} [edges] The list of edges making up the graph. + * The list of edges making up the graph. */ edges?: GraphEdge[]; /** - * @member {{ [propertyName: string]: GraphParameter }} [graphParameters] The - * collection of global parameters for the graph, given as a global parameter - * name to GraphParameter map. Each parameter here has a 1:1 match with the - * global parameters values map declared at the WebServiceProperties level. + * The collection of global parameters for the graph, given as a global parameter name to + * GraphParameter map. Each parameter here has a 1:1 match with the global parameters values map + * declared at the WebServiceProperties level. */ graphParameters?: { [propertyName: string]: GraphParameter }; } /** - * @interface - * An interface representing WebServicePropertiesForGraph. * Properties specific to a Graph based web service. - * */ export interface WebServicePropertiesForGraph { /** - * @member {string} packageType Polymorphic Discriminator + * Polymorphic Discriminator */ packageType: "Graph"; /** - * @member {string} [title] The title of the web service. + * The title of the web service. */ title?: string; /** - * @member {string} [description] The description of the web service. + * The description of the web service. */ description?: string; /** - * @member {Date} [createdOn] Read Only: The date and time when the web - * service was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The date and time when the web service was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] Read Only: The date and time when the web - * service was last modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The date and time when the web service was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {ProvisioningState} [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' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The provision state of the web service. Valid values are Unknown, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Provisioning', 'Succeeded', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {WebServiceKeys} [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. + * 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. */ keys?: WebServiceKeys; /** - * @member {boolean} [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. + * 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. */ readOnly?: boolean; /** - * @member {string} [swaggerLocation] Read Only: Contains the URI of the - * swagger spec associated with this web service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: Contains the URI of the swagger spec associated with this web service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly swaggerLocation?: string; /** - * @member {boolean} [exposeSampleData] When set to true, sample data is - * included in the web service's swagger definition. The default value is - * true. + * When set to true, sample data is included in the web service's swagger definition. The default + * value is true. */ exposeSampleData?: boolean; /** - * @member {RealtimeConfiguration} [realtimeConfiguration] Contains the - * configuration settings for the web service endpoint. + * Contains the configuration settings for the web service endpoint. */ realtimeConfiguration?: RealtimeConfiguration; /** - * @member {DiagnosticsConfiguration} [diagnostics] Settings controlling the - * diagnostics traces collection for the web service. + * Settings controlling the diagnostics traces collection for the web service. */ diagnostics?: DiagnosticsConfiguration; /** - * @member {StorageAccount} [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. + * 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. */ storageAccount?: StorageAccount; /** - * @member {MachineLearningWorkspace} [machineLearningWorkspace] Specifies - * the Machine Learning workspace containing the experiment that is source - * for the web service. + * Specifies the Machine Learning workspace containing the experiment that is source for the web + * service. */ machineLearningWorkspace?: MachineLearningWorkspace; /** - * @member {CommitmentPlan} [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. + * 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. */ commitmentPlan?: CommitmentPlan; /** - * @member {ServiceInputOutputSpecification} [input] Contains the Swagger 2.0 - * schema describing one or more of the web service's inputs. For more + * Contains the Swagger 2.0 schema describing one or more of the web service's inputs. For more * information, see the Swagger specification. */ input?: ServiceInputOutputSpecification; /** - * @member {ServiceInputOutputSpecification} [output] Contains the Swagger - * 2.0 schema describing one or more of the web service's outputs. For more + * Contains the Swagger 2.0 schema describing one or more of the web service's outputs. For more * information, see the Swagger specification. */ output?: ServiceInputOutputSpecification; /** - * @member {ExampleRequest} [exampleRequest] Defines sample input data for - * one or more of the service's inputs. + * Defines sample input data for one or more of the service's inputs. */ exampleRequest?: ExampleRequest; /** - * @member {{ [propertyName: string]: AssetItem }} [assets] Contains user - * defined properties describing web service assets. Properties are expressed - * as Key/Value pairs. + * Contains user defined properties describing web service assets. Properties are expressed as + * Key/Value pairs. */ assets?: { [propertyName: string]: AssetItem }; /** - * @member {{ [propertyName: string]: WebServiceParameter }} [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. + * 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. */ parameters?: { [propertyName: string]: WebServiceParameter }; /** - * @member {boolean} [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. + * 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. */ payloadsInBlobStorage?: boolean; /** - * @member {BlobLocation} [payloadsLocation] 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; /** - * @member {GraphPackage} [packageProperty] The definition of the graph - * package making up this web service. + * The definition of the graph package making up this web service. */ packageProperty?: GraphPackage; } /** - * @interface - * An interface representing AsyncOperationErrorInfo. * The error detail information for async operation - * */ export interface AsyncOperationErrorInfo { /** - * @member {string} [code] The error code. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly code?: string; /** - * @member {string} [target] The error target. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly target?: string; /** - * @member {string} [message] The error message. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; /** - * @member {AsyncOperationErrorInfo[]} [details] An array containing error - * information. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * An array containing error information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: AsyncOperationErrorInfo[]; } /** - * @interface - * An interface representing AsyncOperationStatus. * Azure async operation status. - * */ export interface AsyncOperationStatus { /** - * @member {string} [id] Async operation id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Async operation id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Async operation name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Async operation name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {ProvisioningState} [provisioningState] Read Only: The - * provisioning state of the web service. Valid values are Unknown, - * Provisioning, Succeeded, and Failed. Possible values include: 'Unknown', - * 'Provisioning', 'Succeeded', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Read Only: The provisioning state of the web service. Valid values are Unknown, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Provisioning', 'Succeeded', + * 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {Date} [startTime] The date time that the async operation started. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date time that the async operation started. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly startTime?: Date; /** - * @member {Date} [endTime] The date time that the async operation finished. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date time that the async operation finished. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly endTime?: Date; /** - * @member {number} [percentComplete] Async operation progress. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Async operation progress. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly percentComplete?: number; /** - * @member {AsyncOperationErrorInfo} [errorInfo] If the async operation - * fails, this structure contains the error details. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * If the async operation fails, this structure contains the error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly errorInfo?: AsyncOperationErrorInfo; } /** - * @interface - * An interface representing OperationDisplayInfo. * The API operation info. - * */ export interface OperationDisplayInfo { /** - * @member {string} [description] The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; /** - * @member {string} [operation] The action that users can perform, based on - * their permission level. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The action that users can perform, based on their permission level. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly operation?: string; /** - * @member {string} [provider] The service provider. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The service provider. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provider?: string; /** - * @member {string} [resource] The resource on which the operation is - * performed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource on which the operation is performed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resource?: string; } /** - * @interface - * An interface representing OperationEntity. * An API operation. - * */ export interface OperationEntity { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Operation name: {provider}/{resource}/{operation}. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {OperationDisplayInfo} [display] The API operation info. + * The API operation info. */ display?: OperationDisplayInfo; } /** - * @interface - * An interface representing WebServicesGetOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WebServicesGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [region] The region for which encrypted credential - * parameters are valid. + * The region for which encrypted credential parameters are valid. */ region?: string; } /** - * @interface - * An interface representing WebServicesListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WebServicesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Continuation token for pagination. + * Continuation token for pagination. */ skiptoken?: string; } /** - * @interface - * An interface representing WebServicesListBySubscriptionIdOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WebServicesListBySubscriptionIdOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Continuation token for pagination. + * Continuation token for pagination. */ skiptoken?: string; } /** - * @interface * An interface representing AzureMLWebServicesManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface AzureMLWebServicesManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationEntityListResult. * The list of REST API operations. - * * @extends Array */ export interface OperationEntityListResult extends Array { @@ -1088,15 +891,12 @@ export interface OperationEntityListResult extends Array { /** * @interface - * An interface representing the PaginatedWebServicesList. * Paginated list of web services. - * * @extends Array */ export interface PaginatedWebServicesList extends Array { /** - * @member {string} [nextLink] A continuation link (absolute URI) to the next - * page of results in the list. + * A continuation link (absolute URI) to the next page of results in the list. */ nextLink?: string; } @@ -1180,6 +980,7 @@ export type OperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1199,6 +1000,7 @@ export type WebServicesCreateOrUpdateResponse = WebService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1218,6 +1020,7 @@ export type WebServicesGetResponse = WebService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1237,6 +1040,7 @@ export type WebServicesPatchResponse = WebService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1256,6 +1060,7 @@ export type WebServicesCreateRegionalPropertiesResponse = AsyncOperationStatus & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1275,6 +1080,7 @@ export type WebServicesListKeysResponse = WebServiceKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1294,6 +1100,7 @@ export type WebServicesListByResourceGroupResponse = PaginatedWebServicesList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1313,6 +1120,7 @@ export type WebServicesListBySubscriptionIdResponse = PaginatedWebServicesList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1332,6 +1140,7 @@ export type WebServicesBeginCreateOrUpdateResponse = WebService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1351,6 +1160,7 @@ export type WebServicesBeginPatchResponse = WebService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1370,6 +1180,7 @@ export type WebServicesBeginCreateRegionalPropertiesResponse = AsyncOperationSta * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1389,6 +1200,7 @@ export type WebServicesListByResourceGroupNextResponse = PaginatedWebServicesLis * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1408,6 +1220,7 @@ export type WebServicesListBySubscriptionIdNextResponse = PaginatedWebServicesLi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/machinelearning/arm-webservices/src/models/mappers.ts b/sdk/machinelearning/arm-webservices/src/models/mappers.ts index 0a16b3dc5540..c872b66d2871 100644 --- a/sdk/machinelearning/arm-webservices/src/models/mappers.ts +++ b/sdk/machinelearning/arm-webservices/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -63,6 +61,55 @@ export const Resource: msRest.CompositeMapper = { } }; +export const PatchedResource: msRest.CompositeMapper = { + serializedName: "PatchedResource", + type: { + name: "Composite", + className: "PatchedResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const WebServiceKeys: msRest.CompositeMapper = { serializedName: "WebServiceKeys", type: { @@ -782,6 +829,24 @@ export const WebService: msRest.CompositeMapper = { } }; +export const PatchedWebService: msRest.CompositeMapper = { + serializedName: "PatchedWebService", + type: { + name: "Composite", + className: "PatchedWebService", + modelProperties: { + ...PatchedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WebServiceProperties" + } + } + } + } +}; + export const GraphNode: msRest.CompositeMapper = { serializedName: "GraphNode", type: { @@ -1202,4 +1267,5 @@ export const PaginatedWebServicesList: msRest.CompositeMapper = { export const discriminators = { 'WebServiceProperties' : WebServiceProperties, 'WebServiceProperties.Graph' : WebServicePropertiesForGraph + }; diff --git a/sdk/machinelearning/arm-webservices/src/models/operationsMappers.ts b/sdk/machinelearning/arm-webservices/src/models/operationsMappers.ts index abbcf40ad4b3..cafd02e8a5f7 100644 --- a/sdk/machinelearning/arm-webservices/src/models/operationsMappers.ts +++ b/sdk/machinelearning/arm-webservices/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - OperationEntityListResult, - OperationEntity, + CloudError, OperationDisplayInfo, - CloudError + OperationEntity, + OperationEntityListResult } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-webservices/src/models/webServicesMappers.ts b/sdk/machinelearning/arm-webservices/src/models/webServicesMappers.ts index e72764b2cc2b..6fc5796f2cb6 100644 --- a/sdk/machinelearning/arm-webservices/src/models/webServicesMappers.ts +++ b/sdk/machinelearning/arm-webservices/src/models/webServicesMappers.ts @@ -1,45 +1,44 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - WebService, - Resource, + AssetItem, + AsyncOperationErrorInfo, + AsyncOperationStatus, BaseResource, - WebServiceProperties, - WebServiceKeys, - RealtimeConfiguration, - DiagnosticsConfiguration, - StorageAccount, - MachineLearningWorkspace, - CommitmentPlan, - ServiceInputOutputSpecification, - TableSpecification, + BlobLocation, + CloudError, ColumnSpecification, + CommitmentPlan, + DiagnosticsConfiguration, ExampleRequest, - AssetItem, - BlobLocation, + GraphEdge, + GraphNode, + GraphPackage, + GraphParameter, + GraphParameterLink, InputPort, - OutputPort, - ModuleAssetParameter, + MachineLearningWorkspace, ModeValueInfo, - WebServiceParameter, - CloudError, - AsyncOperationStatus, - AsyncOperationErrorInfo, + ModuleAssetParameter, + OutputPort, PaginatedWebServicesList, - WebServicePropertiesForGraph, - GraphPackage, - GraphNode, - GraphEdge, - GraphParameter, - GraphParameterLink + PatchedResource, + PatchedWebService, + RealtimeConfiguration, + Resource, + ServiceInputOutputSpecification, + StorageAccount, + TableSpecification, + WebService, + WebServiceKeys, + WebServiceParameter, + WebServiceProperties, + WebServicePropertiesForGraph } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-webservices/src/operations/webServices.ts b/sdk/machinelearning/arm-webservices/src/operations/webServices.ts index 6d961d7f23c0..cd0ebab2e9a5 100644 --- a/sdk/machinelearning/arm-webservices/src/operations/webServices.ts +++ b/sdk/machinelearning/arm-webservices/src/operations/webServices.ts @@ -85,7 +85,7 @@ export class WebServices { * @param [options] The optional parameters * @returns Promise */ - patch(resourceGroupName: string, webServiceName: string, patchPayload: Models.WebService, options?: msRest.RequestOptionsBase): Promise { + patch(resourceGroupName: string, webServiceName: string, patchPayload: Models.PatchedWebService, options?: msRest.RequestOptionsBase): Promise { return this.beginPatch(resourceGroupName,webServiceName,patchPayload,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -234,7 +234,7 @@ export class WebServices { * @param [options] The optional parameters * @returns Promise */ - beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: Models.WebService, options?: msRest.RequestOptionsBase): Promise { + beginPatch(resourceGroupName: string, webServiceName: string, patchPayload: Models.PatchedWebService, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -499,7 +499,7 @@ const beginPatchOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "patchPayload", mapper: { - ...Mappers.WebService, + ...Mappers.PatchedWebService, required: true } }, diff --git a/sdk/machinelearning/arm-webservices/tsconfig.json b/sdk/machinelearning/arm-webservices/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/machinelearning/arm-webservices/tsconfig.json +++ b/sdk/machinelearning/arm-webservices/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true