From 349a26ad43e00c7d644d56cbaa86ea2f8cfdc051 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 11 May 2021 02:31:12 +0000 Subject: [PATCH] CodeGen from PR 12554 in Azure/azure-rest-api-specs Merge 0ebc6a55f9b218af823d2b9cc634b0d46e4705ad into fc32868d898ec14420bcdad85116c0c1f875c490 --- .../arm-machinelearningservices/LICENSE.txt | 2 +- .../src/azureMachineLearningWorkspaces.ts | 114 +- .../azureMachineLearningWorkspacesContext.ts | 2 +- .../src/models/index.ts | 3031 +++++++++++-- .../models/machineLearningComputeMappers.ts | 65 +- .../models/machineLearningServiceMappers.ts | 142 + .../src/models/mappers.ts | 3781 +++++++++++++++-- .../src/models/notebooksMappers.ts | 5 +- .../src/models/operationsMappers.ts | 4 +- .../src/models/parameters.ts | 128 +- .../privateEndpointConnectionsMappers.ts | 65 +- .../src/models/privateLinkResourcesMappers.ts | 65 +- .../src/models/quotasMappers.ts | 3 +- .../src/models/storageAccountMappers.ts | 17 + .../src/models/workspaceConnectionsMappers.ts | 65 +- .../src/models/workspaceFeaturesMappers.ts | 4 +- .../src/models/workspaceOperationsMappers.ts | 22 + .../src/models/workspacesMappers.ts | 68 +- .../src/operations/index.ts | 7 +- .../src/operations/machineLearningCompute.ts | 250 +- .../src/operations/machineLearningService.ts | 359 ++ .../src/operations/notebooks.ts | 56 + .../operations/privateEndpointConnections.ts | 32 +- .../src/operations/quotas.ts | 6 +- .../src/operations/storageAccount.ts | 85 + .../src/operations/virtualMachineSizes.ts | 10 +- .../src/operations/workspaceOperations.ts | 128 + .../src/operations/workspaces.ts | 133 +- 28 files changed, 7589 insertions(+), 1060 deletions(-) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/storageAccountMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceOperationsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/storageAccount.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceOperations.ts diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index ea8fb1516028..2d3163745319 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) 2020 Microsoft +Copyright (c) 2021 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/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 4cc5d45384af..082d6cba7903 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -10,7 +10,6 @@ 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"; @@ -20,14 +19,17 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte 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; + workspace: operations.WorkspaceOperations; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + machineLearningService: operations.MachineLearningService; + notebooks: operations.Notebooks; + storageAccount: operations.StorageAccount; + workspaceConnections: operations.WorkspaceConnections; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -40,117 +42,21 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte 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.workspace = new operations.WorkspaceOperations(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; + this.machineLearningService = new operations.MachineLearningService(this); + this.notebooks = new operations.Notebooks(this); + this.storageAccount = new operations.StorageAccount(this); + this.workspaceConnections = new operations.WorkspaceConnections(this); } } // 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 - ], - queryParameters: [ - Parameters.apiVersion - ], - 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 5dfaeebdef9f..782a488bf5e9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -43,7 +43,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2020-08-01'; + this.apiVersion = '2021-04-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 77ada3593b7f..e4e7e0320e64 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -48,34 +48,14 @@ export interface Operation { } /** - * An interface representing NotebookListCredentialsResult. + * Identity that will be used to access key vault for encryption at rest */ -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; +export interface IdentityForCmk { /** - * The error that occurs when preparing notebook. + * The ArmId of the user assigned identity that will be used to access the customer managed key + * vault */ - notebookPreparationError?: NotebookPreparationError; + userAssignedIdentity?: string; } /** @@ -105,6 +85,10 @@ export interface EncryptionProperty { * 'Enabled', 'Disabled' */ status: EncryptionStatus; + /** + * The identity that will be used to access the key vault for encryption at rest. + */ + identity?: IdentityForCmk; /** * Customer Key vault properties. */ @@ -120,6 +104,11 @@ export interface PrivateEndpoint { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * The ARM identifier for Subnet resource that private endpoint links to + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetArmId?: string; } /** @@ -143,24 +132,50 @@ export interface PrivateLinkServiceConnectionState { } /** - * The Private Endpoint Connection resource. + * Azure Resource Manager resource envelope. */ -export interface PrivateEndpointConnection extends BaseResource { +export interface Resource extends BaseResource { /** - * ResourceId of the private endpoint connection. + * Specifies the resource ID. * **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. + * Specifies the name of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * Resource type of private endpoint connection. + * The identity of the resource. + */ + identity?: Identity; + /** + * Specifies the location of the resource. + */ + location?: string; + /** + * Specifies the type of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; + /** + * Contains resource tags defined as key/value pairs. + */ + tags?: { [propertyName: string]: string }; + /** + * The sku of the workspace. + */ + sku?: Sku; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends Resource { /** * The resource of private end point. */ @@ -205,40 +220,46 @@ export interface SharedPrivateLinkResource { } /** - * Azure Resource Manager resource envelope. + * An interface representing NotebookPreparationError. */ -export interface Resource extends BaseResource { - /** - * Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Specifies the name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The identity of the resource. - */ - identity?: Identity; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +/** + * An interface representing NotebookResourceInfo. + */ +export interface NotebookResourceInfo { + fqdn?: string; /** - * Specifies the location of the resource. + * the data plane resourceId that used to initialize notebook component */ - location?: string; + resourceId?: string; /** - * Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The error that occurs when preparing notebook. */ - readonly type?: string; + notebookPreparationError?: NotebookPreparationError; +} + +/** + * An interface representing CosmosDbSettings. + */ +export interface CosmosDbSettings { /** - * Contains resource tags defined as key/value pairs. + * The throughput of the collections in cosmosdb database */ - tags?: { [propertyName: string]: string }; + collectionsThroughput?: number; +} + +/** + * An interface representing ServiceManagedResourcesSettings. + */ +export interface ServiceManagedResourcesSettings { /** - * The sku of the workspace. + * The settings for the service managed cosmosdb account. */ - sku?: Sku; + cosmosDb?: CosmosDbSettings; } /** @@ -258,11 +279,6 @@ export interface Workspace extends Resource { * The friendly name for this workspace. This name in mutable */ friendlyName?: string; - /** - * The creation time of the machine learning workspace in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; /** * ARM id of the key vault associated with this workspace. This cannot be changed once the * workspace has been created @@ -337,6 +353,19 @@ export interface Workspace extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly notebookInfo?: NotebookResourceInfo; + /** + * The service managed resource settings. + */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** + * The user assigned identity resource id that represents the workspace identity. + */ + primaryUserAssignedIdentity?: string; + /** + * The tenant id associated with this workspace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; } /** @@ -353,6 +382,52 @@ export interface Sku { tier?: string; } +/** + * User Assigned Identity + */ +export interface UserAssignedIdentity { + /** + * The principal ID of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant ID of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The clientId(aka appId) of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface Identity { + /** + * 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', 'SystemAssigned,UserAssigned', + * 'UserAssigned', 'None' + */ + type?: ResourceIdentityType; + /** + * The user assigned identities associated with the resource. + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + /** * The parameters for updating a machine learning workspace. */ @@ -365,6 +440,10 @@ export interface WorkspaceUpdateParameters { * The sku of the workspace. */ sku?: Sku; + /** + * The identity of the resource. + */ + identity?: Identity; /** * The description of this workspace. */ @@ -373,6 +452,18 @@ export interface WorkspaceUpdateParameters { * The friendly name for this workspace. */ friendlyName?: string; + /** + * The compute name for image build + */ + imageBuildCompute?: string; + /** + * The service managed resource settings. + */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** + * The user assigned identity resource id that represents the workspace identity. + */ + primaryUserAssignedIdentity?: string; } /** @@ -418,6 +509,11 @@ export interface Usage { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * Region of the AML workspace in the id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly amlWorkspaceLocation?: string; /** * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -527,10 +623,6 @@ export interface VirtualMachineSize { * 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[]; } /** @@ -573,6 +665,10 @@ export interface QuotaUpdateParameters { * The list for update quota. */ value?: QuotaBaseProperties[]; + /** + * Region of workspace quota to be updated. + */ + location?: string; } /** @@ -649,6 +745,11 @@ export interface ResourceQuota { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * Region of the AML workspace in the id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly amlWorkspaceLocation?: string; /** * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -672,46 +773,35 @@ export interface ResourceQuota { } /** - * An interface representing IdentityUserAssignedIdentitiesValue. + * Read only system data */ -export interface IdentityUserAssignedIdentitiesValue { +export interface SystemData { /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An identifier for the identity that created the resource */ - readonly principalId?: string; + createdBy?: string; /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - readonly clientId?: string; -} - -/** - * Identity for the resource. - */ -export interface Identity { + createdByType?: IdentityType; /** - * The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The timestamp of resource creation (UTC) */ - readonly principalId?: string; + createdAt?: Date; /** - * The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An identifier for the identity that last modified the resource */ - readonly tenantId?: string; + lastModifiedBy?: string; /** - * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', - * 'SystemAssigned,UserAssigned', 'None' + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - type: ResourceIdentityType; + lastModifiedByType?: IdentityType; /** - * 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}'. + * The timestamp of resource last modification (UTC) */ - userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; + lastModifiedAt?: Date; } /** @@ -753,6 +843,20 @@ export interface RegistryListCredentialsResult { passwords?: Password[]; } +/** + * An interface representing ListNotebookKeysResult. + */ +export interface ListNotebookKeysResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryAccessKey?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryAccessKey?: string; +} + /** * An interface representing ListWorkspaceKeysResult. */ @@ -773,7 +877,48 @@ export interface ListWorkspaceKeysResult { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly containerRegistryCredentials?: RegistryListCredentialsResult; - notebookAccessKeys?: NotebookListCredentialsResult; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookAccessKeys?: ListNotebookKeysResult; +} + +/** + * An interface representing NotebookAccessTokenResult. + */ +export interface NotebookAccessTokenResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly notebookResourceId?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostName?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly publicDns?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accessToken?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tokenType?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expiresIn?: number; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly refreshToken?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scope?: string; } /** @@ -804,6 +949,11 @@ export interface ErrorResponse { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly message?: string; + /** + * The target of the particular error + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; /** * An array of error detail objects. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -851,12 +1001,12 @@ export interface Compute { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -875,6 +1025,11 @@ export interface Compute { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; } /** @@ -913,7 +1068,7 @@ export interface SystemService { */ export interface SslConfiguration { /** - * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled', 'Auto' */ status?: Status1; /** @@ -928,6 +1083,14 @@ export interface SslConfiguration { * CNAME of the cert */ cname?: string; + /** + * Leaf domain label of public endpoint + */ + leafDomainLabel?: string; + /** + * Indicates whether to overwrite existing domain label. + */ + overwriteExistingDomain?: boolean; } /** @@ -975,7 +1138,12 @@ export interface AKSProperties { /** * Agent virtual machine size */ - agentVMSize?: string; + agentVmSize?: string; + /** + * Intended usage of the cluster. Possible values include: 'FastProd', 'DenseProd', 'DevTest'. + * Default value: 'FastProd'. + */ + clusterPurpose?: ClusterPurpose; /** * SSL configuration */ @@ -984,6 +1152,15 @@ export interface AKSProperties { * AKS networking configuration for vnet */ aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** + * Load Balancer Type. Possible values include: 'PublicIp', 'InternalLoadBalancer'. Default + * value: 'PublicIp'. + */ + loadBalancerType?: LoadBalancerType; + /** + * Load Balancer Subnet + */ + loadBalancerSubnet?: string; } /** @@ -1010,12 +1187,12 @@ export interface AKS { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1034,12 +1211,27 @@ export interface AKS { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * AKS properties */ properties?: AKSProperties; } +/** + * Virtual Machine image for Windows AML Compute + */ +export interface VirtualMachineImage { + /** + * Virtual Machine image path + */ + id: string; +} + /** * scale settings for AML Compute */ @@ -1053,7 +1245,7 @@ export interface ScaleSettings { */ minNodeCount?: number; /** - * Node Idle Time before scaling down amlCompute + * Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ nodeIdleTimeBeforeScaleDown?: string; } @@ -1117,13 +1309,25 @@ export interface NodeStateCounts { */ export interface AmlComputeProperties { /** - * Virtual Machine Size + * Compute OS Type. Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + */ + osType?: OsType; + /** + * Virtual Machine Size */ vmSize?: string; /** * Virtual Machine priority. Possible values include: 'Dedicated', 'LowPriority' */ vmPriority?: VmPriority; + /** + * Virtual Machine image for AML Compute - windows only + */ + virtualMachineImage?: VirtualMachineImage; + /** + * Network is isolated or not + */ + isolatedNetwork?: boolean; /** * Scale settings for AML Compute */ @@ -1186,6 +1390,13 @@ export interface AmlComputeProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nodeStateCounts?: NodeStateCounts; + /** + * Enable node public IP. Enable or disable node public IP address provisioning. Possible values + * are: Possible values are: true - Indicates that the compute nodes will have public IPs + * provisioned. false - Indicates that the compute nodes will have a private endpoint and no + * public IPs. Default value: true. + */ + enableNodePublicIp?: boolean; } /** @@ -1212,12 +1423,12 @@ export interface AmlCompute { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1236,6 +1447,11 @@ export interface AmlCompute { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * AML Compute properties */ @@ -1271,7 +1487,7 @@ export interface ComputeInstanceSshSettings { } /** - * Defines all connectivity endpoints and properties for a ComputeInstance. + * Defines all connectivity endpoints and properties for an ComputeInstance. */ export interface ComputeInstanceConnectivityEndpoints { /** @@ -1322,6 +1538,76 @@ export interface ComputeInstanceCreatedBy { readonly userId?: string; } +/** + * A user that can be assigned to a compute instance. + */ +export interface AssignedUser { + /** + * User’s AAD Object Id. + */ + objectId: string; + /** + * User’s AAD Tenant Id. + */ + tenantId: string; +} + +/** + * Settings for a personal compute instance. + */ +export interface PersonalComputeInstanceSettings { + /** + * Assigned User. A user explicitly assigned to a personal compute instance. + */ + assignedUser?: AssignedUser; +} + +/** + * Script reference + */ +export interface ScriptReference { + /** + * The storage source of the script: inline, workspace. + */ + scriptSource?: string; + /** + * The location of scripts in the mounted volume. + */ + scriptData?: string; + /** + * Optional command line arguments passed to the script to run. + */ + scriptArguments?: string; + /** + * Optional time period passed to timeout command. + */ + timeout?: string; +} + +/** + * Customized setup scripts + */ +export interface ScriptsToExecute { + /** + * Script that's run every time the machine starts. + */ + startupScript?: ScriptReference; + /** + * Script that's run only once during provision of the compute. + */ + creationScript?: ScriptReference; +} + +/** + * Details of customized scripts to execute for setting up the cluster. + */ +export interface SetupScripts { + /** + * Customized setup scripts + */ + scripts?: ScriptsToExecute; +} + /** * The last operation on ComputeInstance. */ @@ -1393,6 +1679,19 @@ export interface ComputeInstanceProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: ComputeInstanceState; + /** + * Compute Instance Authorization type. The Compute Instance Authorization type. Available values + * are personal (default). Possible values include: 'personal'. Default value: 'personal'. + */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** + * Personal Compute Instance settings. Settings for a personal compute instance. + */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** + * Details of customized scripts to execute for setting up the cluster. + */ + setupScripts?: SetupScripts; /** * The last operation on ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1424,12 +1723,12 @@ export interface ComputeInstance { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1448,6 +1747,11 @@ export interface ComputeInstance { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; /** * Compute Instance properties */ @@ -1496,6 +1800,10 @@ export interface VirtualMachineProperties { * Admin credentials for virtual machine */ administratorAccount?: VirtualMachineSshCredentials; + /** + * Indicates whether this compute will be used for running notebooks. + */ + isNotebookInstanceCompute?: boolean; } /** @@ -1522,12 +1830,12 @@ export interface VirtualMachine { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1546,6 +1854,11 @@ export interface VirtualMachine { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: VirtualMachineProperties; } @@ -1591,12 +1904,12 @@ export interface HDInsight { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1615,6 +1928,11 @@ export interface HDInsight { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: HDInsightProperties; } @@ -1642,12 +1960,12 @@ export interface DataFactory { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1666,6 +1984,11 @@ export interface DataFactory { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; } /** @@ -1676,6 +1999,10 @@ export interface DatabricksProperties { * Databricks access token */ databricksAccessToken?: string; + /** + * Workspace Url + */ + workspaceUrl?: string; } /** @@ -1702,12 +2029,12 @@ export interface Databricks { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1726,6 +2053,11 @@ export interface Databricks { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: DatabricksProperties; } @@ -1763,12 +2095,12 @@ export interface DataLakeAnalytics { */ description?: string; /** - * The date and time when the compute was created. + * The time at which 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. + * The time at which the compute was last modified. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly modifiedOn?: Date; @@ -1787,9 +2119,138 @@ export interface DataLakeAnalytics { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isAttachedCompute?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; properties?: DataLakeAnalyticsProperties; } +/** + * Auto scale properties + */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; +} + +/** + * Auto pause properties + */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} + +/** + * AKS properties + */ +export interface SynapseSparkProperties { + /** + * Auto scale properties. + */ + autoScaleProperties?: AutoScaleProperties; + /** + * Auto pause properties. + */ + autoPauseProperties?: AutoPauseProperties; + /** + * Spark version. + */ + sparkVersion?: string; + /** + * The number of compute nodes currently assigned to the compute. + */ + nodeCount?: number; + /** + * Node size. + */ + nodeSize?: string; + /** + * Node size family. + */ + nodeSizeFamily?: string; + /** + * Azure subscription identifier. + */ + subscriptionId?: string; + /** + * Name of the resource group in which workspace is located. + */ + resourceGroup?: string; + /** + * Name of Azure Machine Learning workspace. + */ + workspaceName?: string; + /** + * Pool name. + */ + poolName?: string; +} + +/** + * A SynapseSpark compute. + */ +export interface SynapseSpark { + /** + * The type of compute. Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', + * 'DataFactory', 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics', + * 'SynapseSpark' + */ + computeType: ComputeType; + /** + * 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 time at which the compute was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdOn?: Date; + /** + * The time at which 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; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for + * authentication. + */ + disableLocalAuth?: boolean; + /** + * AKS properties + */ + properties?: SynapseSparkProperties; +} + /** * Service principal credentials. */ @@ -1873,26 +2334,6 @@ export interface AmlComputeNodeInformation { readonly runId?: string; } -/** - * Compute node information related to a AmlCompute. - */ -export interface AmlComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "AmlCompute"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; - /** - * The collection of returned AmlCompute nodes details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodes?: AmlComputeNodeInformation[]; -} - /** * Contains the possible cases for ComputeSecrets. */ @@ -2034,7 +2475,7 @@ export interface Restriction { /** * Describes Workspace Sku details and features */ -export interface SkuSettings { +export interface WorkspaceSku { /** * 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.). @@ -2071,21 +2512,6 @@ export interface SkuSettings { 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 */ @@ -2117,120 +2543,1737 @@ export interface PrivateLinkResourceListResult { } /** - * Workspace connection. + * The error details. */ -export interface WorkspaceConnection extends BaseResource { +export interface ServiceResponseBaseError extends MachineLearningServiceError { +} + +/** + * Contains the possible cases for ServiceResponseBase. + */ +export type ServiceResponseBaseUnion = ServiceResponseBase | ACIServiceResponse | AKSVariantResponseUnion; + +/** + * The base service response. The correct inherited response based on computeType will be returned + * (ex. ACIServiceResponse) + */ +export interface ServiceResponseBase { /** - * ResourceId of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly id?: string; + computeType: "ServiceResponseBase"; /** - * Friendly name of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The service description. */ - readonly name?: string; + description?: string; /** - * Resource type of workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The service tag dictionary. Tags are mutable. */ - readonly type?: string; + kvTags?: { [propertyName: string]: string }; /** - * Category of the workspace connection. + * The service property dictionary. Properties are immutable. */ - category?: string; + properties?: { [propertyName: string]: string }; /** - * Target of the workspace connection. + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - target?: string; + readonly state?: WebServiceState; /** - * Authorization type of the workspace connection. + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - authType?: string; + readonly error?: ServiceResponseBaseError; /** - * Value details of the workspace connection. + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' */ - value?: string; + deploymentType?: DeploymentType; } /** - * object used for creating workspace connection. + * Machine Learning service object wrapped into ARM resource envelope. */ -export interface WorkspaceConnectionDto { +export interface ServiceResource extends Resource { /** - * Friendly name of the workspace connection + * Service properties */ - name?: string; + properties?: ServiceResponseBaseUnion; +} + +/** + * The resource requirements for the container (cpu and memory). + */ +export interface ContainerResourceRequirements { /** - * Category of the workspace connection. + * The minimum amount of CPU cores to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - category?: string; + cpu?: number; /** - * Target of the workspace connection. + * The maximum amount of CPU cores allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - target?: string; + cpuLimit?: number; /** - * Authorization type of the workspace connection. + * The minimum amount of memory (in GB) to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - authType?: string; + memoryInGB?: number; /** - * Value details of the workspace connection. + * The maximum amount of memory (in GB) allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - value?: string; + memoryInGBLimit?: number; + /** + * The number of GPU cores in the container. + */ + gpu?: number; + /** + * The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. + */ + fpga?: number; } /** - * Optional Parameters. + * The Model data collection properties. */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface ModelDataCollection { /** - * Continuation token for pagination. + * Option for enabling/disabling Event Hub. + */ + eventHubEnabled?: boolean; + /** + * Option for enabling/disabling storage. */ - skiptoken?: string; + storageEnabled?: boolean; } /** - * Optional Parameters. + * Details of the data collection options specified. */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export interface ACIServiceResponseDataCollection extends ModelDataCollection { } /** - * Optional Parameters. + * The dataset reference object. */ -export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { +export interface DatasetReference { /** - * Continuation token for pagination. + * The name of the dataset reference. + */ + name?: string; + /** + * The id of the dataset reference. */ - skiptoken?: string; + id?: string; } /** - * Optional Parameters. + * An Azure Machine Learning Model. + */ +export interface Model { + /** + * The Model Id. + */ + id?: string; + /** + * The Model name. + */ + name: string; + /** + * The Model framework. + */ + framework?: string; + /** + * The Model framework version. + */ + frameworkVersion?: string; + /** + * The Model version assigned by Model Management Service. + */ + version?: number; + /** + * The list of datasets associated with the model. + */ + datasets?: DatasetReference[]; + /** + * The URL of the Model. Usually a SAS URL. + */ + url: string; + /** + * The MIME type of Model content. For more details about MIME type, please open + * https://www.iana.org/assignments/media-types/media-types.xhtml + */ + mimeType: string; + /** + * The Model description text. + */ + description?: string; + /** + * The Model creation time (UTC). + */ + createdTime?: Date; + /** + * The Model last modified time (UTC). + */ + modifiedTime?: Date; + /** + * Indicates whether we need to unpack the Model during docker Image creation. + */ + unpack?: boolean; + /** + * The Parent Model Id. + */ + parentModelId?: string; + /** + * The RunId that created this model. + */ + runId?: string; + /** + * The name of the experiment where this model was created. + */ + experimentName?: string; + /** + * The Model tag dictionary. Items are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The Model property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * Models derived from this model + */ + derivedModelIds?: string[]; + /** + * Sample Input Data for the Model. A reference to a dataset in the workspace in the format + * aml://dataset/{datasetId} + */ + sampleInputData?: string; + /** + * Sample Output Data for the Model. A reference to a dataset in the workspace in the format + * aml://dataset/{datasetId} + */ + sampleOutputData?: string; + /** + * Resource requirements for the model + */ + resourceRequirements?: ContainerResourceRequirements; +} + +/** + * Request to create a Docker image based on Environment. + */ +export interface EnvironmentImageResponse { + /** + * The name of the driver file. + */ + driverProgram?: string; + /** + * The list of assets. + */ + assets?: ImageAsset[]; + /** + * The list of model Ids. + */ + modelIds?: string[]; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The details of the AZURE ML environment. + */ + environment?: EnvironmentImageResponseEnvironment; + /** + * The unique identifying details of the AZURE ML environment. + */ + environmentReference?: EnvironmentImageResponseEnvironmentReference; +} + +/** + * The Environment, models and assets used for inferencing. + */ +export interface ACIServiceResponseEnvironmentImageRequest extends EnvironmentImageResponse { +} + +/** + * An interface representing VnetConfiguration. + */ +export interface VnetConfiguration { + /** + * The name of the virtual network. + */ + vnetName?: string; + /** + * The name of the virtual network subnet. + */ + subnetName?: string; +} + +/** + * The virtual network configuration. + */ +export interface ACIServiceResponseVnetConfiguration extends VnetConfiguration { +} + +/** + * An interface representing EncryptionProperties. + */ +export interface EncryptionProperties { + /** + * vault base Url + */ + vaultBaseUrl: string; + /** + * Encryption Key name + */ + keyName: string; + /** + * Encryption Key Version + */ + keyVersion: string; +} + +/** + * The encryption properties. + */ +export interface ACIServiceResponseEncryptionProperties extends EncryptionProperties { +} + +/** + * The response for an ACI service. + */ +export interface ACIServiceResponse { + /** + * Polymorphic Discriminator + */ + computeType: "ACI"; + /** + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The Uri for sending scoring requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Whether or not authentication is enabled on the service. + */ + authEnabled?: boolean; + /** + * Whether or not SSL is enabled. + */ + sslEnabled?: boolean; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * Details of the data collection options specified. + */ + dataCollection?: ACIServiceResponseDataCollection; + /** + * The public SSL certificate in PEM format to use if SSL is enabled. + */ + sslCertificate?: string; + /** + * The public SSL key in PEM format for the certificate. + */ + sslKey?: string; + /** + * The CName for the service. + */ + cname?: string; + /** + * The public IP address for the service. + */ + publicIp?: string; + /** + * The public Fqdn for the service. + */ + publicFqdn?: string; + /** + * The Uri for sending swagger requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * Details on the models and configurations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modelConfigMap?: { [propertyName: string]: any }; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The Environment, models and assets used for inferencing. + */ + environmentImageRequest?: ACIServiceResponseEnvironmentImageRequest; + /** + * The virtual network configuration. + */ + vnetConfiguration?: ACIServiceResponseVnetConfiguration; + /** + * The encryption properties. + */ + encryptionProperties?: ACIServiceResponseEncryptionProperties; +} + +/** + * An Image asset. + */ +export interface ImageAsset { + /** + * The Asset Id. + */ + id?: string; + /** + * The mime type. + */ + mimeType?: string; + /** + * The Url of the Asset. + */ + url?: string; + /** + * Whether the Asset is unpacked. + */ + unpack?: boolean; +} + +/** + * An interface representing ModelEnvironmentDefinition. + */ +export interface ModelEnvironmentDefinition { + /** + * The name of the environment. + */ + name?: string; + /** + * The environment version. + */ + version?: string; + /** + * Settings for a Python environment. + */ + python?: ModelEnvironmentDefinitionPython; + /** + * Definition of environment variables to be defined in the environment. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * The definition of a Docker container. + */ + docker?: ModelEnvironmentDefinitionDocker; + /** + * The configuration for a Spark environment. + */ + spark?: ModelEnvironmentDefinitionSpark; + /** + * Settings for a R environment. + */ + r?: ModelEnvironmentDefinitionR; + /** + * The inferencing stack version added to the image. To avoid adding an inferencing stack, do not + * set this value. Valid values: "latest". + */ + inferencingStackVersion?: string; +} + +/** + * The details of the AZURE ML environment. + */ +export interface EnvironmentImageRequestEnvironment extends ModelEnvironmentDefinition { +} + +/** + * An interface representing EnvironmentReference. + */ +export interface EnvironmentReference { + /** + * Name of the environment. + */ + name?: string; + /** + * Version of the environment. + */ + version?: string; +} + +/** + * The unique identifying details of the AZURE ML environment. + */ +export interface EnvironmentImageRequestEnvironmentReference extends EnvironmentReference { +} + +/** + * Request to create a Docker image based on Environment. + */ +export interface EnvironmentImageRequest { + /** + * The name of the driver file. + */ + driverProgram?: string; + /** + * The list of assets. + */ + assets?: ImageAsset[]; + /** + * The list of model Ids. + */ + modelIds?: string[]; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The details of the AZURE ML environment. + */ + environment?: EnvironmentImageRequestEnvironment; + /** + * The unique identifying details of the AZURE ML environment. + */ + environmentReference?: EnvironmentImageRequestEnvironmentReference; +} + +/** + * An interface representing ModelEnvironmentDefinitionResponse. + */ +export interface ModelEnvironmentDefinitionResponse { + /** + * The name of the environment. + */ + name?: string; + /** + * The environment version. + */ + version?: string; + /** + * Settings for a Python environment. + */ + python?: ModelEnvironmentDefinitionResponsePython; + /** + * Definition of environment variables to be defined in the environment. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * The definition of a Docker container. + */ + docker?: ModelEnvironmentDefinitionResponseDocker; + /** + * The configuration for a Spark environment. + */ + spark?: ModelEnvironmentDefinitionResponseSpark; + /** + * Settings for a R environment. + */ + r?: ModelEnvironmentDefinitionResponseR; + /** + * The inferencing stack version added to the image. To avoid adding an inferencing stack, do not + * set this value. Valid values: "latest". + */ + inferencingStackVersion?: string; +} + +/** + * The details of the AZURE ML environment. + */ +export interface EnvironmentImageResponseEnvironment extends ModelEnvironmentDefinitionResponse { +} + +/** + * The unique identifying details of the AZURE ML environment. + */ +export interface EnvironmentImageResponseEnvironmentReference extends EnvironmentReference { +} + +/** + * An interface representing ModelPythonSection. + */ +export interface ModelPythonSection { + /** + * The python interpreter path to use if an environment build is not required. The path specified + * gets used to call the user script. + */ + interpreterPath?: string; + /** + * True means that AzureML reuses an existing python environment; False means that AzureML will + * create a python environment based on the Conda dependencies specification. + */ + userManagedDependencies?: boolean; + /** + * A JObject containing Conda dependencies. + */ + condaDependencies?: any; + baseCondaEnvironment?: string; +} + +/** + * Settings for a Python environment. + */ +export interface ModelEnvironmentDefinitionPython extends ModelPythonSection { +} + +/** + * An interface representing ModelDockerSection. + */ +export interface ModelDockerSection { + /** + * Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile. + */ + baseImage?: string; + /** + * Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage. + */ + baseDockerfile?: string; + /** + * Image registry that contains the base image. + */ + baseImageRegistry?: ModelDockerSectionBaseImageRegistry; +} + +/** + * The definition of a Docker container. + */ +export interface ModelEnvironmentDefinitionDocker extends ModelDockerSection { +} + +/** + * An interface representing ModelSparkSection. + */ +export interface ModelSparkSection { + /** + * The list of spark repositories. + */ + repositories?: string[]; + /** + * The Spark packages to use. + */ + packages?: SparkMavenPackage[]; + /** + * Whether to precache the packages. + */ + precachePackages?: boolean; +} + +/** + * The configuration for a Spark environment. + */ +export interface ModelEnvironmentDefinitionSpark extends ModelSparkSection { +} + +/** + * An interface representing RSection. + */ +export interface RSection { + /** + * The version of R to be installed + */ + rVersion?: string; + /** + * Indicates whether the environment is managed by user or by AzureML. + */ + userManaged?: boolean; + /** + * The Rscript path to use if an environment build is not required. + * The path specified gets used to call the user script. + */ + rscriptPath?: string; + /** + * Date of MRAN snapshot to use in YYYY-MM-DD format, e.g. "2019-04-17" + */ + snapshotDate?: string; + /** + * The CRAN packages to use. + */ + cranPackages?: RCranPackage[]; + /** + * The packages directly from GitHub. + */ + gitHubPackages?: RGitHubPackage[]; + /** + * The packages from custom urls. + */ + customUrlPackages?: string[]; + /** + * The packages from Bioconductor. + */ + bioConductorPackages?: string[]; +} + +/** + * Settings for a R environment. + */ +export interface ModelEnvironmentDefinitionR extends RSection { +} + +/** + * Settings for a Python environment. + */ +export interface ModelEnvironmentDefinitionResponsePython extends ModelPythonSection { +} + +/** + * An interface representing ModelDockerSectionResponse. + */ +export interface ModelDockerSectionResponse { + /** + * Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile. + */ + baseImage?: string; + /** + * Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage. + */ + baseDockerfile?: string; + /** + * Image registry that contains the base image. + */ + baseImageRegistry?: ModelDockerSectionResponseBaseImageRegistry; +} + +/** + * The definition of a Docker container. + */ +export interface ModelEnvironmentDefinitionResponseDocker extends ModelDockerSectionResponse { +} + +/** + * The configuration for a Spark environment. + */ +export interface ModelEnvironmentDefinitionResponseSpark extends ModelSparkSection { +} + +/** + * An interface representing RSectionResponse. + */ +export interface RSectionResponse { + /** + * The version of R to be installed + */ + rVersion?: string; + /** + * Indicates whether the environment is managed by user or by AzureML. + */ + userManaged?: boolean; + /** + * The Rscript path to use if an environment build is not required. + * The path specified gets used to call the user script. + */ + rscriptPath?: string; + /** + * Date of MRAN snapshot to use in YYYY-MM-DD format, e.g. "2019-04-17" + */ + snapshotDate?: string; + /** + * The CRAN packages to use. + */ + cranPackages?: RCranPackage[]; + /** + * The packages directly from GitHub. + */ + gitHubPackages?: RGitHubPackageResponse[]; + /** + * The packages from custom urls. + */ + customUrlPackages?: string[]; + /** + * The packages from Bioconductor. + */ + bioConductorPackages?: string[]; +} + +/** + * Settings for a R environment. + */ +export interface ModelEnvironmentDefinitionResponseR extends RSectionResponse { +} + +/** + * An interface representing ContainerRegistry. + */ +export interface ContainerRegistry { + address?: string; + username?: string; + password?: string; +} + +/** + * An interface representing ContainerRegistryResponse. + */ +export interface ContainerRegistryResponse { + address?: string; +} + +/** + * Image registry that contains the base image. + */ +export interface ModelDockerSectionBaseImageRegistry extends ContainerRegistry { +} + +/** + * Image registry that contains the base image. + */ +export interface ModelDockerSectionResponseBaseImageRegistry extends ContainerRegistryResponse { +} + +/** + * An interface representing SparkMavenPackage. + */ +export interface SparkMavenPackage { + group?: string; + artifact?: string; + version?: string; +} + +/** + * An interface representing RCranPackage. + */ +export interface RCranPackage { + /** + * The package name. + */ + name?: string; + /** + * The repository name. + */ + repository?: string; +} + +/** + * An interface representing RGitHubPackage. + */ +export interface RGitHubPackage { + /** + * Repository address in the format username/repo[/subdir][@ref|#pull]. + */ + repository?: string; + /** + * Personal access token to install from a private repo + */ + authToken?: string; +} + +/** + * An interface representing RGitHubPackageResponse. + */ +export interface RGitHubPackageResponse { + /** + * Repository address in the format username/repo[/subdir][@ref|#pull]. + */ + repository?: string; +} + +/** + * Contains the possible cases for AKSVariantResponse. + */ +export type AKSVariantResponseUnion = AKSVariantResponse | AKSServiceResponse; + +/** + * The response for an AKS variant. + */ +export interface AKSVariantResponse { + /** + * Polymorphic Discriminator + */ + computeType: "Custom"; + /** + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; +} + +/** + * The Auto Scaler properties. + */ +export interface AutoScaler { + /** + * Option to enable/disable auto scaling. + */ + autoscaleEnabled?: boolean; + /** + * The minimum number of replicas to scale down to. + */ + minReplicas?: number; + /** + * The maximum number of replicas in the cluster. + */ + maxReplicas?: number; + /** + * The target utilization percentage to use for determining whether to scale the cluster. + */ + targetUtilization?: number; + /** + * The amount of seconds to wait between auto scale updates. + */ + refreshPeriodInSeconds?: number; +} + +/** + * The error details. + */ +export interface AKSReplicaStatusError extends MachineLearningServiceError { +} + +/** + * An interface representing AKSReplicaStatus. + */ +export interface AKSReplicaStatus { + /** + * The desired number of replicas. + */ + desiredReplicas?: number; + /** + * The number of updated replicas. + */ + updatedReplicas?: number; + /** + * The number of available replicas. + */ + availableReplicas?: number; + /** + * The error details. + */ + error?: AKSReplicaStatusError; +} + +/** + * The liveness probe requirements. + */ +export interface LivenessProbeRequirements { + /** + * The number of failures to allow before returning an unhealthy status. + */ + failureThreshold?: number; + /** + * The number of successful probes before returning a healthy status. + */ + successThreshold?: number; + /** + * The probe timeout in seconds. + */ + timeoutSeconds?: number; + /** + * The length of time between probes in seconds. + */ + periodSeconds?: number; + /** + * The delay before the first probe in seconds. + */ + initialDelaySeconds?: number; +} + +/** + * Details of the data collection options specified. + */ +export interface AKSServiceResponseDataCollection extends ModelDataCollection { +} + +/** + * The auto scaler properties. + */ +export interface AKSServiceResponseAutoScaler extends AutoScaler { +} + +/** + * The deployment status. + */ +export interface AKSServiceResponseDeploymentStatus extends AKSReplicaStatus { +} + +/** + * The liveness probe requirements. + */ +export interface AKSServiceResponseLivenessProbeRequirements extends LivenessProbeRequirements { +} + +/** + * The Environment, models and assets used for inferencing. + */ +export interface AKSServiceResponseEnvironmentImageRequest extends EnvironmentImageResponse { +} + +/** + * The response for an AKS service. + */ +export interface AKSServiceResponse { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + /** + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The maximum number of concurrent requests per container. + */ + maxConcurrentRequestsPerContainer?: number; + /** + * Maximum time a request will wait in the queue (in milliseconds). After this time, the service + * will return 503 (Service Unavailable) + */ + maxQueueWaitMs?: number; + /** + * The name of the compute resource. + */ + computeName?: string; + /** + * The Kubernetes namespace of the deployment. + */ + namespace?: string; + /** + * The number of replicas on the cluster. + */ + numReplicas?: number; + /** + * Details of the data collection options specified. + */ + dataCollection?: AKSServiceResponseDataCollection; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * The auto scaler properties. + */ + autoScaler?: AKSServiceResponseAutoScaler; + /** + * The Uri for sending scoring requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * The deployment status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deploymentStatus?: AKSServiceResponseDeploymentStatus; + /** + * The scoring timeout in milliseconds. + */ + scoringTimeoutMs?: number; + /** + * The liveness probe requirements. + */ + livenessProbeRequirements?: AKSServiceResponseLivenessProbeRequirements; + /** + * Whether or not authentication is enabled. + */ + authEnabled?: boolean; + /** + * Whether or not AAD authentication is enabled. + */ + aadAuthEnabled?: boolean; + /** + * The Uri for sending swagger requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * Details on the models and configurations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modelConfigMap?: { [propertyName: string]: any }; + /** + * The Environment, models and assets used for inferencing. + */ + environmentImageRequest?: AKSServiceResponseEnvironmentImageRequest; +} + +/** + * An interface representing AuthKeys. + */ +export interface AuthKeys { + /** + * The primary key. + */ + primaryKey?: string; + /** + * The secondary key. + */ + secondaryKey?: string; +} + +/** + * The authentication keys. + */ +export interface CreateServiceRequestKeys extends AuthKeys { +} + +/** + * The Environment, models and assets needed for inferencing. + */ +export interface CreateServiceRequestEnvironmentImageRequest extends EnvironmentImageRequest { +} + +/** + * Contains the possible cases for CreateServiceRequest. + */ +export type CreateServiceRequestUnion = CreateServiceRequest | ACIServiceCreateRequest | CreateEndpointVariantRequestUnion; + +/** + * The base class for creating a service. + */ +export interface CreateServiceRequest { + /** + * Polymorphic Discriminator + */ + computeType: "CreateServiceRequest"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; +} + +/** + * Details of the data collection options specified. + */ +export interface ACIServiceCreateRequestDataCollection extends ModelDataCollection { +} + +/** + * The virtual network configuration. + */ +export interface ACIServiceCreateRequestVnetConfiguration extends VnetConfiguration { +} + +/** + * The encryption properties. + */ +export interface ACIServiceCreateRequestEncryptionProperties extends EncryptionProperties { +} + +/** + * An interface representing ACIServiceCreateRequest. + */ +export interface ACIServiceCreateRequest { + /** + * Polymorphic Discriminator + */ + computeType: "ACI"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * Whether or not authentication is enabled on the service. Default value: false. + */ + authEnabled?: boolean; + /** + * Whether or not SSL is enabled. Default value: false. + */ + sslEnabled?: boolean; + /** + * Whether or not Application Insights is enabled. Default value: false. + */ + appInsightsEnabled?: boolean; + /** + * Details of the data collection options specified. + */ + dataCollection?: ACIServiceCreateRequestDataCollection; + /** + * The public SSL certificate in PEM format to use if SSL is enabled. + */ + sslCertificate?: string; + /** + * The public SSL key in PEM format for the certificate. + */ + sslKey?: string; + /** + * The CName for the service. + */ + cname?: string; + /** + * The Dns label for the service. + */ + dnsNameLabel?: string; + /** + * The virtual network configuration. + */ + vnetConfiguration?: ACIServiceCreateRequestVnetConfiguration; + /** + * The encryption properties. + */ + encryptionProperties?: ACIServiceCreateRequestEncryptionProperties; +} + +/** + * Details of the data collection options specified. + */ +export interface AKSServiceCreateRequestDataCollection extends ModelDataCollection { +} + +/** + * The auto scaler properties. + */ +export interface AKSServiceCreateRequestAutoScaler extends AutoScaler { +} + +/** + * The liveness probe requirements. + */ +export interface AKSServiceCreateRequestLivenessProbeRequirements extends LivenessProbeRequirements { +} + +/** + * Contains the possible cases for CreateEndpointVariantRequest. + */ +export type CreateEndpointVariantRequestUnion = CreateEndpointVariantRequest | AKSServiceCreateRequest; + +/** + * The Variant properties. + */ +export interface CreateEndpointVariantRequest { + /** + * Polymorphic Discriminator + */ + computeType: "Custom"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; +} + +/** + * The request to create an AKS service. + */ +export interface AKSServiceCreateRequest { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; + /** + * The number of replicas on the cluster. + */ + numReplicas?: number; + /** + * Details of the data collection options specified. + */ + dataCollection?: AKSServiceCreateRequestDataCollection; + /** + * The name of the compute resource. + */ + computeName?: string; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * The auto scaler properties. + */ + autoScaler?: AKSServiceCreateRequestAutoScaler; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The maximum number of concurrent requests per container. + */ + maxConcurrentRequestsPerContainer?: number; + /** + * Maximum time a request will wait in the queue (in milliseconds). After this time, the service + * will return 503 (Service Unavailable) + */ + maxQueueWaitMs?: number; + /** + * Kubernetes namespace for the service. + */ + namespace?: string; + /** + * The scoring timeout in milliseconds. + */ + scoringTimeoutMs?: number; + /** + * Whether or not authentication is enabled. + */ + authEnabled?: boolean; + /** + * The liveness probe requirements. + */ + livenessProbeRequirements?: AKSServiceCreateRequestLivenessProbeRequirements; + /** + * Whether or not AAD authentication is enabled. + */ + aadAuthEnabled?: boolean; +} + +/** + * An interface representing ListStorageAccountKeysResult. + */ +export interface ListStorageAccountKeysResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userStorageKey?: string; +} + +/** + * 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; + /** + * format for the workspace connection value. Possible values include: 'JSON' + */ + valueFormat?: ValueFormat; +} + +/** + * 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; + /** + * format for the workspace connection value. Possible values include: 'JSON' + */ + valueFormat?: ValueFormat; +} + +/** + * Properties specific to Synapse Spark pools. + */ +export interface SynapseSparkPoolProperties { + /** + * AKS properties + */ + properties?: SynapseSparkProperties; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. */ export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { /** * Continuation token for pagination. */ - skiptoken?: string; + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningServiceListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * The Model Id. + */ + modelId?: string; + /** + * The Model name. + */ + modelName?: string; + /** + * The object tag. + */ + tag?: string; + /** + * A set of tags with which to filter the returned services. It is a comma separated string of + * tags key or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned services. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * runId for model associated with service. + */ + runId?: string; + /** + * Set to True to include Model details. + */ + expand?: boolean; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc'. Default value: 'UpdatedAtDesc'. + */ + orderby?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningServiceGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Set to True to include Model details. Default value: false. + */ + expand?: boolean; } /** * Optional Parameters. */ -export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { +export interface MachineLearningServiceListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skip?: string; + /** + * The Model Id. + */ + modelId?: string; + /** + * The Model name. + */ + modelName?: string; + /** + * The object tag. + */ + tag?: string; + /** + * A set of tags with which to filter the returned services. It is a comma separated string of + * tags key or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned services. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * runId for model associated with service. + */ + runId?: string; /** - * Type of compute to filter by. + * Set to True to include Model details. */ - computeType?: string; + expand?: boolean; /** - * Specifies whether to return recommended vm sizes or all vm sizes + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc'. Default value: 'UpdatedAtDesc'. */ - recommended?: boolean; + orderby?: OrderString; } /** @@ -2247,26 +4290,6 @@ export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOp category?: string; } -/** - * Optional Parameters. - */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; -} - -/** - * Optional Parameters. - */ -export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; -} - /** * An interface representing AzureMachineLearningWorkspacesOptions. */ @@ -2298,6 +4321,16 @@ export interface MachineLearningComputeDeleteHeaders { location: string; } +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface MachineLearningServiceCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + /** * @interface * An array of operations supported by the resource provider. @@ -2362,10 +4395,10 @@ export interface ListWorkspaceQuotas extends Array { /** * @interface - * Paginated list of Workspace connection objects. - * @extends Array + * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. + * @extends Array */ -export interface PaginatedWorkspaceConnectionsList extends Array { +export interface PaginatedComputeResourcesList extends Array { /** * A continuation link (absolute URI) to the next page of results in the list. */ @@ -2374,14 +4407,24 @@ export interface PaginatedWorkspaceConnectionsList extends Array + * Compute node information related to a AmlCompute. + * @extends Array */ -export interface PaginatedComputeResourcesList extends Array { +export interface AmlComputeNodesInformation extends Array { /** - * A continuation link (absolute URI) to the next page of results in the list. + * Polymorphic Discriminator */ - nextLink?: string; + computeType: "AmlCompute"; + /** + * The continuation token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; + /** + * The collection of returned AmlCompute nodes details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nodes?: AmlComputeNodeInformation[]; } /** @@ -2397,6 +4440,31 @@ export interface SkuListResult extends Array { nextLink?: string; } +/** + * @interface + * Paginated list of Machine Learning service objects wrapped in ARM resource envelope. + * @extends Array + */ +export interface PaginatedServiceList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + * **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; +} + /** * Defines values for ProvisioningState. * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', @@ -2430,6 +4498,14 @@ export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'R */ export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'SystemAssigned,UserAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'SystemAssigned,UserAssigned' | 'UserAssigned' | 'None'; + /** * Defines values for UsageUnit. * Possible values include: 'Count' @@ -2473,12 +4549,36 @@ export type QuotaUnit = 'Count'; export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + * Defines values for IdentityType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type IdentityType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for ClusterPurpose. + * Possible values include: 'FastProd', 'DenseProd', 'DevTest' + * @readonly + * @enum {string} + */ +export type ClusterPurpose = 'FastProd' | 'DenseProd' | 'DevTest'; + +/** + * Defines values for LoadBalancerType. + * Possible values include: 'PublicIp', 'InternalLoadBalancer' + * @readonly + * @enum {string} + */ +export type LoadBalancerType = 'PublicIp' | 'InternalLoadBalancer'; + +/** + * Defines values for OsType. + * Possible values include: 'Linux', 'Windows' * @readonly * @enum {string} */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export type OsType = 'Linux' | 'Windows'; /** * Defines values for VmPriority. @@ -2530,6 +4630,14 @@ export type SshPublicAccess = 'Enabled' | 'Disabled'; */ export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; +/** + * Defines values for ComputeInstanceAuthorizationType. + * Possible values include: 'personal' + * @readonly + * @enum {string} + */ +export type ComputeInstanceAuthorizationType = 'personal'; + /** * Defines values for OperationName. * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' @@ -2548,21 +4656,21 @@ export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; /** - * Defines values for NodeState. - * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' + * Defines values for ComputeType. + * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', + * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics', 'SynapseSpark' * @readonly * @enum {string} */ -export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; +export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics' | 'SynapseSpark'; /** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', - * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' + * Defines values for NodeState. + * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' * @readonly * @enum {string} */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; +export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; /** * Defines values for ReasonCode. @@ -2572,6 +4680,38 @@ export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactor */ export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; +/** + * Defines values for WebServiceState. + * Possible values include: 'Transitioning', 'Healthy', 'Unhealthy', 'Failed', 'Unschedulable' + * @readonly + * @enum {string} + */ +export type WebServiceState = 'Transitioning' | 'Healthy' | 'Unhealthy' | 'Failed' | 'Unschedulable'; + +/** + * Defines values for DeploymentType. + * Possible values include: 'GRPCRealtimeEndpoint', 'HttpRealtimeEndpoint', 'Batch' + * @readonly + * @enum {string} + */ +export type DeploymentType = 'GRPCRealtimeEndpoint' | 'HttpRealtimeEndpoint' | 'Batch'; + +/** + * Defines values for VariantType. + * Possible values include: 'Control', 'Treatment' + * @readonly + * @enum {string} + */ +export type VariantType = 'Control' | 'Treatment'; + +/** + * Defines values for ValueFormat. + * Possible values include: 'JSON' + * @readonly + * @enum {string} + */ +export type ValueFormat = 'JSON'; + /** * Defines values for UnderlyingResourceAction. * Possible values include: 'Delete', 'Detach' @@ -2580,18 +4720,146 @@ export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailabl */ export type UnderlyingResourceAction = 'Delete' | 'Detach'; -/** - * Defines values for Status1. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type Status1 = 'Disabled' | 'Enabled'; +/** + * Defines values for OrderString. + * Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', 'UpdatedAtDesc', 'UpdatedAtAsc' + * @readonly + * @enum {string} + */ +export type OrderString = 'CreatedAtDesc' | 'CreatedAtAsc' | 'UpdatedAtDesc' | 'UpdatedAtAsc'; + +/** + * Defines values for Status1. + * Possible values include: 'Disabled', 'Enabled', 'Auto' + * @readonly + * @enum {string} + */ +export type Status1 = 'Disabled' | 'Enabled' | 'Auto'; + +/** + * 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 list operation. + * Contains response data for the listBySubscription operation. */ -export type OperationsListResponse = OperationListResult & { +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { /** * The underlying HTTP response. */ @@ -2604,14 +4872,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: WorkspaceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNotebookAccessToken operation. */ -export type WorkspacesGetResponse = Workspace & { +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult & { /** * The underlying HTTP response. */ @@ -2624,14 +4892,14 @@ export type WorkspacesGetResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: NotebookAccessTokenResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** * The underlying HTTP response. */ @@ -2649,9 +4917,9 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { }; /** - * Contains response data for the update operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** * The underlying HTTP response. */ @@ -2664,14 +4932,14 @@ export type WorkspacesUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: WorkspaceListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** * The underlying HTTP response. */ @@ -2689,9 +4957,9 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { }; /** - * Contains response data for the listKeys operation. + * Contains response data for the list operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { /** * The underlying HTTP response. */ @@ -2704,14 +4972,14 @@ export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceKeysResult; + parsedBody: ListAmlUserFeatureResult; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listNext operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The underlying HTTP response. */ @@ -2724,14 +4992,14 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: ListAmlUserFeatureResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { +export type UsagesListResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -2744,14 +5012,14 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { +export type UsagesListNextResponse = ListUsagesResult & { /** * The underlying HTTP response. */ @@ -2764,14 +5032,14 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: ListUsagesResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the list operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The underlying HTTP response. */ @@ -2784,14 +5052,14 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: VirtualMachineSizeListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { /** * The underlying HTTP response. */ @@ -2804,14 +5072,14 @@ export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: UpdateWorkspaceQuotasResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { +export type QuotasListResponse = ListWorkspaceQuotas & { /** * The underlying HTTP response. */ @@ -2824,14 +5092,14 @@ export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: ListWorkspaceQuotas; }; }; /** - * Contains response data for the prepare operation. + * Contains response data for the listNext operation. */ -export type NotebooksPrepareResponse = NotebookResourceInfo & { +export type QuotasListNextResponse = ListWorkspaceQuotas & { /** * The underlying HTTP response. */ @@ -2844,14 +5112,14 @@ export type NotebooksPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: ListWorkspaceQuotas; }; }; /** - * Contains response data for the beginPrepare operation. + * Contains response data for the listByWorkspace operation. */ -export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { +export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { /** * The underlying HTTP response. */ @@ -2864,14 +5132,14 @@ export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: PaginatedComputeResourcesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type UsagesListResponse = ListUsagesResult & { +export type MachineLearningComputeGetResponse = ComputeResource & { /** * The underlying HTTP response. */ @@ -2884,18 +5152,23 @@ export type UsagesListResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: ComputeResource; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type UsagesListNextResponse = ListUsagesResult & { +export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -2904,14 +5177,14 @@ export type UsagesListNextResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: ComputeResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { +export type MachineLearningComputeUpdateResponse = ComputeResource & { /** * The underlying HTTP response. */ @@ -2924,14 +5197,29 @@ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: ComputeResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the deleteMethod operation. */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { +export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningComputeDeleteHeaders; + }; +}; + +/** + * Contains response data for the listNodes operation. + */ +export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { /** * The underlying HTTP response. */ @@ -2944,14 +5232,14 @@ export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UpdateWorkspaceQuotasResult; + parsedBody: AmlComputeNodesInformation; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listKeys operation. */ -export type QuotasListResponse = ListWorkspaceQuotas & { +export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { /** * The underlying HTTP response. */ @@ -2964,14 +5252,14 @@ export type QuotasListResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ComputeSecretsUnion; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginUpdate operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas & { +export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { /** * The underlying HTTP response. */ @@ -2984,14 +5272,14 @@ export type QuotasListNextResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ComputeResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByWorkspaceNext operation. */ -export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { +export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { /** * The underlying HTTP response. */ @@ -3004,14 +5292,14 @@ export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedWorkspaceConnectionsList; + parsedBody: PaginatedComputeResourcesList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNodesNext operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { +export type MachineLearningComputeListNodesNextResponse = AmlComputeNodesInformation & { /** * The underlying HTTP response. */ @@ -3024,14 +5312,14 @@ export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: AmlComputeNodesInformation; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listSkus operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { +export type WorkspaceListSkusResponse = SkuListResult & { /** * The underlying HTTP response. */ @@ -3044,14 +5332,14 @@ export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: SkuListResult; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listSkusNext operation. */ -export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { +export type WorkspaceListSkusNextResponse = SkuListResult & { /** * The underlying HTTP response. */ @@ -3064,14 +5352,14 @@ export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeReso /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: SkuListResult; }; }; /** * Contains response data for the get operation. */ -export type MachineLearningComputeGetResponse = ComputeResource & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -3084,23 +5372,38 @@ export type MachineLearningComputeGetResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the put operation. */ -export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { +export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + 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) */ @@ -3109,14 +5412,14 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByWorkspace operation. */ -export type MachineLearningComputeUpdateResponse = ComputeResource & { +export type MachineLearningServiceListByWorkspaceResponse = PaginatedServiceList & { /** * The underlying HTTP response. */ @@ -3129,33 +5432,43 @@ export type MachineLearningComputeUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: PaginatedServiceList; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the get operation. */ -export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { +export type MachineLearningServiceGetResponse = ServiceResource & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: MachineLearningComputeDeleteHeaders; + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; }; }; /** - * Contains response data for the listNodes operation. + * Contains response data for the createOrUpdate operation. */ -export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { +export type MachineLearningServiceCreateOrUpdateResponse = ServiceResource & MachineLearningServiceCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningServiceCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -3164,14 +5477,14 @@ export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation /** * The response body as parsed JSON or XML */ - parsedBody: AmlComputeNodesInformation; + parsedBody: ServiceResource; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the listByWorkspaceNext operation. */ -export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { +export type MachineLearningServiceListByWorkspaceNextResponse = PaginatedServiceList & { /** * The underlying HTTP response. */ @@ -3184,14 +5497,14 @@ export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeSecretsUnion; + parsedBody: PaginatedServiceList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the prepare operation. */ -export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { +export type NotebooksPrepareResponse = NotebookResourceInfo & { /** * The underlying HTTP response. */ @@ -3204,14 +5517,14 @@ export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: NotebookResourceInfo; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the listKeys operation. */ -export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { +export type NotebooksListKeysResponse = ListNotebookKeysResult & { /** * The underlying HTTP response. */ @@ -3224,14 +5537,14 @@ export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedCompute /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: ListNotebookKeysResult; }; }; /** - * Contains response data for the listSkus operation. + * Contains response data for the beginPrepare operation. */ -export type ListSkusResponse = SkuListResult & { +export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { /** * The underlying HTTP response. */ @@ -3244,14 +5557,14 @@ export type ListSkusResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: NotebookResourceInfo; }; }; /** - * Contains response data for the listSkusNext operation. + * Contains response data for the listKeys operation. */ -export type ListSkusNextResponse = SkuListResult & { +export type StorageAccountListKeysResponse = ListStorageAccountKeysResult & { /** * The underlying HTTP response. */ @@ -3264,14 +5577,14 @@ export type ListSkusNextResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: ListStorageAccountKeysResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { /** * The underlying HTTP response. */ @@ -3284,14 +5597,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: PaginatedWorkspaceConnectionsList; }; }; /** - * Contains response data for the put operation. + * Contains response data for the create operation. */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { /** * The underlying HTTP response. */ @@ -3304,14 +5617,14 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: WorkspaceConnection; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the get operation. */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { +export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { /** * The underlying HTTP response. */ @@ -3324,6 +5637,6 @@ export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceLis /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: WorkspaceConnection; }; }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts index 456a73c75208..1a168dffac10 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts @@ -8,14 +8,36 @@ export { discriminators, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, AksComputeSecrets, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeNodeInformation, AmlComputeNodesInformation, AmlComputeProperties, + AssignedUser, + AutoScaler, BaseResource, ClusterUpdateParameters, Compute, @@ -29,43 +51,84 @@ export { ComputeNodesInformation, ComputeResource, ComputeSecrets, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, Databricks, DatabricksComputeSecrets, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, EncryptionProperty, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityForCmk, + ImageAsset, KeyVaultProperties, + LivenessProbeRequirements, MachineLearningComputeCreateOrUpdateHeaders, MachineLearningComputeDeleteHeaders, MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, NodeStateCounts, NotebookPreparationError, NotebookResourceInfo, PaginatedComputeResourcesList, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + RCranPackage, Resource, ResourceId, + RGitHubPackageResponse, + RSectionResponse, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, SslConfiguration, + SystemData, SystemService, UserAccountCredentials, + UserAssignedIdentity, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSecrets, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts new file mode 100644 index 000000000000..aef7a3b2049f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ACIServiceCreateRequest, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequest, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AssignedUser, + AuthKeys, + AutoScaler, + BaseResource, + Compute, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeResource, + ContainerRegistry, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, + CreateEndpointVariantRequest, + CreateServiceRequest, + CreateServiceRequestEnvironmentImageRequest, + CreateServiceRequestKeys, + Databricks, + DatabricksProperties, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, + EncryptionProperty, + EnvironmentImageRequest, + EnvironmentImageRequestEnvironment, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + ErrorDetail, + ErrorResponse, + HDInsight, + HDInsightProperties, + Identity, + IdentityForCmk, + ImageAsset, + KeyVaultProperties, + LivenessProbeRequirements, + MachineLearningServiceCreateOrUpdateHeaders, + MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSection, + ModelDockerSectionBaseImageRegistry, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinition, + ModelEnvironmentDefinitionDocker, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionR, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + NodeStateCounts, + NotebookPreparationError, + NotebookResourceInfo, + PaginatedServiceList, + PersonalComputeInstanceSettings, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + RCranPackage, + Resource, + ResourceId, + RGitHubPackage, + RGitHubPackageResponse, + RSection, + RSectionResponse, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SslConfiguration, + SystemData, + SystemService, + UserAccountCredentials, + UserAssignedIdentity, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + 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 122cb25e5b8b..828c0deefcca 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -69,74 +69,17 @@ export const Operation: msRest.CompositeMapper = { } }; -export const NotebookListCredentialsResult: msRest.CompositeMapper = { - serializedName: "NotebookListCredentialsResult", +export const IdentityForCmk: msRest.CompositeMapper = { + serializedName: "IdentityForCmk", type: { name: "Composite", - className: "NotebookListCredentialsResult", + className: "IdentityForCmk", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - type: { - name: "String" - } - }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - type: { - name: "String" - } - } - } - } -}; - -export const NotebookPreparationError: msRest.CompositeMapper = { - serializedName: "NotebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError", - modelProperties: { - errorMessage: { - serializedName: "errorMessage", - type: { - name: "String" - } - }, - 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" - } - }, - resourceId: { - serializedName: "resourceId", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } - }, - notebookPreparationError: { - serializedName: "notebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError" - } } } } @@ -185,6 +128,13 @@ export const EncryptionProperty: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityForCmk" + } + }, keyVaultProperties: { required: true, serializedName: "keyVaultProperties", @@ -209,6 +159,13 @@ export const PrivateEndpoint: msRest.CompositeMapper = { type: { name: "String" } + }, + subnetArmId: { + readOnly: true, + serializedName: "subnetArmId", + type: { + name: "String" + } } } } @@ -242,11 +199,11 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "Resource", modelProperties: { id: { readOnly: true, @@ -262,6 +219,19 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -269,6 +239,43 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { name: "String" } }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { @@ -334,62 +341,84 @@ export const SharedPrivateLinkResource: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const NotebookPreparationError: msRest.CompositeMapper = { + serializedName: "NotebookPreparationError", type: { name: "Composite", - className: "Resource", + className: "NotebookPreparationError", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + statusCode: { + serializedName: "statusCode", type: { - name: "String" + name: "Number" } - }, - identity: { - serializedName: "identity", + } + } + } +}; + +export const NotebookResourceInfo: msRest.CompositeMapper = { + serializedName: "NotebookResourceInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { - name: "Composite", - className: "Identity" + name: "String" } }, - location: { - serializedName: "location", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { - name: "String" + name: "Composite", + className: "NotebookPreparationError" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const CosmosDbSettings: msRest.CompositeMapper = { + serializedName: "CosmosDbSettings", + type: { + name: "Composite", + className: "CosmosDbSettings", + modelProperties: { + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Number" } - }, - sku: { - serializedName: "sku", + } + } + } +}; + +export const ServiceManagedResourcesSettings: msRest.CompositeMapper = { + serializedName: "ServiceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", type: { name: "Composite", - className: "Sku" + className: "CosmosDbSettings" } } } @@ -422,13 +451,6 @@ export const Workspace: msRest.CompositeMapper = { name: "String" } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, keyVault: { serializedName: "properties.keyVault", type: { @@ -539,6 +561,26 @@ export const Workspace: msRest.CompositeMapper = { name: "Composite", className: "NotebookResourceInfo" } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "properties.tenantId", + type: { + name: "String" + } } } } @@ -566,38 +608,29 @@ export const Sku: msRest.CompositeMapper = { } }; -export const WorkspaceUpdateParameters: msRest.CompositeMapper = { - serializedName: "WorkspaceUpdateParameters", +export const UserAssignedIdentity: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentity", type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "UserAssignedIdentity", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", + principalId: { + readOnly: true, + serializedName: "principalId", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - description: { - serializedName: "properties.description", + tenantId: { + readOnly: true, + serializedName: "tenantId", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + clientId: { + readOnly: true, + serializedName: "clientId", type: { name: "String" } @@ -606,9 +639,123 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { } }; -export const AmlUserFeature: msRest.CompositeMapper = { - serializedName: "AmlUserFeature", - type: { +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "SystemAssigned,UserAssigned", + "UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentity" + } + } + } + } + } + } +}; + +export const WorkspaceUpdateParameters: msRest.CompositeMapper = { + serializedName: "WorkspaceUpdateParameters", + type: { + name: "Composite", + className: "WorkspaceUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AmlUserFeature: msRest.CompositeMapper = { + serializedName: "AmlUserFeature", + type: { name: "Composite", className: "AmlUserFeature", modelProperties: { @@ -671,6 +818,13 @@ export const Usage: msRest.CompositeMapper = { name: "String" } }, + amlWorkspaceLocation: { + readOnly: true, + serializedName: "amlWorkspaceLocation", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -858,17 +1012,6 @@ export const VirtualMachineSize: msRest.CompositeMapper = { name: "Composite", className: "EstimatedVMPrices" } - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } @@ -947,6 +1090,12 @@ export const QuotaUpdateParameters: msRest.CompositeMapper = { } } } + }, + location: { + serializedName: "location", + type: { + name: "String" + } } } } @@ -1062,6 +1211,13 @@ export const ResourceQuota: msRest.CompositeMapper = { name: "String" } }, + amlWorkspaceLocation: { + readOnly: true, + serializedName: "amlWorkspaceLocation", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -1095,73 +1251,46 @@ export const ResourceQuota: msRest.CompositeMapper = { } }; -export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "Identity_userAssignedIdentitiesValue", +export const SystemData: msRest.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue", + className: "SystemData", modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - clientId: { - readOnly: true, - serializedName: "clientId", + createdByType: { + serializedName: "createdByType", type: { name: "String" } - } - } - } -}; - -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", + }, + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - tenantId: { - readOnly: true, - serializedName: "tenantId", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - type: { - required: true, - serializedName: "type", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" - } - } + name: "DateTime" } } } @@ -1245,6 +1374,30 @@ export const RegistryListCredentialsResult: msRest.CompositeMapper = { } }; +export const ListNotebookKeysResult: msRest.CompositeMapper = { + serializedName: "ListNotebookKeysResult", + type: { + name: "Composite", + className: "ListNotebookKeysResult", + modelProperties: { + primaryAccessKey: { + readOnly: true, + serializedName: "primaryAccessKey", + type: { + name: "String" + } + }, + secondaryAccessKey: { + readOnly: true, + serializedName: "secondaryAccessKey", + type: { + name: "String" + } + } + } + } +}; + export const ListWorkspaceKeysResult: msRest.CompositeMapper = { serializedName: "ListWorkspaceKeysResult", type: { @@ -1281,10 +1434,77 @@ export const ListWorkspaceKeysResult: msRest.CompositeMapper = { } }, notebookAccessKeys: { + readOnly: true, serializedName: "notebookAccessKeys", type: { name: "Composite", - className: "NotebookListCredentialsResult" + className: "ListNotebookKeysResult" + } + } + } + } +}; + +export const NotebookAccessTokenResult: msRest.CompositeMapper = { + serializedName: "NotebookAccessTokenResult", + type: { + name: "Composite", + className: "NotebookAccessTokenResult", + modelProperties: { + notebookResourceId: { + readOnly: true, + serializedName: "notebookResourceId", + type: { + name: "String" + } + }, + hostName: { + readOnly: true, + serializedName: "hostName", + type: { + name: "String" + } + }, + publicDns: { + readOnly: true, + serializedName: "publicDns", + type: { + name: "String" + } + }, + accessToken: { + readOnly: true, + serializedName: "accessToken", + type: { + name: "String" + } + }, + tokenType: { + readOnly: true, + serializedName: "tokenType", + type: { + name: "String" + } + }, + expiresIn: { + readOnly: true, + serializedName: "expiresIn", + type: { + name: "Number" + } + }, + refreshToken: { + readOnly: true, + serializedName: "refreshToken", + type: { + name: "String" + } + }, + scope: { + readOnly: true, + serializedName: "scope", + type: { + name: "String" } } } @@ -1335,9 +1555,16 @@ export const ErrorResponse: msRest.CompositeMapper = { name: "String" } }, - details: { + target: { readOnly: true, - serializedName: "details", + serializedName: "target", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", type: { name: "Sequence", element: { @@ -1440,6 +1667,12 @@ export const Compute: msRest.CompositeMapper = { name: "Boolean" } }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" + } + }, computeType: { required: true, serializedName: "computeType", @@ -1529,6 +1762,18 @@ export const SslConfiguration: msRest.CompositeMapper = { type: { name: "String" } + }, + leafDomainLabel: { + serializedName: "leafDomainLabel", + type: { + name: "String" + } + }, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", + type: { + name: "Boolean" + } } } } @@ -1605,14 +1850,21 @@ export const AKSProperties: msRest.CompositeMapper = { agentCount: { serializedName: "agentCount", constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 0 }, type: { name: "Number" } }, - agentVMSize: { - serializedName: "agentVMSize", + agentVmSize: { + serializedName: "agentVmSize", + type: { + name: "String" + } + }, + clusterPurpose: { + serializedName: "clusterPurpose", + defaultValue: 'FastProd', type: { name: "String" } @@ -1630,6 +1882,19 @@ export const AKSProperties: msRest.CompositeMapper = { name: "Composite", className: "AksNetworkingConfiguration" } + }, + loadBalancerType: { + serializedName: "loadBalancerType", + defaultValue: 'PublicIp', + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + type: { + name: "String" + } } } } @@ -1655,6 +1920,23 @@ export const AKS: msRest.CompositeMapper = { } }; +export const VirtualMachineImage: msRest.CompositeMapper = { + serializedName: "VirtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + export const ScaleSettings: msRest.CompositeMapper = { serializedName: "ScaleSettings", type: { @@ -1772,6 +2054,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "AmlComputeProperties", modelProperties: { + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, vmSize: { serializedName: "vmSize", type: { @@ -1784,6 +2073,19 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "String" } }, + virtualMachineImage: { + serializedName: "virtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage" + } + }, + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, scaleSettings: { serializedName: "scaleSettings", type: { @@ -1860,6 +2162,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "NodeStateCounts" } + }, + enableNodePublicIp: { + serializedName: "enableNodePublicIp", + defaultValue: true, + type: { + name: "Boolean" + } } } } @@ -1999,6 +2308,122 @@ export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { } }; +export const AssignedUser: msRest.CompositeMapper = { + serializedName: "AssignedUser", + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + required: true, + serializedName: "objectId", + type: { + name: "String" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: msRest.CompositeMapper = { + serializedName: "PersonalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const ScriptReference: msRest.CompositeMapper = { + serializedName: "ScriptReference", + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", + type: { + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptsToExecute: msRest.CompositeMapper = { + serializedName: "ScriptsToExecute", + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const SetupScripts: msRest.CompositeMapper = { + serializedName: "SetupScripts", + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + export const ComputeInstanceLastOperation: msRest.CompositeMapper = { serializedName: "ComputeInstanceLastOperation", type: { @@ -2109,6 +2534,27 @@ export const ComputeInstanceProperties: msRest.CompositeMapper = { name: "String" } }, + computeInstanceAuthorizationType: { + serializedName: "computeInstanceAuthorizationType", + defaultValue: 'personal', + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, lastOperation: { readOnly: true, serializedName: "lastOperation", @@ -2205,6 +2651,12 @@ export const VirtualMachineProperties: msRest.CompositeMapper = { name: "Composite", className: "VirtualMachineSshCredentials" } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } } } } @@ -2303,6 +2755,12 @@ export const DatabricksProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } } } } @@ -2364,120 +2822,120 @@ export const DataLakeAnalytics: msRest.CompositeMapper = { } }; -export const ServicePrincipalCredentials: msRest.CompositeMapper = { - serializedName: "ServicePrincipalCredentials", +export const AutoScaleProperties: msRest.CompositeMapper = { + serializedName: "AutoScaleProperties", type: { name: "Composite", - className: "ServicePrincipalCredentials", + className: "AutoScaleProperties", modelProperties: { - clientId: { - required: true, - serializedName: "clientId", + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "String" + name: "Number" } }, - clientSecret: { - required: true, - serializedName: "clientSecret", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" } } } } }; -export const ClusterUpdateParameters: msRest.CompositeMapper = { - serializedName: "ClusterUpdateParameters", +export const AutoPauseProperties: msRest.CompositeMapper = { + serializedName: "AutoPauseProperties", type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "AutoPauseProperties", modelProperties: { - scaleSettings: { - serializedName: "properties.scaleSettings", + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "Composite", - className: "ScaleSettings" + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" } } } } }; -export const ComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "ComputeNodesInformation", +export const SynapseSparkProperties: msRest.CompositeMapper = { + serializedName: "SynapseSpark_properties", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeNodesInformation", - className: "ComputeNodesInformation", + className: "SynapseSparkProperties", modelProperties: { - nextLink: { - readOnly: true, - serializedName: "nextLink", + autoScaleProperties: { + serializedName: "autoScaleProperties", type: { - name: "String" + name: "Composite", + className: "AutoScaleProperties" } }, - computeType: { - required: true, - serializedName: "computeType", + autoPauseProperties: { + serializedName: "autoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + sparkVersion: { + serializedName: "sparkVersion", type: { name: "String" } - } - } - } -}; - -export const AmlComputeNodeInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", - type: { - name: "Composite", - className: "AmlComputeNodeInformation", - modelProperties: { - nodeId: { - readOnly: true, - serializedName: "nodeId", + }, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + nodeSize: { + serializedName: "nodeSize", type: { name: "String" } }, - privateIpAddress: { - readOnly: true, - serializedName: "privateIpAddress", + nodeSizeFamily: { + serializedName: "nodeSizeFamily", type: { name: "String" } }, - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + subscriptionId: { + serializedName: "subscriptionId", type: { name: "String" } }, - port: { - readOnly: true, - serializedName: "port", + resourceGroup: { + serializedName: "resourceGroup", type: { - name: "Number" + name: "String" } }, - nodeState: { - readOnly: true, - serializedName: "nodeState", + workspaceName: { + serializedName: "workspaceName", type: { name: "String" } }, - runId: { - readOnly: true, - serializedName: "runId", + poolName: { + serializedName: "poolName", type: { name: "String" } @@ -2486,27 +2944,212 @@ export const AmlComputeNodeInformation: msRest.CompositeMapper = { } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const SynapseSpark: msRest.CompositeMapper = { + serializedName: "SynapseSpark", type: { name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", + className: "SynapseSpark", modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + }, + computeLocation: { + serializedName: "computeLocation", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdOn: { + readOnly: true, + serializedName: "createdOn", + type: { + name: "DateTime" + } + }, + modifiedOn: { + readOnly: true, + serializedName: "modifiedOn", + type: { + name: "DateTime" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + provisioningErrors: { readOnly: true, - serializedName: "nodes", + serializedName: "provisioningErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlComputeNodeInformation" + className: "MachineLearningServiceError" } } } + }, + isAttachedCompute: { + readOnly: true, + serializedName: "isAttachedCompute", + type: { + name: "Boolean" + } + }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +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" + } } } } @@ -2728,8 +3371,2294 @@ export const Restriction: msRest.CompositeMapper = { } } }, - reasonCode: { - serializedName: "reasonCode", + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceSku: msRest.CompositeMapper = { + serializedName: "WorkspaceSku", + type: { + name: "Composite", + className: "WorkspaceSku", + modelProperties: { + 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: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ServiceResponseBaseError: msRest.CompositeMapper = { + serializedName: "ServiceResponseBase_error", + type: { + name: "Composite", + className: "ServiceResponseBaseError", + modelProperties: { + ...MachineLearningServiceError.type.modelProperties + } + } +}; + +export const ServiceResponseBase: msRest.CompositeMapper = { + serializedName: "ServiceResponseBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "ServiceResponseBase", + className: "ServiceResponseBase", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ServiceResponseBaseError" + } + }, + deploymentType: { + serializedName: "deploymentType", + type: { + name: "String" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceResource: msRest.CompositeMapper = { + serializedName: "ServiceResource", + type: { + name: "Composite", + className: "ServiceResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServiceResponseBase" + } + } + } + } +}; + +export const ContainerResourceRequirements: msRest.CompositeMapper = { + serializedName: "ContainerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "Number" + } + }, + cpuLimit: { + serializedName: "cpuLimit", + type: { + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + memoryInGBLimit: { + serializedName: "memoryInGBLimit", + type: { + name: "Number" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Number" + } + }, + fpga: { + serializedName: "fpga", + type: { + name: "Number" + } + } + } + } +}; + +export const ModelDataCollection: msRest.CompositeMapper = { + serializedName: "ModelDataCollection", + type: { + name: "Composite", + className: "ModelDataCollection", + modelProperties: { + eventHubEnabled: { + serializedName: "eventHubEnabled", + type: { + name: "Boolean" + } + }, + storageEnabled: { + serializedName: "storageEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ACIServiceResponseDataCollection: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_dataCollection", + type: { + name: "Composite", + className: "ACIServiceResponseDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const DatasetReference: msRest.CompositeMapper = { + serializedName: "DatasetReference", + type: { + name: "Composite", + className: "DatasetReference", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const Model: msRest.CompositeMapper = { + serializedName: "Model", + type: { + name: "Composite", + className: "Model", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + framework: { + serializedName: "framework", + type: { + name: "String" + } + }, + frameworkVersion: { + serializedName: "frameworkVersion", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "Number" + } + }, + datasets: { + serializedName: "datasets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatasetReference" + } + } + } + }, + url: { + required: true, + serializedName: "url", + type: { + name: "String" + } + }, + mimeType: { + required: true, + serializedName: "mimeType", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdTime: { + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + modifiedTime: { + serializedName: "modifiedTime", + type: { + name: "DateTime" + } + }, + unpack: { + serializedName: "unpack", + type: { + name: "Boolean" + } + }, + parentModelId: { + serializedName: "parentModelId", + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + type: { + name: "String" + } + }, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + derivedModelIds: { + serializedName: "derivedModelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sampleInputData: { + serializedName: "sampleInputData", + type: { + name: "String" + } + }, + sampleOutputData: { + serializedName: "sampleOutputData", + type: { + name: "String" + } + }, + resourceRequirements: { + serializedName: "resourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const EnvironmentImageResponse: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse", + type: { + name: "Composite", + className: "EnvironmentImageResponse", + modelProperties: { + driverProgram: { + serializedName: "driverProgram", + type: { + name: "String" + } + }, + assets: { + serializedName: "assets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageAsset" + } + } + } + }, + modelIds: { + serializedName: "modelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironment" + } + }, + environmentReference: { + serializedName: "environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironmentReference" + } + } + } + } +}; + +export const ACIServiceResponseEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_environmentImageRequest", + type: { + name: "Composite", + className: "ACIServiceResponseEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageResponse.type.modelProperties + } + } +}; + +export const VnetConfiguration: msRest.CompositeMapper = { + serializedName: "VnetConfiguration", + type: { + name: "Composite", + className: "VnetConfiguration", + modelProperties: { + vnetName: { + serializedName: "vnetName", + type: { + name: "String" + } + }, + subnetName: { + serializedName: "subnetName", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceResponseVnetConfiguration: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceResponseVnetConfiguration", + modelProperties: { + ...VnetConfiguration.type.modelProperties + } + } +}; + +export const EncryptionProperties: msRest.CompositeMapper = { + serializedName: "EncryptionProperties", + type: { + name: "Composite", + className: "EncryptionProperties", + modelProperties: { + vaultBaseUrl: { + required: true, + serializedName: "vaultBaseUrl", + type: { + name: "String" + } + }, + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + required: true, + serializedName: "keyVersion", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceResponseEncryptionProperties: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceResponseEncryptionProperties", + modelProperties: { + ...EncryptionProperties.type.modelProperties + } + } +}; + +export const ACIServiceResponse: msRest.CompositeMapper = { + serializedName: "ACI", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "ACIServiceResponse", + modelProperties: { + ...ServiceResponseBase.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + authEnabled: { + serializedName: "authEnabled", + type: { + name: "Boolean" + } + }, + sslEnabled: { + serializedName: "sslEnabled", + type: { + name: "Boolean" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "ACIServiceResponseDataCollection" + } + }, + sslCertificate: { + serializedName: "sslCertificate", + type: { + name: "String" + } + }, + sslKey: { + serializedName: "sslKey", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + publicIp: { + serializedName: "publicIp", + type: { + name: "String" + } + }, + publicFqdn: { + serializedName: "publicFqdn", + type: { + name: "String" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + modelConfigMap: { + readOnly: true, + serializedName: "modelConfigMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "ACIServiceResponseEnvironmentImageRequest" + } + }, + vnetConfiguration: { + serializedName: "vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceResponseVnetConfiguration" + } + }, + encryptionProperties: { + serializedName: "encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceResponseEncryptionProperties" + } + } + } + } +}; + +export const ImageAsset: msRest.CompositeMapper = { + serializedName: "ImageAsset", + type: { + name: "Composite", + className: "ImageAsset", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + mimeType: { + serializedName: "mimeType", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + unpack: { + serializedName: "unpack", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ModelEnvironmentDefinition: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition", + type: { + name: "Composite", + className: "ModelEnvironmentDefinition", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + python: { + serializedName: "python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionPython" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionDocker" + } + }, + spark: { + serializedName: "spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionSpark" + } + }, + r: { + serializedName: "r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionR" + } + }, + inferencingStackVersion: { + serializedName: "inferencingStackVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageRequestEnvironment: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest_environment", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironment", + modelProperties: { + ...ModelEnvironmentDefinition.type.modelProperties + } + } +}; + +export const EnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentReference", + type: { + name: "Composite", + className: "EnvironmentReference", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageRequestEnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest_environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironmentReference", + modelProperties: { + ...EnvironmentReference.type.modelProperties + } + } +}; + +export const EnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest", + type: { + name: "Composite", + className: "EnvironmentImageRequest", + modelProperties: { + driverProgram: { + serializedName: "driverProgram", + type: { + name: "String" + } + }, + assets: { + serializedName: "assets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageAsset" + } + } + } + }, + modelIds: { + serializedName: "modelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironment" + } + }, + environmentReference: { + serializedName: "environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironmentReference" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponse: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponse", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + python: { + serializedName: "python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponsePython" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseDocker" + } + }, + spark: { + serializedName: "spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseSpark" + } + }, + r: { + serializedName: "r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseR" + } + }, + inferencingStackVersion: { + serializedName: "inferencingStackVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageResponseEnvironment: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse_environment", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironment", + modelProperties: { + ...ModelEnvironmentDefinitionResponse.type.modelProperties + } + } +}; + +export const EnvironmentImageResponseEnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse_environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironmentReference", + modelProperties: { + ...EnvironmentReference.type.modelProperties + } + } +}; + +export const ModelPythonSection: msRest.CompositeMapper = { + serializedName: "ModelPythonSection", + type: { + name: "Composite", + className: "ModelPythonSection", + modelProperties: { + interpreterPath: { + serializedName: "interpreterPath", + type: { + name: "String" + } + }, + userManagedDependencies: { + serializedName: "userManagedDependencies", + type: { + name: "Boolean" + } + }, + condaDependencies: { + serializedName: "condaDependencies", + type: { + name: "Object" + } + }, + baseCondaEnvironment: { + serializedName: "baseCondaEnvironment", + type: { + name: "String" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionPython: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionPython", + modelProperties: { + ...ModelPythonSection.type.modelProperties + } + } +}; + +export const ModelDockerSection: msRest.CompositeMapper = { + serializedName: "ModelDockerSection", + type: { + name: "Composite", + className: "ModelDockerSection", + modelProperties: { + baseImage: { + serializedName: "baseImage", + type: { + name: "String" + } + }, + baseDockerfile: { + serializedName: "baseDockerfile", + type: { + name: "String" + } + }, + baseImageRegistry: { + serializedName: "baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionBaseImageRegistry" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionDocker: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionDocker", + modelProperties: { + ...ModelDockerSection.type.modelProperties + } + } +}; + +export const ModelSparkSection: msRest.CompositeMapper = { + serializedName: "ModelSparkSection", + type: { + name: "Composite", + className: "ModelSparkSection", + modelProperties: { + repositories: { + serializedName: "repositories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + packages: { + serializedName: "packages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SparkMavenPackage" + } + } + } + }, + precachePackages: { + serializedName: "precachePackages", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionSpark: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionSpark", + modelProperties: { + ...ModelSparkSection.type.modelProperties + } + } +}; + +export const RSection: msRest.CompositeMapper = { + serializedName: "RSection", + type: { + name: "Composite", + className: "RSection", + modelProperties: { + rVersion: { + serializedName: "rVersion", + type: { + name: "String" + } + }, + userManaged: { + serializedName: "userManaged", + type: { + name: "Boolean" + } + }, + rscriptPath: { + serializedName: "rscriptPath", + type: { + name: "String" + } + }, + snapshotDate: { + serializedName: "snapshotDate", + type: { + name: "String" + } + }, + cranPackages: { + serializedName: "cranPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RCranPackage" + } + } + } + }, + gitHubPackages: { + serializedName: "gitHubPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RGitHubPackage" + } + } + } + }, + customUrlPackages: { + serializedName: "customUrlPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + bioConductorPackages: { + serializedName: "bioConductorPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModelEnvironmentDefinitionR: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionR", + modelProperties: { + ...RSection.type.modelProperties + } + } +}; + +export const ModelEnvironmentDefinitionResponsePython: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponsePython", + modelProperties: { + ...ModelPythonSection.type.modelProperties + } + } +}; + +export const ModelDockerSectionResponse: msRest.CompositeMapper = { + serializedName: "ModelDockerSectionResponse", + type: { + name: "Composite", + className: "ModelDockerSectionResponse", + modelProperties: { + baseImage: { + serializedName: "baseImage", + type: { + name: "String" + } + }, + baseDockerfile: { + serializedName: "baseDockerfile", + type: { + name: "String" + } + }, + baseImageRegistry: { + serializedName: "baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionResponseBaseImageRegistry" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponseDocker: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseDocker", + modelProperties: { + ...ModelDockerSectionResponse.type.modelProperties + } + } +}; + +export const ModelEnvironmentDefinitionResponseSpark: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseSpark", + modelProperties: { + ...ModelSparkSection.type.modelProperties + } + } +}; + +export const RSectionResponse: msRest.CompositeMapper = { + serializedName: "RSectionResponse", + type: { + name: "Composite", + className: "RSectionResponse", + modelProperties: { + rVersion: { + serializedName: "rVersion", + type: { + name: "String" + } + }, + userManaged: { + serializedName: "userManaged", + type: { + name: "Boolean" + } + }, + rscriptPath: { + serializedName: "rscriptPath", + type: { + name: "String" + } + }, + snapshotDate: { + serializedName: "snapshotDate", + type: { + name: "String" + } + }, + cranPackages: { + serializedName: "cranPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RCranPackage" + } + } + } + }, + gitHubPackages: { + serializedName: "gitHubPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RGitHubPackageResponse" + } + } + } + }, + customUrlPackages: { + serializedName: "customUrlPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + bioConductorPackages: { + serializedName: "bioConductorPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponseR: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseR", + modelProperties: { + ...RSectionResponse.type.modelProperties + } + } +}; + +export const ContainerRegistry: msRest.CompositeMapper = { + serializedName: "ContainerRegistry", + type: { + name: "Composite", + className: "ContainerRegistry", + modelProperties: { + address: { + serializedName: "address", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistryResponse: msRest.CompositeMapper = { + serializedName: "ContainerRegistryResponse", + type: { + name: "Composite", + className: "ContainerRegistryResponse", + modelProperties: { + address: { + serializedName: "address", + type: { + name: "String" + } + } + } + } +}; + +export const ModelDockerSectionBaseImageRegistry: msRest.CompositeMapper = { + serializedName: "ModelDockerSection_baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionBaseImageRegistry", + modelProperties: { + ...ContainerRegistry.type.modelProperties + } + } +}; + +export const ModelDockerSectionResponseBaseImageRegistry: msRest.CompositeMapper = { + serializedName: "ModelDockerSectionResponse_baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionResponseBaseImageRegistry", + modelProperties: { + ...ContainerRegistryResponse.type.modelProperties + } + } +}; + +export const SparkMavenPackage: msRest.CompositeMapper = { + serializedName: "SparkMavenPackage", + type: { + name: "Composite", + className: "SparkMavenPackage", + modelProperties: { + group: { + serializedName: "group", + type: { + name: "String" + } + }, + artifact: { + serializedName: "artifact", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const RCranPackage: msRest.CompositeMapper = { + serializedName: "RCranPackage", + type: { + name: "Composite", + className: "RCranPackage", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + } + } + } +}; + +export const RGitHubPackage: msRest.CompositeMapper = { + serializedName: "RGitHubPackage", + type: { + name: "Composite", + className: "RGitHubPackage", + modelProperties: { + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + authToken: { + serializedName: "authToken", + type: { + name: "String" + } + } + } + } +}; + +export const RGitHubPackageResponse: msRest.CompositeMapper = { + serializedName: "RGitHubPackageResponse", + type: { + name: "Composite", + className: "RGitHubPackageResponse", + modelProperties: { + repository: { + serializedName: "repository", + type: { + name: "String" + } + } + } + } +}; + +export const AKSVariantResponse: msRest.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "AKSVariantResponse", + modelProperties: { + ...ServiceResponseBase.type.modelProperties, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + trafficPercentile: { + serializedName: "trafficPercentile", + type: { + name: "Number" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaler: msRest.CompositeMapper = { + serializedName: "AutoScaler", + type: { + name: "Composite", + className: "AutoScaler", + modelProperties: { + autoscaleEnabled: { + serializedName: "autoscaleEnabled", + type: { + name: "Boolean" + } + }, + minReplicas: { + serializedName: "minReplicas", + type: { + name: "Number" + } + }, + maxReplicas: { + serializedName: "maxReplicas", + type: { + name: "Number" + } + }, + targetUtilization: { + serializedName: "targetUtilization", + type: { + name: "Number" + } + }, + refreshPeriodInSeconds: { + serializedName: "refreshPeriodInSeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const AKSReplicaStatusError: msRest.CompositeMapper = { + serializedName: "AKSReplicaStatus_error", + type: { + name: "Composite", + className: "AKSReplicaStatusError", + modelProperties: { + ...MachineLearningServiceError.type.modelProperties + } + } +}; + +export const AKSReplicaStatus: msRest.CompositeMapper = { + serializedName: "AKSReplicaStatus", + type: { + name: "Composite", + className: "AKSReplicaStatus", + modelProperties: { + desiredReplicas: { + serializedName: "desiredReplicas", + type: { + name: "Number" + } + }, + updatedReplicas: { + serializedName: "updatedReplicas", + type: { + name: "Number" + } + }, + availableReplicas: { + serializedName: "availableReplicas", + type: { + name: "Number" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "AKSReplicaStatusError" + } + } + } + } +}; + +export const LivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "LivenessProbeRequirements", + type: { + name: "Composite", + className: "LivenessProbeRequirements", + modelProperties: { + failureThreshold: { + serializedName: "failureThreshold", + type: { + name: "Number" + } + }, + successThreshold: { + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeoutSeconds: { + serializedName: "timeoutSeconds", + type: { + name: "Number" + } + }, + periodSeconds: { + serializedName: "periodSeconds", + type: { + name: "Number" + } + }, + initialDelaySeconds: { + serializedName: "initialDelaySeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const AKSServiceResponseDataCollection: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_dataCollection", + type: { + name: "Composite", + className: "AKSServiceResponseDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const AKSServiceResponseAutoScaler: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_autoScaler", + type: { + name: "Composite", + className: "AKSServiceResponseAutoScaler", + modelProperties: { + ...AutoScaler.type.modelProperties + } + } +}; + +export const AKSServiceResponseDeploymentStatus: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_deploymentStatus", + type: { + name: "Composite", + className: "AKSServiceResponseDeploymentStatus", + modelProperties: { + ...AKSReplicaStatus.type.modelProperties + } + } +}; + +export const AKSServiceResponseLivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceResponseLivenessProbeRequirements", + modelProperties: { + ...LivenessProbeRequirements.type.modelProperties + } + } +}; + +export const AKSServiceResponseEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_environmentImageRequest", + type: { + name: "Composite", + className: "AKSServiceResponseEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageResponse.type.modelProperties + } + } +}; + +export const AKSServiceResponse: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "AKSServiceResponse", + modelProperties: { + ...AKSVariantResponse.type.modelProperties, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + maxConcurrentRequestsPerContainer: { + serializedName: "maxConcurrentRequestsPerContainer", + type: { + name: "Number" + } + }, + maxQueueWaitMs: { + serializedName: "maxQueueWaitMs", + type: { + name: "Number" + } + }, + computeName: { + serializedName: "computeName", + type: { + name: "String" + } + }, + namespace: { + serializedName: "namespace", + type: { + name: "String" + } + }, + numReplicas: { + serializedName: "numReplicas", + type: { + name: "Number" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "AKSServiceResponseDataCollection" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + autoScaler: { + serializedName: "autoScaler", + type: { + name: "Composite", + className: "AKSServiceResponseAutoScaler" + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + deploymentStatus: { + readOnly: true, + serializedName: "deploymentStatus", + type: { + name: "Composite", + className: "AKSServiceResponseDeploymentStatus" + } + }, + scoringTimeoutMs: { + serializedName: "scoringTimeoutMs", + type: { + name: "Number" + } + }, + livenessProbeRequirements: { + serializedName: "livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceResponseLivenessProbeRequirements" + } + }, + authEnabled: { + serializedName: "authEnabled", + type: { + name: "Boolean" + } + }, + aadAuthEnabled: { + serializedName: "aadAuthEnabled", + type: { + name: "Boolean" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + modelConfigMap: { + readOnly: true, + serializedName: "modelConfigMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "AKSServiceResponseEnvironmentImageRequest" + } + } + } + } +}; + +export const AuthKeys: msRest.CompositeMapper = { + serializedName: "AuthKeys", + type: { + name: "Composite", + className: "AuthKeys", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + } + } + } +}; + +export const CreateServiceRequestKeys: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest_keys", + type: { + name: "Composite", + className: "CreateServiceRequestKeys", + modelProperties: { + ...AuthKeys.type.modelProperties + } + } +}; + +export const CreateServiceRequestEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest_environmentImageRequest", + type: { + name: "Composite", + className: "CreateServiceRequestEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageRequest.type.modelProperties + } + } +}; + +export const CreateServiceRequest: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "CreateServiceRequest", + className: "CreateServiceRequest", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "CreateServiceRequestKeys" + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "CreateServiceRequestEnvironmentImageRequest" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceCreateRequestDataCollection: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_dataCollection", + type: { + name: "Composite", + className: "ACIServiceCreateRequestDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequestVnetConfiguration: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceCreateRequestVnetConfiguration", + modelProperties: { + ...VnetConfiguration.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequestEncryptionProperties: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceCreateRequestEncryptionProperties", + modelProperties: { + ...EncryptionProperties.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequest: msRest.CompositeMapper = { + serializedName: "ACI", + type: { + name: "Composite", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "ACIServiceCreateRequest", + modelProperties: { + ...CreateServiceRequest.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + authEnabled: { + serializedName: "authEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + sslEnabled: { + serializedName: "sslEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "ACIServiceCreateRequestDataCollection" + } + }, + sslCertificate: { + serializedName: "sslCertificate", + type: { + name: "String" + } + }, + sslKey: { + serializedName: "sslKey", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + dnsNameLabel: { + serializedName: "dnsNameLabel", + type: { + name: "String" + } + }, + vnetConfiguration: { + serializedName: "vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceCreateRequestVnetConfiguration" + } + }, + encryptionProperties: { + serializedName: "encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceCreateRequestEncryptionProperties" + } + } + } + } +}; + +export const AKSServiceCreateRequestDataCollection: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_dataCollection", + type: { + name: "Composite", + className: "AKSServiceCreateRequestDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const AKSServiceCreateRequestAutoScaler: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_autoScaler", + type: { + name: "Composite", + className: "AKSServiceCreateRequestAutoScaler", + modelProperties: { + ...AutoScaler.type.modelProperties + } + } +}; + +export const AKSServiceCreateRequestLivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceCreateRequestLivenessProbeRequirements", + modelProperties: { + ...LivenessProbeRequirements.type.modelProperties + } + } +}; + +export const CreateEndpointVariantRequest: msRest.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "CreateEndpointVariantRequest", + modelProperties: { + ...CreateServiceRequest.type.modelProperties, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + trafficPercentile: { + serializedName: "trafficPercentile", + type: { + name: "Number" + } + }, + type: { + serializedName: "type", type: { name: "String" } @@ -2738,174 +5667,112 @@ export const Restriction: msRest.CompositeMapper = { } }; -export const SkuSettings: msRest.CompositeMapper = { - serializedName: "SkuSettings", +export const AKSServiceCreateRequest: msRest.CompositeMapper = { + serializedName: "AKS", type: { name: "Composite", - className: "SkuSettings", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "AKSServiceCreateRequest", modelProperties: { - locations: { - readOnly: true, - serializedName: "locations", + ...CreateEndpointVariantRequest.type.modelProperties, + numReplicas: { + serializedName: "numReplicas", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - locationInfo: { - readOnly: true, - serializedName: "locationInfo", + dataCollection: { + serializedName: "dataCollection", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } + name: "Composite", + className: "AKSServiceCreateRequestDataCollection" } }, - tier: { - readOnly: true, - serializedName: "tier", + computeName: { + serializedName: "computeName", type: { name: "String" } }, - resourceType: { - readOnly: true, - serializedName: "resourceType", + appInsightsEnabled: { + serializedName: "appInsightsEnabled", type: { - name: "String" + name: "Boolean" } }, - name: { - readOnly: true, - serializedName: "name", + autoScaler: { + serializedName: "autoScaler", type: { - name: "String" + name: "Composite", + className: "AKSServiceCreateRequestAutoScaler" } }, - capabilities: { - readOnly: true, - serializedName: "capabilities", + containerResourceRequirements: { + serializedName: "containerResourceRequirements", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SKUCapability" - } - } + name: "Composite", + className: "ContainerResourceRequirements" } }, - restrictions: { - serializedName: "restrictions", + maxConcurrentRequestsPerContainer: { + serializedName: "maxConcurrentRequestsPerContainer", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Restriction" - } - } + name: "Number" } - } - } - } -}; - -export const WorkspaceSku: msRest.CompositeMapper = { - serializedName: "WorkspaceSku", - type: { - name: "Composite", - className: "WorkspaceSku", - modelProperties: { - resourceType: { - readOnly: true, - serializedName: "resourceType", + }, + maxQueueWaitMs: { + serializedName: "maxQueueWaitMs", + type: { + name: "Number" + } + }, + namespace: { + serializedName: "namespace", type: { name: "String" } }, - skus: { - readOnly: true, - serializedName: "skus", + scoringTimeoutMs: { + serializedName: "scoringTimeoutMs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuSettings" - } - } + name: "Number" } - } - } - } -}; - -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...Resource.type.modelProperties, - groupId: { - readOnly: true, - serializedName: "properties.groupId", + }, + authEnabled: { + serializedName: "authEnabled", type: { - name: "String" + name: "Boolean" } }, - requiredMembers: { - readOnly: true, - serializedName: "properties.requiredMembers", + livenessProbeRequirements: { + serializedName: "livenessProbeRequirements", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AKSServiceCreateRequestLivenessProbeRequirements" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + aadAuthEnabled: { + serializedName: "aadAuthEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } } } } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const ListStorageAccountKeysResult: msRest.CompositeMapper = { + serializedName: "ListStorageAccountKeysResult", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "ListStorageAccountKeysResult", modelProperties: { - value: { - serializedName: "value", + userStorageKey: { + readOnly: true, + serializedName: "userStorageKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "String" } } } @@ -2962,6 +5829,12 @@ export const WorkspaceConnection: msRest.CompositeMapper = { type: { name: "String" } + }, + valueFormat: { + serializedName: "properties.valueFormat", + type: { + name: "String" + } } } } @@ -3002,6 +5875,29 @@ export const WorkspaceConnectionDto: msRest.CompositeMapper = { type: { name: "String" } + }, + valueFormat: { + serializedName: "properties.valueFormat", + type: { + name: "String" + } + } + } + } +}; + +export const SynapseSparkPoolProperties: msRest.CompositeMapper = { + serializedName: "SynapseSparkPoolProperties", + type: { + name: "Composite", + className: "SynapseSparkPoolProperties", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } } } } @@ -3045,6 +5941,22 @@ export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { } }; +export const MachineLearningServiceCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "machinelearningservice-createorupdate-headers", + type: { + name: "Composite", + className: "MachineLearningServiceCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export const OperationListResult: msRest.CompositeMapper = { serializedName: "OperationListResult", type: { @@ -3185,11 +6097,11 @@ export const ListWorkspaceQuotas: msRest.CompositeMapper = { } }; -export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { - serializedName: "PaginatedWorkspaceConnectionsList", +export const PaginatedComputeResourcesList: msRest.CompositeMapper = { + serializedName: "PaginatedComputeResourcesList", type: { name: "Composite", - className: "PaginatedWorkspaceConnectionsList", + className: "PaginatedComputeResourcesList", modelProperties: { value: { serializedName: "", @@ -3198,7 +6110,39 @@ export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkspaceConnection" + className: "ComputeResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + 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: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" } } } @@ -3207,11 +6151,11 @@ export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { } }; -export const PaginatedComputeResourcesList: msRest.CompositeMapper = { - serializedName: "PaginatedComputeResourcesList", +export const SkuListResult: msRest.CompositeMapper = { + serializedName: "SkuListResult", type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "SkuListResult", modelProperties: { value: { serializedName: "", @@ -3220,7 +6164,7 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeResource" + className: "WorkspaceSku" } } } @@ -3235,25 +6179,27 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { } }; -export const SkuListResult: msRest.CompositeMapper = { - serializedName: "SkuListResult", +export const PaginatedServiceList: msRest.CompositeMapper = { + serializedName: "PaginatedServiceList", type: { name: "Composite", - className: "SkuListResult", + className: "PaginatedServiceList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkspaceSku" + className: "ServiceResource" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -3263,6 +6209,28 @@ export const SkuListResult: msRest.CompositeMapper = { } }; +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 discriminators = { 'Compute' : Compute, 'Compute.AKS' : AKS, @@ -3274,10 +6242,17 @@ export const discriminators = { 'Compute.Databricks' : Databricks, 'Compute.DataLakeAnalytics' : DataLakeAnalytics, 'ComputeNodesInformation' : ComputeNodesInformation, - 'ComputeNodesInformation.AmlCompute' : AmlComputeNodesInformation, 'ComputeSecrets' : ComputeSecrets, 'ComputeSecrets.AKS' : AksComputeSecrets, 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets, - 'ComputeSecrets.Databricks' : DatabricksComputeSecrets + 'ComputeSecrets.Databricks' : DatabricksComputeSecrets, + 'ServiceResponseBase' : ServiceResponseBase, + 'ServiceResponseBase.ACI' : ACIServiceResponse, + 'ServiceResponseBase.Custom' : AKSVariantResponse, + 'ServiceResponseBase.AKS' : AKSServiceResponse, + 'CreateServiceRequest' : CreateServiceRequest, + 'CreateServiceRequest.ACI' : ACIServiceCreateRequest, + 'CreateServiceRequest.AKS' : AKSServiceCreateRequest, + 'CreateServiceRequest.Custom' : CreateEndpointVariantRequest }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts index 3088316919ec..84f764ba1779 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts @@ -8,9 +8,12 @@ export { discriminators, + AKSReplicaStatusError, ErrorDetail, ErrorResponse, + ListNotebookKeysResult, MachineLearningServiceError, NotebookPreparationError, - NotebookResourceInfo + NotebookResourceInfo, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts index ac101ae5f270..3a5e869b5068 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts @@ -8,10 +8,12 @@ export { discriminators, + AKSReplicaStatusError, ErrorDetail, ErrorResponse, MachineLearningServiceError, Operation, OperationDisplay, - OperationListResult + OperationListResult, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 4f5b252b51c1..7a940aac1958 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -51,25 +51,38 @@ export const computeName: msRest.OperationURLParameter = { } } }; -export const computeType: msRest.OperationQueryParameter = { +export const connectionName: msRest.OperationURLParameter = { + parameterPath: "connectionName", + mapper: { + required: true, + serializedName: "connectionName", + type: { + name: "String" + } + } +}; +export const expand0: msRest.OperationQueryParameter = { parameterPath: [ "options", - "computeType" + "expand" ], mapper: { - serializedName: "compute-type", + serializedName: "expand", type: { - name: "String" + name: "Boolean" } } }; -export const connectionName: msRest.OperationURLParameter = { - parameterPath: "connectionName", +export const expand1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expand" + ], mapper: { - required: true, - serializedName: "connectionName", + serializedName: "expand", + defaultValue: false, type: { - name: "String" + name: "Boolean" } } }; @@ -86,6 +99,30 @@ export const location: msRest.OperationURLParameter = { } } }; +export const modelId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "modelId" + ], + mapper: { + serializedName: "modelId", + type: { + name: "String" + } + } +}; +export const modelName: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "modelName" + ], + mapper: { + serializedName: "modelName", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -97,6 +134,19 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "orderby", + defaultValue: 'UpdatedAtDesc', + type: { + name: "String" + } + } +}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -107,15 +157,15 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const recommended: msRest.OperationQueryParameter = { +export const properties: msRest.OperationQueryParameter = { parameterPath: [ "options", - "recommended" + "properties" ], mapper: { - serializedName: "recommended", + serializedName: "properties", type: { - name: "Boolean" + name: "String" } } }; @@ -129,13 +179,35 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; -export const skiptoken: msRest.OperationQueryParameter = { +export const runId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "runId" + ], + mapper: { + serializedName: "runId", + type: { + name: "String" + } + } +}; +export const serviceName: msRest.OperationURLParameter = { + parameterPath: "serviceName", + mapper: { + required: true, + serializedName: "serviceName", + type: { + name: "String" + } + } +}; +export const skip: msRest.OperationQueryParameter = { parameterPath: [ "options", - "skiptoken" + "skip" ], mapper: { - serializedName: "$skiptoken", + serializedName: "$skip", type: { name: "String" } @@ -151,6 +223,30 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const tag: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tag" + ], + mapper: { + serializedName: "tag", + type: { + name: "String" + } + } +}; +export const tags: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tags" + ], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; export const target: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts index e21b80f26ac8..4bb712b1c41c 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts @@ -8,11 +8,33 @@ export { discriminators, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AssignedUser, + AutoScaler, BaseResource, Compute, ComputeInstance, @@ -23,38 +45,79 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, Databricks, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, EncryptionProperty, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityForCmk, + ImageAsset, KeyVaultProperties, + LivenessProbeRequirements, MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, NodeStateCounts, NotebookPreparationError, NotebookResourceInfo, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + RCranPackage, Resource, ResourceId, + RGitHubPackageResponse, + RSectionResponse, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, SslConfiguration, + SystemData, SystemService, UserAccountCredentials, + UserAssignedIdentity, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, 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 index 07a5f2631978..ae8e2d589548 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts @@ -8,11 +8,33 @@ export { discriminators, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AssignedUser, + AutoScaler, BaseResource, CloudError, Compute, @@ -24,39 +46,80 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, Databricks, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, EncryptionProperty, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityForCmk, + ImageAsset, KeyVaultProperties, + LivenessProbeRequirements, MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, NodeStateCounts, NotebookPreparationError, NotebookResourceInfo, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, + RCranPackage, Resource, ResourceId, + RGitHubPackageResponse, + RSectionResponse, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, SslConfiguration, + SystemData, SystemService, UserAccountCredentials, + UserAssignedIdentity, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, 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 index aa49de236b1e..e29a8d89aaab 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts @@ -8,7 +8,7 @@ export { discriminators, - CloudError, + AKSReplicaStatusError, ErrorDetail, ErrorResponse, ListWorkspaceQuotas, @@ -17,6 +17,7 @@ export { QuotaUpdateParameters, ResourceName, ResourceQuota, + ServiceResponseBaseError, UpdateWorkspaceQuotas, UpdateWorkspaceQuotasResult } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/storageAccountMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/storageAccountMappers.ts new file mode 100644 index 000000000000..c19d1ebe48ed --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/storageAccountMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AKSReplicaStatusError, + ErrorDetail, + ErrorResponse, + ListStorageAccountKeysResult, + MachineLearningServiceError, + ServiceResponseBaseError +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts index 448b8d85198f..f56cb9280e70 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts @@ -8,11 +8,33 @@ export { discriminators, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AssignedUser, + AutoScaler, BaseResource, Compute, ComputeInstance, @@ -23,39 +45,80 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, Databricks, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, EncryptionProperty, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityForCmk, + ImageAsset, KeyVaultProperties, + LivenessProbeRequirements, MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, NodeStateCounts, NotebookPreparationError, NotebookResourceInfo, PaginatedWorkspaceConnectionsList, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + RCranPackage, Resource, ResourceId, + RGitHubPackageResponse, + RSectionResponse, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, SslConfiguration, + SystemData, SystemService, UserAccountCredentials, + UserAssignedIdentity, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection, WorkspaceConnectionDto diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts index 5115670bfab0..9f3780ce1728 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts @@ -8,9 +8,11 @@ export { discriminators, + AKSReplicaStatusError, AmlUserFeature, ErrorDetail, ErrorResponse, ListAmlUserFeatureResult, - MachineLearningServiceError + MachineLearningServiceError, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceOperationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceOperationsMappers.ts new file mode 100644 index 000000000000..6f9874e1df8e --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceOperationsMappers.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AKSReplicaStatusError, + ErrorDetail, + ErrorResponse, + MachineLearningServiceError, + ResourceSkuLocationInfo, + ResourceSkuZoneDetails, + Restriction, + ServiceResponseBaseError, + SKUCapability, + SkuListResult, + WorkspaceSku +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts index d8e1137cd946..64053f92e97f 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts @@ -8,11 +8,33 @@ export { discriminators, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AssignedUser, + AutoScaler, BaseResource, Compute, ComputeInstance, @@ -23,42 +45,84 @@ export { ComputeInstanceProperties, ComputeInstanceSshSettings, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + CosmosDbSettings, Databricks, DatabricksProperties, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DatasetReference, + EncryptionProperties, EncryptionProperty, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, ErrorDetail, ErrorResponse, HDInsight, HDInsightProperties, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityForCmk, + ImageAsset, KeyVaultProperties, + ListNotebookKeysResult, ListWorkspaceKeysResult, + LivenessProbeRequirements, MachineLearningServiceError, + Model, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, NodeStateCounts, - NotebookListCredentialsResult, + NotebookAccessTokenResult, NotebookPreparationError, NotebookResourceInfo, Password, + PersonalComputeInstanceSettings, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + RCranPackage, RegistryListCredentialsResult, Resource, ResourceId, + RGitHubPackageResponse, + RSectionResponse, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServiceManagedResourcesSettings, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, SslConfiguration, + SystemData, SystemService, UserAccountCredentials, + UserAssignedIdentity, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection, WorkspaceListResult, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index 3ddc3bba43e8..e818fbbd1de5 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -10,11 +10,14 @@ 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 "./workspaceOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./machineLearningService"; +export * from "./notebooks"; +export * from "./storageAccount"; +export * from "./workspaceConnections"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts index 1fc94951a321..7cc904d0f239 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts @@ -221,32 +221,9 @@ export class MachineLearningCompute { * @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); + start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(resourceGroupName,workspaceName,computeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -257,32 +234,9 @@ export class MachineLearningCompute { * @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); + stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(resourceGroupName,workspaceName,computeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -391,6 +345,46 @@ export class MachineLearningCompute { options); } + /** + * 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 + */ + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * 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 + */ + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + computeName, + options + }, + beginStopOperationSpec, + options); + } + /** * Gets computes in specified workspace. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -418,6 +412,34 @@ export class MachineLearningCompute { listByWorkspaceNextOperationSpec, callback) as Promise; } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNodesNext(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 + */ + listNodesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNodesNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -432,7 +454,7 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -526,54 +548,6 @@ 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", @@ -701,6 +675,54 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginStartOperationSpec: 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: { + 202: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginStopOperationSpec: 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: { + 202: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -710,7 +732,7 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -725,3 +747,27 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listNodesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts new file mode 100644 index 000000000000..45f8a038c0dc --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/machineLearningServiceMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a MachineLearningService. */ +export class MachineLearningService { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a MachineLearningService. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Gets services in specified 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?: Models.MachineLearningServiceListByWorkspaceOptionalParams): 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: Models.MachineLearningServiceListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningServiceListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listByWorkspaceOperationSpec, + callback) as Promise; + } + + /** + * Get a Service by name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, serviceName: string, options?: Models.MachineLearningServiceGetOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, serviceName: 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 serviceName Name of the Azure Machine Learning service. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, serviceName: string, options: Models.MachineLearningServiceGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, serviceName: string, options?: Models.MachineLearningServiceGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a specific Service.. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: 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 serviceName Name of the Azure Machine Learning service. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: 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 serviceName Name of the Azure Machine Learning service. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + serviceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Creates or updates service. This call will update a service if it exists. This is a + * nonrecoverable operation. If your intent is to create a new service, do a GET first to verify + * that it does not exist yet. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param properties The payload that is used to create or update the Service. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, serviceName: string, properties: Models.CreateServiceRequestUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,workspaceName,serviceName,properties,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Creates or updates service. This call will update a service if it exists. This is a + * nonrecoverable operation. If your intent is to create a new service, do a GET first to verify + * that it does not exist yet. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param properties The payload that is used to create or update the Service. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, serviceName: string, properties: Models.CreateServiceRequestUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + serviceName, + properties, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets services in specified workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningServiceListByWorkspaceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByWorkspaceNext(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 + */ + listByWorkspaceNext(nextPageLink: string, options: Models.MachineLearningServiceListByWorkspaceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningServiceListByWorkspaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByWorkspaceNextOperationSpec, + 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}/services", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.modelId, + Parameters.modelName, + Parameters.tag, + Parameters.tags, + Parameters.properties, + Parameters.runId, + Parameters.expand0, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PaginatedServiceList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "properties", + mapper: { + ...Mappers.CreateServiceRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServiceResource, + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + }, + 201: { + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + } + }, + serializer +}; + +const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.modelId, + Parameters.modelName, + Parameters.tag, + Parameters.tags, + Parameters.properties, + Parameters.runId, + Parameters.expand0, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PaginatedServiceList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts index b399aaaf57f3..1927c34654fc 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts @@ -37,6 +37,37 @@ export class Notebooks { .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 + */ + listKeys(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 + */ + listKeys(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 + */ + listKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + /** * @param resourceGroupName Name of the resource group in which workspace is located. * @param workspaceName Name of Azure Machine Learning workspace. @@ -57,6 +88,31 @@ export class Notebooks { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + const beginPrepareOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts index 187767656333..3ceb2aff2a5e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -8,7 +8,6 @@ */ 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"; @@ -117,30 +116,34 @@ export class PrivateEndpointConnections { * @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()); - } - + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): 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 + * @param callback The callback + */ + deleteMethod(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 */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteMethodOperationSpec, + callback); } } @@ -205,7 +208,7 @@ const putOperationSpec: msRest.OperationSpec = { serializer }; -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { +const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ @@ -222,7 +225,6 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, - 202: {}, 204: {}, default: { bodyMapper: Mappers.MachineLearningServiceError diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts index fbf9d1cc0c0d..dd7cfd943580 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -149,7 +149,7 @@ const updateOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas", + path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/quotas", urlParameters: [ Parameters.subscriptionId, Parameters.location @@ -165,7 +165,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.MachineLearningServiceError } }, serializer @@ -189,7 +189,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.MachineLearningServiceError } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/storageAccount.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/storageAccount.ts new file mode 100644 index 000000000000..ea0546d8f960 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/storageAccount.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/storageAccountMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a StorageAccount. */ +export class StorageAccount { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a StorageAccount. + * @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 + */ + listKeys(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 + */ + listKeys(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 + */ + listKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListStorageAccountKeysResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 9be626180c93..5a99cbbea522 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -31,7 +31,7 @@ export class VirtualMachineSizes { * @param [options] The optional parameters * @returns Promise */ - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; + list(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location upon which virtual-machine-sizes is queried. * @param callback The callback @@ -42,8 +42,8 @@ export class VirtualMachineSizes { * @param options The optional parameters * @param callback The callback */ - list(location: string, options: Models.VirtualMachineSizesListOptionalParams, callback: msRest.ServiceCallback): void; - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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, @@ -64,9 +64,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, - Parameters.computeType, - Parameters.recommended + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceOperations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceOperations.ts new file mode 100644 index 000000000000..fecd558bc9ce --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceOperations.ts @@ -0,0 +1,128 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/workspaceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a WorkspaceOperations. */ +export class WorkspaceOperations { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a WorkspaceOperations. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * 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.client.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.client.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 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + 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 9fc610c5256c..3e5b02db07d7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts @@ -188,53 +188,65 @@ export class Workspaces { * @param [options] The optional parameters * @returns Promise */ - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResyncKeys(resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): 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 */ - resyncKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + listBySubscription(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 */ - resyncKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, - workspaceName, options }, - resyncKeysOperationSpec, - callback); + listBySubscriptionOperationSpec, + callback) as Promise; } /** - * Lists all the available machine learning workspaces under the specified subscription. + * return notebook access token and refresh token + * @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 + * @returns Promise */ - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): Promise; + listNotebookAccessToken(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 */ - listBySubscription(callback: msRest.ServiceCallback): void; + listNotebookAccessToken(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 */ - listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + workspaceName, options }, - listBySubscriptionOperationSpec, - callback) as Promise; + listNotebookAccessTokenOperationSpec, + callback) as Promise; } /** @@ -275,6 +287,25 @@ export class Workspaces { options); } + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, + * app insights and password for container registry + * @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 + */ + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + options + }, + beginResyncKeysOperationSpec, + 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. @@ -400,7 +431,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -441,22 +472,23 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; -const resyncKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", +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.skip ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, default: { bodyMapper: Mappers.MachineLearningServiceError } @@ -464,22 +496,23 @@ const resyncKeysOperationSpec: msRest.OperationSpec = { serializer }; -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", +const listNotebookAccessTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", urlParameters: [ - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.NotebookAccessTokenResult }, default: { bodyMapper: Mappers.MachineLearningServiceError @@ -549,6 +582,30 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginResyncKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -558,7 +615,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage @@ -583,7 +640,7 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion, - Parameters.skiptoken + Parameters.skip ], headerParameters: [ Parameters.acceptLanguage