diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index b73b4a1293c3..ea8fb1516028 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) 2019 Microsoft +Copyright (c) 2020 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 a8f0b875f3da..8f56ae3f327e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -19,8 +19,9 @@ npm install @azure/arm-machinelearningservices ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code @@ -95,4 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningservices%2Farm-machinelearningservices%2FREADME.png) +![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 29592ca0a1d2..e55132c6922e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -4,9 +4,9 @@ "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", "version": "3.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,11 +20,11 @@ "module": "./esm/azureMachineLearningWorkspaces.js", "types": "./esm/azureMachineLearningWorkspaces.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices", "repository": { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js index 1a9e76332601..69a537c86ea0 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js +++ b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js @@ -29,7 +29,7 @@ const config = { */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index c8b88568754d..7036017062a1 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -11,6 +11,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext"; @@ -19,9 +20,15 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte // Operation groups operations: operations.Operations; workspaces: operations.Workspaces; + workspaceFeatures: operations.WorkspaceFeatures; + notebooks: operations.Notebooks; usages: operations.Usages; virtualMachineSizes: operations.VirtualMachineSizes; + quotas: operations.Quotas; + workspaceConnections: operations.WorkspaceConnections; machineLearningCompute: operations.MachineLearningCompute; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -33,13 +40,115 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); this.workspaces = new operations.Workspaces(this); + this.workspaceFeatures = new operations.WorkspaceFeatures(this); + this.notebooks = new operations.Notebooks(this); this.usages = new operations.Usages(this); this.virtualMachineSizes = new operations.VirtualMachineSizes(this); + this.quotas = new operations.Quotas(this); + this.workspaceConnections = new operations.WorkspaceConnections(this); this.machineLearningCompute = new operations.MachineLearningCompute(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + } + + /** + * Lists all skus with associated features + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listSkus(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + options + }, + listSkusOperationSpec, + callback) as Promise; + } + + /** + * Lists all skus with associated features + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSkusNext(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 + */ + listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + nextPageLink, + options + }, + listSkusNextOperationSpec, + callback) as Promise; } } // Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listSkusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; export { AzureMachineLearningWorkspaces, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index 9a1cb99cc2a5..50d9463b6ead 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -44,7 +44,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2019-05-01'; + this.apiVersion = '2020-08-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index 652dcfba3a34..bf440bc4aa1b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -47,6 +47,163 @@ export interface Operation { display?: OperationDisplay; } +/** + * An interface representing NotebookListCredentialsResult. + */ +export interface NotebookListCredentialsResult { + primaryAccessKey?: string; + secondaryAccessKey?: string; +} + +/** + * An interface representing NotebookPreparationError. + */ +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +/** + * An interface representing NotebookResourceInfo. + */ +export interface NotebookResourceInfo { + fqdn?: string; + /** + * the data plane resourceId that used to initialize notebook component + */ + resourceId?: string; + /** + * The error that occurs when preparing notebook. + */ + notebookPreparationError?: NotebookPreparationError; +} + +/** + * An interface representing KeyVaultProperties. + */ +export interface KeyVaultProperties { + /** + * The ArmId of the keyVault where the customer owned encryption key is present. + */ + keyVaultArmId: string; + /** + * Key vault uri to access the encryption key. + */ + keyIdentifier: string; + /** + * For future use - The client id of the identity which will be used to access key vault. + */ + identityClientId?: string; +} + +/** + * An interface representing EncryptionProperty. + */ +export interface EncryptionProperty { + /** + * Indicates whether or not the encryption is enabled for the workspace. Possible values include: + * 'Enabled', 'Disabled' + */ + status: EncryptionStatus; + /** + * Customer Key vault properties. + */ + keyVaultProperties: KeyVaultProperties; +} + +/** + * The Private Endpoint resource. + */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * A collection of information about the state of the connection between service consumer and + * provider. + */ +export interface PrivateLinkServiceConnectionState { + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + */ + status?: PrivateEndpointServiceConnectionStatus; + /** + * The reason for approval/rejection of the connection. + */ + description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + */ + actionsRequired?: string; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends BaseResource { + /** + * ResourceId of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Friendly name of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type of private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The resource of private end point. + */ + privateEndpoint?: PrivateEndpoint; + /** + * A collection of information about the state of the connection between service consumer and + * provider. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. Possible values include: + * 'Succeeded', 'Creating', 'Deleting', 'Failed' + */ + provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** + * An interface representing SharedPrivateLinkResource. + */ +export interface SharedPrivateLinkResource { + /** + * Unique name of the private link. + */ + name?: string; + /** + * The resource id that private link links to. + */ + privateLinkResourceId?: string; + /** + * The private link resource group id. + */ + groupId?: string; + /** + * Request message. + */ + requestMessage?: string; + /** + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the + * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + */ + status?: PrivateEndpointServiceConnectionStatus; +} + /** * Azure Resource Manager resource envelope. */ @@ -63,9 +220,8 @@ export interface Resource extends BaseResource { readonly name?: string; /** * The identity of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly identity?: Identity; + identity?: Identity; /** * Specifies the location of the resource. */ @@ -79,6 +235,10 @@ export interface Resource extends BaseResource { * Contains resource tags defined as key/value pairs. */ tags?: { [propertyName: string]: string }; + /** + * The sku of the workspace. + */ + sku?: Sku; } /** @@ -135,6 +295,62 @@ export interface Workspace extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; + /** + * The encryption settings of Azure ML workspace. + */ + encryption?: EncryptionProperty; + /** + * The flag to signal HBI data in the workspace and reduce diagnostic data collected by the + * service. Default value: false. + */ + hbiWorkspace?: boolean; + /** + * The name of the managed resource group created by workspace RP in customer subscription if the + * workspace is CMK workspace + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceProvisionedResourceGroup?: string; + /** + * Count of private connections in the workspace + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateLinkCount?: number; + /** + * The compute name for image build + */ + imageBuildCompute?: string; + /** + * The flag to indicate whether to allow public access when behind VNet. Default value: false. + */ + allowPublicAccessWhenBehindVnet?: boolean; + /** + * The list of private endpoint connections in the workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The list of shared private link resources in this workspace. + */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * The notebook info of Azure ML workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookInfo?: NotebookResourceInfo; +} + +/** + * Sku of the resource + */ +export interface Sku { + /** + * Name of the sku + */ + name?: string; + /** + * Tier of the sku like Basic or Enterprise + */ + tier?: string; } /** @@ -145,6 +361,10 @@ export interface WorkspaceUpdateParameters { * The resource tags for the machine learning workspace. */ tags?: { [propertyName: string]: string }; + /** + * The sku of the workspace. + */ + sku?: Sku; /** * The description of this workspace. */ @@ -155,6 +375,24 @@ export interface WorkspaceUpdateParameters { friendlyName?: string; } +/** + * Features enabled for a workspace + */ +export interface AmlUserFeature { + /** + * Specifies the feature ID + */ + id?: string; + /** + * Specifies the feature name + */ + displayName?: string; + /** + * Describes the feature for user experience + */ + description?: string; +} + /** * The Usage Names. */ @@ -207,6 +445,35 @@ export interface Usage { readonly name?: UsageName; } +/** + * The estimated price info for using a VM of a particular OS type, tier, etc. + */ +export interface EstimatedVMPrice { + /** + * Retail price. The price charged for using the VM. + */ + retailPrice: number; + /** + * OS type. Operating system type used by the VM. Possible values include: 'Linux', 'Windows' + */ + osType: VMPriceOSType; + /** + * VM tier. The type of the VM. Possible values include: 'Standard', 'LowPriority', 'Spot' + */ + vmTier: VMTier; +} + +/** + * The estimated price info for using a VM. + */ +export interface EstimatedVMPrices { + /** + * List of estimated VM prices. The list of estimated prices for using a VM of a particular OS + * type, tier, etc. + */ + values: EstimatedVMPrice[]; +} + /** * Describes the properties of a VM size. */ @@ -226,6 +493,11 @@ export interface VirtualMachineSize { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly vCPUs?: number; + /** + * Number of gPUs. The number of gPUs supported by the virtual machine size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly gpus?: number; /** * OS VHD Disk size. The OS VHD disk size, in MB, allowed by the virtual machine size. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -251,6 +523,14 @@ export interface VirtualMachineSize { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly premiumIO?: boolean; + /** + * Estimated VM prices. The estimated price information for using a VM. + */ + estimatedVMPrices?: EstimatedVMPrices; + /** + * Supported Compute Types. Specifies the compute types supported by the virtual machine size. + */ + supportedComputeTypes?: string[]; } /** @@ -264,144 +544,296 @@ export interface VirtualMachineSizeListResult { } /** - * Identity for the resource. + * The properties for Quota update or retrieval. */ -export interface Identity { +export interface QuotaBaseProperties { /** - * The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the resource ID. */ - readonly principalId?: string; + id?: string; /** - * The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the resource type. */ - readonly tenantId?: string; + type?: string; + /** + * Limit. The maximum permitted quota of the resource. + */ + limit?: number; /** - * The identity type. Possible values include: 'SystemAssigned' + * An enum describing the unit of quota measurement. Possible values include: 'Count' */ - type?: ResourceIdentityType; + unit?: QuotaUnit; } /** - * Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. + * Quota update parameters. */ -export interface ResourceId extends BaseResource { +export interface QuotaUpdateParameters { /** - * The ID of the resource + * The list for update quota. */ - id: string; + value?: QuotaBaseProperties[]; } /** - * An interface representing Password. + * The properties for update Quota response. */ -export interface Password { +export interface UpdateWorkspaceQuotas { /** + * Specifies the resource ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly id?: string; /** + * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly value?: string; -} - -/** - * An interface representing RegistryListCredentialsResult. - */ -export interface RegistryListCredentialsResult { + readonly type?: string; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Limit. The maximum permitted quota of the resource. */ - readonly location?: string; + limit?: number; /** + * An enum describing the unit of quota measurement. Possible values include: 'Count' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly username?: string; - passwords?: Password[]; + readonly unit?: QuotaUnit; + /** + * Update Workspace Quota Status. Status of update workspace quota. Possible values include: + * 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', + * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', + * 'OperationNotEnabledForRegion' + */ + status?: Status; } /** - * An interface representing ListWorkspaceKeysResult. + * The result of update workspace quota. */ -export interface ListWorkspaceKeysResult { +export interface UpdateWorkspaceQuotasResult { /** + * The list of workspace quota update result. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly userStorageKey?: string; + readonly value?: UpdateWorkspaceQuotas[]; /** + * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to + * fetch the next page of Workspace Quota update result. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly userStorageResourceId?: string; + readonly nextLink?: string; +} + +/** + * 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 appInsightsInstrumentationKey?: string; + 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 containerRegistryCredentials?: RegistryListCredentialsResult; + readonly localizedValue?: string; } /** - * Error detail information. + * The quota assigned to a resource. */ -export interface ErrorDetail { +export interface ResourceQuota { /** - * Error code. + * Specifies the resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - code: string; + readonly id?: string; /** - * Error message. + * Specifies the resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message: string; -} - -/** - * Error response information. - */ -export interface ErrorResponse { + readonly type?: string; /** - * Error code. + * Name of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly code?: string; + readonly name?: ResourceName; /** - * Error message. + * Limit. The maximum permitted quota of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + readonly limit?: number; /** - * An array of error detail objects. + * An enum describing the unit of quota measurement. Possible values include: 'Count' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: ErrorDetail[]; + readonly unit?: QuotaUnit; } /** - * Wrapper for error response to follow ARM guidelines. + * An interface representing IdentityUserAssignedIdentitiesValue. */ -export interface MachineLearningServiceError { +export interface IdentityUserAssignedIdentitiesValue { /** - * The error response. + * The principal id of user assigned identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly error?: ErrorResponse; + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; } /** - * Contains the possible cases for Compute. - */ -export type ComputeUnion = Compute | AKS | AmlCompute | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics; - -/** - * Machine Learning compute object. + * Identity for the resource. */ -export interface Compute { +export interface Identity { /** - * Polymorphic Discriminator - */ + * The principal ID of resource identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant ID of resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned,UserAssigned', 'None' + */ + type: ResourceIdentityType; + /** + * The list of user identities associated with resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; +} + +/** + * Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. + */ +export interface ResourceId extends BaseResource { + /** + * The ID of the resource + */ + id: string; +} + +/** + * An interface representing Password. + */ +export interface Password { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; +} + +/** + * An interface representing RegistryListCredentialsResult. + */ +export interface RegistryListCredentialsResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly username?: string; + passwords?: Password[]; +} + +/** + * An interface representing ListWorkspaceKeysResult. + */ +export interface ListWorkspaceKeysResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userStorageKey?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userStorageResourceId?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly appInsightsInstrumentationKey?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + notebookAccessKeys?: NotebookListCredentialsResult; +} + +/** + * Error detail information. + */ +export interface ErrorDetail { + /** + * Error code. + */ + code: string; + /** + * Error message. + */ + message: string; +} + +/** + * Error response information. + */ +export interface ErrorResponse { + /** + * Error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * Error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * An array of error detail objects. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; +} + +/** + * Wrapper for error response to follow ARM guidelines. + */ +export interface MachineLearningServiceError { + /** + * The error response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ErrorResponse; +} + +/** + * Contains the possible cases for Compute. + */ +export type ComputeUnion = Compute | AKS | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics; + +/** + * Machine Learning compute object. + */ +export interface Compute { + /** + * Polymorphic Discriminator + */ computeType: "Compute"; /** * Location for the underlying compute @@ -483,7 +915,7 @@ export interface SslConfiguration { /** * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' */ - status?: Status; + status?: Status1; /** * Cert data */ @@ -705,6 +1137,16 @@ export interface AmlComputeProperties { * Subnet. Virtual network subnet resource ID the compute nodes belong to. */ subnet?: ResourceId; + /** + * Close remote Login Access Port. State of the public SSH port. Possible values are: Disabled - + * Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates + * that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that + * the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all + * public nodes. It can be default only during cluster creation time, after creation it will be + * either enabled or disabled. Possible values include: 'Enabled', 'Disabled', 'NotSpecified'. + * Default value: 'NotSpecified'. + */ + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; /** * Allocation state. Allocation state of the compute. Possible values are: steady - Indicates * that the compute is not resizing. There are no changes to the number of compute nodes in the @@ -801,177 +1243,171 @@ export interface AmlCompute { } /** - * Admin credentials for virtual machine + * Specifies policy and settings for SSH access. */ -export interface VirtualMachineSshCredentials { +export interface ComputeInstanceSshSettings { /** - * Username of admin account + * Access policy for SSH. State of the public SSH port. Possible values are: Disabled - Indicates + * that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh + * port is open and accessible according to the VNet/subnet policy if applicable. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - username?: string; + sshPublicAccess?: SshPublicAccess; /** - * Password of admin account + * Describes the admin user name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - password?: string; + readonly adminUserName?: string; /** - * Public key data + * Describes the port for connecting through SSH. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publicKeyData?: string; + readonly sshPort?: number; /** - * Private key data + * Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate + * your SSH key pairs. */ - privateKeyData?: string; + adminPublicKey?: string; } /** - * An interface representing VirtualMachineProperties. + * Defines all connectivity endpoints and properties for a ComputeInstance. */ -export interface VirtualMachineProperties { - /** - * Virtual Machine size - */ - virtualMachineSize?: string; - /** - * Port open for ssh connections. - */ - sshPort?: number; +export interface ComputeInstanceConnectivityEndpoints { /** - * Public IP address of the virtual machine. + * Public IP Address of this ComputeInstance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - address?: string; + readonly publicIpAddress?: string; /** - * Admin credentials for virtual machine + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is + * deployed). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - administratorAccount?: VirtualMachineSshCredentials; + readonly privateIpAddress?: string; } /** - * A Machine Learning compute based on Azure Virtual Machines. + * Defines an Aml Instance application and its connectivity endpoint URI. */ -export interface VirtualMachine { - /** - * Polymorphic Discriminator - */ - computeType: "VirtualMachine"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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; +export interface ComputeInstanceApplication { /** - * The description of the Machine Learning compute. + * Name of the ComputeInstance application. */ - description?: string; + displayName?: string; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Application' endpoint URI. */ - readonly createdOn?: Date; + endpointUri?: string; +} + +/** + * Describes information on user who created this ComputeInstance. + */ +export interface ComputeInstanceCreatedBy { /** - * The date and time when the compute was last modified. + * Name of the user. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; + readonly userName?: string; /** - * Errors during provisioning + * Uniquely identifies user' Azure Active Directory organization. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly userOrgId?: string; /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. + * Uniquely identifies the user within his/her organization. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isAttachedCompute?: boolean; - properties?: VirtualMachineProperties; + readonly userId?: string; } /** - * An interface representing HDInsightProperties. + * The last operation on ComputeInstance. */ -export interface HDInsightProperties { +export interface ComputeInstanceLastOperation { /** - * Port open for ssh connections on the master node of the cluster. + * Name of the last operation. Possible values include: 'Create', 'Start', 'Stop', 'Restart', + * 'Reimage', 'Delete' */ - sshPort?: number; + operationName?: OperationName; /** - * Public IP address of the master node of the cluster. + * Time of the last operation. */ - address?: string; + operationTime?: Date; /** - * Admin credentials for master node of the cluster + * Operation status. Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', + * 'StartFailed', 'StopFailed', 'RestartFailed', 'ReimageFailed', 'DeleteFailed' */ - administratorAccount?: VirtualMachineSshCredentials; + operationStatus?: OperationStatus; } /** - * A HDInsight compute. + * Compute Instance properties */ -export interface HDInsight { +export interface ComputeInstanceProperties { /** - * Polymorphic Discriminator + * Virtual Machine Size */ - computeType: "HDInsight"; + vmSize?: string; /** - * Location for the underlying compute + * Subnet. Virtual network subnet resource ID the compute nodes belong to. */ - computeLocation?: string; + subnet?: ResourceId; /** - * 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.** + * Sharing policy for applications on this compute instance. Policy for sharing applications on + * this compute instance among users of parent workspace. If Personal, only the creator can + * access applications on this compute instance. When Shared, any workspace user can access + * applications on this instance depending on his/her assigned role. Possible values include: + * 'Personal', 'Shared'. Default value: 'Shared'. */ - readonly provisioningState?: ProvisioningState; + applicationSharingPolicy?: ApplicationSharingPolicy; /** - * The description of the Machine Learning compute. + * Specifies policy and settings for SSH access. */ - description?: string; + sshSettings?: ComputeInstanceSshSettings; /** - * The date and time when the compute was created. + * Describes all connectivity endpoints available for this ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly createdOn?: Date; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; /** - * The date and time when the compute was last modified. + * Describes available applications and their endpoints on this ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly modifiedOn?: Date; + readonly applications?: ComputeInstanceApplication[]; /** - * ARM resource id of the underlying compute + * Describes information on user who created this ComputeInstance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceId?: string; + readonly createdBy?: ComputeInstanceCreatedBy; /** - * Errors during provisioning + * Errors. Collection of errors encountered on this ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly errors?: MachineLearningServiceError[]; /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. + * The current state of this ComputeInstance. Possible values include: 'Creating', + * 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'JobRunning', 'SettingUp', 'SetupFailed', + * 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', 'UserSetupFailed', 'Unknown', 'Unusable' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isAttachedCompute?: boolean; - properties?: HDInsightProperties; + readonly state?: ComputeInstanceState; + /** + * The last operation on ComputeInstance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastOperation?: ComputeInstanceLastOperation; } /** - * A DataFactory compute. + * An Azure Machine Learning compute instance. */ -export interface DataFactory { +export interface ComputeInstance { /** * Polymorphic Discriminator */ - computeType: "DataFactory"; + computeType: "ComputeInstance"; /** * Location for the underlying compute */ @@ -1012,14 +1448,232 @@ export interface DataFactory { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Compute Instance properties + */ + properties?: ComputeInstanceProperties; } /** - * An interface representing DatabricksProperties. + * Admin credentials for virtual machine */ -export interface DatabricksProperties { +export interface VirtualMachineSshCredentials { /** - * Databricks access token + * Username of admin account + */ + username?: string; + /** + * Password of admin account + */ + password?: string; + /** + * Public key data + */ + publicKeyData?: string; + /** + * Private key data + */ + privateKeyData?: string; +} + +/** + * An interface representing VirtualMachineProperties. + */ +export interface VirtualMachineProperties { + /** + * Virtual Machine size + */ + virtualMachineSize?: string; + /** + * Port open for ssh connections. + */ + sshPort?: number; + /** + * Public IP address of the virtual machine. + */ + address?: string; + /** + * Admin credentials for virtual machine + */ + administratorAccount?: VirtualMachineSshCredentials; +} + +/** + * A Machine Learning compute based on Azure Virtual Machines. + */ +export interface VirtualMachine { + /** + * Polymorphic Discriminator + */ + computeType: "VirtualMachine"; + /** + * Location for the underlying compute + */ + computeLocation?: string; + /** + * 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; + /** + * The description of the Machine Learning compute. + */ + description?: string; + /** + * 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; + /** + * 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; + /** + * ARM resource id of the underlying compute + */ + resourceId?: string; + /** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningErrors?: MachineLearningServiceError[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or + * machine learning service provisioned it if false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isAttachedCompute?: boolean; + properties?: VirtualMachineProperties; +} + +/** + * An interface representing HDInsightProperties. + */ +export interface HDInsightProperties { + /** + * Port open for ssh connections on the master node of the cluster. + */ + sshPort?: number; + /** + * Public IP address of the master node of the cluster. + */ + address?: string; + /** + * Admin credentials for master node of the cluster + */ + administratorAccount?: VirtualMachineSshCredentials; +} + +/** + * A HDInsight compute. + */ +export interface HDInsight { + /** + * Polymorphic Discriminator + */ + computeType: "HDInsight"; + /** + * Location for the underlying compute + */ + computeLocation?: string; + /** + * 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; + /** + * The description of the Machine Learning compute. + */ + description?: string; + /** + * 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; + /** + * 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; + /** + * ARM resource id of the underlying compute + */ + resourceId?: string; + /** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningErrors?: MachineLearningServiceError[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or + * machine learning service provisioned it if false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isAttachedCompute?: boolean; + properties?: HDInsightProperties; +} + +/** + * A DataFactory compute. + */ +export interface DataFactory { + /** + * Polymorphic Discriminator + */ + computeType: "DataFactory"; + /** + * Location for the underlying compute + */ + computeLocation?: string; + /** + * 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; + /** + * The description of the Machine Learning compute. + */ + description?: string; + /** + * 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; + /** + * 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; + /** + * ARM resource id of the underlying compute + */ + resourceId?: string; + /** + * Errors during provisioning + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningErrors?: MachineLearningServiceError[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or + * machine learning service provisioned it if false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isAttachedCompute?: boolean; +} + +/** + * An interface representing DatabricksProperties. + */ +export interface DatabricksProperties { + /** + * Databricks access token */ databricksAccessToken?: string; } @@ -1191,15 +1845,32 @@ export interface AmlComputeNodeInformation { */ readonly nodeId?: string; /** - * IP address. Public IP address of the compute node. + * Private IP address. Private IP address of the compute node. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateIpAddress?: string; + /** + * Public IP address. Public IP address of the compute node. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly ipAddress?: string; + readonly publicIpAddress?: string; /** * Port. SSH port number of the node. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly port?: number; + /** + * State of the compute node. Values are idle, running, preparing, unusable, leaving and + * preempted. Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', + * 'preempted' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nodeState?: NodeState; + /** + * Run ID. ID of the Experiment running on the node, if any else null. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly runId?: string; } /** @@ -1288,42 +1959,291 @@ export interface DatabricksComputeSecrets { } /** - * Optional Parameters. + * Features/user capabilities associated with the sku */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface SKUCapability { /** - * Continuation token for pagination. + * Capability/Feature ID */ - skiptoken?: string; + name?: string; + /** + * Details about the feature/capability + */ + value?: string; } /** - * Optional Parameters. + * Describes The zonal capabilities of a SKU. */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface ResourceSkuZoneDetails { /** - * Continuation token for pagination. + * The set of zones that the SKU is available in with the specified capabilities. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skiptoken?: string; + readonly name?: string[]; + /** + * A list of capabilities that are available for the SKU in the specified list of zones. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capabilities?: SKUCapability[]; } /** - * Optional Parameters. + * An interface representing ResourceSkuLocationInfo. */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { +export interface ResourceSkuLocationInfo { /** - * Continuation token for pagination. + * Location of the SKU + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - skiptoken?: string; + readonly location?: string; + /** + * List of availability zones where the SKU is supported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zones?: string[]; + /** + * Details of capabilities available to a SKU in specific zones. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zoneDetails?: ResourceSkuZoneDetails[]; } /** - * An interface representing AzureMachineLearningWorkspacesOptions. + * The restriction because of which SKU cannot be used. */ -export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - baseUri?: string; -} - +export interface Restriction { + /** + * The type of restrictions. As of now only possible value for this is location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * 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[]; + /** + * The reason for the restriction. Possible values include: 'NotSpecified', + * 'NotAvailableForRegion', 'NotAvailableForSubscription' + */ + reasonCode?: ReasonCode; +} + +/** + * Describes Workspace Sku details and features + */ +export interface SkuSettings { + /** + * The set of locations that the SKU is available. This will be supported and registered Azure + * Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly locations?: string[]; + /** + * A list of locations and availability zones in those locations where the SKU is available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly locationInfo?: ResourceSkuLocationInfo[]; + /** + * Sku Tier like Basic or Enterprise + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tier?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceType?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * List of features/user capabilities associated with the sku + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capabilities?: SKUCapability[]; + /** + * The restrictions because of which SKU cannot be used. This is empty if there are no + * restrictions. + */ + restrictions?: Restriction[]; +} + +/** + * AML workspace sku information + */ +export interface WorkspaceSku { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceType?: string; + /** + * The list of workspace sku settings + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skus?: SkuSettings[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends Resource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; +} + +/** + * A list of private link resources + */ +export interface PrivateLinkResourceListResult { + /** + * Array of private link resources + */ + value?: PrivateLinkResource[]; +} + +/** + * Workspace connection. + */ +export interface WorkspaceConnection extends BaseResource { + /** + * ResourceId of the workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Friendly name of the workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type of workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Category of the workspace connection. + */ + category?: string; + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Authorization type of the workspace connection. + */ + authType?: string; + /** + * Value details of the workspace connection. + */ + value?: string; +} + +/** + * object used for creating workspace connection. + */ +export interface WorkspaceConnectionDto { + /** + * Friendly name of the workspace connection + */ + name?: string; + /** + * Category of the workspace connection. + */ + category?: string; + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Authorization type of the workspace connection. + */ + authType?: string; + /** + * Value details of the workspace connection. + */ + value?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { + /** + * Type of compute to filter by. + */ + computeType?: string; + /** + * Specifies whether to return recommended vm sizes or all vm sizes + */ + recommended?: boolean; +} + +/** + * Optional Parameters. + */ +export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Category of the workspace connection. + */ + category?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * An interface representing AzureMachineLearningWorkspacesOptions. + */ +export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { + baseUri?: string; +} + /** * Defines headers for CreateOrUpdate operation. */ @@ -1368,6 +2288,20 @@ export interface WorkspaceListResult extends Array { nextLink?: string; } +/** + * @interface + * The List Aml user feature operation response. + * @extends Array + */ +export interface ListAmlUserFeatureResult extends Array { + /** + * The URI to fetch the next page of AML user features information. Call ListNext() with this to + * fetch the next page of AML user features information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * @interface * The List Usages operation response. @@ -1382,6 +2316,32 @@ export interface ListUsagesResult extends Array { readonly 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; +} + +/** + * @interface + * Paginated list of Workspace connection objects. + * @extends Array + */ +export interface PaginatedWorkspaceConnectionsList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ + nextLink?: string; +} + /** * @interface * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. @@ -1395,75 +2355,433 @@ export interface PaginatedComputeResourcesList extends Array { } /** - * Defines values for ProvisioningState. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @readonly - * @enum {string} + * @interface + * List of skus with features + * @extends Array + */ +export interface SkuListResult extends Array { + /** + * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the + * next page of Workspace Skus + */ + nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for EncryptionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EncryptionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + * @readonly + * @enum {string} + */ +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + +/** + * Defines values for UsageUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type UsageUnit = 'Count'; + +/** + * Defines values for VMPriceOSType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type VMPriceOSType = 'Linux' | 'Windows'; + +/** + * Defines values for VMTier. + * Possible values include: 'Standard', 'LowPriority', 'Spot' + * @readonly + * @enum {string} + */ +export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; + +/** + * Defines values for QuotaUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type QuotaUnit = 'Count'; + +/** + * Defines values for Status. + * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', + * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', + * 'OperationNotEnabledForRegion' + * @readonly + * @enum {string} + */ +export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; + +/** + * Defines values for VmPriority. + * Possible values include: 'Dedicated', 'LowPriority' + * @readonly + * @enum {string} + */ +export type VmPriority = 'Dedicated' | 'LowPriority'; + +/** + * Defines values for RemoteLoginPortPublicAccess. + * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' + * @readonly + * @enum {string} + */ +export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; + +/** + * Defines values for AllocationState. + * Possible values include: 'Steady', 'Resizing' + * @readonly + * @enum {string} + */ +export type AllocationState = 'Steady' | 'Resizing'; + +/** + * Defines values for ApplicationSharingPolicy. + * Possible values include: 'Personal', 'Shared' + * @readonly + * @enum {string} + */ +export type ApplicationSharingPolicy = 'Personal' | 'Shared'; + +/** + * Defines values for SshPublicAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SshPublicAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for ComputeInstanceState. + * Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting', + * 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', + * 'UserSetupFailed', 'Unknown', 'Unusable' + * @readonly + * @enum {string} + */ +export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; + +/** + * Defines values for OperationName. + * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' + * @readonly + * @enum {string} + */ +export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; + +/** + * Defines values for OperationStatus. + * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', + * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' + * @readonly + * @enum {string} + */ +export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; + +/** + * Defines values for NodeState. + * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' + * @readonly + * @enum {string} + */ +export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; + +/** + * Defines values for ComputeType. + * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', + * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' + * @readonly + * @enum {string} + */ +export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; + +/** + * Defines values for ReasonCode. + * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' + * @readonly + * @enum {string} + */ +export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; + +/** + * Defines values for UnderlyingResourceAction. + * Possible values include: 'Delete', 'Detach' + * @readonly + * @enum {string} + */ +export type UnderlyingResourceAction = 'Delete' | 'Detach'; + +/** + * Defines values for Status1. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type Status1 = 'Disabled' | 'Enabled'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WorkspacesGetResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WorkspacesCreateOrUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WorkspacesUpdateResponse = Workspace & { + /** + * 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: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { + /** + * 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: ListWorkspaceKeysResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. */ -export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for UsageUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} - */ -export type UsageUnit = 'Count'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type ResourceIdentityType = 'SystemAssigned'; +export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for VmPriority. - * Possible values include: 'Dedicated', 'LowPriority' - * @readonly - * @enum {string} - */ -export type VmPriority = 'Dedicated' | 'LowPriority'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; /** - * Defines values for AllocationState. - * Possible values include: 'Steady', 'Resizing' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type AllocationState = 'Steady' | 'Resizing'; +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'DataFactory', 'VirtualMachine', 'HDInsight', - * 'Databricks', 'DataLakeAnalytics' - * @readonly - * @enum {string} - */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; /** - * Defines values for UnderlyingResourceAction. - * Possible values include: 'Delete', 'Detach' - * @readonly - * @enum {string} + * Contains response data for the listBySubscriptionNext operation. */ -export type UnderlyingResourceAction = 'Delete' | 'Detach'; +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { + /** + * 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: WorkspaceListResult; + }; +}; /** - * Defines values for Status. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Status = 'Disabled' | 'Enabled'; +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { + /** + * 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: ListAmlUserFeatureResult; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type OperationsListResponse = OperationListResult & { +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The underlying HTTP response. */ @@ -1476,14 +2794,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ListAmlUserFeatureResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the prepare operation. */ -export type WorkspacesGetResponse = Workspace & { +export type NotebooksPrepareResponse = NotebookResourceInfo & { /** * The underlying HTTP response. */ @@ -1496,14 +2814,14 @@ export type WorkspacesGetResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: NotebookResourceInfo; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginPrepare operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { /** * The underlying HTTP response. */ @@ -1516,14 +2834,14 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: NotebookResourceInfo; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type UsagesListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -1536,14 +2854,14 @@ export type WorkspacesUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type UsagesListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -1556,14 +2874,14 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the list operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The underlying HTTP response. */ @@ -1576,14 +2894,14 @@ export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceKeysResult; + parsedBody: VirtualMachineSizeListResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the update operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { /** * The underlying HTTP response. */ @@ -1596,14 +2914,14 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: UpdateWorkspaceQuotasResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { +export type QuotasListResponse = ListWorkspaceQuotas & { /** * The underlying HTTP response. */ @@ -1616,14 +2934,14 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: ListWorkspaceQuotas; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { +export type QuotasListNextResponse = ListWorkspaceQuotas & { /** * The underlying HTTP response. */ @@ -1636,14 +2954,14 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: ListWorkspaceQuotas; }; }; /** * Contains response data for the list operation. */ -export type UsagesListResponse = ListUsagesResult & { +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { /** * The underlying HTTP response. */ @@ -1656,14 +2974,14 @@ export type UsagesListResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: PaginatedWorkspaceConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type UsagesListNextResponse = ListUsagesResult & { +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { /** * The underlying HTTP response. */ @@ -1676,14 +2994,14 @@ export type UsagesListNextResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: WorkspaceConnection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { +export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { /** * The underlying HTTP response. */ @@ -1696,7 +3014,7 @@ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: WorkspaceConnection; }; }; @@ -1879,3 +3197,103 @@ export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedCompute parsedBody: PaginatedComputeResourcesList; }; }; + +/** + * Contains response data for the listSkus operation. + */ +export type ListSkusResponse = SkuListResult & { + /** + * 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: SkuListResult; + }; +}; + +/** + * Contains response data for the listSkusNext operation. + */ +export type ListSkusNextResponse = SkuListResult & { + /** + * 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: SkuListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the put operation. + */ +export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the listByWorkspace operation. + */ +export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts index 6c8334e0a3ba..3bcf8fd514d9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts @@ -19,6 +19,13 @@ export { BaseResource, ClusterUpdateParameters, Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, ComputeNodesInformation, ComputeResource, ComputeSecrets, @@ -28,19 +35,30 @@ export { DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + EncryptionProperty, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, + IdentityUserAssignedIdentitiesValue, + KeyVaultProperties, MachineLearningComputeCreateOrUpdateHeaders, MachineLearningComputeDeleteHeaders, MachineLearningServiceError, NodeStateCounts, + NotebookPreparationError, + NotebookResourceInfo, PaginatedComputeResourcesList, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, Resource, ResourceId, ScaleSettings, + SharedPrivateLinkResource, + Sku, SslConfiguration, SystemService, UserAccountCredentials, @@ -48,5 +66,6 @@ export { VirtualMachineProperties, VirtualMachineSecrets, VirtualMachineSshCredentials, - Workspace + Workspace, + WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts index 639d21015222..55698eafabbb 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -69,127 +69,222 @@ export const Operation: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const NotebookListCredentialsResult: msRest.CompositeMapper = { + serializedName: "NotebookListCredentialsResult", type: { name: "Composite", - className: "Resource", + className: "NotebookListCredentialsResult", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + primaryAccessKey: { + serializedName: "primaryAccessKey", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + secondaryAccessKey: { + serializedName: "secondaryAccessKey", type: { name: "String" } - }, - identity: { - readOnly: true, - serializedName: "identity", + } + } + } +}; + +export const NotebookPreparationError: msRest.CompositeMapper = { + serializedName: "NotebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", type: { - name: "Composite", - className: "Identity" + name: "String" } }, - location: { - serializedName: "location", + statusCode: { + serializedName: "statusCode", + type: { + name: "Number" + } + } + } + } +}; + +export const NotebookResourceInfo: msRest.CompositeMapper = { + serializedName: "NotebookResourceInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - tags: { - serializedName: "tags", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "NotebookPreparationError" } } } } }; -export const Workspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", type: { name: "Composite", - className: "Workspace", + className: "KeyVaultProperties", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - readOnly: true, - serializedName: "properties.workspaceId", + keyVaultArmId: { + required: true, + serializedName: "keyVaultArmId", type: { name: "String" } }, - description: { - serializedName: "properties.description", + keyIdentifier: { + required: true, + serializedName: "keyIdentifier", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + identityClientId: { + serializedName: "identityClientId", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionProperty: msRest.CompositeMapper = { + serializedName: "EncryptionProperty", + type: { + name: "Composite", + className: "EncryptionProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - creationTime: { + keyVaultProperties: { + required: true, + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties" + } + } + } + } +}; + +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { readOnly: true, - serializedName: "properties.creationTime", + serializedName: "id", type: { - name: "DateTime" + name: "String" } - }, - keyVault: { - serializedName: "properties.keyVault", + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + description: { + serializedName: "description", type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" @@ -199,55 +294,38 @@ export const Workspace: msRest.CompositeMapper = { } }; -export const WorkspaceUpdateParameters: msRest.CompositeMapper = { - serializedName: "WorkspaceUpdateParameters", +export const SharedPrivateLinkResource: msRest.CompositeMapper = { + serializedName: "SharedPrivateLinkResource", type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "SharedPrivateLinkResource", modelProperties: { - tags: { - serializedName: "tags", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - description: { - serializedName: "properties.description", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } - } - } - } -}; - -export const UsageName: msRest.CompositeMapper = { - serializedName: "UsageName", - type: { - name: "Composite", - className: "UsageName", - modelProperties: { - value: { - readOnly: true, - serializedName: "value", + }, + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - localizedValue: { - readOnly: true, - serializedName: "localizedValue", + status: { + serializedName: "properties.status", type: { name: "String" } @@ -256,11 +334,11 @@ export const UsageName: msRest.CompositeMapper = { } }; -export const Usage: msRest.CompositeMapper = { - serializedName: "Usage", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "Usage", + className: "Resource", modelProperties: { id: { readOnly: true, @@ -269,176 +347,257 @@ export const Usage: msRest.CompositeMapper = { name: "String" } }, - type: { + name: { readOnly: true, - serializedName: "type", + serializedName: "name", type: { name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - currentValue: { + type: { readOnly: true, - serializedName: "currentValue", + serializedName: "type", type: { - name: "Number" + name: "String" } }, - limit: { - readOnly: true, - serializedName: "limit", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - name: { - readOnly: true, - serializedName: "name", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "UsageName" + className: "Sku" } } } } }; -export const VirtualMachineSize: msRest.CompositeMapper = { - serializedName: "VirtualMachineSize", +export const Workspace: msRest.CompositeMapper = { + serializedName: "Workspace", type: { name: "Composite", - className: "VirtualMachineSize", + className: "Workspace", modelProperties: { - name: { + ...Resource.type.modelProperties, + workspaceId: { readOnly: true, - serializedName: "name", + serializedName: "properties.workspaceId", type: { name: "String" } }, - family: { - readOnly: true, - serializedName: "family", + description: { + serializedName: "properties.description", type: { name: "String" } }, - vCPUs: { - readOnly: true, - serializedName: "vCPUs", + friendlyName: { + serializedName: "properties.friendlyName", type: { - name: "Number" + name: "String" } }, - osVhdSizeMB: { + creationTime: { readOnly: true, - serializedName: "osVhdSizeMB", + serializedName: "properties.creationTime", type: { - name: "Number" + name: "DateTime" } }, - maxResourceVolumeMB: { + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + type: { + name: "String" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + provisioningState: { readOnly: true, - serializedName: "maxResourceVolumeMB", + serializedName: "properties.provisioningState", type: { - name: "Number" + name: "String" } }, - memoryGB: { + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + hbiWorkspace: { + serializedName: "properties.hbiWorkspace", + defaultValue: false, + type: { + name: "Boolean" + } + }, + serviceProvisionedResourceGroup: { readOnly: true, - serializedName: "memoryGB", + serializedName: "properties.serviceProvisionedResourceGroup", type: { - name: "Number" + name: "String" } }, - lowPriorityCapable: { + privateLinkCount: { readOnly: true, - serializedName: "lowPriorityCapable", + serializedName: "properties.privateLinkCount", + type: { + name: "Number" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + allowPublicAccessWhenBehindVnet: { + serializedName: "properties.allowPublicAccessWhenBehindVnet", + defaultValue: false, type: { name: "Boolean" } }, - premiumIO: { + privateEndpointConnections: { readOnly: true, - serializedName: "premiumIO", + serializedName: "properties.privateEndpointConnections", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } - } - } - } -}; - -export const VirtualMachineSizeListResult: msRest.CompositeMapper = { - serializedName: "VirtualMachineSizeListResult", - type: { - name: "Composite", - className: "VirtualMachineSizeListResult", - modelProperties: { - amlCompute: { - serializedName: "amlCompute", + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "SharedPrivateLinkResource" } } } + }, + notebookInfo: { + readOnly: true, + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } } } } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "Identity", + className: "Sku", modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", + name: { + serializedName: "name", type: { name: "String" } }, - tenantId: { - readOnly: true, - serializedName: "tenantId", + tier: { + serializedName: "tier", type: { name: "String" } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned" - ] - } } } } }; -export const ResourceId: msRest.CompositeMapper = { - serializedName: "ResourceId", +export const WorkspaceUpdateParameters: msRest.CompositeMapper = { + serializedName: "WorkspaceUpdateParameters", type: { name: "Composite", - className: "ResourceId", + className: "WorkspaceUpdateParameters", modelProperties: { - id: { - required: true, - serializedName: "id", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } @@ -447,22 +606,26 @@ export const ResourceId: msRest.CompositeMapper = { } }; -export const Password: msRest.CompositeMapper = { - serializedName: "Password", +export const AmlUserFeature: msRest.CompositeMapper = { + serializedName: "AmlUserFeature", type: { name: "Composite", - className: "Password", + className: "AmlUserFeature", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } }, - value: { - readOnly: true, - serializedName: "value", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -471,97 +634,106 @@ export const Password: msRest.CompositeMapper = { } }; -export const RegistryListCredentialsResult: msRest.CompositeMapper = { - serializedName: "RegistryListCredentialsResult", +export const UsageName: msRest.CompositeMapper = { + serializedName: "UsageName", type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "UsageName", modelProperties: { - location: { + value: { readOnly: true, - serializedName: "location", + serializedName: "value", type: { name: "String" } }, - username: { + localizedValue: { readOnly: true, - serializedName: "username", + serializedName: "localizedValue", type: { name: "String" } - }, - passwords: { - serializedName: "passwords", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Password" - } - } - } } } } }; -export const ListWorkspaceKeysResult: msRest.CompositeMapper = { - serializedName: "ListWorkspaceKeysResult", +export const Usage: msRest.CompositeMapper = { + serializedName: "Usage", type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "Usage", modelProperties: { - userStorageKey: { + id: { readOnly: true, - serializedName: "userStorageKey", + serializedName: "id", type: { name: "String" } }, - userStorageResourceId: { + type: { readOnly: true, - serializedName: "userStorageResourceId", + serializedName: "type", type: { name: "String" } }, - appInsightsInstrumentationKey: { + unit: { readOnly: true, - serializedName: "appInsightsInstrumentationKey", + serializedName: "unit", type: { name: "String" } }, - containerRegistryCredentials: { + currentValue: { readOnly: true, - serializedName: "containerRegistryCredentials", + serializedName: "currentValue", + type: { + name: "Number" + } + }, + limit: { + readOnly: true, + serializedName: "limit", + type: { + name: "Number" + } + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "Composite", - className: "RegistryListCredentialsResult" + className: "UsageName" } } } } }; -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "ErrorDetail", +export const EstimatedVMPrice: msRest.CompositeMapper = { + serializedName: "EstimatedVMPrice", type: { name: "Composite", - className: "ErrorDetail", + className: "EstimatedVMPrice", modelProperties: { - code: { + retailPrice: { required: true, - serializedName: "code", + serializedName: "retailPrice", + type: { + name: "Number" + } + }, + osType: { + required: true, + serializedName: "osType", type: { name: "String" } }, - message: { + vmTier: { required: true, - serializedName: "message", + serializedName: "vmTier", type: { name: "String" } @@ -570,35 +742,39 @@ export const ErrorDetail: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const EstimatedVMPrices: msRest.CompositeMapper = { + serializedName: "EstimatedVMPrices", type: { name: "Composite", - className: "ErrorResponse", + className: "EstimatedVMPrices", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + billingCurrency: { + required: true, + isConstant: true, + serializedName: "billingCurrency", + defaultValue: 'USD', type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + unitOfMeasure: { + required: true, + isConstant: true, + serializedName: "unitOfMeasure", + defaultValue: 'OneHour', type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + values: { + required: true, + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetail" + className: "EstimatedVMPrice" } } } @@ -607,146 +783,145 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const MachineLearningServiceError: msRest.CompositeMapper = { - serializedName: "MachineLearningServiceError", +export const VirtualMachineSize: msRest.CompositeMapper = { + serializedName: "VirtualMachineSize", type: { name: "Composite", - className: "MachineLearningServiceError", + className: "VirtualMachineSize", modelProperties: { - error: { + name: { readOnly: true, - serializedName: "error", + serializedName: "name", type: { - name: "Composite", - className: "ErrorResponse" + name: "String" } - } - } - } -}; - -export const Compute: msRest.CompositeMapper = { - serializedName: "Compute", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "Compute", - className: "Compute", - modelProperties: { - computeLocation: { - serializedName: "computeLocation", + }, + family: { + readOnly: true, + serializedName: "family", type: { name: "String" } }, - provisioningState: { + vCPUs: { readOnly: true, - serializedName: "provisioningState", + serializedName: "vCPUs", type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + gpus: { + readOnly: true, + serializedName: "gpus", type: { - name: "String" + name: "Number" } }, - createdOn: { + osVhdSizeMB: { readOnly: true, - serializedName: "createdOn", + serializedName: "osVhdSizeMB", type: { - name: "DateTime" + name: "Number" } }, - modifiedOn: { + maxResourceVolumeMB: { readOnly: true, - serializedName: "modifiedOn", + serializedName: "maxResourceVolumeMB", type: { - name: "DateTime" + name: "Number" } }, - resourceId: { - serializedName: "resourceId", + memoryGB: { + readOnly: true, + serializedName: "memoryGB", type: { - name: "String" + name: "Number" } }, - provisioningErrors: { + lowPriorityCapable: { readOnly: true, - serializedName: "provisioningErrors", + serializedName: "lowPriorityCapable", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MachineLearningServiceError" - } - } + name: "Boolean" } }, - isAttachedCompute: { + premiumIO: { readOnly: true, - serializedName: "isAttachedCompute", + serializedName: "premiumIO", type: { name: "Boolean" } }, - computeType: { - required: true, - serializedName: "computeType", + estimatedVMPrices: { + serializedName: "estimatedVMPrices", type: { - name: "String" + name: "Composite", + className: "EstimatedVMPrices" + } + }, + supportedComputeTypes: { + serializedName: "supportedComputeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ComputeResource: msRest.CompositeMapper = { - serializedName: "ComputeResource", +export const VirtualMachineSizeListResult: msRest.CompositeMapper = { + serializedName: "VirtualMachineSizeListResult", type: { name: "Composite", - className: "ComputeResource", + className: "VirtualMachineSizeListResult", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + amlCompute: { + serializedName: "amlCompute", type: { - name: "Composite", - className: "Compute" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize" + } + } } } } } }; -export const SystemService: msRest.CompositeMapper = { - serializedName: "SystemService", +export const QuotaBaseProperties: msRest.CompositeMapper = { + serializedName: "QuotaBaseProperties", type: { name: "Composite", - className: "SystemService", + className: "QuotaBaseProperties", modelProperties: { - systemServiceType: { - readOnly: true, - serializedName: "systemServiceType", + id: { + serializedName: "id", type: { name: "String" } }, - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + type: { + serializedName: "type", type: { name: "String" } }, - version: { - readOnly: true, - serializedName: "version", + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", type: { name: "String" } @@ -755,75 +930,63 @@ export const SystemService: msRest.CompositeMapper = { } }; -export const SslConfiguration: msRest.CompositeMapper = { - serializedName: "SslConfiguration", +export const QuotaUpdateParameters: msRest.CompositeMapper = { + serializedName: "QuotaUpdateParameters", type: { name: "Composite", - className: "SslConfiguration", + className: "QuotaUpdateParameters", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", - type: { - name: "String" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - }, - cname: { - serializedName: "cname", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } } } } } }; -export const AksNetworkingConfiguration: msRest.CompositeMapper = { - serializedName: "AksNetworkingConfiguration", +export const UpdateWorkspaceQuotas: msRest.CompositeMapper = { + serializedName: "UpdateWorkspaceQuotas", type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "UpdateWorkspaceQuotas", modelProperties: { - subnetId: { - serializedName: "subnetId", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - serviceCidr: { - serializedName: "serviceCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - dnsServiceIP: { - serializedName: "dnsServiceIP", - constraints: { - Pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ - }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + readOnly: true, + serializedName: "unit", type: { name: "String" } }, - dockerBridgeCidr: { - serializedName: "dockerBridgeCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + status: { + serializedName: "status", type: { name: "String" } @@ -832,333 +995,537 @@ export const AksNetworkingConfiguration: msRest.CompositeMapper = { } }; -export const AKSProperties: msRest.CompositeMapper = { - serializedName: "AKS_properties", +export const UpdateWorkspaceQuotasResult: msRest.CompositeMapper = { + serializedName: "UpdateWorkspaceQuotasResult", type: { name: "Composite", - className: "AKSProperties", + className: "UpdateWorkspaceQuotasResult", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", - type: { - name: "String" - } - }, - systemServices: { + value: { readOnly: true, - serializedName: "systemServices", + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SystemService" + className: "UpdateWorkspaceQuotas" } } } }, - agentCount: { - serializedName: "agentCount", - constraints: { - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - agentVMSize: { - serializedName: "agentVMSize", + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } - }, - sslConfiguration: { - serializedName: "sslConfiguration", + } + } + } +}; + +export const ResourceName: msRest.CompositeMapper = { + serializedName: "ResourceName", + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", type: { - name: "Composite", - className: "SslConfiguration" + name: "String" } }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + localizedValue: { + readOnly: true, + serializedName: "localizedValue", type: { - name: "Composite", - className: "AksNetworkingConfiguration" + name: "String" } } } } }; -export const AKS: msRest.CompositeMapper = { - serializedName: "AKS", +export const ResourceQuota: msRest.CompositeMapper = { + serializedName: "ResourceQuota", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AKS", + className: "ResourceQuota", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + 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: "AKSProperties" + className: "ResourceName" + } + }, + limit: { + readOnly: true, + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + readOnly: true, + serializedName: "unit", + type: { + name: "String" } } } } }; -export const ScaleSettings: msRest.CompositeMapper = { - serializedName: "ScaleSettings", +export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "Identity_userAssignedIdentitiesValue", type: { name: "Composite", - className: "ScaleSettings", + className: "IdentityUserAssignedIdentitiesValue", modelProperties: { - maxNodeCount: { - required: true, - serializedName: "maxNodeCount", - type: { - name: "Number" - } - }, - minNodeCount: { - serializedName: "minNodeCount", - defaultValue: 0, + principalId: { + readOnly: true, + serializedName: "principalId", type: { - name: "Number" + name: "String" } }, - nodeIdleTimeBeforeScaleDown: { - serializedName: "nodeIdleTimeBeforeScaleDown", + clientId: { + readOnly: true, + serializedName: "clientId", type: { - name: "TimeSpan" + name: "String" } } } } }; -export const UserAccountCredentials: msRest.CompositeMapper = { - serializedName: "UserAccountCredentials", +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", type: { name: "Composite", - className: "UserAccountCredentials", + className: "Identity", modelProperties: { - adminUserName: { - required: true, - serializedName: "adminUserName", + principalId: { + readOnly: true, + serializedName: "principalId", type: { name: "String" } }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + tenantId: { + readOnly: true, + serializedName: "tenantId", type: { name: "String" } }, - adminUserPassword: { - serializedName: "adminUserPassword", + type: { + required: true, + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "IdentityUserAssignedIdentitiesValue" + } + } } } } } }; -export const NodeStateCounts: msRest.CompositeMapper = { - serializedName: "NodeStateCounts", +export const ResourceId: msRest.CompositeMapper = { + serializedName: "ResourceId", type: { name: "Composite", - className: "NodeStateCounts", + className: "ResourceId", modelProperties: { - idleNodeCount: { - readOnly: true, - serializedName: "idleNodeCount", + id: { + required: true, + serializedName: "id", type: { - name: "Number" + name: "String" } - }, - runningNodeCount: { + } + } + } +}; + +export const Password: msRest.CompositeMapper = { + serializedName: "Password", + type: { + name: "Composite", + className: "Password", + modelProperties: { + name: { readOnly: true, - serializedName: "runningNodeCount", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - preparingNodeCount: { + value: { readOnly: true, - serializedName: "preparingNodeCount", + serializedName: "value", type: { - name: "Number" + name: "String" } - }, - unusableNodeCount: { + } + } + } +}; + +export const RegistryListCredentialsResult: msRest.CompositeMapper = { + serializedName: "RegistryListCredentialsResult", + type: { + name: "Composite", + className: "RegistryListCredentialsResult", + modelProperties: { + location: { readOnly: true, - serializedName: "unusableNodeCount", + serializedName: "location", type: { - name: "Number" + name: "String" } }, - leavingNodeCount: { + username: { readOnly: true, - serializedName: "leavingNodeCount", + serializedName: "username", type: { - name: "Number" + name: "String" } }, - preemptedNodeCount: { - readOnly: true, - serializedName: "preemptedNodeCount", + passwords: { + serializedName: "passwords", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password" + } + } } } } } }; -export const AmlComputeProperties: msRest.CompositeMapper = { - serializedName: "AmlCompute_properties", +export const ListWorkspaceKeysResult: msRest.CompositeMapper = { + serializedName: "ListWorkspaceKeysResult", type: { name: "Composite", - className: "AmlComputeProperties", + className: "ListWorkspaceKeysResult", modelProperties: { - vmSize: { - serializedName: "vmSize", + userStorageKey: { + readOnly: true, + serializedName: "userStorageKey", type: { name: "String" } }, - vmPriority: { - serializedName: "vmPriority", + userStorageResourceId: { + readOnly: true, + serializedName: "userStorageResourceId", type: { name: "String" } }, - scaleSettings: { - serializedName: "scaleSettings", + appInsightsInstrumentationKey: { + readOnly: true, + serializedName: "appInsightsInstrumentationKey", type: { - name: "Composite", - className: "ScaleSettings" + name: "String" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + containerRegistryCredentials: { + readOnly: true, + serializedName: "containerRegistryCredentials", type: { name: "Composite", - className: "UserAccountCredentials" + className: "RegistryListCredentialsResult" } }, - subnet: { - serializedName: "subnet", + notebookAccessKeys: { + serializedName: "notebookAccessKeys", type: { name: "Composite", - className: "ResourceId" + className: "NotebookListCredentialsResult" + } + } + } + } +}; + +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" } }, - allocationState: { + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { readOnly: true, - serializedName: "allocationState", + serializedName: "code", type: { name: "String" } }, - allocationStateTransitionTime: { + message: { readOnly: true, - serializedName: "allocationStateTransitionTime", + serializedName: "message", type: { - name: "DateTime" + name: "String" } }, - errors: { + details: { readOnly: true, - serializedName: "errors", + serializedName: "details", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "ErrorDetail" } } } + } + } + } +}; + +export const MachineLearningServiceError: msRest.CompositeMapper = { + serializedName: "MachineLearningServiceError", + type: { + name: "Composite", + className: "MachineLearningServiceError", + modelProperties: { + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + } +}; + +export const Compute: msRest.CompositeMapper = { + serializedName: "Compute", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "Compute", + className: "Compute", + modelProperties: { + computeLocation: { + serializedName: "computeLocation", + type: { + name: "String" + } }, - currentNodeCount: { + provisioningState: { readOnly: true, - serializedName: "currentNodeCount", + serializedName: "provisioningState", type: { - name: "Number" + name: "String" } }, - targetNodeCount: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdOn: { readOnly: true, - serializedName: "targetNodeCount", + serializedName: "createdOn", type: { - name: "Number" + name: "DateTime" } }, - nodeStateCounts: { + modifiedOn: { readOnly: true, - serializedName: "nodeStateCounts", + serializedName: "modifiedOn", type: { - name: "Composite", - className: "NodeStateCounts" + name: "DateTime" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + provisioningErrors: { + readOnly: true, + serializedName: "provisioningErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MachineLearningServiceError" + } + } + } + }, + isAttachedCompute: { + readOnly: true, + serializedName: "isAttachedCompute", + type: { + name: "Boolean" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" } } } } }; -export const AmlCompute: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const ComputeResource: msRest.CompositeMapper = { + serializedName: "ComputeResource", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AmlCompute", + className: "ComputeResource", modelProperties: { - ...Compute.type.modelProperties, + ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "AmlComputeProperties" + className: "Compute" } } } } }; -export const VirtualMachineSshCredentials: msRest.CompositeMapper = { - serializedName: "VirtualMachineSshCredentials", +export const SystemService: msRest.CompositeMapper = { + serializedName: "SystemService", type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "SystemService", modelProperties: { - username: { - serializedName: "username", + systemServiceType: { + readOnly: true, + serializedName: "systemServiceType", type: { name: "String" } }, - password: { - serializedName: "password", + publicIpAddress: { + readOnly: true, + serializedName: "publicIpAddress", type: { name: "String" } }, - publicKeyData: { - serializedName: "publicKeyData", + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const SslConfiguration: msRest.CompositeMapper = { + serializedName: "SslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration", + modelProperties: { + status: { + serializedName: "status", type: { name: "String" } }, - privateKeyData: { - serializedName: "privateKeyData", + cert: { + serializedName: "cert", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", type: { name: "String" } @@ -1167,129 +1534,1066 @@ export const VirtualMachineSshCredentials: msRest.CompositeMapper = { } }; -export const VirtualMachineProperties: msRest.CompositeMapper = { - serializedName: "VirtualMachine_properties", +export const AksNetworkingConfiguration: msRest.CompositeMapper = { + serializedName: "AksNetworkingConfiguration", type: { name: "Composite", - className: "VirtualMachineProperties", + className: "AksNetworkingConfiguration", modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", + subnetId: { + serializedName: "subnetId", type: { name: "String" } }, - sshPort: { - serializedName: "sshPort", + serviceCidr: { + serializedName: "serviceCidr", + constraints: { + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ + }, + type: { + name: "String" + } + }, + dnsServiceIP: { + serializedName: "dnsServiceIP", + constraints: { + Pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ + }, + type: { + name: "String" + } + }, + dockerBridgeCidr: { + serializedName: "dockerBridgeCidr", + constraints: { + Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AKSProperties: msRest.CompositeMapper = { + serializedName: "AKS_properties", + type: { + name: "Composite", + className: "AKSProperties", + modelProperties: { + clusterFqdn: { + serializedName: "clusterFqdn", + type: { + name: "String" + } + }, + systemServices: { + readOnly: true, + serializedName: "systemServices", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } + } + }, + agentCount: { + serializedName: "agentCount", + constraints: { + InclusiveMinimum: 1 + }, type: { name: "Number" } }, - address: { - serializedName: "address", + agentVMSize: { + serializedName: "agentVMSize", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + sslConfiguration: { + serializedName: "sslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + } + } + } +}; + +export const AKS: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "AKS", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AKSProperties" + } + } + } + } +}; + +export const ScaleSettings: msRest.CompositeMapper = { + serializedName: "ScaleSettings", + type: { + name: "Composite", + className: "ScaleSettings", + modelProperties: { + maxNodeCount: { + required: true, + serializedName: "maxNodeCount", + type: { + name: "Number" + } + }, + minNodeCount: { + serializedName: "minNodeCount", + defaultValue: 0, + type: { + name: "Number" + } + }, + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const UserAccountCredentials: msRest.CompositeMapper = { + serializedName: "UserAccountCredentials", + type: { + name: "Composite", + className: "UserAccountCredentials", + modelProperties: { + adminUserName: { + required: true, + serializedName: "adminUserName", + type: { + name: "String" + } + }, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", + type: { + name: "String" + } + }, + adminUserPassword: { + serializedName: "adminUserPassword", + type: { + name: "String" + } + } + } + } +}; + +export const NodeStateCounts: msRest.CompositeMapper = { + serializedName: "NodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts", + modelProperties: { + idleNodeCount: { + readOnly: true, + serializedName: "idleNodeCount", + type: { + name: "Number" + } + }, + runningNodeCount: { + readOnly: true, + serializedName: "runningNodeCount", + type: { + name: "Number" + } + }, + preparingNodeCount: { + readOnly: true, + serializedName: "preparingNodeCount", + type: { + name: "Number" + } + }, + unusableNodeCount: { + readOnly: true, + serializedName: "unusableNodeCount", + type: { + name: "Number" + } + }, + leavingNodeCount: { + readOnly: true, + serializedName: "leavingNodeCount", + type: { + name: "Number" + } + }, + preemptedNodeCount: { + readOnly: true, + serializedName: "preemptedNodeCount", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlComputeProperties: msRest.CompositeMapper = { + serializedName: "AmlCompute_properties", + type: { + name: "Composite", + className: "AmlComputeProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + vmPriority: { + serializedName: "vmPriority", + type: { + name: "String" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + userAccountCredentials: { + serializedName: "userAccountCredentials", + type: { + name: "Composite", + className: "UserAccountCredentials" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + remoteLoginPortPublicAccess: { + serializedName: "remoteLoginPortPublicAccess", + defaultValue: 'NotSpecified', + type: { + name: "String" + } + }, + allocationState: { + readOnly: true, + serializedName: "allocationState", + type: { + name: "String" + } + }, + allocationStateTransitionTime: { + readOnly: true, + serializedName: "allocationStateTransitionTime", + type: { + name: "DateTime" + } + }, + errors: { + readOnly: true, + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MachineLearningServiceError" + } + } + } + }, + currentNodeCount: { + readOnly: true, + serializedName: "currentNodeCount", + type: { + name: "Number" + } + }, + targetNodeCount: { + readOnly: true, + serializedName: "targetNodeCount", + type: { + name: "Number" + } + }, + nodeStateCounts: { + readOnly: true, + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + } + } + } +}; + +export const AmlCompute: msRest.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "AmlCompute", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AmlComputeProperties" + } + } + } + } +}; + +export const ComputeInstanceSshSettings: msRest.CompositeMapper = { + serializedName: "ComputeInstanceSshSettings", + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + serializedName: "sshPublicAccess", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + adminUserName: { + readOnly: true, + serializedName: "adminUserName", + type: { + name: "String" + } + }, + sshPort: { + readOnly: true, + serializedName: "sshPort", + type: { + name: "Number" + } + }, + adminPublicKey: { + serializedName: "adminPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceConnectivityEndpoints: msRest.CompositeMapper = { + serializedName: "ComputeInstanceConnectivityEndpoints", + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints", + modelProperties: { + publicIpAddress: { + readOnly: true, + serializedName: "publicIpAddress", + type: { + name: "String" + } + }, + privateIpAddress: { + readOnly: true, + serializedName: "privateIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceApplication: msRest.CompositeMapper = { + serializedName: "ComputeInstanceApplication", + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { + serializedName: "ComputeInstanceCreatedBy", + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + readOnly: true, + serializedName: "userName", + type: { + name: "String" + } + }, + userOrgId: { + readOnly: true, + serializedName: "userOrgId", + type: { + name: "String" + } + }, + userId: { + readOnly: true, + serializedName: "userId", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceLastOperation: msRest.CompositeMapper = { + serializedName: "ComputeInstanceLastOperation", + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", + type: { + name: "String" + } + }, + operationTime: { + serializedName: "operationTime", + type: { + name: "DateTime" + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceProperties: msRest.CompositeMapper = { + serializedName: "ComputeInstance_properties", + type: { + name: "Composite", + className: "ComputeInstanceProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + applicationSharingPolicy: { + serializedName: "applicationSharingPolicy", + defaultValue: 'Shared', + type: { + name: "String" + } + }, + sshSettings: { + serializedName: "sshSettings", + type: { + name: "Composite", + className: "ComputeInstanceSshSettings" + } + }, + connectivityEndpoints: { + readOnly: true, + serializedName: "connectivityEndpoints", + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" + } + }, + applications: { + readOnly: true, + serializedName: "applications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } + } + }, + createdBy: { + readOnly: true, + serializedName: "createdBy", + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy" + } + }, + errors: { + readOnly: true, + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MachineLearningServiceError" + } + } + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + lastOperation: { + readOnly: true, + serializedName: "lastOperation", + type: { + name: "Composite", + className: "ComputeInstanceLastOperation" + } + } + } + } +}; + +export const ComputeInstance: msRest.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "ComputeInstance", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComputeInstanceProperties" + } + } + } + } +}; + +export const VirtualMachineSshCredentials: msRest.CompositeMapper = { + serializedName: "VirtualMachineSshCredentials", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineProperties: msRest.CompositeMapper = { + serializedName: "VirtualMachine_properties", + type: { + name: "Composite", + className: "VirtualMachineProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const VirtualMachine: msRest.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "VirtualMachine", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VirtualMachineProperties" + } + } + } + } +}; + +export const HDInsightProperties: msRest.CompositeMapper = { + serializedName: "HDInsight_properties", + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const HDInsight: msRest.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "HDInsight", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "HDInsightProperties" + } + } + } + } +}; + +export const DataFactory: msRest.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "DataFactory", + modelProperties: { + ...Compute.type.modelProperties + } + } +}; + +export const DatabricksProperties: msRest.CompositeMapper = { + serializedName: "Databricks_properties", + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + } + } + } +}; + +export const Databricks: msRest.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "Databricks", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatabricksProperties" + } + } + } + } +}; + +export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { + serializedName: "DataLakeAnalytics_properties", + type: { + name: "Composite", + className: "DataLakeAnalyticsProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeAnalytics: msRest.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + uberParent: "Compute", + className: "DataLakeAnalytics", + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataLakeAnalyticsProperties" + } + } + } + } +}; + +export const ServicePrincipalCredentials: msRest.CompositeMapper = { + serializedName: "ServicePrincipalCredentials", + type: { + name: "Composite", + className: "ServicePrincipalCredentials", + modelProperties: { + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "String" + } + }, + clientSecret: { + required: true, + serializedName: "clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterUpdateParameters: msRest.CompositeMapper = { + serializedName: "ClusterUpdateParameters", + type: { + name: "Composite", + className: "ClusterUpdateParameters", + modelProperties: { + scaleSettings: { + serializedName: "properties.scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + } + } + } +}; + +export const ComputeNodesInformation: msRest.CompositeMapper = { + serializedName: "ComputeNodesInformation", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "ComputeNodesInformation", + className: "ComputeNodesInformation", + modelProperties: { + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const AmlComputeNodeInformation: msRest.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlComputeNodeInformation", + modelProperties: { + nodeId: { + readOnly: true, + serializedName: "nodeId", + type: { + name: "String" + } + }, + privateIpAddress: { + readOnly: true, + serializedName: "privateIpAddress", + type: { + name: "String" + } + }, + publicIpAddress: { + readOnly: true, + serializedName: "publicIpAddress", + type: { + name: "String" + } + }, + port: { + readOnly: true, + serializedName: "port", + type: { + name: "Number" + } + }, + nodeState: { + readOnly: true, + serializedName: "nodeState", + type: { + name: "String" + } + }, + runId: { + readOnly: true, + serializedName: "runId", + type: { + name: "String" + } + } + } + } +}; + +export const AmlComputeNodesInformation: msRest.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, + uberParent: "ComputeNodesInformation", + className: "AmlComputeNodesInformation", + modelProperties: { + ...ComputeNodesInformation.type.modelProperties, + nodes: { + readOnly: true, + serializedName: "nodes", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } } } } } }; -export const VirtualMachine: msRest.CompositeMapper = { - serializedName: "VirtualMachine", +export const ComputeSecrets: msRest.CompositeMapper = { + serializedName: "ComputeSecrets", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "VirtualMachine", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "ComputeSecrets", + className: "ComputeSecrets", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + computeType: { + required: true, + serializedName: "computeType", type: { - name: "Composite", - className: "VirtualMachineProperties" + name: "String" } } } } }; -export const HDInsightProperties: msRest.CompositeMapper = { - serializedName: "HDInsight_properties", +export const AksComputeSecrets: msRest.CompositeMapper = { + serializedName: "AKS", type: { name: "Composite", - className: "HDInsightProperties", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + uberParent: "ComputeSecrets", + className: "AksComputeSecrets", modelProperties: { - sshPort: { - serializedName: "sshPort", + ...ComputeSecrets.type.modelProperties, + userKubeConfig: { + serializedName: "userKubeConfig", type: { - name: "Number" + name: "String" } }, - address: { - serializedName: "address", + adminKubeConfig: { + serializedName: "adminKubeConfig", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + imagePullSecretName: { + serializedName: "imagePullSecretName", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } } } } }; -export const HDInsight: msRest.CompositeMapper = { - serializedName: "HDInsight", +export const VirtualMachineSecrets: msRest.CompositeMapper = { + serializedName: "VirtualMachine", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "HDInsight", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + uberParent: "ComputeSecrets", + className: "VirtualMachineSecrets", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + ...ComputeSecrets.type.modelProperties, + administratorAccount: { + serializedName: "administratorAccount", type: { name: "Composite", - className: "HDInsightProperties" + className: "VirtualMachineSshCredentials" } } } } }; -export const DataFactory: msRest.CompositeMapper = { - serializedName: "DataFactory", - type: { - name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataFactory", - modelProperties: { - ...Compute.type.modelProperties - } - } -}; - -export const DatabricksProperties: msRest.CompositeMapper = { - serializedName: "Databricks_properties", +export const DatabricksComputeSecrets: msRest.CompositeMapper = { + serializedName: "Databricks", type: { name: "Composite", - className: "DatabricksProperties", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + uberParent: "ComputeSecrets", + className: "DatabricksComputeSecrets", modelProperties: { + ...ComputeSecrets.type.modelProperties, databricksAccessToken: { serializedName: "databricksAccessToken", type: { @@ -1300,78 +2604,132 @@ export const DatabricksProperties: msRest.CompositeMapper = { } }; -export const Databricks: msRest.CompositeMapper = { - serializedName: "Databricks", +export const SKUCapability: msRest.CompositeMapper = { + serializedName: "SKUCapability", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "Databricks", + className: "SKUCapability", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + name: { + serializedName: "name", type: { - name: "Composite", - className: "DatabricksProperties" + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" } } } } }; -export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics_properties", +export const ResourceSkuZoneDetails: msRest.CompositeMapper = { + serializedName: "ResourceSkuZoneDetails", type: { name: "Composite", - className: "DataLakeAnalyticsProperties", + className: "ResourceSkuZoneDetails", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + name: { + readOnly: true, + serializedName: "name", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } } } } } }; -export const DataLakeAnalytics: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const ResourceSkuLocationInfo: msRest.CompositeMapper = { + serializedName: "ResourceSkuLocationInfo", type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataLakeAnalytics", + className: "ResourceSkuLocationInfo", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Composite", - className: "DataLakeAnalyticsProperties" + name: "String" + } + }, + zones: { + readOnly: true, + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + readOnly: true, + serializedName: "zoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } } } } } }; -export const ServicePrincipalCredentials: msRest.CompositeMapper = { - serializedName: "ServicePrincipalCredentials", +export const Restriction: msRest.CompositeMapper = { + serializedName: "Restriction", type: { name: "Composite", - className: "ServicePrincipalCredentials", + className: "Restriction", modelProperties: { - clientId: { - required: true, - serializedName: "clientId", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - clientSecret: { - required: true, - serializedName: "clientSecret", + values: { + readOnly: true, + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reasonCode: { + serializedName: "reasonCode", type: { name: "String" } @@ -1380,101 +2738,172 @@ export const ServicePrincipalCredentials: msRest.CompositeMapper = { } }; -export const ClusterUpdateParameters: msRest.CompositeMapper = { - serializedName: "ClusterUpdateParameters", +export const SkuSettings: msRest.CompositeMapper = { + serializedName: "SkuSettings", type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "SkuSettings", modelProperties: { - scaleSettings: { - serializedName: "properties.scaleSettings", + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + readOnly: true, + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + }, + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + }, + restrictions: { + serializedName: "restrictions", type: { - name: "Composite", - className: "ScaleSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } } } } } }; -export const ComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "ComputeNodesInformation", +export const WorkspaceSku: msRest.CompositeMapper = { + serializedName: "WorkspaceSku", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeNodesInformation", - className: "ComputeNodesInformation", + className: "WorkspaceSku", modelProperties: { - nextLink: { + resourceType: { readOnly: true, - serializedName: "nextLink", + serializedName: "resourceType", type: { name: "String" } }, - computeType: { - required: true, - serializedName: "computeType", + skus: { + readOnly: true, + serializedName: "skus", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuSettings" + } + } } } } } }; -export const AmlComputeNodeInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "PrivateLinkResource", modelProperties: { - nodeId: { + ...Resource.type.modelProperties, + groupId: { readOnly: true, - serializedName: "nodeId", + serializedName: "properties.groupId", type: { name: "String" } }, - ipAddress: { + requiredMembers: { readOnly: true, - serializedName: "ipAddress", + serializedName: "properties.requiredMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - port: { - readOnly: true, - serializedName: "port", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", type: { name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", + className: "PrivateLinkResourceListResult", modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { - readOnly: true, - serializedName: "nodes", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlComputeNodeInformation" + className: "PrivateLinkResource" } } } @@ -1483,90 +2912,93 @@ export const AmlComputeNodesInformation: msRest.CompositeMapper = { } }; -export const ComputeSecrets: msRest.CompositeMapper = { - serializedName: "ComputeSecrets", +export const WorkspaceConnection: msRest.CompositeMapper = { + serializedName: "WorkspaceConnection", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeSecrets", - className: "ComputeSecrets", + className: "WorkspaceConnection", modelProperties: { - computeType: { - required: true, - serializedName: "computeType", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } - } - } - } -}; - -export const AksComputeSecrets: msRest.CompositeMapper = { - serializedName: "AKS", - type: { - name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "AksComputeSecrets", - modelProperties: { - ...ComputeSecrets.type.modelProperties, - userKubeConfig: { - serializedName: "userKubeConfig", + }, + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - imagePullSecretName: { - serializedName: "imagePullSecretName", + category: { + serializedName: "properties.category", type: { name: "String" } - } - } - } -}; - -export const VirtualMachineSecrets: msRest.CompositeMapper = { - serializedName: "VirtualMachine", - type: { - name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "VirtualMachineSecrets", - modelProperties: { - ...ComputeSecrets.type.modelProperties, - administratorAccount: { - serializedName: "administratorAccount", + }, + target: { + serializedName: "properties.target", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" + } + }, + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" } } } } }; -export const DatabricksComputeSecrets: msRest.CompositeMapper = { - serializedName: "Databricks", +export const WorkspaceConnectionDto: msRest.CompositeMapper = { + serializedName: "WorkspaceConnectionDto", type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "DatabricksComputeSecrets", + className: "WorkspaceConnectionDto", modelProperties: { - ...ComputeSecrets.type.modelProperties, - databricksAccessToken: { - serializedName: "databricksAccessToken", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", + type: { + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "String" + } + }, + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", type: { name: "String" } @@ -1663,6 +3095,36 @@ export const WorkspaceListResult: msRest.CompositeMapper = { } }; +export const ListAmlUserFeatureResult: msRest.CompositeMapper = { + serializedName: "ListAmlUserFeatureResult", + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ListUsagesResult: msRest.CompositeMapper = { serializedName: "ListUsagesResult", type: { @@ -1693,6 +3155,58 @@ export const ListUsagesResult: 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 PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { + serializedName: "PaginatedWorkspaceConnectionsList", + type: { + name: "Composite", + className: "PaginatedWorkspaceConnectionsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnection" + } + } + } + } + } + } +}; + export const PaginatedComputeResourcesList: msRest.CompositeMapper = { serializedName: "PaginatedComputeResourcesList", type: { @@ -1721,10 +3235,39 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { } }; +export const SkuListResult: msRest.CompositeMapper = { + serializedName: "SkuListResult", + type: { + name: "Composite", + className: "SkuListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { 'Compute' : Compute, 'Compute.AKS' : AKS, 'Compute.AmlCompute' : AmlCompute, + 'Compute.ComputeInstance' : ComputeInstance, 'Compute.VirtualMachine' : VirtualMachine, 'Compute.HDInsight' : HDInsight, 'Compute.DataFactory' : DataFactory, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts new file mode 100644 index 000000000000..6eee7cd96eba --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + ErrorDetail, + ErrorResponse, + MachineLearningServiceError, + NotebookPreparationError, + NotebookResourceInfo +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 705365dcbf19..d541e68b39a9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -30,6 +30,18 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; +export const category: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "category" + ], + mapper: { + serializedName: "category", + type: { + name: "String" + } + } +}; export const computeName: msRest.OperationURLParameter = { parameterPath: "computeName", mapper: { @@ -40,6 +52,28 @@ export const computeName: msRest.OperationURLParameter = { } } }; +export const computeType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "computeType" + ], + mapper: { + serializedName: "compute-type", + type: { + name: "String" + } + } +}; +export const connectionName: msRest.OperationURLParameter = { + parameterPath: "connectionName", + mapper: { + required: true, + serializedName: "connectionName", + type: { + name: "String" + } + } +}; export const location: msRest.OperationURLParameter = { parameterPath: "location", mapper: { @@ -64,6 +98,28 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; +export const recommended: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recommended" + ], + mapper: { + serializedName: "recommended", + type: { + name: "Boolean" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -96,6 +152,18 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const target: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "target" + ], + mapper: { + serializedName: "target", + type: { + name: "String" + } + } +}; export const underlyingResourceAction: msRest.OperationQueryParameter = { parameterPath: "underlyingResourceAction", mapper: { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..e1b2c38700b0 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + BaseResource, + Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + Databricks, + DatabricksProperties, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + EncryptionProperty, + ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, + IdentityUserAssignedIdentitiesValue, + KeyVaultProperties, + MachineLearningServiceError, + NodeStateCounts, + NotebookPreparationError, + NotebookResourceInfo, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + Resource, + ResourceId, + ScaleSettings, + SharedPrivateLinkResource, + Sku, + SslConfiguration, + SystemService, + UserAccountCredentials, + VirtualMachine, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..f6e773e72e3f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,62 @@ +/* + * 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, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + BaseResource, + CloudError, + Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + Databricks, + DatabricksProperties, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + EncryptionProperty, + ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, + IdentityUserAssignedIdentitiesValue, + KeyVaultProperties, + MachineLearningServiceError, + NodeStateCounts, + NotebookPreparationError, + NotebookResourceInfo, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkServiceConnectionState, + Resource, + ResourceId, + ScaleSettings, + SharedPrivateLinkResource, + Sku, + SslConfiguration, + SystemService, + UserAccountCredentials, + VirtualMachine, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection +} from "../models/mappers"; 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..2598859dbe90 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts @@ -0,0 +1,22 @@ +/* + * 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, + UpdateWorkspaceQuotasResult +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts index 615f58d4604f..c2f2294b31e8 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts @@ -9,6 +9,8 @@ export { discriminators, CloudError, + EstimatedVMPrice, + EstimatedVMPrices, VirtualMachineSize, VirtualMachineSizeListResult } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts new file mode 100644 index 000000000000..dec7cd33e818 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts @@ -0,0 +1,62 @@ +/* + * 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, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AmlCompute, + AmlComputeProperties, + BaseResource, + Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + Databricks, + DatabricksProperties, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + EncryptionProperty, + ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, + IdentityUserAssignedIdentitiesValue, + KeyVaultProperties, + MachineLearningServiceError, + NodeStateCounts, + NotebookPreparationError, + NotebookResourceInfo, + PaginatedWorkspaceConnectionsList, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + Resource, + ResourceId, + ScaleSettings, + SharedPrivateLinkResource, + Sku, + SslConfiguration, + SystemService, + UserAccountCredentials, + VirtualMachine, + VirtualMachineProperties, + VirtualMachineSshCredentials, + Workspace, + WorkspaceConnection, + WorkspaceConnectionDto +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts new file mode 100644 index 000000000000..ea9f1ebd9ffb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts @@ -0,0 +1,16 @@ +/* + * 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, + AmlUserFeature, + ErrorDetail, + ErrorResponse, + ListAmlUserFeatureResult, + MachineLearningServiceError +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts index 147ed31e4a00..2345a45d0d45 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts @@ -15,25 +15,44 @@ export { AmlComputeProperties, BaseResource, Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, ComputeResource, Databricks, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + EncryptionProperty, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, + IdentityUserAssignedIdentitiesValue, + KeyVaultProperties, ListWorkspaceKeysResult, MachineLearningServiceError, NodeStateCounts, + NotebookListCredentialsResult, + NotebookPreparationError, + NotebookResourceInfo, Password, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, RegistryListCredentialsResult, Resource, ResourceId, ScaleSettings, + SharedPrivateLinkResource, + Sku, SslConfiguration, SystemService, UserAccountCredentials, @@ -41,6 +60,7 @@ export { VirtualMachineProperties, VirtualMachineSshCredentials, Workspace, + WorkspaceConnection, 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 eb4867fd5155..d56f3480b068 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -10,6 +10,12 @@ export * from "./operations"; export * from "./workspaces"; +export * from "./workspaceFeatures"; +export * from "./notebooks"; export * from "./usages"; export * from "./virtualMachineSizes"; +export * from "./quotas"; +export * from "./workspaceConnections"; export * from "./machineLearningCompute"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts index b15b0735087f..40daf0d4315b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts @@ -214,6 +214,114 @@ export class MachineLearningCompute { callback) as Promise; } + /** + * Posts a start action to a compute instance + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param callback The callback + */ + start(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The optional parameters + * @param callback The callback + */ + start(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + startOperationSpec, + callback); + } + + /** + * Posts a stop action to a compute instance + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param callback The callback + */ + stop(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The optional parameters + * @param callback The callback + */ + stop(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + stopOperationSpec, + callback); + } + + /** + * Posts a restart action to a compute instance + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param [options] The optional parameters + * @returns Promise + */ + restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param callback The callback + */ + restart(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The optional parameters + * @param callback The callback + */ + restart(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + restartOperationSpec, + callback); + } + /** * Creates or updates compute. This call will overwrite a compute if it exists. This is a * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify @@ -419,6 +527,78 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; +const startOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const stopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const restartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", @@ -451,7 +631,8 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders } }, serializer @@ -514,7 +695,8 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.MachineLearningComputeDeleteHeaders }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.MachineLearningComputeDeleteHeaders } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts new file mode 100644 index 000000000000..3b7544ab94a4 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts @@ -0,0 +1,85 @@ +/* + * 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/notebooksMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Notebooks. */ +export class Notebooks { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Notebooks. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + prepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPrepare(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginPrepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginPrepareOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginPrepareOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..b93d4cb78781 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -0,0 +1,233 @@ +/* + * 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/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a PrivateEndpointConnections. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update the state of specified private endpoint connection associated with the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param properties The private endpoint connection properties. + * @param [options] The optional parameters + * @returns Promise + */ + put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param properties The private endpoint connection properties. + * @param callback The callback + */ + put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param properties The private endpoint connection properties. + * @param options The optional parameters + * @param callback The callback + */ + put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + properties, + options + }, + putOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const putOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "properties", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..b2f679e33662 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts @@ -0,0 +1,87 @@ +/* + * 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/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a PrivateLinkResources. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listByWorkspaceOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByWorkspaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..b38d59b29325 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -0,0 +1,194 @@ +/* + * 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/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 parameters Quota update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param callback The callback + */ + update(location: string, parameters: Models.QuotaUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param options The optional parameters + * @param callback The callback + */ + update(location: string, parameters: Models.QuotaUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + parameters, + options + }, + updateOperationSpec, + callback) 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; + } + + /** + * 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 updateOperationSpec: 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.UpdateWorkspaceQuotasResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 5b2ddc6d7e39..cca06ac147ed 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -32,7 +32,7 @@ export class VirtualMachineSizes { * @param [options] The optional parameters * @returns Promise */ - list(location: string, options?: msRest.RequestOptionsBase): Promise; + list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; /** * @param location The location upon which virtual-machine-sizes is queried. * @param callback The callback @@ -43,8 +43,8 @@ export class VirtualMachineSizes { * @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 { + list(location: string, options: Models.VirtualMachineSizesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, options?: Models.VirtualMachineSizesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -65,7 +65,9 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.computeType, + Parameters.recommended ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts new file mode 100644 index 000000000000..7cd525a1f23c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts @@ -0,0 +1,285 @@ +/* + * 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/workspaceConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a WorkspaceConnections. */ +export class WorkspaceConnections { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a WorkspaceConnections. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List all connections under a AML workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.WorkspaceConnectionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Add a new workspace connection. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param callback The callback + */ + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + connectionName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Get the detail of a workspace connection. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + connectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a workspace connection. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + connectionName, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PaginatedWorkspaceConnectionsList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WorkspaceConnectionDto, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnection + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnection + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts new file mode 100644 index 000000000000..e227cca9ecaf --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts @@ -0,0 +1,136 @@ +/* + * 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/workspaceFeaturesMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a WorkspaceFeatures. */ +export class WorkspaceFeatures { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a WorkspaceFeatures. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Lists all enabled features for a workspace + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all enabled features for a workspace + * @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: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListAmlUserFeatureResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListAmlUserFeatureResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts index 4f9cbb878a71..db330ccaea7c 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts @@ -9,6 +9,7 @@ */ 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/workspacesMappers"; import * as Parameters from "../models/parameters"; @@ -66,32 +67,9 @@ export class Workspaces { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -101,29 +79,9 @@ export class Workspaces { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - deleteMethodOperationSpec, - callback); + deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -280,6 +238,44 @@ export class Workspaces { callback) as Promise; } + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a machine learning workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + /** * Lists all the available machine learning workspaces under the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -364,8 +360,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", urlParameters: [ Parameters.subscriptionId, @@ -381,7 +377,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.Workspace, + ...Mappers.WorkspaceUpdateParameters, required: true } }, @@ -389,9 +385,6 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.Workspace }, - 201: { - bodyMapper: Mappers.Workspace - }, default: { bodyMapper: Mappers.MachineLearningServiceError } @@ -399,23 +392,24 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.skiptoken ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, default: { bodyMapper: Mappers.MachineLearningServiceError } @@ -423,9 +417,9 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -437,16 +431,9 @@ const updateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkspaceUpdateParameters, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.ListWorkspaceKeysResult }, default: { bodyMapper: Mappers.MachineLearningServiceError @@ -455,24 +442,22 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", +const resyncKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.workspaceName ], queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.WorkspaceListResult - }, + 200: {}, default: { bodyMapper: Mappers.MachineLearningServiceError } @@ -480,23 +465,22 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.skiptoken ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ListWorkspaceKeysResult + bodyMapper: Mappers.WorkspaceListResult }, default: { bodyMapper: Mappers.MachineLearningServiceError @@ -505,9 +489,9 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; -const resyncKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -519,8 +503,21 @@ const resyncKeysOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Workspace, + required: true + } + }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: {}, default: { bodyMapper: Mappers.MachineLearningServiceError } @@ -528,23 +525,24 @@ const resyncKeysOperationSpec: msRest.OperationSpec = { serializer }; -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", urlParameters: [ - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.WorkspaceListResult - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.MachineLearningServiceError } diff --git a/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json b/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true