From 01fe1ee2285b2283b534fe25a45fb69731589976 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 1 Nov 2019 08:11:42 +0000 Subject: [PATCH] Generated from 27d5fcbffb59163e5aeda0e779ecd92fff5ae415 add clear-output-folder in resource-manager readme.typescript.md to fix js sdk build failure --- .../arm-commitmentplans/LICENSE.txt | 2 +- .../arm-commitmentplans/README.md | 20 +- .../arm-commitmentplans/package.json | 24 +- .../arm-commitmentplans/rollup.config.js | 22 +- .../azureMLCommitmentPlansManagementClient.ts | 2 + ...LCommitmentPlansManagementClientContext.ts | 2 +- .../models/commitmentAssociationsMappers.ts | 15 +- .../src/models/commitmentPlansMappers.ts | 23 +- .../arm-commitmentplans/src/models/index.ts | 487 ++++++++---------- .../arm-commitmentplans/src/models/mappers.ts | 91 +++- .../src/models/operationsMappers.ts | 14 + .../src/models/skusMappers.ts | 15 +- .../src/models/usageHistoryMappers.ts | 11 +- .../src/operations/index.ts | 1 + .../src/operations/operations.ts | 74 +++ .../arm-commitmentplans/tsconfig.json | 2 +- 16 files changed, 448 insertions(+), 357 deletions(-) create mode 100644 sdk/machinelearning/arm-commitmentplans/src/models/operationsMappers.ts create mode 100644 sdk/machinelearning/arm-commitmentplans/src/operations/operations.ts diff --git a/sdk/machinelearning/arm-commitmentplans/LICENSE.txt b/sdk/machinelearning/arm-commitmentplans/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/machinelearning/arm-commitmentplans/LICENSE.txt +++ b/sdk/machinelearning/arm-commitmentplans/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-commitmentplans/README.md b/sdk/machinelearning/arm-commitmentplans/README.md index 112f495b9963..9daf5732bedc 100644 --- a/sdk/machinelearning/arm-commitmentplans/README.md +++ b/sdk/machinelearning/arm-commitmentplans/README.md @@ -9,23 +9,24 @@ This package contains an isomorphic SDK for AzureMLCommitmentPlansManagementClie ### How to Install -``` +```bash npm install @azure/arm-commitmentplans ``` ### How to use -#### nodejs - Authentication, client creation and list skus as an example written in TypeScript. +#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. ##### 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"; @@ -34,7 +35,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new AzureMLCommitmentPlansManagementClient(creds, subscriptionId); - client.skus.list().then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }); @@ -43,11 +44,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and list skus as an example written in JavaScript. +#### browser - Authentication, client creation and list operations as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -77,7 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmCommitmentplans.AzureMLCommitmentPlansManagementClient(res.creds, subscriptionId); - client.skus.list().then((result) => { + client.operations.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -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-commitmentplans/README.png) diff --git a/sdk/machinelearning/arm-commitmentplans/package.json b/sdk/machinelearning/arm-commitmentplans/package.json index f76a6e64b04d..e62429dbfbc7 100644 --- a/sdk/machinelearning/arm-commitmentplans/package.json +++ b/sdk/machinelearning/arm-commitmentplans/package.json @@ -4,9 +4,9 @@ "description": "AzureMLCommitmentPlansManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "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/azureMLCommitmentPlansManagementClient.js", "types": "./esm/azureMLCommitmentPlansManagementClient.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/machinelearning/arm-commitmentplans", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearning/arm-commitmentplans", "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-commitmentplans/rollup.config.js b/sdk/machinelearning/arm-commitmentplans/rollup.config.js index 226323b9807f..e759dee136b7 100644 --- a/sdk/machinelearning/arm-commitmentplans/rollup.config.js +++ b/sdk/machinelearning/arm-commitmentplans/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/azureMLCommitmentPlansManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureMLCommitmentPlansManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-commitmentplans.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-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts index a1fc34d00224..1cac73685914 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClient.ts @@ -17,6 +17,7 @@ import { AzureMLCommitmentPlansManagementClientContext } from "./azureMLCommitme class AzureMLCommitmentPlansManagementClient extends AzureMLCommitmentPlansManagementClientContext { // Operation groups + operations: operations.Operations; skus: operations.Skus; commitmentAssociations: operations.CommitmentAssociations; commitmentPlans: operations.CommitmentPlans; @@ -30,6 +31,7 @@ class AzureMLCommitmentPlansManagementClient extends AzureMLCommitmentPlansManag */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMLCommitmentPlansManagementClientOptions) { super(credentials, subscriptionId, options); + 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/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts index 3293f19add9d..98133a105fb8 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/azureMLCommitmentPlansManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-commitmentplans"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class AzureMLCommitmentPlansManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/commitmentAssociationsMappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/commitmentAssociationsMappers.ts index 9c35807a84b3..85a1ca2b7eb7 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/commitmentAssociationsMappers.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/models/commitmentAssociationsMappers.ts @@ -1,24 +1,21 @@ /* * 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 { - CommitmentAssociation, - Resource, BaseResource, - CommitmentAssociationProperties, CloudError, + CommitmentAssociation, CommitmentAssociationListResult, - MoveCommitmentAssociationRequest, + CommitmentAssociationProperties, CommitmentPlan, CommitmentPlanProperties, + MoveCommitmentAssociationRequest, PlanQuantity, + Resource, ResourceSku } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/commitmentPlansMappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/commitmentPlansMappers.ts index 54bd9f0cc132..59e95cf9c3cd 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/commitmentPlansMappers.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/models/commitmentPlansMappers.ts @@ -1,24 +1,21 @@ /* * 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 { - CommitmentPlan, - Resource, BaseResource, - CommitmentPlanProperties, - PlanQuantity, - ResourceSku, CloudError, - CommitmentPlanPatchPayload, - CommitmentPlanListResult, CommitmentAssociation, - CommitmentAssociationProperties + CommitmentAssociationProperties, + CommitmentPlan, + CommitmentPlanListResult, + CommitmentPlanPatchPayload, + CommitmentPlanProperties, + PlanQuantity, + Resource, + ResourceSku } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/index.ts b/sdk/machinelearning/arm-commitmentplans/src/models/index.ts index 743d98989904..9dfac6030624 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/index.ts +++ b/sdk/machinelearning/arm-commitmentplans/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,591 +11,486 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing SkuCapacity. * Describes scaling information of a SKU. - * */ export interface SkuCapacity { /** - * @member {number} [minimum] The minimum capacity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The minimum capacity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly minimum?: number; /** - * @member {number} [maximum] The maximum capacity that can be set. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The maximum capacity that can be set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maximum?: number; /** - * @member {number} [default] The default capacity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The default capacity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly default?: number; /** - * @member {SkuCapacityScaleType} [scaleType] The scale type applicable to - * the sku. Possible values include: 'Automatic', 'Manual', 'None' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The scale type applicable to the sku. Possible values include: 'Automatic', 'Manual', 'None' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scaleType?: SkuCapacityScaleType; } /** - * @interface - * An interface representing SkuCapability. - * Describes The SKU capabilites object. - * + * Describes The SKU capabilities object. */ export interface SkuCapability { /** - * @member {string} [name] The capability name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The capability name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [value] The capability value. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The capability value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly value?: string; } /** - * @interface - * An interface representing SkuCost. * Describes metadata for SKU cost info. - * */ export interface SkuCost { /** - * @member {string} [meterID] The meter used for this part of a SKU's cost. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The meter used for this part of a SKU's cost. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterID?: string; /** - * @member {number} [quantity] The multiplier for the meter ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The multiplier for the meter ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly quantity?: number; /** - * @member {string} [extendedUnit] The overall duration represented by the - * quantity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The overall duration represented by the quantity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly extendedUnit?: string; } /** - * @interface - * An interface representing SkuRestrictions. * Describes restrictions which would prevent a SKU from being used. - * */ export interface SkuRestrictions { /** - * @member {ResourceSkuRestrictionsType} [type] The type of restrictions. - * Possible values include: 'location', 'zone' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of restrictions. Possible values include: 'location', 'zone' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: ResourceSkuRestrictionsType; /** - * @member {string[]} [values] The value of restrictions. If the restriction - * type is set to location. This would be different locations where the SKU - * is restricted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The value of restrictions. If the restriction type is set to location. This would be different + * locations where the SKU is restricted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly values?: string[]; /** - * @member {ResourceSkuRestrictionsReasonCode} [reasonCode] The reason for - * restriction. Possible values include: 'QuotaId', - * 'NotAvailableForSubscription' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The reason for restriction. Possible values include: 'QuotaId', 'NotAvailableForSubscription' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly reasonCode?: ResourceSkuRestrictionsReasonCode; } /** - * @interface - * An interface representing CatalogSku. * Details of a commitment plan SKU. - * */ export interface CatalogSku { /** - * @member {string} [resourceType] Resource type name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceType?: string; /** - * @member {string} [name] SKU name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * SKU name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [tier] SKU tier - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * SKU tier + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tier?: string; /** - * @member {string[]} [locations] Regions where the SKU is available. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Regions where the SKU is available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly locations?: string[]; /** - * @member {SkuCapacity} [capacity] SKU scaling information - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * SKU scaling information + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly capacity?: SkuCapacity; /** - * @member {SkuCapability[]} [capabilities] The capability information for - * the specified SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The capability information for the specified SKU. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly capabilities?: SkuCapability[]; /** - * @member {SkuCost[]} [costs] The cost information for the specified SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The cost information for the specified SKU. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly costs?: SkuCost[]; /** - * @member {SkuRestrictions[]} [restrictions] Restrictions which would - * prevent a SKU from being used. This is empty if there are no restrictions. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Restrictions which would prevent a SKU from being used. This is empty if there are no + * restrictions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly restrictions?: SkuRestrictions[]; } /** - * @interface - * An interface representing Resource. * Common properties of an ARM resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} location Resource location. + * Resource location. */ location: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {{ [propertyName: string]: string }} [tags] User-defined tags for - * the resource. + * User-defined tags for the resource. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing CommitmentAssociationProperties. * Properties of an Azure ML commitment association. - * */ export interface CommitmentAssociationProperties { /** - * @member {string} [associatedResourceId] The ID of the resource this - * association points to, such as the ARM ID of an Azure ML web service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ID of the resource this association points to, such as the ARM ID of an Azure ML web + * service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly associatedResourceId?: string; /** - * @member {string} [commitmentPlanId] The ARM ID of the parent Azure ML - * commitment plan. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ARM ID of the parent Azure ML commitment plan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly commitmentPlanId?: string; /** - * @member {Date} [creationDate] The date at which this commitment - * association was created, in ISO 8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date at which this commitment association was created, in ISO 8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly creationDate?: Date; } /** - * @interface - * An interface representing CommitmentAssociation. - * Represents the association between a commitment plan and some other - * resource, such as a Machine Learning web service. - * - * @extends Resource + * Represents the association between a commitment plan and some other resource, such as a Machine + * Learning web service. */ export interface CommitmentAssociation extends Resource { /** - * @member {string} [etag] An entity tag used to enforce optimistic - * concurrency. + * An entity tag used to enforce optimistic concurrency. */ etag?: string; /** - * @member {CommitmentAssociationProperties} [properties] The properties of - * the commitment association resource. + * The properties of the commitment association resource. */ properties?: CommitmentAssociationProperties; } /** - * @interface - * An interface representing ResourceSku. * The SKU of a resource. - * */ export interface ResourceSku { /** - * @member {number} [capacity] The scale-out capacity of the resource. 1 is - * 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment - * plan resource. + * The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and + * cost of any commitment plan resource. */ capacity?: number; /** - * @member {string} [name] The SKU name. Along with tier, uniquely identifies - * the SKU. + * The SKU name. Along with tier, uniquely identifies the SKU. */ name?: string; /** - * @member {string} [tier] The SKU tier. Along with name, uniquely identifies - * the SKU. + * The SKU tier. Along with name, uniquely identifies the SKU. */ tier?: string; } /** - * @interface - * An interface representing MoveCommitmentAssociationRequest. * Specifies the destination Azure ML commitment plan for a move operation. - * */ export interface MoveCommitmentAssociationRequest { /** - * @member {string} [destinationPlanId] The ARM ID of the commitment plan to - * re-parent the commitment association to. + * The ARM ID of the commitment plan to re-parent the commitment association to. */ destinationPlanId?: string; } /** - * @interface - * An interface representing CommitmentPlanPatchPayload. * The properties of a commitment plan which may be updated via PATCH. - * */ export interface CommitmentPlanPatchPayload { /** - * @member {{ [propertyName: string]: string }} [tags] User-defined tags for - * the commitment plan. + * User-defined tags for the commitment plan. */ tags?: { [propertyName: string]: string }; /** - * @member {ResourceSku} [sku] The commitment plan SKU. + * The commitment plan SKU. */ sku?: ResourceSku; } /** - * @interface - * An interface representing PlanQuantity. * Represents the quantity a commitment plan provides of a metered resource. - * */ export interface PlanQuantity { /** - * @member {number} [allowance] The quantity added to the commitment plan at - * an interval specified by its allowance frequency. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The quantity added to the commitment plan at an interval specified by its allowance frequency. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly allowance?: number; /** - * @member {number} [amount] The quantity available to the plan the last time - * usage was calculated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The quantity available to the plan the last time usage was calculated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly amount?: number; /** - * @member {string} [includedQuantityMeter] The Azure meter for usage against - * included quantities. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Azure meter for usage against included quantities. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly includedQuantityMeter?: string; /** - * @member {string} [overageMeter] The Azure meter for usage which exceeds - * included quantities. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Azure meter for usage which exceeds included quantities. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly overageMeter?: string; } /** - * @interface - * An interface representing CommitmentPlanProperties. * Properties of an Azure ML commitment plan. - * */ export interface CommitmentPlanProperties { /** - * @member {boolean} [chargeForOverage] Indicates whether usage beyond the - * commitment plan's included quantities will be charged. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Indicates whether usage beyond the commitment plan's included quantities will be charged. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chargeForOverage?: boolean; /** - * @member {boolean} [chargeForPlan] Indicates whether the commitment plan - * will incur a charge. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Indicates whether the commitment plan will incur a charge. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly chargeForPlan?: boolean; /** - * @member {Date} [creationDate] The date at which this commitment plan was - * created, in ISO 8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date at which this commitment plan was created, in ISO 8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly creationDate?: Date; /** - * @member {{ [propertyName: string]: PlanQuantity }} [includedQuantities] * The included resource quantities this plan gives you. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly includedQuantities?: { [propertyName: string]: PlanQuantity }; /** - * @member {number} [maxAssociationLimit] The maximum number of commitment - * associations that can be children of this commitment plan. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The maximum number of commitment associations that can be children of this commitment plan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxAssociationLimit?: number; /** - * @member {number} [maxCapacityLimit] The maximum scale-out capacity for - * this commitment plan. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The maximum scale-out capacity for this commitment plan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxCapacityLimit?: number; /** - * @member {number} [minCapacityLimit] The minimum scale-out capacity for - * this commitment plan. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The minimum scale-out capacity for this commitment plan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly minCapacityLimit?: number; /** - * @member {string} [planMeter] The Azure meter which will be used to charge - * for this commitment plan. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Azure meter which will be used to charge for this commitment plan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly planMeter?: string; /** - * @member {number} [refillFrequencyInDays] The frequency at which this - * commitment plan's included quantities are refilled. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The frequency at which this commitment plan's included quantities are refilled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly refillFrequencyInDays?: number; /** - * @member {boolean} [suspendPlanOnOverage] Indicates whether this commitment - * plan will be moved into a suspended state if usage goes beyond the - * commitment plan's included quantities. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Indicates whether this commitment plan will be moved into a suspended state if usage goes + * beyond the commitment plan's included quantities. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly suspendPlanOnOverage?: boolean; } /** - * @interface - * An interface representing CommitmentPlan. * An Azure ML commitment plan resource. - * - * @extends Resource */ export interface CommitmentPlan extends Resource { /** - * @member {string} [etag] An entity tag used to enforce optimistic - * concurrency. + * An entity tag used to enforce optimistic concurrency. */ etag?: string; /** - * @member {CommitmentPlanProperties} [properties] The commitment plan - * properties. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The commitment plan properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly properties?: CommitmentPlanProperties; /** - * @member {ResourceSku} [sku] The commitment plan SKU. + * The commitment plan SKU. */ sku?: ResourceSku; } /** - * @interface - * An interface representing PlanUsageHistory. - * Represents historical information about usage of the Azure resources - * associated with a commitment plan. - * + * Represents historical information about usage of the Azure resources associated with a + * commitment plan. */ export interface PlanUsageHistory { /** - * @member {{ [propertyName: string]: number }} [planDeletionOverage] Overage - * incurred as a result of deleting a commitment plan. + * Overage incurred as a result of deleting a commitment plan. */ planDeletionOverage?: { [propertyName: string]: number }; /** - * @member {{ [propertyName: string]: number }} [planMigrationOverage] - * Overage incurred as a result of migrating a commitment plan from one SKU - * to another. + * Overage incurred as a result of migrating a commitment plan from one SKU to another. */ planMigrationOverage?: { [propertyName: string]: number }; /** - * @member {{ [propertyName: string]: number }} [planQuantitiesAfterUsage] - * Included quantities remaining after usage against the commitment plan's - * associated resources was calculated. + * Included quantities remaining after usage against the commitment plan's associated resources + * was calculated. */ planQuantitiesAfterUsage?: { [propertyName: string]: number }; /** - * @member {{ [propertyName: string]: number }} [planQuantitiesBeforeUsage] - * Included quantities remaining before usage against the commitment plan's - * associated resources was calculated. + * Included quantities remaining before usage against the commitment plan's associated resources + * was calculated. */ planQuantitiesBeforeUsage?: { [propertyName: string]: number }; /** - * @member {{ [propertyName: string]: number }} [planUsageOverage] Usage - * against the commitment plan's associated resources which was not covered - * by included quantities and is therefore overage. + * Usage against the commitment plan's associated resources which was not covered by included + * quantities and is therefore overage. */ planUsageOverage?: { [propertyName: string]: number }; /** - * @member {{ [propertyName: string]: number }} [usage] Usage against the - * commitment plan's associated resources. + * Usage against the commitment plan's associated resources. */ usage?: { [propertyName: string]: number }; /** - * @member {Date} [usageDate] The date of usage, in ISO 8601 format. + * The date of usage, in ISO 8601 format. */ usageDate?: Date; } /** - * @interface - * An interface representing CommitmentAssociationsListOptionalParams. + * The API operation info. + */ +export interface OperationDisplayInfo { + /** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * 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; + /** + * The service provider. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * 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; +} + +/** + * An API operation. + */ +export interface OperationEntity { + /** + * Operation name: {provider}/{resource}/{operation}. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The API operation info. + */ + display?: OperationDisplayInfo; +} + +/** * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface CommitmentAssociationsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] Continuation token for pagination. + * Continuation token for pagination. */ skipToken?: string; } /** - * @interface - * An interface representing CommitmentPlansListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface CommitmentPlansListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] Continuation token for pagination. + * Continuation token for pagination. */ skipToken?: string; } /** - * @interface - * An interface representing CommitmentPlansListInResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface CommitmentPlansListInResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] Continuation token for pagination. + * Continuation token for pagination. */ skipToken?: string; } /** - * @interface - * An interface representing UsageHistoryListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface UsageHistoryListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skipToken] Continuation token for pagination. + * Continuation token for pagination. */ skipToken?: string; } /** - * @interface * An interface representing AzureMLCommitmentPlansManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface AzureMLCommitmentPlansManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } +/** + * @interface + * The list of REST API operations. + * @extends Array + */ +export interface OperationEntityListResult extends Array { +} /** * @interface - * An interface representing the SkuListResult. * The list of commitment plan SKUs. - * * @extends Array */ export interface SkuListResult extends Array { @@ -605,42 +498,36 @@ export interface SkuListResult extends Array { /** * @interface - * An interface representing the CommitmentAssociationListResult. * A page of commitment association resources. - * * @extends Array */ export interface CommitmentAssociationListResult extends Array { /** - * @member {string} [nextLink] A URI to retrieve the next page of results. + * A URI to retrieve the next page of results. */ nextLink?: string; } /** * @interface - * An interface representing the CommitmentPlanListResult. * A page of commitment plan resources. - * * @extends Array */ export interface CommitmentPlanListResult extends Array { /** - * @member {string} [nextLink] A URI to retrieve the next page of results. + * A URI to retrieve the next page of results. */ nextLink?: string; } /** * @interface - * An interface representing the PlanUsageHistoryListResult. * A page of usage history. - * * @extends Array */ export interface PlanUsageHistoryListResult extends Array { /** - * @member {string} [nextLink] A URI to retrieve the next page of results. + * A URI to retrieve the next page of results. */ nextLink?: string; } @@ -669,6 +556,26 @@ export type ResourceSkuRestrictionsType = 'location' | 'zone'; */ export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationEntityListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationEntityListResult; + }; +}; + /** * Contains response data for the list operation. */ @@ -681,6 +588,7 @@ export type SkusListResponse = SkuListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -700,6 +608,7 @@ export type CommitmentAssociationsGetResponse = CommitmentAssociation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -719,6 +628,7 @@ export type CommitmentAssociationsListResponse = CommitmentAssociationListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -738,6 +648,7 @@ export type CommitmentAssociationsMoveResponse = CommitmentAssociation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -757,6 +668,7 @@ export type CommitmentAssociationsListNextResponse = CommitmentAssociationListRe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -776,6 +688,7 @@ export type CommitmentPlansGetResponse = CommitmentPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -795,6 +708,7 @@ export type CommitmentPlansCreateOrUpdateResponse = CommitmentPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -814,6 +728,7 @@ export type CommitmentPlansPatchResponse = CommitmentPlan & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -833,6 +748,7 @@ export type CommitmentPlansListResponse = CommitmentPlanListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -852,6 +768,7 @@ export type CommitmentPlansListInResourceGroupResponse = CommitmentPlanListResul * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -871,6 +788,7 @@ export type CommitmentPlansListNextResponse = CommitmentPlanListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -890,6 +808,7 @@ export type CommitmentPlansListInResourceGroupNextResponse = CommitmentPlanListR * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -909,6 +828,7 @@ export type UsageHistoryListResponse = PlanUsageHistoryListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -928,6 +848,7 @@ export type UsageHistoryListNextResponse = PlanUsageHistoryListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/mappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/mappers.ts index 544de96c3b7a..95f094c7a61f 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/mappers.ts +++ b/sdk/machinelearning/arm-commitmentplans/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"; @@ -647,6 +645,91 @@ export const PlanUsageHistory: msRest.CompositeMapper = { } }; +export const OperationDisplayInfo: msRest.CompositeMapper = { + serializedName: "OperationDisplayInfo", + type: { + name: "Composite", + className: "OperationDisplayInfo", + modelProperties: { + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + }, + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + +export const OperationEntity: msRest.CompositeMapper = { + serializedName: "OperationEntity", + type: { + name: "Composite", + className: "OperationEntity", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplayInfo" + } + } + } + } +}; + +export const OperationEntityListResult: msRest.CompositeMapper = { + serializedName: "OperationEntityListResult", + type: { + name: "Composite", + className: "OperationEntityListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationEntity" + } + } + } + } + } + } +}; + export const SkuListResult: msRest.CompositeMapper = { serializedName: "SkuListResult", type: { diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/operationsMappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/operationsMappers.ts new file mode 100644 index 000000000000..c83dbeabcc21 --- /dev/null +++ b/sdk/machinelearning/arm-commitmentplans/src/models/operationsMappers.ts @@ -0,0 +1,14 @@ +/* + * 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. + */ + +export { + CloudError, + OperationDisplayInfo, + OperationEntity, + OperationEntityListResult +} from "../models/mappers"; diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/skusMappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/skusMappers.ts index 0e4136b64a38..1889a329d6b1 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/skusMappers.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/models/skusMappers.ts @@ -1,20 +1,17 @@ /* * 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 { - SkuListResult, CatalogSku, - SkuCapacity, + CloudError, SkuCapability, + SkuCapacity, SkuCost, - SkuRestrictions, - CloudError + SkuListResult, + SkuRestrictions } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-commitmentplans/src/models/usageHistoryMappers.ts b/sdk/machinelearning/arm-commitmentplans/src/models/usageHistoryMappers.ts index af96d4155b40..23ab32a338b3 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/models/usageHistoryMappers.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/models/usageHistoryMappers.ts @@ -1,16 +1,13 @@ /* * 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 { - PlanUsageHistoryListResult, + CloudError, PlanUsageHistory, - CloudError + PlanUsageHistoryListResult } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-commitmentplans/src/operations/index.ts b/sdk/machinelearning/arm-commitmentplans/src/operations/index.ts index 6ff850f6f24b..3ae74d27ac6d 100644 --- a/sdk/machinelearning/arm-commitmentplans/src/operations/index.ts +++ b/sdk/machinelearning/arm-commitmentplans/src/operations/index.ts @@ -8,6 +8,7 @@ * regenerated. */ +export * from "./operations"; export * from "./skus"; export * from "./commitmentAssociations"; export * from "./commitmentPlans"; diff --git a/sdk/machinelearning/arm-commitmentplans/src/operations/operations.ts b/sdk/machinelearning/arm-commitmentplans/src/operations/operations.ts new file mode 100644 index 000000000000..17ee14c124dd --- /dev/null +++ b/sdk/machinelearning/arm-commitmentplans/src/operations/operations.ts @@ -0,0 +1,74 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMLCommitmentPlansManagementClientContext } from "../azureMLCommitmentPlansManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: AzureMLCommitmentPlansManagementClientContext; + + /** + * Create a Operations. + * @param {AzureMLCommitmentPlansManagementClientContext} client Reference to the service client. + */ + constructor(client: AzureMLCommitmentPlansManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the available Azure Machine Learning Studio Commitment Plan RP REST API operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.MachineLearning/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationEntityListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/machinelearning/arm-commitmentplans/tsconfig.json b/sdk/machinelearning/arm-commitmentplans/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/machinelearning/arm-commitmentplans/tsconfig.json +++ b/sdk/machinelearning/arm-commitmentplans/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true