From 3dd04c4bb155f61fd1170b413ae60231f5f29e96 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 15 Jul 2022 18:41:24 +0000 Subject: [PATCH] CodeGen from PR 19748 in Azure/azure-rest-api-specs Merge 224c53e9da685165c6946f3f575175829c21b617 into af315cc1cbc456ed092bde9dcb27b71512d8c8e8 --- .../arm-machinelearning/CHANGELOG.md | 123 +++ .../arm-machinelearning/README.md | 16 +- .../arm-machinelearning/_meta.json | 6 +- .../arm-machinelearning/package.json | 17 +- .../review/arm-machinelearning.api.md | 798 ++++++++++++------ .../src/azureMachineLearningWorkspaces.ts | 6 +- .../arm-machinelearning/src/models/index.ts | 776 ++++++----------- .../arm-machinelearning/src/models/mappers.ts | 21 + .../src/models/parameters.ts | 10 +- .../src/operations/computeOperations.ts | 46 + .../src/operations/workspaceConnections.ts | 2 +- .../operationsInterfaces/computeOperations.ts | 19 +- .../arm-machinelearning/tsconfig.json | 10 +- 13 files changed, 1021 insertions(+), 829 deletions(-) diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index 28beac0fbc20..a4d0dd9c774d 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,5 +1,128 @@ # Release History +## 1.1.0-beta.1 (2022-07-15) + +**Features** + + - Added operation ComputeOperations.updateIdleShutdownSetting + - Added Interface ComputeUpdateIdleShutdownSettingOptionalParams + - Added Interface IdleShutdownSetting + - Added Type Alias AccountKeyDatastoreCredentials + - Added Type Alias AccountKeyDatastoreSecrets + - Added Type Alias Aks + - Added Type Alias AksComputeSecrets + - Added Type Alias AmlCompute + - Added Type Alias AmlToken + - Added Type Alias AssetBase + - Added Type Alias AssetContainer + - Added Type Alias AzureBlobDatastore + - Added Type Alias AzureDataLakeGen1Datastore + - Added Type Alias AzureDataLakeGen2Datastore + - Added Type Alias AzureFileDatastore + - Added Type Alias BanditPolicy + - Added Type Alias BatchDeployment + - Added Type Alias BatchDeploymentProperties + - Added Type Alias BatchEndpoint + - Added Type Alias BatchEndpointProperties + - Added Type Alias BayesianSamplingAlgorithm + - Added Type Alias CertificateDatastoreCredentials + - Added Type Alias CertificateDatastoreSecrets + - Added Type Alias CodeContainer + - Added Type Alias CodeContainerProperties + - Added Type Alias CodeVersion + - Added Type Alias CodeVersionProperties + - Added Type Alias CommandJob + - Added Type Alias CommandJobLimits + - Added Type Alias ComponentContainer + - Added Type Alias ComponentContainerProperties + - Added Type Alias ComponentVersion + - Added Type Alias ComponentVersionProperties + - Added Type Alias ComputeInstance + - Added Type Alias ComputeResource + - Added Type Alias CustomModelJobInput + - Added Type Alias CustomModelJobOutput + - Added Type Alias Databricks + - Added Type Alias DatabricksComputeSecrets + - Added Type Alias DataContainer + - Added Type Alias DataContainerProperties + - Added Type Alias DataFactory + - Added Type Alias DataLakeAnalytics + - Added Type Alias DataPathAssetReference + - Added Type Alias Datastore + - Added Type Alias DatastoreProperties + - Added Type Alias DataVersionBase + - Added Type Alias DataVersionBaseProperties + - Added Type Alias DefaultScaleSettings + - Added Type Alias EnvironmentContainer + - Added Type Alias EnvironmentContainerProperties + - Added Type Alias EnvironmentVersion + - Added Type Alias EnvironmentVersionProperties + - Added Type Alias GridSamplingAlgorithm + - Added Type Alias HDInsight + - Added Type Alias IdAssetReference + - Added Type Alias JobBase + - Added Type Alias JobBaseProperties + - Added Type Alias Kubernetes + - Added Type Alias KubernetesOnlineDeployment + - Added Type Alias LiteralJobInput + - Added Type Alias ManagedIdentity + - Added Type Alias ManagedIdentityAuthTypeWorkspaceConnectionProperties + - Added Type Alias ManagedOnlineDeployment + - Added Type Alias MedianStoppingPolicy + - Added Type Alias MLFlowModelJobInput + - Added Type Alias MLFlowModelJobOutput + - Added Type Alias MLTableData + - Added Type Alias MLTableJobInput + - Added Type Alias MLTableJobOutput + - Added Type Alias ModelContainer + - Added Type Alias ModelContainerProperties + - Added Type Alias ModelVersion + - Added Type Alias ModelVersionProperties + - Added Type Alias Mpi + - Added Type Alias NoneAuthTypeWorkspaceConnectionProperties + - Added Type Alias NoneDatastoreCredentials + - Added Type Alias OnlineDeployment + - Added Type Alias OnlineDeploymentProperties + - Added Type Alias OnlineEndpoint + - Added Type Alias OnlineEndpointProperties + - Added Type Alias OutputPathAssetReference + - Added Type Alias PartialMinimalTrackedResourceWithIdentity + - Added Type Alias PartialMinimalTrackedResourceWithSku + - Added Type Alias PATAuthTypeWorkspaceConnectionProperties + - Added Type Alias PipelineJob + - Added Type Alias PrivateEndpointConnection + - Added Type Alias PrivateLinkResource + - Added Type Alias PyTorch + - Added Type Alias RandomSamplingAlgorithm + - Added Type Alias SASAuthTypeWorkspaceConnectionProperties + - Added Type Alias SasDatastoreCredentials + - Added Type Alias SasDatastoreSecrets + - Added Type Alias ServicePrincipalDatastoreCredentials + - Added Type Alias ServicePrincipalDatastoreSecrets + - Added Type Alias SweepJob + - Added Type Alias SweepJobLimits + - Added Type Alias SynapseSpark + - Added Type Alias TargetUtilizationScaleSettings + - Added Type Alias TensorFlow + - Added Type Alias TrackedResource + - Added Type Alias TritonModelJobInput + - Added Type Alias TritonModelJobOutput + - Added Type Alias TruncationSelectionPolicy + - Added Type Alias UriFileDataVersion + - Added Type Alias UriFileJobInput + - Added Type Alias UriFileJobOutput + - Added Type Alias UriFolderDataVersion + - Added Type Alias UriFolderJobInput + - Added Type Alias UriFolderJobOutput + - Added Type Alias UserIdentity + - Added Type Alias UsernamePasswordAuthTypeWorkspaceConnectionProperties + - Added Type Alias VirtualMachine + - Added Type Alias VirtualMachineSecrets + - Added Type Alias Workspace + - Added Type Alias WorkspaceConnectionPropertiesV2BasicResource + - Interface ComputeInstanceProperties has a new optional parameter idleTimeBeforeShutdown + + ## 1.0.0 (2022-07-13) The package of @azure/arm-machinelearning is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/machinelearning/arm-machinelearning/README.md b/sdk/machinelearning/arm-machinelearning/README.md index bf3e58b8e061..9c53767a4b37 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -1,12 +1,12 @@ -# AzureMachineLearningWorkspaces client library for JavaScript +# Azure Service client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client. These APIs allow end users to operate on Azure Machine Learning Workspace resources. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearning) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -24,7 +24,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-machinelearning` package -Install the AzureMachineLearningWorkspaces client library for JavaScript with `npm`: +Install the Azure Service client library for JavaScript with `npm`: ```bash npm install @azure/arm-machinelearning @@ -32,8 +32,8 @@ npm install @azure/arm-machinelearning ### Create and authenticate a `AzureMachineLearningWorkspaces` -To create a client object to access the AzureMachineLearningWorkspaces API, you will need the `endpoint` of your AzureMachineLearningWorkspaces resource and a `credential`. The AzureMachineLearningWorkspaces client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your AzureMachineLearningWorkspaces resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -43,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to AzureMachineLearningWorkspaces** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For ### AzureMachineLearningWorkspaces -`AzureMachineLearningWorkspaces` is the primary interface for developers using the AzureMachineLearningWorkspaces client library. Explore the methods on this client object to understand the different features of the AzureMachineLearningWorkspaces service that you can access. +`AzureMachineLearningWorkspaces` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access. ## Troubleshooting diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index 9f0f59fa6cb4..d48224664732 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "49e2859d9eef95013f083af9506127cfffd1e866", + "commit": "d3f9727599e1259ac01d0a309c3e6306efe07c66", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220425.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", - "use": "@autorest/typescript@6.0.0-rc.1" + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 5faf78606f88..9e4f6b19652d 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMachineLearningWorkspaces.", - "version": "1.0.0", + "version": "1.1.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -43,8 +43,6 @@ "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "cross-env": "^7.0.2", "@azure/dev-tool": "^1.0.0" }, @@ -98,7 +96,8 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -109,13 +108,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } + "autoPublish": true } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index df34d190fa63..87ba11b0ca30 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -11,26 +11,26 @@ import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; // @public -export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { +export type AccountKeyDatastoreCredentials = DatastoreCredentials & { credentialsType: "AccountKey"; secrets: AccountKeyDatastoreSecrets; -} +}; // @public -export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { - key?: string; +export type AccountKeyDatastoreSecrets = DatastoreSecrets & { secretsType: "AccountKey"; -} + key?: string; +}; // @public -export interface Aks extends Compute, AKSSchema { +export type Aks = Compute & AKSSchema & { computeType: "AKS"; -} +}; // @public -export interface AksComputeSecrets extends ComputeSecrets, AksComputeSecretsProperties { +export type AksComputeSecrets = ComputeSecrets & AksComputeSecretsProperties & { computeType: "AKS"; -} +}; // @public export interface AksComputeSecretsProperties { @@ -69,9 +69,9 @@ export interface AKSSchemaProperties { export type AllocationState = string; // @public -export interface AmlCompute extends Compute, AmlComputeSchema { +export type AmlCompute = Compute & AmlComputeSchema & { computeType: "AmlCompute"; -} +}; // @public export interface AmlComputeNodeInformation { @@ -136,9 +136,9 @@ export interface AmlOperationListResult { } // @public -export interface AmlToken extends IdentityConfiguration { +export type AmlToken = IdentityConfiguration & { identityType: "AMLToken"; -} +}; // @public export interface AmlUserFeature { @@ -151,17 +151,17 @@ export interface AmlUserFeature { export type ApplicationSharingPolicy = string; // @public (undocumented) -export interface AssetBase extends ResourceBase { +export type AssetBase = ResourceBase & { isAnonymous?: boolean; isArchived?: boolean; -} +}; // @public (undocumented) -export interface AssetContainer extends ResourceBase { +export type AssetContainer = ResourceBase & { isArchived?: boolean; readonly latestVersion?: string; readonly nextVersion?: string; -} +}; // @public export interface AssetJobInput { @@ -211,37 +211,37 @@ export interface AutoScaleProperties { } // @public -export interface AzureBlobDatastore extends DatastoreProperties { +export type AzureBlobDatastore = DatastoreProperties & { accountName?: string; containerName?: string; endpoint?: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; // @public -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { +export type AzureDataLakeGen1Datastore = DatastoreProperties & { serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; storeName: string; -} +}; // @public -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { +export type AzureDataLakeGen2Datastore = DatastoreProperties & { accountName: string; endpoint?: string; filesystem: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; // @public -export interface AzureFileDatastore extends DatastoreProperties { +export type AzureFileDatastore = DatastoreProperties & { accountName: string; endpoint?: string; fileShareName: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; // @public (undocumented) export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { @@ -314,22 +314,22 @@ export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient } // @public -export interface BanditPolicy extends EarlyTerminationPolicy { +export type BanditPolicy = EarlyTerminationPolicy & { policyType: "Bandit"; slackAmount?: number; slackFactor?: number; -} +}; // @public (undocumented) -export interface BatchDeployment extends TrackedResource { +export type BatchDeployment = TrackedResource & { identity?: ManagedServiceIdentity; kind?: string; properties: BatchDeploymentProperties; sku?: Sku; -} +}; // @public -export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesBase { +export type BatchDeploymentProperties = EndpointDeploymentPropertiesBase & { compute?: string; errorThreshold?: number; loggingLevel?: BatchLoggingLevel; @@ -341,7 +341,7 @@ export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesB readonly provisioningState?: DeploymentProvisioningState; resources?: ResourceConfiguration; retrySettings?: BatchRetrySettings; -} +}; // @public export interface BatchDeployments { @@ -433,12 +433,12 @@ export interface BatchDeploymentTrackedResourceArmPaginatedResult { } // @public (undocumented) -export interface BatchEndpoint extends TrackedResource { +export type BatchEndpoint = TrackedResource & { identity?: ManagedServiceIdentity; kind?: string; properties: BatchEndpointProperties; sku?: Sku; -} +}; // @public export interface BatchEndpointDefaults { @@ -446,10 +446,10 @@ export interface BatchEndpointDefaults { } // @public -export interface BatchEndpointProperties extends EndpointPropertiesBase { +export type BatchEndpointProperties = EndpointPropertiesBase & { defaults?: BatchEndpointDefaults; readonly provisioningState?: EndpointProvisioningState; -} +}; // @public export interface BatchEndpoints { @@ -559,9 +559,9 @@ export interface BatchRetrySettings { } // @public -export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { +export type BayesianSamplingAlgorithm = SamplingAlgorithm & { samplingAlgorithmType: "Bayesian"; -} +}; // @public export type BillingCurrency = string; @@ -576,21 +576,21 @@ export interface BuildContext { export type Caching = string; // @public -export interface CertificateDatastoreCredentials extends DatastoreCredentials { +export type CertificateDatastoreCredentials = DatastoreCredentials & { + credentialsType: "Certificate"; authorityUrl?: string; clientId: string; - credentialsType: "Certificate"; resourceUrl?: string; secrets: CertificateDatastoreSecrets; tenantId: string; thumbprint: string; -} +}; // @public -export interface CertificateDatastoreSecrets extends DatastoreSecrets { - certificate?: string; +export type CertificateDatastoreSecrets = DatastoreSecrets & { secretsType: "Certificate"; -} + certificate?: string; +}; // @public export type ClusterPurpose = string; @@ -607,13 +607,12 @@ export interface CodeConfiguration { } // @public -export interface CodeContainer extends Resource { +export type CodeContainer = Resource & { properties: CodeContainerProperties; -} +}; // @public -export interface CodeContainerProperties extends AssetContainer { -} +export type CodeContainerProperties = AssetContainer & {}; // @public export interface CodeContainerResourceArmPaginatedResult { @@ -664,14 +663,14 @@ export interface CodeContainersListOptionalParams extends coreClient.OperationOp export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; // @public -export interface CodeVersion extends Resource { +export type CodeVersion = Resource & { properties: CodeVersionProperties; -} +}; // @public -export interface CodeVersionProperties extends AssetBase { +export type CodeVersionProperties = AssetBase & { codeUri?: string; -} +}; // @public export interface CodeVersionResourceArmPaginatedResult { @@ -726,7 +725,7 @@ export interface CodeVersionsListOptionalParams extends coreClient.OperationOpti export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; // @public -export interface CommandJob extends JobBaseProperties { +export type CommandJob = JobBaseProperties & { codeId?: string; command: string; distribution?: DistributionConfigurationUnion; @@ -743,21 +742,20 @@ export interface CommandJob extends JobBaseProperties { }; readonly parameters?: Record; resources?: ResourceConfiguration; -} +}; // @public -export interface CommandJobLimits extends JobLimits { +export type CommandJobLimits = JobLimits & { jobLimitsType: "Command"; -} +}; // @public -export interface ComponentContainer extends Resource { +export type ComponentContainer = Resource & { properties: ComponentContainerProperties; -} +}; // @public -export interface ComponentContainerProperties extends AssetContainer { -} +export type ComponentContainerProperties = AssetContainer & {}; // @public export interface ComponentContainerResourceArmPaginatedResult { @@ -810,14 +808,14 @@ export interface ComponentContainersListOptionalParams extends coreClient.Operat export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; // @public -export interface ComponentVersion extends Resource { +export type ComponentVersion = Resource & { properties: ComponentVersionProperties; -} +}; // @public -export interface ComponentVersionProperties extends AssetBase { +export type ComponentVersionProperties = AssetBase & { componentSpec?: Record; -} +}; // @public export interface ComponentVersionResourceArmPaginatedResult { @@ -921,9 +919,9 @@ export interface ComputeGetOptionalParams extends coreClient.OperationOptions { export type ComputeGetResponse = ComputeResource; // @public -export interface ComputeInstance extends Compute, ComputeInstanceSchema { +export type ComputeInstance = Compute & ComputeInstanceSchema & { computeType: "ComputeInstance"; -} +}; // @public export interface ComputeInstanceApplication { @@ -1004,6 +1002,7 @@ export interface ComputeInstanceProperties { readonly dataMounts?: ComputeInstanceDataMount[]; enableNodePublicIp?: boolean; readonly errors?: ErrorResponse[]; + idleTimeBeforeShutdown?: string; readonly lastOperation?: ComputeInstanceLastOperation; personalComputeInstanceSettings?: PersonalComputeInstanceSettings; readonly schedules?: ComputeSchedules; @@ -1091,20 +1090,21 @@ export interface ComputeOperations { list(resourceGroupName: string, workspaceName: string, options?: ComputeListOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListKeysOptionalParams): Promise; listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListNodesOptionalParams): PagedAsyncIterableIterator; + updateIdleShutdownSetting(resourceGroupName: string, workspaceName: string, computeName: string, parameters: IdleShutdownSetting, options?: ComputeUpdateIdleShutdownSettingOptionalParams): Promise; } // @public export type ComputePowerAction = string; // @public -export interface ComputeResource extends Resource, ComputeResourceSchema { +export type ComputeResource = Resource & ComputeResourceSchema & { identity?: ManagedServiceIdentity; location?: string; - sku?: Sku; tags?: { [propertyName: string]: string; }; -} + sku?: Sku; +}; // @public (undocumented) export interface ComputeResourceSchema { @@ -1157,6 +1157,10 @@ export type ComputeType = string; // @public (undocumented) export type ComputeUnion = Compute | Aks | Kubernetes | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; +// @public +export interface ComputeUpdateIdleShutdownSettingOptionalParams extends coreClient.OperationOptions { +} + // @public export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1200,22 +1204,20 @@ export type CreatedByType = string; export type CredentialsType = string; // @public (undocumented) -export interface CustomModelJobInput extends AssetJobInput, JobInput { -} +export type CustomModelJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface CustomModelJobOutput extends AssetJobOutput, JobOutput { -} +export type CustomModelJobOutput = AssetJobOutput & JobOutput & {}; // @public -export interface Databricks extends Compute, DatabricksSchema { +export type Databricks = Compute & DatabricksSchema & { computeType: "Databricks"; -} +}; // @public -export interface DatabricksComputeSecrets extends ComputeSecrets, DatabricksComputeSecretsProperties { +export type DatabricksComputeSecrets = ComputeSecrets & DatabricksComputeSecretsProperties & { computeType: "Databricks"; -} +}; // @public export interface DatabricksComputeSecretsProperties { @@ -1234,14 +1236,14 @@ export interface DatabricksSchema { } // @public -export interface DataContainer extends Resource { +export type DataContainer = Resource & { properties: DataContainerProperties; -} +}; // @public -export interface DataContainerProperties extends AssetContainer { +export type DataContainerProperties = AssetContainer & { dataType: DataType; -} +}; // @public export interface DataContainerResourceArmPaginatedResult { @@ -1294,14 +1296,14 @@ export interface DataContainersListOptionalParams extends coreClient.OperationOp export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; // @public -export interface DataFactory extends Compute { +export type DataFactory = Compute & { computeType: "DataFactory"; -} +}; // @public -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { +export type DataLakeAnalytics = Compute & DataLakeAnalyticsSchema & { computeType: "DataLakeAnalytics"; -} +}; // @public (undocumented) export interface DataLakeAnalyticsSchema { @@ -1315,16 +1317,16 @@ export interface DataLakeAnalyticsSchemaProperties { } // @public -export interface DataPathAssetReference extends AssetReferenceBase { +export type DataPathAssetReference = AssetReferenceBase & { + referenceType: "DataPath"; datastoreId?: string; path?: string; - referenceType: "DataPath"; -} +}; // @public -export interface Datastore extends Resource { +export type Datastore = Resource & { properties: DatastorePropertiesUnion; -} +}; // @public export interface DatastoreCredentials { @@ -1335,11 +1337,11 @@ export interface DatastoreCredentials { export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; // @public -export interface DatastoreProperties extends ResourceBase { +export type DatastoreProperties = ResourceBase & { credentials: DatastoreCredentialsUnion; datastoreType: DatastoreType; readonly isDefault?: boolean; -} +}; // @public (undocumented) export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore; @@ -1428,15 +1430,15 @@ export type DatastoreType = string; export type DataType = string; // @public -export interface DataVersionBase extends Resource { +export type DataVersionBase = Resource & { properties: DataVersionBasePropertiesUnion; -} +}; // @public -export interface DataVersionBaseProperties extends AssetBase { +export type DataVersionBaseProperties = AssetBase & { dataType: DataType; dataUri: string; -} +}; // @public (undocumented) export type DataVersionBasePropertiesUnion = DataVersionBaseProperties | MLTableData | UriFileDataVersion | UriFolderDataVersion; @@ -1498,9 +1500,9 @@ export interface DataVersionsListOptionalParams extends coreClient.OperationOpti export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; // @public (undocumented) -export interface DefaultScaleSettings extends OnlineScaleSettings { +export type DefaultScaleSettings = OnlineScaleSettings & { scaleType: "Default"; -} +}; // @public (undocumented) export interface DeploymentLogs { @@ -1680,13 +1682,12 @@ export interface EndpointPropertiesBase { export type EndpointProvisioningState = string; // @public -export interface EnvironmentContainer extends Resource { +export type EnvironmentContainer = Resource & { properties: EnvironmentContainerProperties; -} +}; // @public -export interface EnvironmentContainerProperties extends AssetContainer { -} +export type EnvironmentContainerProperties = AssetContainer & {}; // @public export interface EnvironmentContainerResourceArmPaginatedResult { @@ -1742,19 +1743,19 @@ export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmP export type EnvironmentType = string; // @public -export interface EnvironmentVersion extends Resource { +export type EnvironmentVersion = Resource & { properties: EnvironmentVersionProperties; -} +}; // @public -export interface EnvironmentVersionProperties extends AssetBase { +export type EnvironmentVersionProperties = AssetBase & { build?: BuildContext; condaFile?: string; readonly environmentType?: EnvironmentType; image?: string; inferenceConfig?: InferenceContainerProperties; osType?: OperatingSystemType; -} +}; // @public export interface EnvironmentVersionResourceArmPaginatedResult { @@ -1889,14 +1890,14 @@ export interface FqdnEndpointsProperties { export type Goal = string; // @public -export interface GridSamplingAlgorithm extends SamplingAlgorithm { +export type GridSamplingAlgorithm = SamplingAlgorithm & { samplingAlgorithmType: "Grid"; -} +}; // @public -export interface HDInsight extends Compute, HDInsightSchema { +export type HDInsight = Compute & HDInsightSchema & { computeType: "HDInsight"; -} +}; // @public export interface HDInsightProperties { @@ -1911,10 +1912,10 @@ export interface HDInsightSchema { } // @public -export interface IdAssetReference extends AssetReferenceBase { - assetId: string; +export type IdAssetReference = AssetReferenceBase & { referenceType: "Id"; -} + assetId: string; +}; // @public export interface IdentityConfiguration { @@ -1932,6 +1933,11 @@ export interface IdentityForCmk { userAssignedIdentity?: string; } +// @public +export interface IdleShutdownSetting { + idleTimeBeforeShutdown?: string; +} + // @public (undocumented) export interface InferenceContainerProperties { livenessRoute?: Route; @@ -1961,12 +1967,12 @@ export interface InstanceTypeSchemaResources { } // @public -export interface JobBase extends Resource { +export type JobBase = Resource & { properties: JobBasePropertiesUnion; -} +}; // @public -export interface JobBaseProperties extends ResourceBase { +export type JobBaseProperties = ResourceBase & { computeId?: string; displayName?: string; experimentName?: string; @@ -1977,7 +1983,7 @@ export interface JobBaseProperties extends ResourceBase { [propertyName: string]: JobService | null; }; readonly status?: JobStatus; -} +}; // @public (undocumented) export type JobBasePropertiesUnion = JobBaseProperties | CommandJob | PipelineJob | SweepJob; @@ -2120,268 +2126,399 @@ export { KeyType_2 as KeyType } // @public export enum KnownAllocationState { + // (undocumented) Resizing = "Resizing", + // (undocumented) Steady = "Steady" } // @public export enum KnownApplicationSharingPolicy { + // (undocumented) Personal = "Personal", + // (undocumented) Shared = "Shared" } // @public export enum KnownAutosave { + // (undocumented) Local = "Local", + // (undocumented) None = "None", + // (undocumented) Remote = "Remote" } // @public export enum KnownBatchLoggingLevel { + // (undocumented) Debug = "Debug", + // (undocumented) Info = "Info", + // (undocumented) Warning = "Warning" } // @public export enum KnownBatchOutputAction { + // (undocumented) AppendRow = "AppendRow", + // (undocumented) SummaryOnly = "SummaryOnly" } // @public export enum KnownBillingCurrency { + // (undocumented) USD = "USD" } // @public export enum KnownCaching { + // (undocumented) None = "None", + // (undocumented) ReadOnly = "ReadOnly", + // (undocumented) ReadWrite = "ReadWrite" } // @public export enum KnownClusterPurpose { + // (undocumented) DenseProd = "DenseProd", + // (undocumented) DevTest = "DevTest", + // (undocumented) FastProd = "FastProd" } // @public export enum KnownComputeInstanceAuthorizationType { + // (undocumented) Personal = "personal" } // @public export enum KnownComputeInstanceState { + // (undocumented) CreateFailed = "CreateFailed", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) JobRunning = "JobRunning", + // (undocumented) Restarting = "Restarting", + // (undocumented) Running = "Running", + // (undocumented) SettingUp = "SettingUp", + // (undocumented) SetupFailed = "SetupFailed", + // (undocumented) Starting = "Starting", + // (undocumented) Stopped = "Stopped", + // (undocumented) Stopping = "Stopping", + // (undocumented) Unknown = "Unknown", + // (undocumented) Unusable = "Unusable", + // (undocumented) UserSettingUp = "UserSettingUp", + // (undocumented) UserSetupFailed = "UserSetupFailed" } // @public export enum KnownComputePowerAction { + // (undocumented) Start = "Start", + // (undocumented) Stop = "Stop" } // @public export enum KnownComputeType { + // (undocumented) AKS = "AKS", + // (undocumented) AmlCompute = "AmlCompute", + // (undocumented) ComputeInstance = "ComputeInstance", + // (undocumented) Databricks = "Databricks", + // (undocumented) DataFactory = "DataFactory", + // (undocumented) DataLakeAnalytics = "DataLakeAnalytics", + // (undocumented) HDInsight = "HDInsight", + // (undocumented) Kubernetes = "Kubernetes", + // (undocumented) SynapseSpark = "SynapseSpark", + // (undocumented) VirtualMachine = "VirtualMachine" } // @public export enum KnownConnectionAuthType { + // (undocumented) ManagedIdentity = "ManagedIdentity", + // (undocumented) None = "None", + // (undocumented) PAT = "PAT", + // (undocumented) SAS = "SAS", + // (undocumented) UsernamePassword = "UsernamePassword" } // @public export enum KnownConnectionCategory { + // (undocumented) ContainerRegistry = "ContainerRegistry", + // (undocumented) Git = "Git", + // (undocumented) PythonFeed = "PythonFeed" } // @public export enum KnownContainerType { + // (undocumented) InferenceServer = "InferenceServer", + // (undocumented) StorageInitializer = "StorageInitializer" } // @public export enum KnownCreatedByType { + // (undocumented) Application = "Application", + // (undocumented) Key = "Key", + // (undocumented) ManagedIdentity = "ManagedIdentity", + // (undocumented) User = "User" } // @public export enum KnownCredentialsType { + // (undocumented) AccountKey = "AccountKey", + // (undocumented) Certificate = "Certificate", + // (undocumented) None = "None", + // (undocumented) Sas = "Sas", + // (undocumented) ServicePrincipal = "ServicePrincipal" } // @public export enum KnownDatastoreType { + // (undocumented) AzureBlob = "AzureBlob", + // (undocumented) AzureDataLakeGen1 = "AzureDataLakeGen1", + // (undocumented) AzureDataLakeGen2 = "AzureDataLakeGen2", + // (undocumented) AzureFile = "AzureFile" } // @public export enum KnownDataType { + // (undocumented) Mltable = "mltable", + // (undocumented) UriFile = "uri_file", + // (undocumented) UriFolder = "uri_folder" } // @public export enum KnownDeploymentProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Scaling = "Scaling", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } // @public export enum KnownDiagnoseResultLevel { + // (undocumented) Error = "Error", + // (undocumented) Information = "Information", + // (undocumented) Warning = "Warning" } // @public export enum KnownDistributionType { + // (undocumented) Mpi = "Mpi", + // (undocumented) PyTorch = "PyTorch", + // (undocumented) TensorFlow = "TensorFlow" } // @public export enum KnownEarlyTerminationPolicyType { + // (undocumented) Bandit = "Bandit", + // (undocumented) MedianStopping = "MedianStopping", + // (undocumented) TruncationSelection = "TruncationSelection" } // @public export enum KnownEncryptionStatus { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownEndpointAuthMode { + // (undocumented) AADToken = "AADToken", + // (undocumented) AMLToken = "AMLToken", + // (undocumented) Key = "Key" } // @public export enum KnownEndpointComputeType { + // (undocumented) AzureMLCompute = "AzureMLCompute", + // (undocumented) Kubernetes = "Kubernetes", + // (undocumented) Managed = "Managed" } // @public export enum KnownEndpointProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Updating = "Updating" } // @public export enum KnownEnvironmentType { + // (undocumented) Curated = "Curated", + // (undocumented) UserCreated = "UserCreated" } // @public export enum KnownGoal { + // (undocumented) Maximize = "Maximize", + // (undocumented) Minimize = "Minimize" } // @public export enum KnownIdentityConfigurationType { + // (undocumented) AMLToken = "AMLToken", + // (undocumented) Managed = "Managed", + // (undocumented) UserIdentity = "UserIdentity" } // @public export enum KnownInputDeliveryMode { + // (undocumented) Direct = "Direct", + // (undocumented) Download = "Download", + // (undocumented) EvalDownload = "EvalDownload", + // (undocumented) EvalMount = "EvalMount", + // (undocumented) ReadOnlyMount = "ReadOnlyMount", + // (undocumented) ReadWriteMount = "ReadWriteMount" } // @public export enum KnownJobInputType { + // (undocumented) CustomModel = "custom_model", + // (undocumented) Literal = "literal", + // (undocumented) MlflowModel = "mlflow_model", + // (undocumented) Mltable = "mltable", + // (undocumented) TritonModel = "triton_model", + // (undocumented) UriFile = "uri_file", + // (undocumented) UriFolder = "uri_folder" } // @public export enum KnownJobLimitsType { + // (undocumented) Command = "Command", + // (undocumented) Sweep = "Sweep" } // @public export enum KnownJobOutputType { + // (undocumented) CustomModel = "custom_model", + // (undocumented) MlflowModel = "mlflow_model", + // (undocumented) Mltable = "mltable", + // (undocumented) TritonModel = "triton_model", + // (undocumented) UriFile = "uri_file", + // (undocumented) UriFolder = "uri_folder" } @@ -2405,222 +2542,323 @@ export enum KnownJobStatus { // @public export enum KnownJobType { + // (undocumented) Command = "Command", + // (undocumented) Pipeline = "Pipeline", + // (undocumented) Sweep = "Sweep" } // @public export enum KnownKeyType { + // (undocumented) Primary = "Primary", + // (undocumented) Secondary = "Secondary" } // @public export enum KnownListViewType { + // (undocumented) ActiveOnly = "ActiveOnly", + // (undocumented) All = "All", + // (undocumented) ArchivedOnly = "ArchivedOnly" } // @public export enum KnownLoadBalancerType { + // (undocumented) InternalLoadBalancer = "InternalLoadBalancer", + // (undocumented) PublicIp = "PublicIp" } // @public export enum KnownManagedServiceIdentityType { + // (undocumented) None = "None", + // (undocumented) SystemAssigned = "SystemAssigned", + // (undocumented) SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownMountAction { + // (undocumented) Mount = "Mount", + // (undocumented) Unmount = "Unmount" } // @public export enum KnownMountState { + // (undocumented) Mounted = "Mounted", + // (undocumented) MountFailed = "MountFailed", + // (undocumented) MountRequested = "MountRequested", + // (undocumented) Unmounted = "Unmounted", + // (undocumented) UnmountFailed = "UnmountFailed", + // (undocumented) UnmountRequested = "UnmountRequested" } // @public export enum KnownNetwork { + // (undocumented) Bridge = "Bridge", + // (undocumented) Host = "Host" } // @public export enum KnownNodeState { + // (undocumented) Idle = "idle", + // (undocumented) Leaving = "leaving", + // (undocumented) Preempted = "preempted", + // (undocumented) Preparing = "preparing", + // (undocumented) Running = "running", + // (undocumented) Unusable = "unusable" } // @public export enum KnownOperatingSystemType { + // (undocumented) Linux = "Linux", + // (undocumented) Windows = "Windows" } // @public export enum KnownOperationName { + // (undocumented) Create = "Create", + // (undocumented) Delete = "Delete", + // (undocumented) Reimage = "Reimage", + // (undocumented) Restart = "Restart", + // (undocumented) Start = "Start", + // (undocumented) Stop = "Stop" } // @public export enum KnownOperationStatus { + // (undocumented) CreateFailed = "CreateFailed", + // (undocumented) DeleteFailed = "DeleteFailed", + // (undocumented) InProgress = "InProgress", + // (undocumented) ReimageFailed = "ReimageFailed", + // (undocumented) RestartFailed = "RestartFailed", + // (undocumented) StartFailed = "StartFailed", + // (undocumented) StopFailed = "StopFailed", + // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownOperationTrigger { + // (undocumented) IdleShutdown = "IdleShutdown", + // (undocumented) Schedule = "Schedule", + // (undocumented) User = "User" } // @public export enum KnownOrderString { + // (undocumented) CreatedAtAsc = "CreatedAtAsc", + // (undocumented) CreatedAtDesc = "CreatedAtDesc", + // (undocumented) UpdatedAtAsc = "UpdatedAtAsc", + // (undocumented) UpdatedAtDesc = "UpdatedAtDesc" } // @public export enum KnownOsType { + // (undocumented) Linux = "Linux", + // (undocumented) Windows = "Windows" } // @public export enum KnownOutputDeliveryMode { + // (undocumented) ReadWriteMount = "ReadWriteMount", + // (undocumented) Upload = "Upload" } // @public export enum KnownPrivateEndpointConnectionProvisioningState { + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownPrivateEndpointServiceConnectionStatus { + // (undocumented) Approved = "Approved", + // (undocumented) Disconnected = "Disconnected", + // (undocumented) Pending = "Pending", + // (undocumented) Rejected = "Rejected", + // (undocumented) Timeout = "Timeout" } // @public export enum KnownProvisioningState { + // (undocumented) Canceled = "Canceled", + // (undocumented) Creating = "Creating", + // (undocumented) Deleting = "Deleting", + // (undocumented) Failed = "Failed", + // (undocumented) Succeeded = "Succeeded", + // (undocumented) Unknown = "Unknown", + // (undocumented) Updating = "Updating" } // @public export enum KnownProvisioningStatus { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) Provisioning = "Provisioning" } // @public export enum KnownPublicNetworkAccess { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownQuotaUnit { + // (undocumented) Count = "Count" } // @public export enum KnownRandomSamplingAlgorithmRule { + // (undocumented) Random = "Random", + // (undocumented) Sobol = "Sobol" } // @public export enum KnownReferenceType { + // (undocumented) DataPath = "DataPath", + // (undocumented) Id = "Id", + // (undocumented) OutputPath = "OutputPath" } // @public export enum KnownRemoteLoginPortPublicAccess { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled", + // (undocumented) NotSpecified = "NotSpecified" } // @public export enum KnownSamplingAlgorithmType { + // (undocumented) Bayesian = "Bayesian", + // (undocumented) Grid = "Grid", + // (undocumented) Random = "Random" } // @public export enum KnownScaleType { + // (undocumented) Default = "Default", + // (undocumented) TargetUtilization = "TargetUtilization" } // @public export enum KnownScheduleProvisioningState { + // (undocumented) Completed = "Completed", + // (undocumented) Failed = "Failed", + // (undocumented) Provisioning = "Provisioning" } // @public export enum KnownScheduleStatus { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownSecretsType { + // (undocumented) AccountKey = "AccountKey", + // (undocumented) Certificate = "Certificate", + // (undocumented) Sas = "Sas", + // (undocumented) ServicePrincipal = "ServicePrincipal" } @@ -2640,91 +2878,121 @@ export enum KnownSkuScaleType { // @public export enum KnownSourceType { + // (undocumented) Dataset = "Dataset", + // (undocumented) Datastore = "Datastore", + // (undocumented) URI = "URI" } // @public export enum KnownSshPublicAccess { + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownSslConfigStatus { + // (undocumented) Auto = "Auto", + // (undocumented) Disabled = "Disabled", + // (undocumented) Enabled = "Enabled" } // @public export enum KnownStatus { + // (undocumented) Failure = "Failure", + // (undocumented) InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + // (undocumented) InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + // (undocumented) InvalidVMFamilyName = "InvalidVMFamilyName", + // (undocumented) OperationNotEnabledForRegion = "OperationNotEnabledForRegion", + // (undocumented) OperationNotSupportedForSku = "OperationNotSupportedForSku", + // (undocumented) Success = "Success", + // (undocumented) Undefined = "Undefined" } // @public export enum KnownStorageAccountType { + // (undocumented) PremiumLRS = "Premium_LRS", + // (undocumented) StandardLRS = "Standard_LRS" } // @public export enum KnownUnderlyingResourceAction { + // (undocumented) Delete = "Delete", + // (undocumented) Detach = "Detach" } // @public export enum KnownUnitOfMeasure { + // (undocumented) OneHour = "OneHour" } // @public export enum KnownUsageUnit { + // (undocumented) Count = "Count" } // @public export enum KnownValueFormat { + // (undocumented) Json = "JSON" } // @public export enum KnownVMPriceOSType { + // (undocumented) Linux = "Linux", + // (undocumented) Windows = "Windows" } // @public export enum KnownVmPriority { + // (undocumented) Dedicated = "Dedicated", + // (undocumented) LowPriority = "LowPriority" } // @public export enum KnownVMTier { + // (undocumented) LowPriority = "LowPriority", + // (undocumented) Spot = "Spot", + // (undocumented) Standard = "Standard" } // @public -export interface Kubernetes extends Compute, KubernetesSchema { +export type Kubernetes = Compute & KubernetesSchema & { computeType: "Kubernetes"; -} +}; // @public -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { +export type KubernetesOnlineDeployment = OnlineDeploymentProperties & { containerResourceRequirements?: ContainerResourceRequirements; -} +}; // @public export interface KubernetesProperties { @@ -2787,32 +3055,30 @@ export interface ListWorkspaceQuotas { } // @public -export interface LiteralJobInput extends JobInput { +export type LiteralJobInput = JobInput & { jobInputType: "literal"; value: string; -} +}; // @public export type LoadBalancerType = string; // @public -export interface ManagedIdentity extends IdentityConfiguration { - clientId?: string; +export type ManagedIdentity = IdentityConfiguration & { identityType: "Managed"; + clientId?: string; objectId?: string; resourceId?: string; -} +}; // @public (undocumented) -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { +export type ManagedIdentityAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { authType: "ManagedIdentity"; - // (undocumented) credentials?: WorkspaceConnectionManagedIdentity; -} +}; // @public -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { -} +export type ManagedOnlineDeployment = OnlineDeploymentProperties & {}; // @public export interface ManagedServiceIdentity { @@ -2828,39 +3094,34 @@ export interface ManagedServiceIdentity { export type ManagedServiceIdentityType = string; // @public -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { +export type MedianStoppingPolicy = EarlyTerminationPolicy & { policyType: "MedianStopping"; -} +}; // @public (undocumented) -export interface MLFlowModelJobInput extends AssetJobInput, JobInput { -} +export type MLFlowModelJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { -} +export type MLFlowModelJobOutput = AssetJobOutput & JobOutput & {}; // @public -export interface MLTableData extends DataVersionBaseProperties { +export type MLTableData = DataVersionBaseProperties & { referencedUris?: string[]; -} +}; // @public (undocumented) -export interface MLTableJobInput extends AssetJobInput, JobInput { -} +export type MLTableJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface MLTableJobOutput extends AssetJobOutput, JobOutput { -} +export type MLTableJobOutput = AssetJobOutput & JobOutput & {}; // @public -export interface ModelContainer extends Resource { +export type ModelContainer = Resource & { properties: ModelContainerProperties; -} +}; // @public (undocumented) -export interface ModelContainerProperties extends AssetContainer { -} +export type ModelContainerProperties = AssetContainer & {}; // @public export interface ModelContainerResourceArmPaginatedResult { @@ -2915,19 +3176,19 @@ export interface ModelContainersListOptionalParams extends coreClient.OperationO export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; // @public -export interface ModelVersion extends Resource { +export type ModelVersion = Resource & { properties: ModelVersionProperties; -} +}; // @public -export interface ModelVersionProperties extends AssetBase { +export type ModelVersionProperties = AssetBase & { flavors?: { [propertyName: string]: FlavorData | null; }; jobName?: string; modelType?: string; modelUri?: string; -} +}; // @public export interface ModelVersionResourceArmPaginatedResult { @@ -3002,10 +3263,10 @@ export type MountAction = string; export type MountState = string; // @public -export interface Mpi extends DistributionConfiguration { +export type Mpi = DistributionConfiguration & { distributionType: "Mpi"; processCountPerInstance?: number; -} +}; // @public export type Network = string; @@ -3024,14 +3285,14 @@ export interface NodeStateCounts { } // @public (undocumented) -export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { +export type NoneAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { authType: "None"; -} +}; // @public -export interface NoneDatastoreCredentials extends DatastoreCredentials { +export type NoneDatastoreCredentials = DatastoreCredentials & { credentialsType: "None"; -} +}; // @public (undocumented) export interface NotebookAccessTokenResult { @@ -3068,15 +3329,15 @@ export interface Objective { } // @public (undocumented) -export interface OnlineDeployment extends TrackedResource { +export type OnlineDeployment = TrackedResource & { identity?: ManagedServiceIdentity; kind?: string; properties: OnlineDeploymentPropertiesUnion; sku?: Sku; -} +}; // @public (undocumented) -export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { +export type OnlineDeploymentProperties = EndpointDeploymentPropertiesBase & { appInsightsEnabled?: boolean; endpointComputeType: EndpointComputeType; instanceType?: string; @@ -3087,7 +3348,7 @@ export interface OnlineDeploymentProperties extends EndpointDeploymentProperties readinessProbe?: ProbeSettings; requestSettings?: OnlineRequestSettings; scaleSettings?: OnlineScaleSettingsUnion; -} +}; // @public (undocumented) export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | KubernetesOnlineDeployment | ManagedOnlineDeployment; @@ -3209,21 +3470,21 @@ export interface OnlineDeploymentTrackedResourceArmPaginatedResult { } // @public (undocumented) -export interface OnlineEndpoint extends TrackedResource { +export type OnlineEndpoint = TrackedResource & { identity?: ManagedServiceIdentity; kind?: string; properties: OnlineEndpointProperties; sku?: Sku; -} +}; // @public -export interface OnlineEndpointProperties extends EndpointPropertiesBase { +export type OnlineEndpointProperties = EndpointPropertiesBase & { compute?: string; readonly provisioningState?: EndpointProvisioningState; traffic?: { [propertyName: string]: number; }; -} +}; // @public export interface OnlineEndpoints { @@ -3401,11 +3662,11 @@ export type OsType = string; export type OutputDeliveryMode = string; // @public -export interface OutputPathAssetReference extends AssetReferenceBase { +export type OutputPathAssetReference = AssetReferenceBase & { + referenceType: "OutputPath"; jobId?: string; path?: string; - referenceType: "OutputPath"; -} +}; // @public export interface PaginatedComputeResourcesList { @@ -3442,14 +3703,14 @@ export interface PartialMinimalTrackedResource { } // @public -export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { +export type PartialMinimalTrackedResourceWithIdentity = PartialMinimalTrackedResource & { identity?: PartialManagedServiceIdentity; -} +}; // @public -export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { +export type PartialMinimalTrackedResourceWithSku = PartialMinimalTrackedResource & { sku?: PartialSku; -} +}; // @public export interface PartialSku { @@ -3467,11 +3728,10 @@ export interface Password { } // @public (undocumented) -export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { +export type PATAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { authType: "PAT"; - // (undocumented) credentials?: WorkspaceConnectionPersonalAccessToken; -} +}; // @public export interface PersonalComputeInstanceSettings { @@ -3479,7 +3739,7 @@ export interface PersonalComputeInstanceSettings { } // @public -export interface PipelineJob extends JobBaseProperties { +export type PipelineJob = JobBaseProperties & { inputs?: { [propertyName: string]: JobInputUnion | null; }; @@ -3490,7 +3750,7 @@ export interface PipelineJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; settings?: Record; -} +}; // @public export interface PrivateEndpoint { @@ -3499,17 +3759,17 @@ export interface PrivateEndpoint { } // @public -export interface PrivateEndpointConnection extends Resource { +export type PrivateEndpointConnection = Resource & { identity?: ManagedServiceIdentity; location?: string; - privateEndpoint?: PrivateEndpoint; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; - sku?: Sku; tags?: { [propertyName: string]: string; }; -} + sku?: Sku; + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; // @public export interface PrivateEndpointConnectionListResult { @@ -3556,17 +3816,17 @@ export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionLi export type PrivateEndpointServiceConnectionStatus = string; // @public -export interface PrivateLinkResource extends Resource { - readonly groupId?: string; +export type PrivateLinkResource = Resource & { identity?: ManagedServiceIdentity; location?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; - sku?: Sku; tags?: { [propertyName: string]: string; }; -} + sku?: Sku; + readonly groupId?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; +}; // @public export interface PrivateLinkResourceListResult { @@ -3611,10 +3871,10 @@ export type ProvisioningStatus = string; export type PublicNetworkAccess = string; // @public -export interface PyTorch extends DistributionConfiguration { +export type PyTorch = DistributionConfiguration & { distributionType: "PyTorch"; processCountPerInstance?: number; -} +}; // @public export interface QuotaBaseProperties { @@ -3661,11 +3921,11 @@ export interface QuotaUpdateParameters { } // @public -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { - rule?: RandomSamplingAlgorithmRule; +export type RandomSamplingAlgorithm = SamplingAlgorithm & { samplingAlgorithmType: "Random"; + rule?: RandomSamplingAlgorithmRule; seed?: number; -} +}; // @public export type RandomSamplingAlgorithmRule = string; @@ -3757,23 +4017,22 @@ export type SamplingAlgorithmType = string; export type SamplingAlgorithmUnion = SamplingAlgorithm | BayesianSamplingAlgorithm | GridSamplingAlgorithm | RandomSamplingAlgorithm; // @public (undocumented) -export interface SASAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { +export type SASAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { authType: "SAS"; - // (undocumented) credentials?: WorkspaceConnectionSharedAccessSignature; -} +}; // @public -export interface SasDatastoreCredentials extends DatastoreCredentials { +export type SasDatastoreCredentials = DatastoreCredentials & { credentialsType: "Sas"; secrets: SasDatastoreSecrets; -} +}; // @public -export interface SasDatastoreSecrets extends DatastoreSecrets { - sasToken?: string; +export type SasDatastoreSecrets = DatastoreSecrets & { secretsType: "Sas"; -} + sasToken?: string; +}; // @public export interface ScaleSettings { @@ -3832,20 +4091,20 @@ export interface ServiceManagedResourcesSettings { } // @public -export interface ServicePrincipalDatastoreCredentials extends DatastoreCredentials { +export type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { + credentialsType: "ServicePrincipal"; authorityUrl?: string; clientId: string; - credentialsType: "ServicePrincipal"; resourceUrl?: string; secrets: ServicePrincipalDatastoreSecrets; tenantId: string; -} +}; // @public -export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { - clientSecret?: string; +export type ServicePrincipalDatastoreSecrets = DatastoreSecrets & { secretsType: "ServicePrincipal"; -} + clientSecret?: string; +}; // @public export interface SetupScripts { @@ -3929,7 +4188,7 @@ export type Status = string; export type StorageAccountType = string; // @public -export interface SweepJob extends JobBaseProperties { +export type SweepJob = JobBaseProperties & { earlyTermination?: EarlyTerminationPolicyUnion; inputs?: { [propertyName: string]: JobInputUnion | null; @@ -3942,22 +4201,21 @@ export interface SweepJob extends JobBaseProperties { samplingAlgorithm: SamplingAlgorithmUnion; searchSpace: Record; trial: TrialComponent; -} +}; // @public -export interface SweepJobLimits extends JobLimits { +export type SweepJobLimits = JobLimits & { jobLimitsType: "Sweep"; maxConcurrentTrials?: number; maxTotalTrials?: number; trialTimeout?: string; -} +}; // @public -export interface SynapseSpark extends Compute { +export type SynapseSpark = Compute & { computeType: "SynapseSpark"; - // (undocumented) properties?: SynapseSparkProperties; -} +}; // @public (undocumented) export interface SynapseSparkProperties { @@ -3991,28 +4249,28 @@ export interface SystemService { } // @public (undocumented) -export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { +export type TargetUtilizationScaleSettings = OnlineScaleSettings & { + scaleType: "TargetUtilization"; maxInstances?: number; minInstances?: number; pollingInterval?: string; - scaleType: "TargetUtilization"; targetUtilizationPercentage?: number; -} +}; // @public -export interface TensorFlow extends DistributionConfiguration { +export type TensorFlow = DistributionConfiguration & { distributionType: "TensorFlow"; parameterServerCount?: number; workerCount?: number; -} +}; // @public -export interface TrackedResource extends Resource { - location: string; +export type TrackedResource = Resource & { tags?: { [propertyName: string]: string; }; -} + location: string; +}; // @public export interface TrialComponent { @@ -4027,18 +4285,16 @@ export interface TrialComponent { } // @public (undocumented) -export interface TritonModelJobInput extends AssetJobInput, JobInput { -} +export type TritonModelJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface TritonModelJobOutput extends AssetJobOutput, JobOutput { -} +export type TritonModelJobOutput = AssetJobOutput & JobOutput & {}; // @public -export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { +export type TruncationSelectionPolicy = EarlyTerminationPolicy & { policyType: "TruncationSelection"; truncationPercentage?: number; -} +}; // @public export type UnderlyingResourceAction = string; @@ -4062,28 +4318,22 @@ export interface UpdateWorkspaceQuotasResult { } // @public -export interface UriFileDataVersion extends DataVersionBaseProperties { -} +export type UriFileDataVersion = DataVersionBaseProperties & {}; // @public (undocumented) -export interface UriFileJobInput extends AssetJobInput, JobInput { -} +export type UriFileJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface UriFileJobOutput extends AssetJobOutput, JobOutput { -} +export type UriFileJobOutput = AssetJobOutput & JobOutput & {}; // @public -export interface UriFolderDataVersion extends DataVersionBaseProperties { -} +export type UriFolderDataVersion = DataVersionBaseProperties & {}; // @public (undocumented) -export interface UriFolderJobInput extends AssetJobInput, JobInput { -} +export type UriFolderJobInput = AssetJobInput & JobInput & {}; // @public (undocumented) -export interface UriFolderJobOutput extends AssetJobOutput, JobOutput { -} +export type UriFolderJobOutput = AssetJobOutput & JobOutput & {}; // @public export interface Usage { @@ -4138,24 +4388,23 @@ export interface UserAssignedIdentity { } // @public -export interface UserIdentity extends IdentityConfiguration { +export type UserIdentity = IdentityConfiguration & { identityType: "UserIdentity"; -} +}; // @public (undocumented) -export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { +export type UsernamePasswordAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { authType: "UsernamePassword"; - // (undocumented) credentials?: WorkspaceConnectionUsernamePassword; -} +}; // @public export type ValueFormat = string; // @public -export interface VirtualMachine extends Compute, VirtualMachineSchema { +export type VirtualMachine = Compute & VirtualMachineSchema & { computeType: "VirtualMachine"; -} +}; // @public export interface VirtualMachineImage { @@ -4179,9 +4428,9 @@ export interface VirtualMachineSchemaProperties { } // @public -export interface VirtualMachineSecrets extends ComputeSecrets, VirtualMachineSecretsSchema { +export type VirtualMachineSecrets = ComputeSecrets & VirtualMachineSecretsSchema & { computeType: "VirtualMachine"; -} +}; // @public (undocumented) export interface VirtualMachineSecretsSchema { @@ -4238,39 +4487,39 @@ export type VmPriority = string; export type VMTier = string; // @public -export interface Workspace extends Resource { - allowPublicAccessWhenBehindVnet?: boolean; +export type Workspace = Resource & { + identity?: ManagedServiceIdentity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly workspaceId?: string; + description?: string; + friendlyName?: string; + keyVault?: string; applicationInsights?: string; containerRegistry?: string; - description?: string; + storageAccount?: string; discoveryUrl?: string; + readonly provisioningState?: ProvisioningState; encryption?: EncryptionProperty; - friendlyName?: string; hbiWorkspace?: boolean; - identity?: ManagedServiceIdentity; - imageBuildCompute?: string; - keyVault?: string; - location?: string; - readonly mlFlowTrackingUri?: string; - readonly notebookInfo?: NotebookResourceInfo; - primaryUserAssignedIdentity?: string; - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly serviceProvisionedResourceGroup?: string; readonly privateLinkCount?: number; - readonly provisioningState?: ProvisioningState; + imageBuildCompute?: string; + allowPublicAccessWhenBehindVnet?: boolean; publicNetworkAccess?: PublicNetworkAccess; - serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; - readonly serviceProvisionedResourceGroup?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; sharedPrivateLinkResources?: SharedPrivateLinkResource[]; - sku?: Sku; - storageAccount?: string; - readonly storageHnsEnabled?: boolean; - tags?: { - [propertyName: string]: string; - }; + readonly notebookInfo?: NotebookResourceInfo; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + primaryUserAssignedIdentity?: string; readonly tenantId?: string; + readonly storageHnsEnabled?: boolean; + readonly mlFlowTrackingUri?: string; v1LegacyMode?: boolean; - readonly workspaceId?: string; -} +}; // @public (undocumented) export interface WorkspaceConnectionManagedIdentity { @@ -4297,10 +4546,9 @@ export interface WorkspaceConnectionPropertiesV2 { } // @public (undocumented) -export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { - // (undocumented) +export type WorkspaceConnectionPropertiesV2BasicResource = Resource & { properties: WorkspaceConnectionPropertiesV2Union; -} +}; // @public (undocumented) export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts index a889f368c426..bad250c30a47 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts @@ -104,7 +104,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-machinelearning/1.0.0`; + const packageDetails = `azsdk-js-arm-machinelearning/1.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -151,7 +151,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-05-01"; + this.apiVersion = options.apiVersion || "2022-06-01-preview"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); this.usages = new UsagesImpl(this); @@ -196,7 +196,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; + return item.replace(/(?<==).*$/, apiVersion); } else { return item; } diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index b1a57cfcbeaf..044e7281afba 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -916,6 +916,12 @@ export interface ComputeSecrets { computeType: "AKS" | "VirtualMachine" | "Databricks"; } +/** Stops compute instance after user defined period of inactivity. */ +export interface IdleShutdownSetting { + /** Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; +} + /** List of private endpoint connection associated with the specified workspace */ export interface PrivateEndpointConnectionListResult { /** Array of private endpoint connections */ @@ -1739,6 +1745,8 @@ export interface ComputeInstanceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly schedules?: ComputeSchedules; + /** Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; /** 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. */ enableNodePublicIp?: boolean; /** @@ -2247,7 +2255,7 @@ export interface TrialComponent { } /** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { +export type PrivateEndpointConnection = Resource & { /** The identity of the resource. */ identity?: ManagedServiceIdentity; /** Specifies the location of the resource. */ @@ -2265,10 +2273,10 @@ export interface PrivateEndpointConnection extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: PrivateEndpointConnectionProvisioningState; -} +}; /** An object that represents a machine learning workspace. */ -export interface Workspace extends Resource { +export type Workspace = Resource & { /** The identity of the resource. */ identity?: ManagedServiceIdentity; /** Specifies the location of the resource. */ @@ -2354,22 +2362,23 @@ export interface Workspace extends Resource { readonly mlFlowTrackingUri?: string; /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ v1LegacyMode?: boolean; -} +}; /** Machine Learning compute object wrapped into ARM resource envelope. */ -export interface ComputeResource extends Resource, ComputeResourceSchema { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** Specifies the location of the resource. */ - location?: string; - /** Contains resource tags defined as key/value pairs. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; -} +export type ComputeResource = Resource & + ComputeResourceSchema & { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + }; /** A private link resource */ -export interface PrivateLinkResource extends Resource { +export type PrivateLinkResource = Resource & { /** The identity of the resource. */ identity?: ManagedServiceIdentity; /** Specifies the location of the resource. */ @@ -2390,213 +2399,213 @@ export interface PrivateLinkResource extends Resource { readonly requiredMembers?: string[]; /** The private link resource Private link DNS zone name. */ requiredZoneNames?: string[]; -} +}; -export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { +export type WorkspaceConnectionPropertiesV2BasicResource = Resource & { properties: WorkspaceConnectionPropertiesV2Union; -} +}; /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { +export type TrackedResource = Resource & { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** The geo-location where the resource lives */ location: string; -} +}; /** Azure Resource Manager resource envelope. */ -export interface CodeContainer extends Resource { +export type CodeContainer = Resource & { /** [Required] Additional attributes of the entity. */ properties: CodeContainerProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface CodeVersion extends Resource { +export type CodeVersion = Resource & { /** [Required] Additional attributes of the entity. */ properties: CodeVersionProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface ComponentContainer extends Resource { +export type ComponentContainer = Resource & { /** [Required] Additional attributes of the entity. */ properties: ComponentContainerProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface ComponentVersion extends Resource { +export type ComponentVersion = Resource & { /** [Required] Additional attributes of the entity. */ properties: ComponentVersionProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface DataContainer extends Resource { +export type DataContainer = Resource & { /** [Required] Additional attributes of the entity. */ properties: DataContainerProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface DataVersionBase extends Resource { +export type DataVersionBase = Resource & { /** [Required] Additional attributes of the entity. */ properties: DataVersionBasePropertiesUnion; -} +}; /** Azure Resource Manager resource envelope. */ -export interface Datastore extends Resource { +export type Datastore = Resource & { /** [Required] Additional attributes of the entity. */ properties: DatastorePropertiesUnion; -} +}; /** Azure Resource Manager resource envelope. */ -export interface EnvironmentContainer extends Resource { +export type EnvironmentContainer = Resource & { /** [Required] Additional attributes of the entity. */ properties: EnvironmentContainerProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface EnvironmentVersion extends Resource { +export type EnvironmentVersion = Resource & { /** [Required] Additional attributes of the entity. */ properties: EnvironmentVersionProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface JobBase extends Resource { +export type JobBase = Resource & { /** [Required] Additional attributes of the entity. */ properties: JobBasePropertiesUnion; -} +}; /** Azure Resource Manager resource envelope. */ -export interface ModelContainer extends Resource { +export type ModelContainer = Resource & { /** [Required] Additional attributes of the entity. */ properties: ModelContainerProperties; -} +}; /** Azure Resource Manager resource envelope. */ -export interface ModelVersion extends Resource { +export type ModelVersion = Resource & { /** [Required] Additional attributes of the entity. */ properties: ModelVersionProperties; -} +}; /** A Machine Learning compute based on AKS. */ -export interface Aks extends Compute, AKSSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; -} +export type Aks = Compute & + AKSSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + }; /** A Machine Learning compute based on Kubernetes Compute. */ -export interface Kubernetes extends Compute, KubernetesSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Kubernetes"; -} +export type Kubernetes = Compute & + KubernetesSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Kubernetes"; + }; /** An Azure Machine Learning compute. */ -export interface AmlCompute extends Compute, AmlComputeSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AmlCompute"; -} +export type AmlCompute = Compute & + AmlComputeSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; + }; /** An Azure Machine Learning compute instance. */ -export interface ComputeInstance extends Compute, ComputeInstanceSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "ComputeInstance"; -} +export type ComputeInstance = Compute & + ComputeInstanceSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ComputeInstance"; + }; /** A Machine Learning compute based on Azure Virtual Machines. */ -export interface VirtualMachine extends Compute, VirtualMachineSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; -} +export type VirtualMachine = Compute & + VirtualMachineSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + }; /** A HDInsight compute. */ -export interface HDInsight extends Compute, HDInsightSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "HDInsight"; -} +export type HDInsight = Compute & + HDInsightSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; + }; /** A DataFactory compute. */ -export interface DataFactory extends Compute { +export type DataFactory = Compute & { /** Polymorphic discriminator, which specifies the different types this object can be */ computeType: "DataFactory"; -} +}; /** A DataFactory compute. */ -export interface Databricks extends Compute, DatabricksSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; -} +export type Databricks = Compute & + DatabricksSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + }; /** A DataLakeAnalytics compute. */ -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataLakeAnalytics"; -} +export type DataLakeAnalytics = Compute & + DataLakeAnalyticsSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; + }; /** A SynapseSpark compute. */ -export interface SynapseSpark extends Compute { +export type SynapseSpark = Compute & { /** Polymorphic discriminator, which specifies the different types this object can be */ computeType: "SynapseSpark"; properties?: SynapseSparkProperties; -} +}; /** Secrets related to a Machine Learning compute based on AKS. */ -export interface AksComputeSecrets - extends ComputeSecrets, - AksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; -} +export type AksComputeSecrets = ComputeSecrets & + AksComputeSecretsProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + }; /** Secrets related to a Machine Learning compute based on AKS. */ -export interface VirtualMachineSecrets - extends ComputeSecrets, - VirtualMachineSecretsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; -} +export type VirtualMachineSecrets = ComputeSecrets & + VirtualMachineSecretsSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + }; /** Secrets related to a Machine Learning compute based on Databricks. */ -export interface DatabricksComputeSecrets - extends ComputeSecrets, - DatabricksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; -} +export type DatabricksComputeSecrets = ComputeSecrets & + DatabricksComputeSecretsProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + }; -export interface PATAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export type PATAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { /** Polymorphic discriminator, which specifies the different types this object can be */ authType: "PAT"; credentials?: WorkspaceConnectionPersonalAccessToken; -} +}; -export interface SASAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export type SASAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { /** Polymorphic discriminator, which specifies the different types this object can be */ authType: "SAS"; credentials?: WorkspaceConnectionSharedAccessSignature; -} +}; -export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export type UsernamePasswordAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { /** Polymorphic discriminator, which specifies the different types this object can be */ authType: "UsernamePassword"; credentials?: WorkspaceConnectionUsernamePassword; -} +}; -export interface NoneAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export type NoneAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { /** Polymorphic discriminator, which specifies the different types this object can be */ authType: "None"; -} +}; -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +export type ManagedIdentityAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { /** Polymorphic discriminator, which specifies the different types this object can be */ authType: "ManagedIdentity"; credentials?: WorkspaceConnectionManagedIdentity; -} +}; /** Batch endpoint configuration. */ -export interface BatchEndpointProperties extends EndpointPropertiesBase { +export type BatchEndpointProperties = EndpointPropertiesBase & { /** Default values for Batch Endpoint */ defaults?: BatchEndpointDefaults; /** @@ -2604,10 +2613,10 @@ export interface BatchEndpointProperties extends EndpointPropertiesBase { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: EndpointProvisioningState; -} +}; /** Online endpoint configuration */ -export interface OnlineEndpointProperties extends EndpointPropertiesBase { +export type OnlineEndpointProperties = EndpointPropertiesBase & { /** * ARM resource ID of the compute if it exists. * optional @@ -2620,53 +2629,50 @@ export interface OnlineEndpointProperties extends EndpointPropertiesBase { readonly provisioningState?: EndpointProvisioningState; /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ traffic?: { [propertyName: string]: number }; -} +}; /** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithIdentity - extends PartialMinimalTrackedResource { +export type PartialMinimalTrackedResourceWithIdentity = PartialMinimalTrackedResource & { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: PartialManagedServiceIdentity; -} +}; /** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithSku - extends PartialMinimalTrackedResource { +export type PartialMinimalTrackedResourceWithSku = PartialMinimalTrackedResource & { /** Sku details required for ARM contract for Autoscaling. */ sku?: PartialSku; -} +}; /** Reference to an asset via its path in a datastore. */ -export interface DataPathAssetReference extends AssetReferenceBase { +export type DataPathAssetReference = AssetReferenceBase & { /** Polymorphic discriminator, which specifies the different types this object can be */ referenceType: "DataPath"; /** ARM resource ID of the datastore where the asset is located. */ datastoreId?: string; /** The path of the file/directory in the datastore. */ path?: string; -} +}; /** Reference to an asset via its ARM resource ID. */ -export interface IdAssetReference extends AssetReferenceBase { +export type IdAssetReference = AssetReferenceBase & { /** Polymorphic discriminator, which specifies the different types this object can be */ referenceType: "Id"; /** [Required] ARM resource ID of the asset. */ assetId: string; -} +}; /** Reference to an asset via its path in a job output. */ -export interface OutputPathAssetReference extends AssetReferenceBase { +export type OutputPathAssetReference = AssetReferenceBase & { /** Polymorphic discriminator, which specifies the different types this object can be */ referenceType: "OutputPath"; /** ARM resource ID of the job. */ jobId?: string; /** The path of the file/directory in the job output. */ path?: string; -} +}; /** Batch inference settings per deployment. */ -export interface BatchDeploymentProperties - extends EndpointDeploymentPropertiesBase { +export type BatchDeploymentProperties = EndpointDeploymentPropertiesBase & { /** Compute target for batch inference operation. */ compute?: string; /** @@ -2708,10 +2714,9 @@ export interface BatchDeploymentProperties * If not provided, will default to the defaults defined in BatchRetrySettings. */ retrySettings?: BatchRetrySettings; -} +}; -export interface OnlineDeploymentProperties - extends EndpointDeploymentPropertiesBase { +export type OnlineDeploymentProperties = EndpointDeploymentPropertiesBase & { /** If true, enables Application Insights logging. */ appInsightsEnabled?: boolean; /** [Required] The compute type of the endpoint. */ @@ -2740,9 +2745,9 @@ export interface OnlineDeploymentProperties * and to DefaultScaleSettings for ManagedOnlineDeployment. */ scaleSettings?: OnlineScaleSettingsUnion; -} +}; -export interface AssetContainer extends ResourceBase { +export type AssetContainer = ResourceBase & { /** Is the asset archived? */ isArchived?: boolean; /** @@ -2755,17 +2760,17 @@ export interface AssetContainer extends ResourceBase { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextVersion?: string; -} +}; -export interface AssetBase extends ResourceBase { +export type AssetBase = ResourceBase & { /** If the name version are system generated (anonymous registration). */ isAnonymous?: boolean; /** Is the asset archived? */ isArchived?: boolean; -} +}; /** Base definition for datastore contents configuration. */ -export interface DatastoreProperties extends ResourceBase { +export type DatastoreProperties = ResourceBase & { /** [Required] Account credentials. */ credentials: DatastoreCredentialsUnion; /** [Required] Storage type backing the datastore. */ @@ -2775,10 +2780,10 @@ export interface DatastoreProperties extends ResourceBase { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isDefault?: boolean; -} +}; /** Base definition for a job. */ -export interface JobBaseProperties extends ResourceBase { +export type JobBaseProperties = ResourceBase & { /** ARM resource ID of the compute resource. */ computeId?: string; /** Display name of job. */ @@ -2804,18 +2809,18 @@ export interface JobBaseProperties extends ResourceBase { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: JobStatus; -} +}; /** Account key datastore credentials configuration. */ -export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { +export type AccountKeyDatastoreCredentials = DatastoreCredentials & { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialsType: "AccountKey"; /** [Required] Storage account secrets. */ secrets: AccountKeyDatastoreSecrets; -} +}; /** Certificate datastore credentials configuration. */ -export interface CertificateDatastoreCredentials extends DatastoreCredentials { +export type CertificateDatastoreCredentials = DatastoreCredentials & { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialsType: "Certificate"; /** Authority URL used for authentication. */ @@ -2830,25 +2835,24 @@ export interface CertificateDatastoreCredentials extends DatastoreCredentials { tenantId: string; /** [Required] Thumbprint of the certificate used for authentication. */ thumbprint: string; -} +}; /** Empty/none datastore credentials. */ -export interface NoneDatastoreCredentials extends DatastoreCredentials { +export type NoneDatastoreCredentials = DatastoreCredentials & { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialsType: "None"; -} +}; /** SAS datastore credentials configuration. */ -export interface SasDatastoreCredentials extends DatastoreCredentials { +export type SasDatastoreCredentials = DatastoreCredentials & { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialsType: "Sas"; /** [Required] Storage container secrets. */ secrets: SasDatastoreSecrets; -} +}; /** Service Principal datastore credentials configuration. */ -export interface ServicePrincipalDatastoreCredentials - extends DatastoreCredentials { +export type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { /** Polymorphic discriminator, which specifies the different types this object can be */ credentialsType: "ServicePrincipal"; /** Authority URL used for authentication. */ @@ -2861,48 +2865,48 @@ export interface ServicePrincipalDatastoreCredentials secrets: ServicePrincipalDatastoreSecrets; /** [Required] ID of the tenant to which the service principal belongs. */ tenantId: string; -} +}; /** Datastore account key secrets. */ -export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { +export type AccountKeyDatastoreSecrets = DatastoreSecrets & { /** Polymorphic discriminator, which specifies the different types this object can be */ secretsType: "AccountKey"; /** Storage account key. */ key?: string; -} +}; /** Datastore certificate secrets. */ -export interface CertificateDatastoreSecrets extends DatastoreSecrets { +export type CertificateDatastoreSecrets = DatastoreSecrets & { /** Polymorphic discriminator, which specifies the different types this object can be */ secretsType: "Certificate"; /** Service principal certificate. */ certificate?: string; -} +}; /** Datastore SAS secrets. */ -export interface SasDatastoreSecrets extends DatastoreSecrets { +export type SasDatastoreSecrets = DatastoreSecrets & { /** Polymorphic discriminator, which specifies the different types this object can be */ secretsType: "Sas"; /** Storage container SAS token. */ sasToken?: string; -} +}; /** Datastore Service Principal secrets. */ -export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { +export type ServicePrincipalDatastoreSecrets = DatastoreSecrets & { /** Polymorphic discriminator, which specifies the different types this object can be */ secretsType: "ServicePrincipal"; /** Service principal secret. */ clientSecret?: string; -} +}; /** AML Token identity configuration. */ -export interface AmlToken extends IdentityConfiguration { +export type AmlToken = IdentityConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ identityType: "AMLToken"; -} +}; /** Managed identity configuration. */ -export interface ManagedIdentity extends IdentityConfiguration { +export type ManagedIdentity = IdentityConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ identityType: "Managed"; /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ @@ -2911,20 +2915,20 @@ export interface ManagedIdentity extends IdentityConfiguration { objectId?: string; /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ resourceId?: string; -} +}; /** User identity configuration. */ -export interface UserIdentity extends IdentityConfiguration { +export type UserIdentity = IdentityConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ identityType: "UserIdentity"; -} +}; -export interface DefaultScaleSettings extends OnlineScaleSettings { +export type DefaultScaleSettings = OnlineScaleSettings & { /** Polymorphic discriminator, which specifies the different types this object can be */ scaleType: "Default"; -} +}; -export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { +export type TargetUtilizationScaleSettings = OnlineScaleSettings & { /** Polymorphic discriminator, which specifies the different types this object can be */ scaleType: "TargetUtilization"; /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ @@ -2935,120 +2939,120 @@ export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { pollingInterval?: string; /** Target CPU usage for the autoscaler. */ targetUtilizationPercentage?: number; -} +}; -export interface CustomModelJobInput extends AssetJobInput, JobInput {} +export type CustomModelJobInput = AssetJobInput & JobInput & {}; -export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} +export type MLFlowModelJobInput = AssetJobInput & JobInput & {}; -export interface MLTableJobInput extends AssetJobInput, JobInput {} +export type MLTableJobInput = AssetJobInput & JobInput & {}; -export interface TritonModelJobInput extends AssetJobInput, JobInput {} +export type TritonModelJobInput = AssetJobInput & JobInput & {}; -export interface UriFileJobInput extends AssetJobInput, JobInput {} +export type UriFileJobInput = AssetJobInput & JobInput & {}; -export interface UriFolderJobInput extends AssetJobInput, JobInput {} +export type UriFolderJobInput = AssetJobInput & JobInput & {}; -export interface CustomModelJobOutput extends AssetJobOutput, JobOutput {} +export type CustomModelJobOutput = AssetJobOutput & JobOutput & {}; -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {} +export type MLFlowModelJobOutput = AssetJobOutput & JobOutput & {}; -export interface MLTableJobOutput extends AssetJobOutput, JobOutput {} +export type MLTableJobOutput = AssetJobOutput & JobOutput & {}; -export interface TritonModelJobOutput extends AssetJobOutput, JobOutput {} +export type TritonModelJobOutput = AssetJobOutput & JobOutput & {}; -export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} +export type UriFileJobOutput = AssetJobOutput & JobOutput & {}; -export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} +export type UriFolderJobOutput = AssetJobOutput & JobOutput & {}; /** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ -export interface BanditPolicy extends EarlyTerminationPolicy { +export type BanditPolicy = EarlyTerminationPolicy & { /** Polymorphic discriminator, which specifies the different types this object can be */ policyType: "Bandit"; /** Absolute distance allowed from the best performing run. */ slackAmount?: number; /** Ratio of the allowed distance from the best performing run. */ slackFactor?: number; -} +}; /** Defines an early termination policy based on running averages of the primary metric of all runs */ -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { +export type MedianStoppingPolicy = EarlyTerminationPolicy & { /** Polymorphic discriminator, which specifies the different types this object can be */ policyType: "MedianStopping"; -} +}; /** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ -export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { +export type TruncationSelectionPolicy = EarlyTerminationPolicy & { /** Polymorphic discriminator, which specifies the different types this object can be */ policyType: "TruncationSelection"; /** The percentage of runs to cancel at each evaluation interval. */ truncationPercentage?: number; -} +}; /** Defines a Sampling Algorithm that generates values based on previous values */ -export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { +export type BayesianSamplingAlgorithm = SamplingAlgorithm & { /** Polymorphic discriminator, which specifies the different types this object can be */ samplingAlgorithmType: "Bayesian"; -} +}; /** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ -export interface GridSamplingAlgorithm extends SamplingAlgorithm { +export type GridSamplingAlgorithm = SamplingAlgorithm & { /** Polymorphic discriminator, which specifies the different types this object can be */ samplingAlgorithmType: "Grid"; -} +}; /** Defines a Sampling Algorithm that generates values randomly */ -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { +export type RandomSamplingAlgorithm = SamplingAlgorithm & { /** Polymorphic discriminator, which specifies the different types this object can be */ samplingAlgorithmType: "Random"; /** The specific type of random algorithm */ rule?: RandomSamplingAlgorithmRule; /** An optional integer to use as the seed for random number generation */ seed?: number; -} +}; /** MPI distribution configuration. */ -export interface Mpi extends DistributionConfiguration { +export type Mpi = DistributionConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ distributionType: "Mpi"; /** Number of processes per MPI node. */ processCountPerInstance?: number; -} +}; /** PyTorch distribution configuration. */ -export interface PyTorch extends DistributionConfiguration { +export type PyTorch = DistributionConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ distributionType: "PyTorch"; /** Number of processes per node. */ processCountPerInstance?: number; -} +}; /** TensorFlow distribution configuration. */ -export interface TensorFlow extends DistributionConfiguration { +export type TensorFlow = DistributionConfiguration & { /** Polymorphic discriminator, which specifies the different types this object can be */ distributionType: "TensorFlow"; /** Number of parameter server tasks. */ parameterServerCount?: number; /** Number of workers. If not specified, will default to the instance count. */ workerCount?: number; -} +}; /** Literal input type. */ -export interface LiteralJobInput extends JobInput { +export type LiteralJobInput = JobInput & { /** Polymorphic discriminator, which specifies the different types this object can be */ jobInputType: "literal"; /** [Required] Literal value for the input. */ value: string; -} +}; /** Command Job limit class. */ -export interface CommandJobLimits extends JobLimits { +export type CommandJobLimits = JobLimits & { /** Polymorphic discriminator, which specifies the different types this object can be */ jobLimitsType: "Command"; -} +}; /** Sweep Job limit class. */ -export interface SweepJobLimits extends JobLimits { +export type SweepJobLimits = JobLimits & { /** Polymorphic discriminator, which specifies the different types this object can be */ jobLimitsType: "Sweep"; /** Sweep Job max concurrent trials. */ @@ -3057,9 +3061,9 @@ export interface SweepJobLimits extends JobLimits { maxTotalTrials?: number; /** Sweep Job Trial timeout value. */ trialTimeout?: string; -} +}; -export interface BatchEndpoint extends TrackedResource { +export type BatchEndpoint = TrackedResource & { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ @@ -3068,9 +3072,9 @@ export interface BatchEndpoint extends TrackedResource { properties: BatchEndpointProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; -} +}; -export interface BatchDeployment extends TrackedResource { +export type BatchDeployment = TrackedResource & { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ @@ -3079,9 +3083,9 @@ export interface BatchDeployment extends TrackedResource { properties: BatchDeploymentProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; -} +}; -export interface OnlineEndpoint extends TrackedResource { +export type OnlineEndpoint = TrackedResource & { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ @@ -3090,9 +3094,9 @@ export interface OnlineEndpoint extends TrackedResource { properties: OnlineEndpointProperties; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; -} +}; -export interface OnlineDeployment extends TrackedResource { +export type OnlineDeployment = TrackedResource & { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ @@ -3101,62 +3105,62 @@ export interface OnlineDeployment extends TrackedResource { properties: OnlineDeploymentPropertiesUnion; /** Sku details required for ARM contract for Autoscaling. */ sku?: Sku; -} +}; /** Properties specific to a KubernetesOnlineDeployment. */ -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { +export type KubernetesOnlineDeployment = OnlineDeploymentProperties & { /** The resource requirements for the container (cpu and memory). */ containerResourceRequirements?: ContainerResourceRequirements; -} +}; /** Properties specific to a ManagedOnlineDeployment. */ -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {} +export type ManagedOnlineDeployment = OnlineDeploymentProperties & {}; /** Container for code asset versions. */ -export interface CodeContainerProperties extends AssetContainer {} +export type CodeContainerProperties = AssetContainer & {}; /** * Component container definition. * */ -export interface ComponentContainerProperties extends AssetContainer {} +export type ComponentContainerProperties = AssetContainer & {}; /** Container for data asset versions. */ -export interface DataContainerProperties extends AssetContainer { +export type DataContainerProperties = AssetContainer & { /** [Required] Specifies the type of data. */ dataType: DataType; -} +}; /** Container for environment specification versions. */ -export interface EnvironmentContainerProperties extends AssetContainer {} +export type EnvironmentContainerProperties = AssetContainer & {}; -export interface ModelContainerProperties extends AssetContainer {} +export type ModelContainerProperties = AssetContainer & {}; /** Code asset version details. */ -export interface CodeVersionProperties extends AssetBase { +export type CodeVersionProperties = AssetBase & { /** Uri where code is located */ codeUri?: string; -} +}; /** Definition of a component version: defines resources that span component types. */ -export interface ComponentVersionProperties extends AssetBase { +export type ComponentVersionProperties = AssetBase & { /** * Defines Component definition details. * */ componentSpec?: Record; -} +}; /** Data version base definition */ -export interface DataVersionBaseProperties extends AssetBase { +export type DataVersionBaseProperties = AssetBase & { /** [Required] Specifies the type of data. */ dataType: DataType; /** [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20220501.Assets.DataVersionBase.DataType */ dataUri: string; -} +}; /** Environment version details. */ -export interface EnvironmentVersionProperties extends AssetBase { +export type EnvironmentVersionProperties = AssetBase & { /** Configuration settings for Docker build context. */ build?: BuildContext; /** @@ -3179,10 +3183,10 @@ export interface EnvironmentVersionProperties extends AssetBase { inferenceConfig?: InferenceContainerProperties; /** The OS type of the environment. */ osType?: OperatingSystemType; -} +}; /** Model asset version details. */ -export interface ModelVersionProperties extends AssetBase { +export type ModelVersionProperties = AssetBase & { /** Mapping of model flavors to their properties. */ flavors?: { [propertyName: string]: FlavorData | null }; /** Name of the training job which produced this model */ @@ -3191,10 +3195,10 @@ export interface ModelVersionProperties extends AssetBase { modelType?: string; /** The URI path to the model contents. */ modelUri?: string; -} +}; /** Azure Blob datastore configuration. */ -export interface AzureBlobDatastore extends DatastoreProperties { +export type AzureBlobDatastore = DatastoreProperties & { /** Storage account name. */ accountName?: string; /** Storage account container name. */ @@ -3205,18 +3209,18 @@ export interface AzureBlobDatastore extends DatastoreProperties { protocol?: string; /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; /** Azure Data Lake Gen1 datastore configuration. */ -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { +export type AzureDataLakeGen1Datastore = DatastoreProperties & { /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; /** [Required] Azure Data Lake store name. */ storeName: string; -} +}; /** Azure Data Lake Gen2 datastore configuration. */ -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { +export type AzureDataLakeGen2Datastore = DatastoreProperties & { /** [Required] Storage account name. */ accountName: string; /** Azure cloud endpoint for the storage account. */ @@ -3227,10 +3231,10 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { protocol?: string; /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; /** Azure File datastore configuration. */ -export interface AzureFileDatastore extends DatastoreProperties { +export type AzureFileDatastore = DatastoreProperties & { /** [Required] Storage account name. */ accountName: string; /** Azure cloud endpoint for the storage account. */ @@ -3241,10 +3245,10 @@ export interface AzureFileDatastore extends DatastoreProperties { protocol?: string; /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} +}; /** Command job definition. */ -export interface CommandJob extends JobBaseProperties { +export type CommandJob = JobBaseProperties & { /** ARM resource ID of the code asset. */ codeId?: string; /** [Required] The command to execute on startup of the job. eg. "python train.py" */ @@ -3268,10 +3272,10 @@ export interface CommandJob extends JobBaseProperties { readonly parameters?: Record; /** Compute Resource configuration for the job. */ resources?: ResourceConfiguration; -} +}; /** Pipeline Job definition: defines generic to MFE attributes. */ -export interface PipelineJob extends JobBaseProperties { +export type PipelineJob = JobBaseProperties & { /** Inputs for the pipeline job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; /** Jobs construct the Pipeline Job. */ @@ -3280,10 +3284,10 @@ export interface PipelineJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null }; /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ settings?: Record; -} +}; /** Sweep job definition. */ -export interface SweepJob extends JobBaseProperties { +export type SweepJob = JobBaseProperties & { /** Early termination policies enable canceling poor-performing runs before they complete */ earlyTermination?: EarlyTerminationPolicyUnion; /** Mapping of input data bindings used in the job. */ @@ -3300,19 +3304,19 @@ export interface SweepJob extends JobBaseProperties { searchSpace: Record; /** [Required] Trial component definition. */ trial: TrialComponent; -} +}; /** MLTable data definition */ -export interface MLTableData extends DataVersionBaseProperties { +export type MLTableData = DataVersionBaseProperties & { /** Uris referenced in the MLTable definition (required for lineage) */ referencedUris?: string[]; -} +}; /** uri-file data version entity */ -export interface UriFileDataVersion extends DataVersionBaseProperties {} +export type UriFileDataVersion = DataVersionBaseProperties & {}; /** uri-folder data version entity */ -export interface UriFolderDataVersion extends DataVersionBaseProperties {} +export type UriFolderDataVersion = DataVersionBaseProperties & {}; /** Defines headers for Workspaces_diagnose operation. */ export interface WorkspacesDiagnoseHeaders { @@ -3476,19 +3480,12 @@ export interface OnlineDeploymentsCreateOrUpdateHeaders { /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { - /** Unknown */ Unknown = "Unknown", - /** Updating */ Updating = "Updating", - /** Creating */ Creating = "Creating", - /** Deleting */ Deleting = "Deleting", - /** Succeeded */ Succeeded = "Succeeded", - /** Failed */ Failed = "Failed", - /** Canceled */ Canceled = "Canceled" } @@ -3509,9 +3506,7 @@ export type ProvisioningState = string; /** Known values of {@link EncryptionStatus} that the service accepts. */ export enum KnownEncryptionStatus { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled" } @@ -3527,9 +3522,7 @@ export type EncryptionStatus = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled" } @@ -3545,15 +3538,10 @@ export type PublicNetworkAccess = string; /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ Pending = "Pending", - /** Approved */ Approved = "Approved", - /** Rejected */ Rejected = "Rejected", - /** Disconnected */ Disconnected = "Disconnected", - /** Timeout */ Timeout = "Timeout" } @@ -3572,13 +3560,9 @@ export type PrivateEndpointServiceConnectionStatus = string; /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ Succeeded = "Succeeded", - /** Creating */ Creating = "Creating", - /** Deleting */ Deleting = "Deleting", - /** Failed */ Failed = "Failed" } @@ -3596,13 +3580,9 @@ export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ export enum KnownManagedServiceIdentityType { - /** None */ None = "None", - /** SystemAssigned */ SystemAssigned = "SystemAssigned", - /** UserAssigned */ UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" } @@ -3620,13 +3600,9 @@ export type ManagedServiceIdentityType = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { - /** User */ User = "User", - /** Application */ Application = "Application", - /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", - /** Key */ Key = "Key" } @@ -3644,11 +3620,8 @@ export type CreatedByType = string; /** Known values of {@link DiagnoseResultLevel} that the service accepts. */ export enum KnownDiagnoseResultLevel { - /** Warning */ Warning = "Warning", - /** Error */ Error = "Error", - /** Information */ Information = "Information" } @@ -3665,7 +3638,6 @@ export type DiagnoseResultLevel = string; /** Known values of {@link UsageUnit} that the service accepts. */ export enum KnownUsageUnit { - /** Count */ Count = "Count" } @@ -3680,7 +3652,6 @@ export type UsageUnit = string; /** Known values of {@link BillingCurrency} that the service accepts. */ export enum KnownBillingCurrency { - /** USD */ USD = "USD" } @@ -3695,7 +3666,6 @@ export type BillingCurrency = string; /** Known values of {@link UnitOfMeasure} that the service accepts. */ export enum KnownUnitOfMeasure { - /** OneHour */ OneHour = "OneHour" } @@ -3710,9 +3680,7 @@ export type UnitOfMeasure = string; /** Known values of {@link VMPriceOSType} that the service accepts. */ export enum KnownVMPriceOSType { - /** Linux */ Linux = "Linux", - /** Windows */ Windows = "Windows" } @@ -3728,11 +3696,8 @@ export type VMPriceOSType = string; /** Known values of {@link VMTier} that the service accepts. */ export enum KnownVMTier { - /** Standard */ Standard = "Standard", - /** LowPriority */ LowPriority = "LowPriority", - /** Spot */ Spot = "Spot" } @@ -3749,7 +3714,6 @@ export type VMTier = string; /** Known values of {@link QuotaUnit} that the service accepts. */ export enum KnownQuotaUnit { - /** Count */ Count = "Count" } @@ -3764,21 +3728,13 @@ export type QuotaUnit = string; /** Known values of {@link Status} that the service accepts. */ export enum KnownStatus { - /** Undefined */ Undefined = "Undefined", - /** Success */ Success = "Success", - /** Failure */ Failure = "Failure", - /** InvalidQuotaBelowClusterMinimum */ InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - /** InvalidQuotaExceedsSubscriptionLimit */ InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - /** InvalidVMFamilyName */ InvalidVMFamilyName = "InvalidVMFamilyName", - /** OperationNotSupportedForSku */ OperationNotSupportedForSku = "OperationNotSupportedForSku", - /** OperationNotEnabledForRegion */ OperationNotEnabledForRegion = "OperationNotEnabledForRegion" } @@ -3800,25 +3756,15 @@ export type Status = string; /** Known values of {@link ComputeType} that the service accepts. */ export enum KnownComputeType { - /** AKS */ AKS = "AKS", - /** Kubernetes */ Kubernetes = "Kubernetes", - /** AmlCompute */ AmlCompute = "AmlCompute", - /** ComputeInstance */ ComputeInstance = "ComputeInstance", - /** DataFactory */ DataFactory = "DataFactory", - /** VirtualMachine */ VirtualMachine = "VirtualMachine", - /** HDInsight */ HDInsight = "HDInsight", - /** Databricks */ Databricks = "Databricks", - /** DataLakeAnalytics */ DataLakeAnalytics = "DataLakeAnalytics", - /** SynapseSpark */ SynapseSpark = "SynapseSpark" } @@ -3842,9 +3788,7 @@ export type ComputeType = string; /** Known values of {@link UnderlyingResourceAction} that the service accepts. */ export enum KnownUnderlyingResourceAction { - /** Delete */ Delete = "Delete", - /** Detach */ Detach = "Detach" } @@ -3860,17 +3804,11 @@ export type UnderlyingResourceAction = string; /** Known values of {@link NodeState} that the service accepts. */ export enum KnownNodeState { - /** Idle */ Idle = "idle", - /** Running */ Running = "running", - /** Preparing */ Preparing = "preparing", - /** Unusable */ Unusable = "unusable", - /** Leaving */ Leaving = "leaving", - /** Preempted */ Preempted = "preempted" } @@ -3890,15 +3828,10 @@ export type NodeState = string; /** Known values of {@link ConnectionAuthType} that the service accepts. */ export enum KnownConnectionAuthType { - /** PAT */ PAT = "PAT", - /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", - /** UsernamePassword */ UsernamePassword = "UsernamePassword", - /** None */ None = "None", - /** SAS */ SAS = "SAS" } @@ -3917,11 +3850,8 @@ export type ConnectionAuthType = string; /** Known values of {@link ConnectionCategory} that the service accepts. */ export enum KnownConnectionCategory { - /** PythonFeed */ PythonFeed = "PythonFeed", - /** ContainerRegistry */ ContainerRegistry = "ContainerRegistry", - /** Git */ Git = "Git" } @@ -3938,7 +3868,6 @@ export type ConnectionCategory = string; /** Known values of {@link ValueFormat} that the service accepts. */ export enum KnownValueFormat { - /** Json */ Json = "JSON" } @@ -3953,17 +3882,11 @@ export type ValueFormat = string; /** Known values of {@link EndpointProvisioningState} that the service accepts. */ export enum KnownEndpointProvisioningState { - /** Creating */ Creating = "Creating", - /** Deleting */ Deleting = "Deleting", - /** Succeeded */ Succeeded = "Succeeded", - /** Failed */ Failed = "Failed", - /** Updating */ Updating = "Updating", - /** Canceled */ Canceled = "Canceled" } @@ -3983,11 +3906,8 @@ export type EndpointProvisioningState = string; /** Known values of {@link EndpointAuthMode} that the service accepts. */ export enum KnownEndpointAuthMode { - /** AMLToken */ AMLToken = "AMLToken", - /** Key */ Key = "Key", - /** AADToken */ AADToken = "AADToken" } @@ -4004,11 +3924,8 @@ export type EndpointAuthMode = string; /** Known values of {@link BatchLoggingLevel} that the service accepts. */ export enum KnownBatchLoggingLevel { - /** Info */ Info = "Info", - /** Warning */ Warning = "Warning", - /** Debug */ Debug = "Debug" } @@ -4025,11 +3942,8 @@ export type BatchLoggingLevel = string; /** Known values of {@link ReferenceType} that the service accepts. */ export enum KnownReferenceType { - /** Id */ Id = "Id", - /** DataPath */ DataPath = "DataPath", - /** OutputPath */ OutputPath = "OutputPath" } @@ -4046,9 +3960,7 @@ export type ReferenceType = string; /** Known values of {@link BatchOutputAction} that the service accepts. */ export enum KnownBatchOutputAction { - /** SummaryOnly */ SummaryOnly = "SummaryOnly", - /** AppendRow */ AppendRow = "AppendRow" } @@ -4064,19 +3976,12 @@ export type BatchOutputAction = string; /** Known values of {@link DeploymentProvisioningState} that the service accepts. */ export enum KnownDeploymentProvisioningState { - /** Creating */ Creating = "Creating", - /** Deleting */ Deleting = "Deleting", - /** Scaling */ Scaling = "Scaling", - /** Updating */ Updating = "Updating", - /** Succeeded */ Succeeded = "Succeeded", - /** Failed */ Failed = "Failed", - /** Canceled */ Canceled = "Canceled" } @@ -4097,11 +4002,8 @@ export type DeploymentProvisioningState = string; /** Known values of {@link ListViewType} that the service accepts. */ export enum KnownListViewType { - /** ActiveOnly */ ActiveOnly = "ActiveOnly", - /** ArchivedOnly */ ArchivedOnly = "ArchivedOnly", - /** All */ All = "All" } @@ -4118,11 +4020,8 @@ export type ListViewType = string; /** Known values of {@link DataType} that the service accepts. */ export enum KnownDataType { - /** UriFile */ UriFile = "uri_file", - /** UriFolder */ UriFolder = "uri_folder", - /** Mltable */ Mltable = "mltable" } @@ -4139,15 +4038,10 @@ export type DataType = string; /** Known values of {@link CredentialsType} that the service accepts. */ export enum KnownCredentialsType { - /** AccountKey */ AccountKey = "AccountKey", - /** Certificate */ Certificate = "Certificate", - /** None */ None = "None", - /** Sas */ Sas = "Sas", - /** ServicePrincipal */ ServicePrincipal = "ServicePrincipal" } @@ -4166,13 +4060,9 @@ export type CredentialsType = string; /** Known values of {@link DatastoreType} that the service accepts. */ export enum KnownDatastoreType { - /** AzureBlob */ AzureBlob = "AzureBlob", - /** AzureDataLakeGen1 */ AzureDataLakeGen1 = "AzureDataLakeGen1", - /** AzureDataLakeGen2 */ AzureDataLakeGen2 = "AzureDataLakeGen2", - /** AzureFile */ AzureFile = "AzureFile" } @@ -4190,13 +4080,9 @@ export type DatastoreType = string; /** Known values of {@link SecretsType} that the service accepts. */ export enum KnownSecretsType { - /** AccountKey */ AccountKey = "AccountKey", - /** Certificate */ Certificate = "Certificate", - /** Sas */ Sas = "Sas", - /** ServicePrincipal */ ServicePrincipal = "ServicePrincipal" } @@ -4214,9 +4100,7 @@ export type SecretsType = string; /** Known values of {@link EnvironmentType} that the service accepts. */ export enum KnownEnvironmentType { - /** Curated */ Curated = "Curated", - /** UserCreated */ UserCreated = "UserCreated" } @@ -4232,9 +4116,7 @@ export type EnvironmentType = string; /** Known values of {@link OperatingSystemType} that the service accepts. */ export enum KnownOperatingSystemType { - /** Linux */ Linux = "Linux", - /** Windows */ Windows = "Windows" } @@ -4250,11 +4132,8 @@ export type OperatingSystemType = string; /** Known values of {@link IdentityConfigurationType} that the service accepts. */ export enum KnownIdentityConfigurationType { - /** Managed */ Managed = "Managed", - /** AMLToken */ AMLToken = "AMLToken", - /** UserIdentity */ UserIdentity = "UserIdentity" } @@ -4271,11 +4150,8 @@ export type IdentityConfigurationType = string; /** Known values of {@link JobType} that the service accepts. */ export enum KnownJobType { - /** Command */ Command = "Command", - /** Sweep */ Sweep = "Sweep", - /** Pipeline */ Pipeline = "Pipeline" } @@ -4350,11 +4226,8 @@ export type JobStatus = string; /** Known values of {@link EndpointComputeType} that the service accepts. */ export enum KnownEndpointComputeType { - /** Managed */ Managed = "Managed", - /** Kubernetes */ Kubernetes = "Kubernetes", - /** AzureMLCompute */ AzureMLCompute = "AzureMLCompute" } @@ -4371,13 +4244,9 @@ export type EndpointComputeType = string; /** Known values of {@link OrderString} that the service accepts. */ export enum KnownOrderString { - /** CreatedAtDesc */ CreatedAtDesc = "CreatedAtDesc", - /** CreatedAtAsc */ CreatedAtAsc = "CreatedAtAsc", - /** UpdatedAtDesc */ UpdatedAtDesc = "UpdatedAtDesc", - /** UpdatedAtAsc */ UpdatedAtAsc = "UpdatedAtAsc" } @@ -4395,9 +4264,7 @@ export type OrderString = string; /** Known values of {@link ScaleType} that the service accepts. */ export enum KnownScaleType { - /** Default */ Default = "Default", - /** TargetUtilization */ TargetUtilization = "TargetUtilization" } @@ -4413,9 +4280,7 @@ export type ScaleType = string; /** Known values of {@link ContainerType} that the service accepts. */ export enum KnownContainerType { - /** StorageInitializer */ StorageInitializer = "StorageInitializer", - /** InferenceServer */ InferenceServer = "InferenceServer" } @@ -4452,9 +4317,7 @@ export type SkuScaleType = string; /** Known values of {@link KeyType} that the service accepts. */ export enum KnownKeyType { - /** Primary */ Primary = "Primary", - /** Secondary */ Secondary = "Secondary" } @@ -4470,11 +4333,8 @@ export type KeyType = string; /** Known values of {@link ClusterPurpose} that the service accepts. */ export enum KnownClusterPurpose { - /** FastProd */ FastProd = "FastProd", - /** DenseProd */ DenseProd = "DenseProd", - /** DevTest */ DevTest = "DevTest" } @@ -4491,11 +4351,8 @@ export type ClusterPurpose = string; /** Known values of {@link SslConfigStatus} that the service accepts. */ export enum KnownSslConfigStatus { - /** Disabled */ Disabled = "Disabled", - /** Enabled */ Enabled = "Enabled", - /** Auto */ Auto = "Auto" } @@ -4512,9 +4369,7 @@ export type SslConfigStatus = string; /** Known values of {@link LoadBalancerType} that the service accepts. */ export enum KnownLoadBalancerType { - /** PublicIp */ PublicIp = "PublicIp", - /** InternalLoadBalancer */ InternalLoadBalancer = "InternalLoadBalancer" } @@ -4530,9 +4385,7 @@ export type LoadBalancerType = string; /** Known values of {@link OsType} that the service accepts. */ export enum KnownOsType { - /** Linux */ Linux = "Linux", - /** Windows */ Windows = "Windows" } @@ -4548,9 +4401,7 @@ export type OsType = string; /** Known values of {@link VmPriority} that the service accepts. */ export enum KnownVmPriority { - /** Dedicated */ Dedicated = "Dedicated", - /** LowPriority */ LowPriority = "LowPriority" } @@ -4566,11 +4417,8 @@ export type VmPriority = string; /** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ export enum KnownRemoteLoginPortPublicAccess { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled", - /** NotSpecified */ NotSpecified = "NotSpecified" } @@ -4587,9 +4435,7 @@ export type RemoteLoginPortPublicAccess = string; /** Known values of {@link AllocationState} that the service accepts. */ export enum KnownAllocationState { - /** Steady */ Steady = "Steady", - /** Resizing */ Resizing = "Resizing" } @@ -4605,9 +4451,7 @@ export type AllocationState = string; /** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ export enum KnownApplicationSharingPolicy { - /** Personal */ Personal = "Personal", - /** Shared */ Shared = "Shared" } @@ -4623,9 +4467,7 @@ export type ApplicationSharingPolicy = string; /** Known values of {@link SshPublicAccess} that the service accepts. */ export enum KnownSshPublicAccess { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled" } @@ -4641,35 +4483,20 @@ export type SshPublicAccess = string; /** Known values of {@link ComputeInstanceState} that the service accepts. */ export enum KnownComputeInstanceState { - /** Creating */ Creating = "Creating", - /** CreateFailed */ CreateFailed = "CreateFailed", - /** Deleting */ Deleting = "Deleting", - /** Running */ Running = "Running", - /** Restarting */ Restarting = "Restarting", - /** JobRunning */ JobRunning = "JobRunning", - /** SettingUp */ SettingUp = "SettingUp", - /** SetupFailed */ SetupFailed = "SetupFailed", - /** Starting */ Starting = "Starting", - /** Stopped */ Stopped = "Stopped", - /** Stopping */ Stopping = "Stopping", - /** UserSettingUp */ UserSettingUp = "UserSettingUp", - /** UserSetupFailed */ UserSetupFailed = "UserSetupFailed", - /** Unknown */ Unknown = "Unknown", - /** Unusable */ Unusable = "Unusable" } @@ -4698,7 +4525,6 @@ export type ComputeInstanceState = string; /** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ export enum KnownComputeInstanceAuthorizationType { - /** Personal */ Personal = "personal" } @@ -4713,17 +4539,11 @@ export type ComputeInstanceAuthorizationType = string; /** Known values of {@link OperationName} that the service accepts. */ export enum KnownOperationName { - /** Create */ Create = "Create", - /** Start */ Start = "Start", - /** Stop */ Stop = "Stop", - /** Restart */ Restart = "Restart", - /** Reimage */ Reimage = "Reimage", - /** Delete */ Delete = "Delete" } @@ -4743,21 +4563,13 @@ export type OperationName = string; /** Known values of {@link OperationStatus} that the service accepts. */ export enum KnownOperationStatus { - /** InProgress */ InProgress = "InProgress", - /** Succeeded */ Succeeded = "Succeeded", - /** CreateFailed */ CreateFailed = "CreateFailed", - /** StartFailed */ StartFailed = "StartFailed", - /** StopFailed */ StopFailed = "StopFailed", - /** RestartFailed */ RestartFailed = "RestartFailed", - /** ReimageFailed */ ReimageFailed = "ReimageFailed", - /** DeleteFailed */ DeleteFailed = "DeleteFailed" } @@ -4779,11 +4591,8 @@ export type OperationStatus = string; /** Known values of {@link OperationTrigger} that the service accepts. */ export enum KnownOperationTrigger { - /** User */ User = "User", - /** Schedule */ Schedule = "Schedule", - /** IdleShutdown */ IdleShutdown = "IdleShutdown" } @@ -4800,11 +4609,8 @@ export type OperationTrigger = string; /** Known values of {@link ProvisioningStatus} that the service accepts. */ export enum KnownProvisioningStatus { - /** Completed */ Completed = "Completed", - /** Provisioning */ Provisioning = "Provisioning", - /** Failed */ Failed = "Failed" } @@ -4821,9 +4627,7 @@ export type ProvisioningStatus = string; /** Known values of {@link ComputePowerAction} that the service accepts. */ export enum KnownComputePowerAction { - /** Start */ Start = "Start", - /** Stop */ Stop = "Stop" } @@ -4839,11 +4643,8 @@ export type ComputePowerAction = string; /** Known values of {@link ScheduleProvisioningState} that the service accepts. */ export enum KnownScheduleProvisioningState { - /** Completed */ Completed = "Completed", - /** Provisioning */ Provisioning = "Provisioning", - /** Failed */ Failed = "Failed" } @@ -4860,9 +4661,7 @@ export type ScheduleProvisioningState = string; /** Known values of {@link ScheduleStatus} that the service accepts. */ export enum KnownScheduleStatus { - /** Enabled */ Enabled = "Enabled", - /** Disabled */ Disabled = "Disabled" } @@ -4878,11 +4677,8 @@ export type ScheduleStatus = string; /** Known values of {@link Autosave} that the service accepts. */ export enum KnownAutosave { - /** None */ None = "None", - /** Local */ Local = "Local", - /** Remote */ Remote = "Remote" } @@ -4899,9 +4695,7 @@ export type Autosave = string; /** Known values of {@link Network} that the service accepts. */ export enum KnownNetwork { - /** Bridge */ Bridge = "Bridge", - /** Host */ Host = "Host" } @@ -4917,11 +4711,8 @@ export type Network = string; /** Known values of {@link Caching} that the service accepts. */ export enum KnownCaching { - /** None */ None = "None", - /** ReadOnly */ ReadOnly = "ReadOnly", - /** ReadWrite */ ReadWrite = "ReadWrite" } @@ -4938,9 +4729,7 @@ export type Caching = string; /** Known values of {@link StorageAccountType} that the service accepts. */ export enum KnownStorageAccountType { - /** StandardLRS */ StandardLRS = "Standard_LRS", - /** PremiumLRS */ PremiumLRS = "Premium_LRS" } @@ -4956,11 +4745,8 @@ export type StorageAccountType = string; /** Known values of {@link SourceType} that the service accepts. */ export enum KnownSourceType { - /** Dataset */ Dataset = "Dataset", - /** Datastore */ Datastore = "Datastore", - /** URI */ URI = "URI" } @@ -4977,9 +4763,7 @@ export type SourceType = string; /** Known values of {@link MountAction} that the service accepts. */ export enum KnownMountAction { - /** Mount */ Mount = "Mount", - /** Unmount */ Unmount = "Unmount" } @@ -4995,17 +4779,11 @@ export type MountAction = string; /** Known values of {@link MountState} that the service accepts. */ export enum KnownMountState { - /** MountRequested */ MountRequested = "MountRequested", - /** Mounted */ Mounted = "Mounted", - /** MountFailed */ MountFailed = "MountFailed", - /** UnmountRequested */ UnmountRequested = "UnmountRequested", - /** UnmountFailed */ UnmountFailed = "UnmountFailed", - /** Unmounted */ Unmounted = "Unmounted" } @@ -5025,17 +4803,11 @@ export type MountState = string; /** Known values of {@link InputDeliveryMode} that the service accepts. */ export enum KnownInputDeliveryMode { - /** ReadOnlyMount */ ReadOnlyMount = "ReadOnlyMount", - /** ReadWriteMount */ ReadWriteMount = "ReadWriteMount", - /** Download */ Download = "Download", - /** Direct */ Direct = "Direct", - /** EvalMount */ EvalMount = "EvalMount", - /** EvalDownload */ EvalDownload = "EvalDownload" } @@ -5055,9 +4827,7 @@ export type InputDeliveryMode = string; /** Known values of {@link OutputDeliveryMode} that the service accepts. */ export enum KnownOutputDeliveryMode { - /** ReadWriteMount */ ReadWriteMount = "ReadWriteMount", - /** Upload */ Upload = "Upload" } @@ -5094,11 +4864,8 @@ export type ServiceDataAccessAuthIdentity = string; /** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ export enum KnownEarlyTerminationPolicyType { - /** Bandit */ Bandit = "Bandit", - /** MedianStopping */ MedianStopping = "MedianStopping", - /** TruncationSelection */ TruncationSelection = "TruncationSelection" } @@ -5115,11 +4882,8 @@ export type EarlyTerminationPolicyType = string; /** Known values of {@link SamplingAlgorithmType} that the service accepts. */ export enum KnownSamplingAlgorithmType { - /** Grid */ Grid = "Grid", - /** Random */ Random = "Random", - /** Bayesian */ Bayesian = "Bayesian" } @@ -5136,11 +4900,8 @@ export type SamplingAlgorithmType = string; /** Known values of {@link DistributionType} that the service accepts. */ export enum KnownDistributionType { - /** PyTorch */ PyTorch = "PyTorch", - /** TensorFlow */ TensorFlow = "TensorFlow", - /** Mpi */ Mpi = "Mpi" } @@ -5157,19 +4918,12 @@ export type DistributionType = string; /** Known values of {@link JobInputType} that the service accepts. */ export enum KnownJobInputType { - /** Literal */ Literal = "literal", - /** UriFile */ UriFile = "uri_file", - /** UriFolder */ UriFolder = "uri_folder", - /** Mltable */ Mltable = "mltable", - /** CustomModel */ CustomModel = "custom_model", - /** MlflowModel */ MlflowModel = "mlflow_model", - /** TritonModel */ TritonModel = "triton_model" } @@ -5190,9 +4944,7 @@ export type JobInputType = string; /** Known values of {@link JobLimitsType} that the service accepts. */ export enum KnownJobLimitsType { - /** Command */ Command = "Command", - /** Sweep */ Sweep = "Sweep" } @@ -5208,17 +4960,11 @@ export type JobLimitsType = string; /** Known values of {@link JobOutputType} that the service accepts. */ export enum KnownJobOutputType { - /** UriFile */ UriFile = "uri_file", - /** UriFolder */ UriFolder = "uri_folder", - /** Mltable */ Mltable = "mltable", - /** CustomModel */ CustomModel = "custom_model", - /** MlflowModel */ MlflowModel = "mlflow_model", - /** TritonModel */ TritonModel = "triton_model" } @@ -5238,9 +4984,7 @@ export type JobOutputType = string; /** Known values of {@link Goal} that the service accepts. */ export enum KnownGoal { - /** Minimize */ Minimize = "Minimize", - /** Maximize */ Maximize = "Maximize" } @@ -5256,9 +5000,7 @@ export type Goal = string; /** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ export enum KnownRandomSamplingAlgorithmRule { - /** Random */ Random = "Random", - /** Sobol */ Sobol = "Sobol" } @@ -5559,6 +5301,10 @@ export interface ComputeRestartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ComputeUpdateIdleShutdownSettingOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index 7f42ac2198f4..4683a4cb5cef 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -1998,6 +1998,21 @@ export const ComputeSecrets: coreClient.CompositeMapper = { } }; +export const IdleShutdownSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdleShutdownSetting", + modelProperties: { + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", + type: { + name: "String" + } + } + } + } +}; + export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4377,6 +4392,12 @@ export const ComputeInstanceProperties: coreClient.CompositeMapper = { className: "ComputeSchedules" } }, + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", + type: { + name: "String" + } + }, enableNodePublicIp: { serializedName: "enableNodePublicIp", type: { diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 605504c965b2..255c2d39a01f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -18,6 +18,7 @@ import { QuotaUpdateParameters as QuotaUpdateParametersMapper, ComputeResource as ComputeResourceMapper, ClusterUpdateParameters as ClusterUpdateParametersMapper, + IdleShutdownSetting as IdleShutdownSettingMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, @@ -70,7 +71,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-06-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -219,6 +220,11 @@ export const underlyingResourceAction: OperationQueryParameter = { } }; +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: IdleShutdownSettingMapper +}; + export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -235,7 +241,7 @@ export const properties: OperationParameter = { mapper: PrivateEndpointConnectionMapper }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper }; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index af2cfa7d6de5..05a5893a17b1 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts @@ -37,6 +37,8 @@ import { ComputeStartOptionalParams, ComputeStopOptionalParams, ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, ComputeListNextResponse, ComputeListNodesNextResponse } from "../models"; @@ -826,6 +828,27 @@ export class ComputeOperationsImpl implements ComputeOperations { return poller.pollUntilDone(); } + /** + * Updates the idle shutdown setting of a compute instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, parameters, options }, + updateIdleShutdownSettingOperationSpec + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1124,6 +1147,29 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateIdleShutdownSettingOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts index 0c7762a8bcaf..3f0bab324aa3 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -202,7 +202,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 630c4eee8be1..41e03b72d8e8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts @@ -26,7 +26,9 @@ import { ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, - ComputeRestartOptionalParams + ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams } from "../models"; /// @@ -266,4 +268,19 @@ export interface ComputeOperations { computeName: string, options?: ComputeRestartOptionalParams ): Promise; + /** + * Updates the idle shutdown setting of a compute instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837..3e6ae96443f3 100644 --- a/sdk/machinelearning/arm-machinelearning/tsconfig.json +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-machinelearning": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"