diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt +++ b/sdk/machinelearningservices/arm-machinelearningservices/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/machinelearningservices/arm-machinelearningservices/README.md b/sdk/machinelearningservices/arm-machinelearningservices/README.md index c19b471b053e..4cd9b7edaddb 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for AzureMachineLearningWorkspaces. ### How to Install -``` +```bash npm install @azure/arm-machinelearningservices ``` @@ -19,13 +19,13 @@ npm install @azure/arm-machinelearningservices ##### 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/machinelearningservices/arm-machinelearningservices/README.png) diff --git a/sdk/machinelearningservices/arm-machinelearningservices/package.json b/sdk/machinelearningservices/arm-machinelearningservices/package.json index 62f21af0210a..330244761ec2 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -4,8 +4,8 @@ "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", "version": "2.1.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/machinelearningservices/arm-machinelearningservices", + "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/machinelearningservices/arm-machinelearningservices/rollup.config.js b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js index 8e10c7141784..1a9e76332601 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js +++ b/sdk/machinelearningservices/arm-machinelearningservices/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/azureMachineLearningWorkspaces.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/azureMachineLearningWorkspaces.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-machinelearningservices.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/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index e021f907b8b2..26c568e680ee 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -20,6 +20,7 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte operations: operations.Operations; workspaces: operations.Workspaces; machineLearningCompute: operations.MachineLearningCompute; + quotas: operations.Quotas; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -32,6 +33,7 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte this.operations = new operations.Operations(this); this.workspaces = new operations.Workspaces(this); this.machineLearningCompute = new operations.MachineLearningCompute(this); + this.quotas = new operations.Quotas(this); } } diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index 6b0d543270a9..2d0c57e231b9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.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-machinelearningservices"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index a8edc6443acb..eab0f6b1e9bc 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/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,331 +11,363 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing OperationDisplay. * Display name of operation - * */ export interface OperationDisplay { /** - * @member {string} [provider] The resource provider name: - * Microsoft.MachineLearningExperimentation + * The resource provider name: Microsoft.MachineLearningExperimentation */ 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 workspace 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 Resource. * Azure Resource Manager resource envelope. - * - * @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 {Identity} [identity] The identity of the resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The identity of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly identity?: Identity; /** - * @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 }; } /** - * @interface - * An interface representing Workspace. * An object that represents a machine learning workspace. - * - * @extends Resource */ export interface Workspace extends Resource { /** - * @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} [description] The description of this workspace. + * The description of this workspace. */ description?: string; /** - * @member {string} [friendlyName] The friendly name for this workspace. This - * name in mutable + * The friendly name for this workspace. This name in mutable */ friendlyName?: string; /** - * @member {Date} [creationTime] The creation time of the machine learning - * workspace in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The creation time of the machine learning workspace in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly creationTime?: Date; /** - * @member {string} [batchaiWorkspace] ARM id of the Batch AI workspace - * associated with this workspace. This cannot be changed once the workspace - * has been created + * ARM id of the Batch AI workspace associated with this workspace. This cannot be changed once + * the workspace has been created */ batchaiWorkspace?: string; /** - * @member {string} [keyVault] ARM id of the key vault associated with this - * workspace. This cannot be changed once the workspace has been created + * ARM id of the key vault associated with this workspace. This cannot be changed once the + * workspace has been created */ keyVault?: string; /** - * @member {string} [applicationInsights] ARM id of the application insights - * associated with this workspace. This cannot be changed once the workspace - * has been created + * ARM id of the application insights associated with this workspace. This cannot be changed once + * the workspace has been created */ applicationInsights?: string; /** - * @member {string} [containerRegistry] ARM id of the container registry - * associated with this workspace. This cannot be changed once the workspace - * has been created + * ARM id of the container registry associated with this workspace. This cannot be changed once + * the workspace has been created */ containerRegistry?: string; /** - * @member {string} [storageAccount] ARM id of the storage account associated - * with this workspace. This cannot be changed once the workspace has been - * created + * ARM id of the storage account associated with this workspace. This cannot be changed once the + * workspace has been created */ storageAccount?: string; /** - * @member {string} [discoveryUrl] Url for the discovery service to identify - * regional endpoints for machine learning experimentation services + * Url for the discovery service to identify regional endpoints for machine learning + * experimentation services */ discoveryUrl?: string; /** - * @member {ProvisioningState} [provisioningState] The current deployment - * state of workspace resource. The provisioningState is to indicate states - * for resource provisioning. Possible values include: 'Unknown', 'Updating', - * 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The current deployment state of workspace resource. The provisioningState is to indicate + * states for resource provisioning. Possible values include: 'Unknown', 'Updating', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; } /** - * @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 {string} [description] The description of this workspace. + * The description of this workspace. */ description?: string; /** - * @member {string} [friendlyName] The friendly name for this workspace. + * The friendly name for this workspace. */ friendlyName?: string; } /** - * @interface - * An interface representing Identity. + * The properties for Quota update or retrieval. + */ +export interface QuotaBaseProperties { + /** + * Virtual Machine family name. The family name of the virtual machine size. + */ + vmFamily?: string; + /** + * AML workspace Id. Fully qualified resource identifier of the workspace. + */ + workspaceId?: string; + /** + * Quota. The workspace level quota. + */ + quota?: number; +} + +/** + * Quota update parameters. + */ +export interface QuotaUpdateParameters { + /** + * The properties for update quota. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: QuotaBaseProperties[]; +} + +/** + * The properties for update Quota response. + */ +export interface UpdateWorkspaceQuotas { + /** + * Virtual Machine family name. The family name of the virtual machine size. + */ + vmFamily?: string; + /** + * AML workspace Id. Fully qualified resource identifier of the workspace. + */ + workspaceId?: string; + /** + * Quota. Quota. + */ + quota?: number; + /** + * Update Workspace Quota Status. Status of update workspace quota. Possible values include: + * 'Undefined', 'Success', 'Failure' + */ + status?: Status; +} + +/** + * The Resource Name. + */ +export interface ResourceName { + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; + /** + * The localized name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localizedValue?: string; +} + +/** + * The quota assigned to a resource. + */ +export interface ResourceQuota { + /** + * Specifies the resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Specifies the resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: ResourceName; + /** + * Quota. Quota assigned to the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly quota?: number; + /** + * The units used to represent the quota. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; +} + +/** * Identity for the resource. - * */ export interface Identity { /** - * @member {string} [principalId] The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [tenantId] The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {ResourceIdentityType} [type] The identity type. Possible values - * include: 'SystemAssigned' + * The identity type. Possible values include: 'SystemAssigned' */ type?: ResourceIdentityType; } /** - * @interface * An interface representing Password. */ export interface Password { /** - * @member {string} [name] **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 name?: string; /** - * @member {string} [value] **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 value?: string; } /** - * @interface * An interface representing RegistryListCredentialsResult. */ export interface RegistryListCredentialsResult { /** - * @member {string} [location] **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 location?: string; /** - * @member {string} [username] **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 username?: string; - /** - * @member {Password[]} [passwords] - */ passwords?: Password[]; } /** - * @interface * An interface representing ListWorkspaceKeysResult. */ export interface ListWorkspaceKeysResult { /** - * @member {string} [userStorageKey] **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 userStorageKey?: string; /** - * @member {string} [userStorageResourceId] **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 userStorageResourceId?: string; /** - * @member {string} [appInsightsInstrumentationKey] **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 appInsightsInstrumentationKey?: string; /** - * @member {RegistryListCredentialsResult} [containerRegistryCredentials] - * **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 containerRegistryCredentials?: RegistryListCredentialsResult; } /** - * @interface - * An interface representing ErrorDetail. * Error detail information. - * */ export interface ErrorDetail { /** - * @member {string} code Error code. + * Error code. */ code: string; /** - * @member {string} message Error message. + * Error message. */ message: string; } /** - * @interface - * An interface representing ErrorResponse. * Error response information. - * */ export interface ErrorResponse { /** - * @member {string} code Error code. + * Error code. */ code: string; /** - * @member {string} message Error message. + * Error message. */ message: string; /** - * @member {ErrorDetail[]} [details] An array of error detail objects. + * An array of error detail objects. */ details?: ErrorDetail[]; } /** - * @interface - * An interface representing MachineLearningServiceError. * Wrapper for error response to follow ARM guidelines. - * */ export interface MachineLearningServiceError { /** - * @member {ErrorResponse} [error] The error response. + * The error response. */ error?: ErrorResponse; } @@ -348,573 +378,466 @@ export interface MachineLearningServiceError { export type ComputeUnion = Compute | AKS | BatchAI | VirtualMachine | HDInsight | DataFactory; /** - * @interface - * An interface representing Compute. * Machine Learning compute object. - * */ export interface Compute { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "Compute"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; } /** - * @interface - * An interface representing ComputeResource. * Machine Learning compute object wrapped into ARM resource envelope. - * - * @extends Resource */ export interface ComputeResource extends Resource { /** - * @member {ComputeUnion} [properties] Compute properties + * Compute properties */ properties?: ComputeUnion; } /** - * @interface - * An interface representing SystemService. * A system service running on a compute. - * */ export interface SystemService { /** - * @member {string} [systemServiceType] The type of this system service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of this system service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemServiceType?: string; /** - * @member {string} [publicIpAddress] Public IP address - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Public IP address + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publicIpAddress?: string; /** - * @member {string} [version] The version for this type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The version for this type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly version?: string; } /** - * @interface - * An interface representing SslConfiguration. - * The ssl configugation for scoring - * + * The SSL configuration for scoring */ export interface SslConfiguration { /** - * @member {Status} [status] Enable or disable ssl for scoring. Possible - * values include: 'Disabled', 'Enabled' + * Enable or disable SSL for scoring. Possible values include: 'Disabled', 'Enabled' */ - status?: Status; + status?: Status1; /** - * @member {string} [cert] Cert data + * Cert data */ cert?: string; /** - * @member {string} [key] Key data + * Key data */ key?: string; /** - * @member {string} [cname] CNAME of the cert + * CNAME of the cert */ cname?: string; } /** - * @interface - * An interface representing AKSProperties. * AKS properties - * */ export interface AKSProperties { /** - * @member {string} [clusterFqdn] Cluster full qualified domain name + * Cluster full qualified domain name */ clusterFqdn?: string; /** - * @member {SystemService[]} [systemServices] System services + * System services */ systemServices?: SystemService[]; /** - * @member {number} [agentCount] Number of agents + * Number of agents */ agentCount?: number; /** - * @member {string} [agentVMSize] Agent virtual machine size + * Agent virtual machine size */ agentVMSize?: string; /** - * @member {SslConfiguration} [sslConfiguration] SSL configuration + * SSL configuration */ sslConfiguration?: SslConfiguration; } /** - * @interface - * An interface representing AKS. * A Machine Learning compute based on AKS. - * */ export interface AKS { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "AKS"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; /** - * @member {AKSProperties} [properties] AKS properties + * AKS properties */ properties?: AKSProperties; } /** - * @interface - * An interface representing ScaleSettings. * scale settings for BatchAI Compute - * */ export interface ScaleSettings { /** - * @member {number} [maxNodeCount] Max number of nodes to use + * Max number of nodes to use */ maxNodeCount?: number; /** - * @member {number} [minNodeCount] Min number of nodes to use + * Min number of nodes to use */ minNodeCount?: number; /** - * @member {boolean} [autoScaleEnabled] Enable or disable auto scale + * Enable or disable auto scale */ autoScaleEnabled?: boolean; } /** - * @interface - * An interface representing BatchAIProperties. * BatchAI properties - * */ export interface BatchAIProperties { /** - * @member {string} [vmSize] Virtual Machine Size + * Virtual Machine Size */ vmSize?: string; /** - * @member {string} [vmPriority] Virtual Machine priority + * Virtual Machine priority */ vmPriority?: string; /** - * @member {ScaleSettings} [scaleSettings] Scale settings for BatchAI + * Scale settings for BatchAI */ scaleSettings?: ScaleSettings; } /** - * @interface - * An interface representing BatchAI. * A Machine Learning compute based on Azure BatchAI. - * */ export interface BatchAI { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "BatchAI"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; /** - * @member {BatchAIProperties} [properties] BatchAI properties + * BatchAI properties */ properties?: BatchAIProperties; } /** - * @interface - * An interface representing VirtualMachineSshCredentials. * Admin credentials for virtual machine - * */ export interface VirtualMachineSshCredentials { /** - * @member {string} [username] Username of admin account + * Username of admin account */ username?: string; /** - * @member {string} [password] Password of admin account + * Password of admin account */ password?: string; /** - * @member {string} [publicKeyData] Public key data + * Public key data */ publicKeyData?: string; /** - * @member {string} [privateKeyData] Private key data + * Private key data */ privateKeyData?: string; } /** - * @interface * An interface representing VirtualMachineProperties. */ export interface VirtualMachineProperties { /** - * @member {string} [virtualMachineSize] Virtual Machine size + * Virtual Machine size */ virtualMachineSize?: string; /** - * @member {number} [sshPort] Port open for ssh connections. + * Port open for ssh connections. */ sshPort?: number; /** - * @member {string} [address] Public IP address of the virtual machine. + * Public IP address of the virtual machine. */ address?: string; /** - * @member {VirtualMachineSshCredentials} [administratorAccount] Admin - * credentials for virtual machine + * Admin credentials for virtual machine */ administratorAccount?: VirtualMachineSshCredentials; } /** - * @interface - * An interface representing VirtualMachine. * A Machine Learning compute based on Azure Virtual Machines. - * */ export interface VirtualMachine { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "VirtualMachine"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * @member {VirtualMachineProperties} [properties] - */ properties?: VirtualMachineProperties; } /** - * @interface * An interface representing HDInsightProperties. */ export interface HDInsightProperties { /** - * @member {number} [sshPort] Port open for ssh connections on the master - * node of the cluster. + * Port open for ssh connections on the master node of the cluster. */ sshPort?: number; /** - * @member {string} [address] Public IP address of the master node of the - * cluster. + * Public IP address of the master node of the cluster. */ address?: string; /** - * @member {VirtualMachineSshCredentials} [administratorAccount] Admin - * credentials for master node of the cluster + * Admin credentials for master node of the cluster */ administratorAccount?: VirtualMachineSshCredentials; } /** - * @interface - * An interface representing HDInsight. * A HDInsight compute. - * */ export interface HDInsight { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "HDInsight"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * @member {HDInsightProperties} [properties] - */ properties?: HDInsightProperties; } /** - * @interface - * An interface representing DataFactory. * A DataFactory compute. - * */ export interface DataFactory { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "DataFactory"; /** - * @member {string} [computeLocation] Location for the underlying compute + * Location for the underlying compute */ computeLocation?: string; /** - * @member {ProvisioningState} [provisioningState] The provision state of the - * cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and - * Failed. Possible values include: 'Unknown', 'Updating', 'Creating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, + * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; /** - * @member {string} [description] The description of the Machine Learning - * compute. + * The description of the Machine Learning compute. */ description?: string; /** - * @member {Date} [createdOn] The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly createdOn?: Date; /** - * @member {Date} [modifiedOn] The date and time when the compute was last - * modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The date and time when the compute was last modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; /** - * @member {string} [resourceId] ARM resource id of the compute + * ARM resource id of the compute */ resourceId?: string; /** - * @member {MachineLearningServiceError[]} [provisioningErrors] Errors during - * provisioning - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningErrors?: MachineLearningServiceError[]; } /** - * @interface - * An interface representing ServicePrincipalCredentials. * Service principal credentials. - * */ export interface ServicePrincipalCredentials { /** - * @member {string} clientId Client Id + * Client Id */ clientId: string; /** - * @member {string} clientSecret Client secret + * Client secret */ clientSecret: string; } @@ -925,174 +848,129 @@ export interface ServicePrincipalCredentials { export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets; /** - * @interface - * An interface representing ComputeSecrets. - * Secrets related to a Machine Learning compute. Might differ for every type - * of compute. - * + * Secrets related to a Machine Learning compute. Might differ for every type of compute. */ export interface ComputeSecrets { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "ComputeSecrets"; } /** - * @interface - * An interface representing AksComputeSecrets. * Secrets related to a Machine Learning compute based on AKS. - * */ export interface AksComputeSecrets { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "AKS"; /** - * @member {string} [userKubeConfig] Content of kubeconfig file that can be - * used to connect to the Kubernetes cluster. + * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ userKubeConfig?: string; /** - * @member {string} [adminKubeConfig] Content of kubeconfig file that can be - * used to connect to the Kubernetes cluster. + * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ adminKubeConfig?: string; /** - * @member {string} [imagePullSecretName] Image registry pull secret. + * Image registry pull secret. */ imagePullSecretName?: string; } /** - * @interface - * An interface representing VirtualMachineSecrets. * Secrets related to a Machine Learning compute based on AKS. - * */ export interface VirtualMachineSecrets { /** - * @member {string} computeType Polymorphic Discriminator + * Polymorphic Discriminator */ computeType: "VirtualMachine"; /** - * @member {VirtualMachineSshCredentials} [administratorAccount] Admin - * creadentials for virtual machine. + * Admin credentials for virtual machine. */ administratorAccount?: VirtualMachineSshCredentials; } /** - * @interface - * An interface representing WorkspacesListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Continuation token for pagination. + * Continuation token for pagination. */ skiptoken?: string; } /** - * @interface - * An interface representing WorkspacesListBySubscriptionOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Continuation token for pagination. + * Continuation token for pagination. */ skiptoken?: string; } /** - * @interface - * An interface representing MachineLearningComputeListByWorkspaceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Continuation token for pagination. + * Continuation token for pagination. */ skiptoken?: string; } /** - * @interface * An interface representing AzureMachineLearningWorkspacesOptions. - * @extends AzureServiceClientOptions */ export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } /** - * @interface - * An interface representing MachineLearningComputeCreateOrUpdateHeaders. * Defines headers for CreateOrUpdate operation. - * */ export interface MachineLearningComputeCreateOrUpdateHeaders { /** - * @member {string} [azureAsyncOperation] URI to poll for asynchronous - * operation status. + * URI to poll for asynchronous operation status. */ azureAsyncOperation: string; } /** - * @interface - * An interface representing MachineLearningComputeDeleteHeaders. * Defines headers for Delete operation. - * */ export interface MachineLearningComputeDeleteHeaders { /** - * @member {string} [azureAsyncOperation] URI to poll for asynchronous - * operation status. + * URI to poll for asynchronous operation status. */ azureAsyncOperation: string; /** - * @member {string} [location] URI to poll for asynchronous operation result. + * URI to poll for asynchronous operation result. */ location: string; } /** - * @interface - * An interface representing MachineLearningComputeSystemUpdateHeaders. * Defines headers for SystemUpdate operation. - * */ export interface MachineLearningComputeSystemUpdateHeaders { /** - * @member {string} [azureAsyncOperation] URI to poll for asynchronous - * operation status. + * URI to poll for asynchronous operation status. */ azureAsyncOperation: string; /** - * @member {string} [location] URI to poll for asynchronous operation result. + * URI to poll for asynchronous operation result. */ location: string; } - /** * @interface - * An interface representing the OperationListResult. * An array of operations supported by the resource provider. - * * @extends Array */ export interface OperationListResult extends Array { @@ -1100,35 +978,42 @@ export interface OperationListResult extends Array { /** * @interface - * An interface representing the WorkspaceListResult. * The result of a request to list machine learning workspaces. - * * @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; } /** * @interface - * An interface representing the PaginatedComputeResourcesList. - * Paginated list of Machine Learning compute objects wrapped in ARM resource - * envelope. - * + * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. * @extends Array */ export interface PaginatedComputeResourcesList 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; } +/** + * @interface + * The List WorkspaceQuotasByVMFamily operation response. + * @extends Array + */ +export interface ListWorkspaceQuotas extends Array { + /** + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() + * with this to fetch the next page of Workspace Quota information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * Defines values for ProvisioningState. * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', @@ -1138,6 +1023,14 @@ export interface PaginatedComputeResourcesList extends Array { */ export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; +/** + * Defines values for Status. + * Possible values include: 'Undefined', 'Success', 'Failure' + * @readonly + * @enum {string} + */ +export type Status = 'Undefined' | 'Success' | 'Failure'; + /** * Defines values for ResourceIdentityType. * Possible values include: 'SystemAssigned' @@ -1155,12 +1048,12 @@ export type ResourceIdentityType = 'SystemAssigned'; export type ComputeType = 'AKS' | 'BatchAI' | 'DataFactory' | 'VirtualMachine' | 'HDInsight'; /** - * Defines values for Status. + * Defines values for Status1. * Possible values include: 'Disabled', 'Enabled' * @readonly * @enum {string} */ -export type Status = 'Disabled' | 'Enabled'; +export type Status1 = 'Disabled' | 'Enabled'; /** * Contains response data for the list operation. @@ -1174,6 +1067,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1193,6 +1087,7 @@ export type WorkspacesGetResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1212,6 +1107,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1231,6 +1127,7 @@ export type WorkspacesUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1250,6 +1147,7 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1269,6 +1167,7 @@ export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1288,6 +1187,7 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1307,6 +1207,7 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1326,6 +1227,7 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1345,6 +1247,7 @@ export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeReso * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1364,6 +1267,7 @@ export type MachineLearningComputeGetResponse = ComputeResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1383,10 +1287,12 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac * The parsed HTTP response headers. */ parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + /** * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1436,6 +1342,7 @@ export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1455,9 +1362,90 @@ export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedCompute * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ parsedBody: PaginatedComputeResourcesList; }; }; + +/** + * Contains response data for the update operation. + */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotas & { + /** + * 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: UpdateWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type QuotasListResponse = ListWorkspaceQuotas & { + /** + * 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: ListWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type QuotasBeginUpdateResponse = UpdateWorkspaceQuotas & { + /** + * 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: UpdateWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type QuotasListNextResponse = ListWorkspaceQuotas & { + /** + * 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: ListWorkspaceQuotas; + }; +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts index b7f92bdcf288..4a6d0d166822 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts @@ -1,43 +1,40 @@ /* * 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, - PaginatedComputeResourcesList, - ComputeResource, - Resource, + AKS, + AksComputeSecrets, + AKSProperties, BaseResource, - Identity, + BatchAI, + BatchAIProperties, Compute, - MachineLearningServiceError, - ErrorResponse, + ComputeResource, + ComputeSecrets, + DataFactory, ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, MachineLearningComputeCreateOrUpdateHeaders, MachineLearningComputeDeleteHeaders, MachineLearningComputeSystemUpdateHeaders, - ComputeSecrets, - Workspace, - AKS, - AKSProperties, - SystemService, - SslConfiguration, - BatchAI, - BatchAIProperties, + MachineLearningServiceError, + PaginatedComputeResourcesList, + Resource, ScaleSettings, + SslConfiguration, + SystemService, VirtualMachine, VirtualMachineProperties, + VirtualMachineSecrets, VirtualMachineSshCredentials, - HDInsight, - HDInsightProperties, - DataFactory, - AksComputeSecrets, - VirtualMachineSecrets + Workspace } from "../models/mappers"; - diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts index d2610660d4e9..5603efb5de63 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/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"; @@ -240,6 +238,161 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { } }; +export const QuotaBaseProperties: msRest.CompositeMapper = { + serializedName: "QuotaBaseProperties", + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + vmFamily: { + serializedName: "vmFamily", + type: { + name: "String" + } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + }, + quota: { + serializedName: "quota", + type: { + name: "Number" + } + } + } + } +}; + +export const QuotaUpdateParameters: msRest.CompositeMapper = { + serializedName: "QuotaUpdateParameters", + type: { + name: "Composite", + className: "QuotaUpdateParameters", + modelProperties: { + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } + } + } + } + } +}; + +export const UpdateWorkspaceQuotas: msRest.CompositeMapper = { + serializedName: "UpdateWorkspaceQuotas", + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + modelProperties: { + vmFamily: { + serializedName: "vmFamily", + type: { + name: "String" + } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + }, + quota: { + serializedName: "quota", + type: { + name: "Number" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceName: msRest.CompositeMapper = { + serializedName: "ResourceName", + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + readOnly: true, + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceQuota: msRest.CompositeMapper = { + serializedName: "ResourceQuota", + type: { + name: "Composite", + className: "ResourceQuota", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + quota: { + readOnly: true, + serializedName: "quota", + type: { + name: "Number" + } + }, + unit: { + readOnly: true, + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + export const Identity: msRest.CompositeMapper = { serializedName: "Identity", type: { @@ -1139,6 +1292,36 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { } }; +export const ListWorkspaceQuotas: msRest.CompositeMapper = { + serializedName: "ListWorkspaceQuotas", + type: { + name: "Composite", + className: "ListWorkspaceQuotas", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { 'Compute' : Compute, 'Compute.AKS' : AKS, @@ -1149,4 +1332,5 @@ export const discriminators = { 'ComputeSecrets' : ComputeSecrets, 'ComputeSecrets.AKS' : AksComputeSecrets, 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets + }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts index 9d57471254c6..f1dd969a7597 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.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 { discriminators, - OperationListResult, + ErrorDetail, + ErrorResponse, + MachineLearningServiceError, Operation, OperationDisplay, - MachineLearningServiceError, - ErrorResponse, - ErrorDetail + OperationListResult } from "../models/mappers"; - diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 52426ab7b3f4..1c9d77b3a17f 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -40,6 +40,19 @@ export const computeName: msRest.OperationURLParameter = { } } }; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + constraints: { + Pattern: /^[-\w\._]+$/ + }, + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts new file mode 100644 index 000000000000..73121b82a5a8 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts @@ -0,0 +1,21 @@ +/* + * 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 { + discriminators, + CloudError, + ErrorDetail, + ErrorResponse, + ListWorkspaceQuotas, + MachineLearningServiceError, + QuotaBaseProperties, + QuotaUpdateParameters, + ResourceName, + ResourceQuota, + UpdateWorkspaceQuotas +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts index cde6fd2568d9..6095c4315fd7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts @@ -1,41 +1,38 @@ /* * 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, - Workspace, - Resource, - BaseResource, - Identity, - MachineLearningServiceError, - ErrorResponse, - ErrorDetail, - WorkspaceUpdateParameters, - WorkspaceListResult, - ListWorkspaceKeysResult, - RegistryListCredentialsResult, - Password, - ComputeResource, - Compute, AKS, AKSProperties, - SystemService, - SslConfiguration, + BaseResource, BatchAI, BatchAIProperties, + Compute, + ComputeResource, + DataFactory, + ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, + ListWorkspaceKeysResult, + MachineLearningServiceError, + Password, + RegistryListCredentialsResult, + Resource, ScaleSettings, + SslConfiguration, + SystemService, VirtualMachine, VirtualMachineProperties, VirtualMachineSshCredentials, - HDInsight, - HDInsightProperties, - DataFactory + Workspace, + WorkspaceListResult, + WorkspaceUpdateParameters } from "../models/mappers"; - diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index f9eb952cda56..9910c0c06cb0 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -11,3 +11,4 @@ export * from "./operations"; export * from "./workspaces"; export * from "./machineLearningCompute"; +export * from "./quotas"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts new file mode 100644 index 000000000000..061ab6ab2355 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -0,0 +1,190 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/quotasMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Quotas. */ +export class Quotas { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Quotas. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param [options] The optional parameters + * @returns Promise + */ + update(location: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(location,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param [options] The optional parameters + * @returns Promise + */ + list(location: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The location for which resource usage is queried. + * @param callback The callback + */ + list(location: string, callback: msRest.ServiceCallback): void; + /** + * @param location The location for which resource usage is queried. + * @param options The optional parameters + * @param callback The callback + */ + list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(location: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + location, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/listQuotas", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", + urlParameters: [ + Parameters.location, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.QuotaUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.UpdateWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};