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..008d51cfcad5 100644 --- a/sdk/machinelearning/arm-commitmentplans/README.md +++ b/sdk/machinelearning/arm-commitmentplans/README.md @@ -9,23 +9,23 @@ 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 -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### 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 +34,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 +43,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 +77,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) => { @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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..35a7ed1530b3 100644 --- a/sdk/machinelearning/arm-commitmentplans/package.json +++ b/sdk/machinelearning/arm-commitmentplans/package.json @@ -4,8 +4,8 @@ "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", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/machinelearning/arm-commitmentplans", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -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..94b7254deb15 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({ module: true }), + 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-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..f5051fb3e44b 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,13 @@ npm install @azure/arm-webservices ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### 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 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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..40cc3b86ee3b 100644 --- a/sdk/machinelearning/arm-webservices/package.json +++ b/sdk/machinelearning/arm-webservices/package.json @@ -4,8 +4,8 @@ "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", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/webservices/arm-webservices", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -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..75f4ce4913d5 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({ module: true }), + 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-workspaces/LICENSE.txt b/sdk/machinelearning/arm-workspaces/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/machinelearning/arm-workspaces/LICENSE.txt +++ b/sdk/machinelearning/arm-workspaces/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-workspaces/README.md b/sdk/machinelearning/arm-workspaces/README.md index 040e03388cd8..ff06f4d2776a 100644 --- a/sdk/machinelearning/arm-workspaces/README.md +++ b/sdk/machinelearning/arm-workspaces/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for MachineLearningWorkspacesManagementC ### How to Install -``` +```bash npm install @azure/arm-workspaces ``` @@ -19,13 +19,13 @@ npm install @azure/arm-workspaces ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### 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 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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-workspaces/README.png) diff --git a/sdk/machinelearning/arm-workspaces/package.json b/sdk/machinelearning/arm-workspaces/package.json index 8ac05122b1cc..cd229a11b236 100644 --- a/sdk/machinelearning/arm-workspaces/package.json +++ b/sdk/machinelearning/arm-workspaces/package.json @@ -4,8 +4,8 @@ "description": "MachineLearningWorkspacesManagementClient 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", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/machinelearning/arm-workspaces", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -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-workspaces/rollup.config.js b/sdk/machinelearning/arm-workspaces/rollup.config.js index 026f43803d48..12a7a7616fe8 100644 --- a/sdk/machinelearning/arm-workspaces/rollup.config.js +++ b/sdk/machinelearning/arm-workspaces/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/machineLearningWorkspacesManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/machineLearningWorkspacesManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-workspaces.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({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/machinelearning/arm-workspaces/src/models/index.ts b/sdk/machinelearning/arm-workspaces/src/models/index.ts index da141d07fc59..23c4ba0d5270 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/index.ts +++ b/sdk/machinelearning/arm-workspaces/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,230 +11,173 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ErrorResponse. * The error response send when an operation fails. - * */ export interface ErrorResponse { /** - * @member {string} code error code + * error code */ code: string; /** - * @member {string} message error message + * error message */ message: string; } /** - * @interface - * An interface representing Resource. * An Azure resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] The resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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} [type] The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} location The location of the resource. This cannot be - * changed after the resource is created. + * The location of the resource. This cannot be changed after the resource is created. */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] The tags of the - * resource. + * The tags of the resource. */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Workspace. * An object that represents a machine learning workspace. - * - * @extends Resource */ export interface Workspace extends Resource { /** - * @member {string} userStorageAccountId The fully qualified arm id of the - * storage account associated with this workspace. + * The fully qualified arm id of the storage account associated with this workspace. */ userStorageAccountId: string; /** - * @member {string} [ownerEmail] The email id of the owner for this - * workspace. + * The email id of the owner for this workspace. */ ownerEmail?: string; /** - * @member {WorkspaceType} [workspaceType] The type of this workspace. - * Possible values include: 'Production', 'Free', 'Anonymous', + * The type of this workspace. Possible values include: 'Production', 'Free', 'Anonymous', * 'PaidStandard', 'PaidPremium' - * **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 workspaceType?: WorkspaceType; /** - * @member {WorkspaceState} [workspaceState] The current state of workspace - * resource. Possible values include: 'Deleted', 'Enabled', 'Disabled', - * 'Migrated', 'Updated', 'Registered', 'Unregistered' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current state of workspace resource. Possible values include: 'Deleted', 'Enabled', + * 'Disabled', 'Migrated', 'Updated', 'Registered', 'Unregistered' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly workspaceState?: WorkspaceState; /** - * @member {string} [workspaceId] The immutable id associated with this - * workspace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The immutable id associated with this workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly workspaceId?: string; /** - * @member {string} [creationTime] The creation time for this workspace - * resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The creation time for this workspace resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly creationTime?: string; /** - * @member {string} [studioEndpoint] The regional endpoint for the machine - * learning studio service which hosts this workspace. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The regional endpoint for the machine learning studio service which hosts this workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly studioEndpoint?: string; /** - * @member {string} [keyVaultIdentifierId] The key vault identifier used for - * encrypted workspaces. + * The key vault identifier used for encrypted workspaces. */ keyVaultIdentifierId?: string; } /** - * @interface - * An interface representing WorkspaceUpdateParameters. * The parameters for updating a machine learning workspace. - * */ export interface WorkspaceUpdateParameters { /** - * @member {{ [propertyName: string]: string }} [tags] The resource tags for - * the machine learning workspace. + * The resource tags for the machine learning workspace. */ tags?: { [propertyName: string]: string }; /** - * @member {WorkspaceState} [workspaceState] The current state of workspace - * resource. Possible values include: 'Deleted', 'Enabled', 'Disabled', - * 'Migrated', 'Updated', 'Registered', 'Unregistered' + * The current state of workspace resource. Possible values include: 'Deleted', 'Enabled', + * 'Disabled', 'Migrated', 'Updated', 'Registered', 'Unregistered' */ workspaceState?: WorkspaceState; /** - * @member {string} [keyVaultIdentifierId] The key vault identifier used for - * encrypted workspaces. + * The key vault identifier used for encrypted workspaces. */ keyVaultIdentifierId?: string; } /** - * @interface - * An interface representing WorkspaceKeysResponse. * Workspace authorization keys for a workspace. - * */ export interface WorkspaceKeysResponse { /** - * @member {string} [primaryToken] Primary authorization key for this - * workspace. + * Primary authorization key for this workspace. */ primaryToken?: string; /** - * @member {string} [secondaryToken] Secondary authorization key for this - * workspace. + * Secondary authorization key for this workspace. */ secondaryToken?: string; } /** - * @interface - * An interface representing OperationDisplay. * Display name of operation - * */ export interface OperationDisplay { /** - * @member {string} [provider] The resource provider name: - * Microsoft.MachineLearning + * The resource provider name: Microsoft.MachineLearning */ provider?: string; /** - * @member {string} [resource] The resource on which the operation is - * performed. + * The resource on which the operation is performed. */ resource?: string; /** - * @member {string} [operation] The operation that users can perform. + * The operation that users can perform. */ operation?: string; /** - * @member {string} [description] The description for the operation. + * The description for the operation. */ description?: string; } /** - * @interface - * An interface representing Operation. * Azure Machine Learning Studio REST API operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] Display name of operation + * Display name of operation */ display?: OperationDisplay; } /** - * @interface * An interface representing MachineLearningWorkspacesManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface MachineLearningWorkspacesManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. * An array of operations supported by the resource provider. - * * @extends Array */ export interface OperationListResult extends Array { @@ -244,15 +185,12 @@ export interface OperationListResult extends Array { /** * @interface - * An interface representing the WorkspaceListResult. * The result of a request to list machine learning workspace keys. - * * @extends Array */ export interface WorkspaceListResult extends Array { /** - * @member {string} [nextLink] The URI that can be used to request the next - * list of machine learning workspaces. + * The URI that can be used to request the next list of machine learning workspaces. */ nextLink?: string; } @@ -286,6 +224,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -305,6 +244,7 @@ export type WorkspacesGetResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -324,6 +264,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -343,6 +284,7 @@ export type WorkspacesUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -362,6 +304,7 @@ export type WorkspacesListWorkspaceKeysResponse = WorkspaceKeysResponse & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -381,6 +324,7 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -400,6 +344,7 @@ export type WorkspacesListResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -419,6 +364,7 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -438,6 +384,7 @@ export type WorkspacesListNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/machinelearning/arm-workspaces/src/models/mappers.ts b/sdk/machinelearning/arm-workspaces/src/models/mappers.ts index a4ff64510b08..81fae203729a 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/mappers.ts +++ b/sdk/machinelearning/arm-workspaces/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"; diff --git a/sdk/machinelearning/arm-workspaces/src/models/operationsMappers.ts b/sdk/machinelearning/arm-workspaces/src/models/operationsMappers.ts index 715467ec9522..b8de8606cf9d 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/operationsMappers.ts +++ b/sdk/machinelearning/arm-workspaces/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * 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 { - OperationListResult, + ErrorResponse, Operation, OperationDisplay, - ErrorResponse + OperationListResult } from "../models/mappers"; - diff --git a/sdk/machinelearning/arm-workspaces/src/models/workspacesMappers.ts b/sdk/machinelearning/arm-workspaces/src/models/workspacesMappers.ts index 7961193de7f1..0e8a112a4750 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/workspacesMappers.ts +++ b/sdk/machinelearning/arm-workspaces/src/models/workspacesMappers.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 { - Workspace, - Resource, BaseResource, ErrorResponse, - WorkspaceUpdateParameters, + Resource, + Workspace, WorkspaceKeysResponse, - WorkspaceListResult + WorkspaceListResult, + WorkspaceUpdateParameters } from "../models/mappers"; -