From 1b16cb240d951d29cd17eaf5386ad3c922c8dbe8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 13 Apr 2022 01:06:23 +0000 Subject: [PATCH] CodeGen from PR 18645 in Azure/azure-rest-api-specs Merge 7b5cd6f59e3a76be5c810ccb9380efa0bbd928cd into b9d36b704e582a2bd5677fedc813607e73963469 --- .../arm-workspaces/CHANGELOG.md | 871 ++ sdk/machinelearning/arm-workspaces/README.md | 24 +- sdk/machinelearning/arm-workspaces/_meta.json | 7 +- .../arm-workspaces/api-extractor.json | 25 +- .../arm-workspaces/package.json | 40 +- .../review/arm-workspaces.api.md | 4907 +++++++- .../src/azureMachineLearningWorkspaces.ts | 179 + .../arm-workspaces/src/index.ts | 2 +- .../arm-workspaces/src/lroImpl.ts | 34 + ...chineLearningWorkspacesManagementClient.ts | 77 - .../arm-workspaces/src/models/index.ts | 6655 ++++++++++- .../arm-workspaces/src/models/mappers.ts | 9839 ++++++++++++++++- .../arm-workspaces/src/models/parameters.ts | 649 +- .../src/operations/batchDeployments.ts | 680 ++ .../src/operations/batchEndpoints.ts | 685 ++ .../src/operations/codeContainers.ts | 314 + .../src/operations/codeVersions.ts | 360 + .../src/operations/componentContainers.ts | 322 + .../src/operations/componentVersions.ts | 362 + .../src/operations/computeOperations.ts | 1159 ++ .../src/operations/dataContainers.ts | 322 + .../src/operations/dataVersions.ts | 364 + .../src/operations/datastores.ts | 376 + .../src/operations/environmentContainers.ts | 322 + .../src/operations/environmentVersions.ts | 362 + .../arm-workspaces/src/operations/index.ts | 24 + .../arm-workspaces/src/operations/jobs.ts | 507 + .../src/operations/modelContainers.ts | 324 + .../src/operations/modelVersions.ts | 374 + .../src/operations/onlineDeployments.ts | 938 ++ .../src/operations/onlineEndpoints.ts | 866 ++ .../src/operations/operations.ts | 22 +- .../operations/privateEndpointConnections.ts | 277 + .../src/operations/privateLinkResources.ts | 72 + .../arm-workspaces/src/operations/quotas.ts | 201 + .../arm-workspaces/src/operations/usages.ts | 160 + .../src/operations/virtualMachineSizes.ts | 69 + .../src/operations/workspaceConnections.ts | 316 + .../src/operations/workspaceFeatures.ts | 177 + .../src/operations/workspaces.ts | 901 +- .../operationsInterfaces/batchDeployments.ts | 163 + .../operationsInterfaces/batchEndpoints.ts | 178 + .../operationsInterfaces/codeContainers.ts | 75 + .../src/operationsInterfaces/codeVersions.ts | 83 + .../componentContainers.ts | 75 + .../operationsInterfaces/componentVersions.ts | 83 + .../operationsInterfaces/computeOperations.ts | 269 + .../operationsInterfaces/dataContainers.ts | 75 + .../src/operationsInterfaces/dataVersions.ts | 83 + .../src/operationsInterfaces/datastores.ts | 90 + .../environmentContainers.ts | 75 + .../environmentVersions.ts | 83 + .../src/operationsInterfaces/index.ts | 24 + .../src/operationsInterfaces/jobs.ts | 116 + .../operationsInterfaces/modelContainers.ts | 75 + .../src/operationsInterfaces/modelVersions.ts | 83 + .../operationsInterfaces/onlineDeployments.ts | 200 + .../operationsInterfaces/onlineEndpoints.ts | 225 + .../src/operationsInterfaces/operations.ts | 6 +- .../privateEndpointConnections.ts | 78 + .../privateLinkResources.ts | 27 + .../src/operationsInterfaces/quotas.ts | 41 + .../src/operationsInterfaces/usages.ts | 25 + .../virtualMachineSizes.ts | 25 + .../workspaceConnections.ts | 71 + .../operationsInterfaces/workspaceFeatures.ts | 26 + .../src/operationsInterfaces/workspaces.ts | 238 +- .../arm-workspaces/tsconfig.json | 21 +- sdk/machinelearning/ci.mgmt.yml | 11 +- 69 files changed, 36131 insertions(+), 658 deletions(-) create mode 100644 sdk/machinelearning/arm-workspaces/src/azureMachineLearningWorkspaces.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/lroImpl.ts delete mode 100644 sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/batchDeployments.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/batchEndpoints.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/codeContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/codeVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/componentContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/componentVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/computeOperations.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/dataContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/dataVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/datastores.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/environmentContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/environmentVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/jobs.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/modelContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/modelVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/onlineDeployments.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/onlineEndpoints.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/privateEndpointConnections.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/privateLinkResources.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/quotas.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/usages.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/virtualMachineSizes.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/workspaceConnections.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operations/workspaceFeatures.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchDeployments.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchEndpoints.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/computeOperations.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/datastores.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/jobs.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelContainers.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelVersions.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineDeployments.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineEndpoints.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateEndpointConnections.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateLinkResources.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/quotas.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/usages.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/virtualMachineSizes.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceConnections.ts create mode 100644 sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceFeatures.ts diff --git a/sdk/machinelearning/arm-workspaces/CHANGELOG.md b/sdk/machinelearning/arm-workspaces/CHANGELOG.md index 3e762519f243..383bad57f690 100644 --- a/sdk/machinelearning/arm-workspaces/CHANGELOG.md +++ b/sdk/machinelearning/arm-workspaces/CHANGELOG.md @@ -1,5 +1,876 @@ # Release History +## 2.0.0 (2022-04-13) + +**Features** + + - Added operation group BatchDeployments + - Added operation group BatchEndpoints + - Added operation group CodeContainers + - Added operation group CodeVersions + - Added operation group ComponentContainers + - Added operation group ComponentVersions + - Added operation group ComputeOperations + - Added operation group DataContainers + - Added operation group Datastores + - Added operation group DataVersions + - Added operation group EnvironmentContainers + - Added operation group EnvironmentVersions + - Added operation group Jobs + - Added operation group ModelContainers + - Added operation group ModelVersions + - Added operation group OnlineDeployments + - Added operation group OnlineEndpoints + - Added operation group PrivateEndpointConnections + - Added operation group PrivateLinkResources + - Added operation group Quotas + - Added operation group Usages + - Added operation group VirtualMachineSizes + - Added operation group WorkspaceConnections + - Added operation group WorkspaceFeatures + - Added operation Workspaces.beginCreateOrUpdate + - Added operation Workspaces.beginCreateOrUpdateAndWait + - Added operation Workspaces.beginDelete + - Added operation Workspaces.beginDeleteAndWait + - Added operation Workspaces.beginDiagnose + - Added operation Workspaces.beginDiagnoseAndWait + - Added operation Workspaces.beginPrepareNotebook + - Added operation Workspaces.beginPrepareNotebookAndWait + - Added operation Workspaces.beginResyncKeys + - Added operation Workspaces.beginResyncKeysAndWait + - Added operation Workspaces.beginUpdate + - Added operation Workspaces.beginUpdateAndWait + - Added operation Workspaces.listBySubscription + - Added operation Workspaces.listKeys + - Added operation Workspaces.listNotebookAccessToken + - Added operation Workspaces.listNotebookKeys + - Added operation Workspaces.listOutboundNetworkDependenciesEndpoints + - Added operation Workspaces.listStorageAccountKeys + - Added Interface AksComputeSecretsProperties + - Added Interface AksNetworkingConfiguration + - Added Interface AKSSchema + - Added Interface AKSSchemaProperties + - Added Interface AmlComputeNodeInformation + - Added Interface AmlComputeNodesInformation + - Added Interface AmlComputeProperties + - Added Interface AmlComputeSchema + - Added Interface AmlOperation + - Added Interface AmlOperationDisplay + - Added Interface AmlOperationListResult + - Added Interface AmlUserFeature + - Added Interface AssetJobInput + - Added Interface AssetJobOutput + - Added Interface AssetReferenceBase + - Added Interface AssignedUser + - Added Interface AutoPauseProperties + - Added Interface AutoScaleProperties + - Added Interface AzureMachineLearningWorkspacesOptionalParams + - Added Interface BatchDeploymentsCreateOrUpdateHeaders + - Added Interface BatchDeploymentsCreateOrUpdateOptionalParams + - Added Interface BatchDeploymentsDeleteHeaders + - Added Interface BatchDeploymentsDeleteOptionalParams + - Added Interface BatchDeploymentsGetOptionalParams + - Added Interface BatchDeploymentsListNextOptionalParams + - Added Interface BatchDeploymentsListOptionalParams + - Added Interface BatchDeploymentsUpdateHeaders + - Added Interface BatchDeploymentsUpdateOptionalParams + - Added Interface BatchDeploymentTrackedResourceArmPaginatedResult + - Added Interface BatchEndpointDefaults + - Added Interface BatchEndpointsCheckNameAvailabilityOptionalParams + - Added Interface BatchEndpointsCreateOrUpdateHeaders + - Added Interface BatchEndpointsCreateOrUpdateOptionalParams + - Added Interface BatchEndpointsDeleteHeaders + - Added Interface BatchEndpointsDeleteOptionalParams + - Added Interface BatchEndpointsGetOptionalParams + - Added Interface BatchEndpointsListKeysOptionalParams + - Added Interface BatchEndpointsListNextOptionalParams + - Added Interface BatchEndpointsListOptionalParams + - Added Interface BatchEndpointsUpdateHeaders + - Added Interface BatchEndpointsUpdateOptionalParams + - Added Interface BatchEndpointTrackedResourceArmPaginatedResult + - Added Interface BatchRetrySettings + - Added Interface BuildContext + - Added Interface ClusterUpdateParameters + - Added Interface CodeConfiguration + - Added Interface CodeContainerResourceArmPaginatedResult + - Added Interface CodeContainersCreateOrUpdateOptionalParams + - Added Interface CodeContainersDeleteOptionalParams + - Added Interface CodeContainersGetOptionalParams + - Added Interface CodeContainersListNextOptionalParams + - Added Interface CodeContainersListOptionalParams + - Added Interface CodeVersionResourceArmPaginatedResult + - Added Interface CodeVersionsCreateOrUpdateOptionalParams + - Added Interface CodeVersionsDeleteOptionalParams + - Added Interface CodeVersionsGetOptionalParams + - Added Interface CodeVersionsListNextOptionalParams + - Added Interface CodeVersionsListOptionalParams + - Added Interface ComponentContainerResourceArmPaginatedResult + - Added Interface ComponentContainersCreateOrUpdateOptionalParams + - Added Interface ComponentContainersDeleteOptionalParams + - Added Interface ComponentContainersGetOptionalParams + - Added Interface ComponentContainersListNextOptionalParams + - Added Interface ComponentContainersListOptionalParams + - Added Interface ComponentVersionResourceArmPaginatedResult + - Added Interface ComponentVersionsCreateOrUpdateOptionalParams + - Added Interface ComponentVersionsDeleteOptionalParams + - Added Interface ComponentVersionsGetOptionalParams + - Added Interface ComponentVersionsListNextOptionalParams + - Added Interface ComponentVersionsListOptionalParams + - Added Interface Compute + - Added Interface ComputeCreateOrUpdateHeaders + - Added Interface ComputeCreateOrUpdateOptionalParams + - Added Interface ComputeDeleteHeaders + - Added Interface ComputeDeleteOptionalParams + - Added Interface ComputeGetOptionalParams + - Added Interface ComputeInstanceApplication + - Added Interface ComputeInstanceConnectivityEndpoints + - Added Interface ComputeInstanceContainer + - Added Interface ComputeInstanceCreatedBy + - Added Interface ComputeInstanceDataDisk + - Added Interface ComputeInstanceDataMount + - Added Interface ComputeInstanceEnvironmentInfo + - Added Interface ComputeInstanceLastOperation + - Added Interface ComputeInstanceProperties + - Added Interface ComputeInstanceSchema + - Added Interface ComputeInstanceSshSettings + - Added Interface ComputeInstanceVersion + - Added Interface ComputeListKeysOptionalParams + - Added Interface ComputeListNextOptionalParams + - Added Interface ComputeListNodesNextOptionalParams + - Added Interface ComputeListNodesOptionalParams + - Added Interface ComputeListOptionalParams + - Added Interface ComputeResourceSchema + - Added Interface ComputeRestartOptionalParams + - Added Interface ComputeSchedules + - Added Interface ComputeSecrets + - Added Interface ComputeStartOptionalParams + - Added Interface ComputeStartStopSchedule + - Added Interface ComputeStopOptionalParams + - Added Interface ComputeUpdateOptionalParams + - Added Interface ContainerResourceRequirements + - Added Interface ContainerResourceSettings + - Added Interface CosmosDbSettings + - Added Interface DatabricksComputeSecretsProperties + - Added Interface DatabricksProperties + - Added Interface DatabricksSchema + - Added Interface DataContainerResourceArmPaginatedResult + - Added Interface DataContainersCreateOrUpdateOptionalParams + - Added Interface DataContainersDeleteOptionalParams + - Added Interface DataContainersGetOptionalParams + - Added Interface DataContainersListNextOptionalParams + - Added Interface DataContainersListOptionalParams + - Added Interface DataLakeAnalyticsSchema + - Added Interface DataLakeAnalyticsSchemaProperties + - Added Interface DatastoreCredentials + - Added Interface DatastoreResourceArmPaginatedResult + - Added Interface DatastoresCreateOrUpdateOptionalParams + - Added Interface DatastoresDeleteOptionalParams + - Added Interface DatastoreSecrets + - Added Interface DatastoresGetOptionalParams + - Added Interface DatastoresListNextOptionalParams + - Added Interface DatastoresListOptionalParams + - Added Interface DatastoresListSecretsOptionalParams + - Added Interface DataVersionBaseResourceArmPaginatedResult + - Added Interface DataVersionsCreateOrUpdateOptionalParams + - Added Interface DataVersionsDeleteOptionalParams + - Added Interface DataVersionsGetOptionalParams + - Added Interface DataVersionsListNextOptionalParams + - Added Interface DataVersionsListOptionalParams + - Added Interface DeploymentLogs + - Added Interface DeploymentLogsRequest + - Added Interface DiagnoseRequestProperties + - Added Interface DiagnoseResponseResult + - Added Interface DiagnoseResponseResultValue + - Added Interface DiagnoseResult + - Added Interface DiagnoseWorkspaceParameters + - Added Interface DistributionConfiguration + - Added Interface EarlyTerminationPolicy + - Added Interface EncryptionKeyVaultProperties + - Added Interface EncryptionProperty + - Added Interface EndpointAuthKeys + - Added Interface EndpointAuthToken + - Added Interface EndpointDeploymentPropertiesBase + - Added Interface EndpointPropertiesBase + - Added Interface EnvironmentContainerResourceArmPaginatedResult + - Added Interface EnvironmentContainersCreateOrUpdateOptionalParams + - Added Interface EnvironmentContainersDeleteOptionalParams + - Added Interface EnvironmentContainersGetOptionalParams + - Added Interface EnvironmentContainersListNextOptionalParams + - Added Interface EnvironmentContainersListOptionalParams + - Added Interface EnvironmentVersionResourceArmPaginatedResult + - Added Interface EnvironmentVersionsCreateOrUpdateOptionalParams + - Added Interface EnvironmentVersionsDeleteOptionalParams + - Added Interface EnvironmentVersionsGetOptionalParams + - Added Interface EnvironmentVersionsListNextOptionalParams + - Added Interface EnvironmentVersionsListOptionalParams + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorResponseAutoGenerated + - Added Interface EstimatedVMPrice + - Added Interface EstimatedVMPrices + - Added Interface ExternalFqdnResponse + - Added Interface FlavorData + - Added Interface FqdnEndpoint + - Added Interface FqdnEndpointDetail + - Added Interface FqdnEndpoints + - Added Interface FqdnEndpointsProperties + - Added Interface HDInsightProperties + - Added Interface HDInsightSchema + - Added Interface IdentityConfiguration + - Added Interface IdentityForCmk + - Added Interface InferenceContainerProperties + - Added Interface InstanceTypeSchema + - Added Interface InstanceTypeSchemaResources + - Added Interface JobBaseResourceArmPaginatedResult + - Added Interface JobInput + - Added Interface JobLimits + - Added Interface JobOutput + - Added Interface JobsCancelHeaders + - Added Interface JobsCancelOptionalParams + - Added Interface JobsCreateOrUpdateOptionalParams + - Added Interface JobsDeleteHeaders + - Added Interface JobsDeleteOptionalParams + - Added Interface JobService + - Added Interface JobsGetOptionalParams + - Added Interface JobsListNextOptionalParams + - Added Interface JobsListOptionalParams + - Added Interface KubernetesProperties + - Added Interface KubernetesSchema + - Added Interface ListAmlUserFeatureResult + - Added Interface ListNotebookKeysResult + - Added Interface ListStorageAccountKeysResult + - Added Interface ListUsagesResult + - Added Interface ListWorkspaceKeysResult + - Added Interface ListWorkspaceQuotas + - Added Interface ManagedIdentityAutoGenerated + - Added Interface ManagedServiceIdentity + - Added Interface ModelContainerResourceArmPaginatedResult + - Added Interface ModelContainersCreateOrUpdateOptionalParams + - Added Interface ModelContainersDeleteOptionalParams + - Added Interface ModelContainersGetOptionalParams + - Added Interface ModelContainersListNextOptionalParams + - Added Interface ModelContainersListOptionalParams + - Added Interface ModelVersionResourceArmPaginatedResult + - Added Interface ModelVersionsCreateOrUpdateOptionalParams + - Added Interface ModelVersionsDeleteOptionalParams + - Added Interface ModelVersionsGetOptionalParams + - Added Interface ModelVersionsListNextOptionalParams + - Added Interface ModelVersionsListOptionalParams + - Added Interface NameAvailabilityResult + - Added Interface NodeStateCounts + - Added Interface NotebookAccessTokenResult + - Added Interface NotebookPreparationError + - Added Interface NotebookResourceInfo + - Added Interface Objective + - Added Interface OnlineDeploymentsCreateOrUpdateHeaders + - Added Interface OnlineDeploymentsCreateOrUpdateOptionalParams + - Added Interface OnlineDeploymentsDeleteHeaders + - Added Interface OnlineDeploymentsDeleteOptionalParams + - Added Interface OnlineDeploymentsGetLogsOptionalParams + - Added Interface OnlineDeploymentsGetOptionalParams + - Added Interface OnlineDeploymentsListNextOptionalParams + - Added Interface OnlineDeploymentsListOptionalParams + - Added Interface OnlineDeploymentsListSkusNextOptionalParams + - Added Interface OnlineDeploymentsListSkusOptionalParams + - Added Interface OnlineDeploymentsUpdateHeaders + - Added Interface OnlineDeploymentsUpdateOptionalParams + - Added Interface OnlineDeploymentTrackedResourceArmPaginatedResult + - Added Interface OnlineEndpointsCheckNameAvailabilityOptionalParams + - Added Interface OnlineEndpointsCreateOrUpdateHeaders + - Added Interface OnlineEndpointsCreateOrUpdateOptionalParams + - Added Interface OnlineEndpointsDeleteHeaders + - Added Interface OnlineEndpointsDeleteOptionalParams + - Added Interface OnlineEndpointsGetOptionalParams + - Added Interface OnlineEndpointsGetTokenOptionalParams + - Added Interface OnlineEndpointsListKeysOptionalParams + - Added Interface OnlineEndpointsListNextOptionalParams + - Added Interface OnlineEndpointsListOptionalParams + - Added Interface OnlineEndpointsRegenerateKeysHeaders + - Added Interface OnlineEndpointsRegenerateKeysOptionalParams + - Added Interface OnlineEndpointsUpdateHeaders + - Added Interface OnlineEndpointsUpdateOptionalParams + - Added Interface OnlineEndpointTrackedResourceArmPaginatedResult + - Added Interface OnlineRequestSettings + - Added Interface OnlineScaleSettings + - Added Interface PaginatedComputeResourcesList + - Added Interface PartialAssetReferenceBase + - Added Interface PartialBatchDeployment + - Added Interface PartialBatchDeploymentPartialTrackedResource + - Added Interface PartialBatchEndpoint + - Added Interface PartialBatchEndpointPartialTrackedResource + - Added Interface PartialBatchRetrySettings + - Added Interface PartialCodeConfiguration + - Added Interface PartialManagedServiceIdentity + - Added Interface PartialOnlineDeployment + - Added Interface PartialOnlineDeploymentPartialTrackedResource + - Added Interface PartialOnlineEndpoint + - Added Interface PartialOnlineEndpointPartialTrackedResource + - Added Interface PartialSku + - Added Interface Password + - Added Interface PersonalAccessToken + - Added Interface PersonalComputeInstanceSettings + - Added Interface PrivateEndpoint + - Added Interface PrivateEndpointConnectionListResult + - Added Interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + - Added Interface PrivateEndpointConnectionsDeleteOptionalParams + - Added Interface PrivateEndpointConnectionsGetOptionalParams + - Added Interface PrivateEndpointConnectionsListOptionalParams + - Added Interface PrivateLinkResourceListResult + - Added Interface PrivateLinkResourcesListOptionalParams + - Added Interface PrivateLinkServiceConnectionState + - Added Interface ProbeSettings + - Added Interface QuotaBaseProperties + - Added Interface QuotasListNextOptionalParams + - Added Interface QuotasListOptionalParams + - Added Interface QuotasUpdateOptionalParams + - Added Interface QuotaUpdateParameters + - Added Interface RegenerateEndpointKeysRequest + - Added Interface RegistryListCredentialsResult + - Added Interface ResourceBase + - Added Interface ResourceConfiguration + - Added Interface ResourceId + - Added Interface ResourceName + - Added Interface ResourceQuota + - Added Interface Route + - Added Interface SamplingAlgorithm + - Added Interface ScaleSettings + - Added Interface ScaleSettingsInformation + - Added Interface ScheduleBase + - Added Interface ScriptReference + - Added Interface ScriptsToExecute + - Added Interface ServiceManagedResourcesSettings + - Added Interface SetupScripts + - Added Interface SharedAccessSignature + - Added Interface SharedPrivateLinkResource + - Added Interface SkuCapacity + - Added Interface SkuResource + - Added Interface SkuResourceArmPaginatedResult + - Added Interface SkuSetting + - Added Interface SslConfiguration + - Added Interface SynapseSparkProperties + - Added Interface SystemData + - Added Interface SystemService + - Added Interface TrialComponent + - Added Interface UpdateWorkspaceQuotas + - Added Interface UpdateWorkspaceQuotasResult + - Added Interface Usage + - Added Interface UsageName + - Added Interface UsagesListNextOptionalParams + - Added Interface UsagesListOptionalParams + - Added Interface UserAccountCredentials + - Added Interface UserAssignedIdentity + - Added Interface UsernamePassword + - Added Interface VirtualMachineImage + - Added Interface VirtualMachineSchema + - Added Interface VirtualMachineSchemaProperties + - Added Interface VirtualMachineSecretsSchema + - Added Interface VirtualMachineSize + - Added Interface VirtualMachineSizeListResult + - Added Interface VirtualMachineSizesListOptionalParams + - Added Interface VirtualMachineSshCredentials + - Added Interface WorkspaceConnectionPropertiesV2 + - Added Interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult + - Added Interface WorkspaceConnectionsCreateOptionalParams + - Added Interface WorkspaceConnectionsDeleteOptionalParams + - Added Interface WorkspaceConnectionsGetOptionalParams + - Added Interface WorkspaceConnectionsListNextOptionalParams + - Added Interface WorkspaceConnectionsListOptionalParams + - Added Interface WorkspaceFeaturesListNextOptionalParams + - Added Interface WorkspaceFeaturesListOptionalParams + - Added Interface WorkspacesDiagnoseHeaders + - Added Interface WorkspacesDiagnoseOptionalParams + - Added Interface WorkspacesListBySubscriptionNextOptionalParams + - Added Interface WorkspacesListBySubscriptionOptionalParams + - Added Interface WorkspacesListKeysOptionalParams + - Added Interface WorkspacesListNotebookAccessTokenOptionalParams + - Added Interface WorkspacesListNotebookKeysOptionalParams + - Added Interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + - Added Interface WorkspacesListStorageAccountKeysOptionalParams + - Added Interface WorkspacesPrepareNotebookOptionalParams + - Added Interface WorkspacesResyncKeysOptionalParams + - Added Class AzureMachineLearningWorkspaces + - Added Type Alias AccountKeyDatastoreCredentials + - Added Type Alias AccountKeyDatastoreSecrets + - Added Type Alias Aks + - Added Type Alias AksComputeSecrets + - Added Type Alias AllocationState + - Added Type Alias AmlCompute + - Added Type Alias AmlToken + - Added Type Alias ApplicationSharingPolicy + - Added Type Alias AssetBase + - Added Type Alias AssetContainer + - Added Type Alias AssetReferenceBaseUnion + - Added Type Alias Autosave + - Added Type Alias AzureBlobDatastore + - Added Type Alias AzureDataLakeGen1Datastore + - Added Type Alias AzureDataLakeGen2Datastore + - Added Type Alias AzureFileDatastore + - Added Type Alias BanditPolicy + - Added Type Alias BatchDeploymentData + - Added Type Alias BatchDeploymentDetails + - Added Type Alias BatchDeploymentsCreateOrUpdateResponse + - Added Type Alias BatchDeploymentsGetResponse + - Added Type Alias BatchDeploymentsListNextResponse + - Added Type Alias BatchDeploymentsListResponse + - Added Type Alias BatchDeploymentsUpdateResponse + - Added Type Alias BatchEndpointData + - Added Type Alias BatchEndpointDetails + - Added Type Alias BatchEndpointsCheckNameAvailabilityResponse + - Added Type Alias BatchEndpointsCreateOrUpdateResponse + - Added Type Alias BatchEndpointsGetResponse + - Added Type Alias BatchEndpointsListKeysResponse + - Added Type Alias BatchEndpointsListNextResponse + - Added Type Alias BatchEndpointsListResponse + - Added Type Alias BatchEndpointsUpdateResponse + - Added Type Alias BatchLoggingLevel + - Added Type Alias BatchOutputAction + - Added Type Alias BayesianSamplingAlgorithm + - Added Type Alias BillingCurrency + - Added Type Alias Caching + - Added Type Alias CertificateDatastoreCredentials + - Added Type Alias CertificateDatastoreSecrets + - Added Type Alias ClusterPurpose + - Added Type Alias CodeContainerData + - Added Type Alias CodeContainerDetails + - Added Type Alias CodeContainersCreateOrUpdateResponse + - Added Type Alias CodeContainersGetResponse + - Added Type Alias CodeContainersListNextResponse + - Added Type Alias CodeContainersListResponse + - Added Type Alias CodeVersionData + - Added Type Alias CodeVersionDetails + - Added Type Alias CodeVersionsCreateOrUpdateResponse + - Added Type Alias CodeVersionsGetResponse + - Added Type Alias CodeVersionsListNextResponse + - Added Type Alias CodeVersionsListResponse + - Added Type Alias CommandJob + - Added Type Alias CommandJobLimits + - Added Type Alias ComponentContainerData + - Added Type Alias ComponentContainerDetails + - Added Type Alias ComponentContainersCreateOrUpdateResponse + - Added Type Alias ComponentContainersGetResponse + - Added Type Alias ComponentContainersListNextResponse + - Added Type Alias ComponentContainersListResponse + - Added Type Alias ComponentVersionData + - Added Type Alias ComponentVersionDetails + - Added Type Alias ComponentVersionsCreateOrUpdateResponse + - Added Type Alias ComponentVersionsGetResponse + - Added Type Alias ComponentVersionsListNextResponse + - Added Type Alias ComponentVersionsListResponse + - Added Type Alias ComputeCreateOrUpdateResponse + - Added Type Alias ComputeGetResponse + - Added Type Alias ComputeInstance + - Added Type Alias ComputeInstanceAuthorizationType + - Added Type Alias ComputeInstanceState + - Added Type Alias ComputeListKeysResponse + - Added Type Alias ComputeListNextResponse + - Added Type Alias ComputeListNodesNextResponse + - Added Type Alias ComputeListNodesResponse + - Added Type Alias ComputeListResponse + - Added Type Alias ComputePowerAction + - Added Type Alias ComputeResource + - Added Type Alias ComputeSecretsUnion + - Added Type Alias ComputeType + - Added Type Alias ComputeUnion + - Added Type Alias ComputeUpdateResponse + - Added Type Alias ConnectionAuthType + - Added Type Alias ConnectionCategory + - Added Type Alias ContainerType + - Added Type Alias CreatedByType + - Added Type Alias CredentialsType + - Added Type Alias CustomModelJobInput + - Added Type Alias CustomModelJobOutput + - Added Type Alias Databricks + - Added Type Alias DatabricksComputeSecrets + - Added Type Alias DataContainerData + - Added Type Alias DataContainerDetails + - Added Type Alias DataContainersCreateOrUpdateResponse + - Added Type Alias DataContainersGetResponse + - Added Type Alias DataContainersListNextResponse + - Added Type Alias DataContainersListResponse + - Added Type Alias DataFactory + - Added Type Alias DataLakeAnalytics + - Added Type Alias DataPathAssetReference + - Added Type Alias DatastoreCredentialsUnion + - Added Type Alias DatastoreData + - Added Type Alias DatastoreDetails + - Added Type Alias DatastoreDetailsUnion + - Added Type Alias DatastoresCreateOrUpdateResponse + - Added Type Alias DatastoreSecretsUnion + - Added Type Alias DatastoresGetResponse + - Added Type Alias DatastoresListNextResponse + - Added Type Alias DatastoresListResponse + - Added Type Alias DatastoresListSecretsResponse + - Added Type Alias DatastoreType + - Added Type Alias DataType + - Added Type Alias DataVersionBaseData + - Added Type Alias DataVersionBaseDetails + - Added Type Alias DataVersionBaseDetailsUnion + - Added Type Alias DataVersionsCreateOrUpdateResponse + - Added Type Alias DataVersionsGetResponse + - Added Type Alias DataVersionsListNextResponse + - Added Type Alias DataVersionsListResponse + - Added Type Alias DefaultScaleSettings + - Added Type Alias DeploymentProvisioningState + - Added Type Alias DiagnoseResultLevel + - Added Type Alias DistributionConfigurationUnion + - Added Type Alias DistributionType + - Added Type Alias EarlyTerminationPolicyType + - Added Type Alias EarlyTerminationPolicyUnion + - Added Type Alias EncryptionStatus + - Added Type Alias EndpointAuthMode + - Added Type Alias EndpointComputeType + - Added Type Alias EndpointProvisioningState + - Added Type Alias EnvironmentContainerData + - Added Type Alias EnvironmentContainerDetails + - Added Type Alias EnvironmentContainersCreateOrUpdateResponse + - Added Type Alias EnvironmentContainersGetResponse + - Added Type Alias EnvironmentContainersListNextResponse + - Added Type Alias EnvironmentContainersListResponse + - Added Type Alias EnvironmentType + - Added Type Alias EnvironmentVersionData + - Added Type Alias EnvironmentVersionDetails + - Added Type Alias EnvironmentVersionsCreateOrUpdateResponse + - Added Type Alias EnvironmentVersionsGetResponse + - Added Type Alias EnvironmentVersionsListNextResponse + - Added Type Alias EnvironmentVersionsListResponse + - Added Type Alias Goal + - Added Type Alias GridSamplingAlgorithm + - Added Type Alias HDInsight + - Added Type Alias IdAssetReference + - Added Type Alias IdentityConfigurationType + - Added Type Alias IdentityConfigurationUnion + - Added Type Alias InputDeliveryMode + - Added Type Alias JobBaseData + - Added Type Alias JobBaseDetails + - Added Type Alias JobBaseDetailsUnion + - Added Type Alias JobInputType + - Added Type Alias JobInputUnion + - Added Type Alias JobLimitsType + - Added Type Alias JobLimitsUnion + - Added Type Alias JobOutputType + - Added Type Alias JobOutputUnion + - Added Type Alias JobsCreateOrUpdateResponse + - Added Type Alias JobsGetResponse + - Added Type Alias JobsListNextResponse + - Added Type Alias JobsListResponse + - Added Type Alias JobStatus + - Added Type Alias JobType + - Added Type Alias KeyType_2 + - Added Type Alias Kubernetes + - Added Type Alias KubernetesOnlineDeployment + - Added Type Alias ListViewType + - Added Type Alias LiteralJobInput + - Added Type Alias LoadBalancerType + - Added Type Alias ManagedIdentity + - Added Type Alias ManagedIdentityAuthTypeWorkspaceConnectionProperties + - Added Type Alias ManagedOnlineDeployment + - Added Type Alias ManagedServiceIdentityType + - 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 ModelContainerData + - Added Type Alias ModelContainerDetails + - Added Type Alias ModelContainersCreateOrUpdateResponse + - Added Type Alias ModelContainersGetResponse + - Added Type Alias ModelContainersListNextResponse + - Added Type Alias ModelContainersListResponse + - Added Type Alias ModelVersionData + - Added Type Alias ModelVersionDetails + - Added Type Alias ModelVersionsCreateOrUpdateResponse + - Added Type Alias ModelVersionsGetResponse + - Added Type Alias ModelVersionsListNextResponse + - Added Type Alias ModelVersionsListResponse + - Added Type Alias MountAction + - Added Type Alias MountState + - Added Type Alias Mpi + - Added Type Alias Network + - Added Type Alias NodeState + - Added Type Alias NoneAuthTypeWorkspaceConnectionProperties + - Added Type Alias NoneDatastoreCredentials + - Added Type Alias OnlineDeploymentData + - Added Type Alias OnlineDeploymentDetails + - Added Type Alias OnlineDeploymentDetailsUnion + - Added Type Alias OnlineDeploymentsCreateOrUpdateResponse + - Added Type Alias OnlineDeploymentsGetLogsResponse + - Added Type Alias OnlineDeploymentsGetResponse + - Added Type Alias OnlineDeploymentsListNextResponse + - Added Type Alias OnlineDeploymentsListResponse + - Added Type Alias OnlineDeploymentsListSkusNextResponse + - Added Type Alias OnlineDeploymentsListSkusResponse + - Added Type Alias OnlineDeploymentsUpdateResponse + - Added Type Alias OnlineEndpointData + - Added Type Alias OnlineEndpointDetails + - Added Type Alias OnlineEndpointsCheckNameAvailabilityResponse + - Added Type Alias OnlineEndpointsCreateOrUpdateResponse + - Added Type Alias OnlineEndpointsGetResponse + - Added Type Alias OnlineEndpointsGetTokenResponse + - Added Type Alias OnlineEndpointsListKeysResponse + - Added Type Alias OnlineEndpointsListNextResponse + - Added Type Alias OnlineEndpointsListResponse + - Added Type Alias OnlineEndpointsUpdateResponse + - Added Type Alias OnlineScaleSettingsUnion + - Added Type Alias OperatingSystemType + - Added Type Alias OperationName + - Added Type Alias OperationStatus + - Added Type Alias OperationTrigger + - Added Type Alias OrderString + - Added Type Alias OsType + - Added Type Alias OutputDeliveryMode + - Added Type Alias OutputPathAssetReference + - Added Type Alias PartialAssetReferenceBaseUnion + - Added Type Alias PartialDataPathAssetReference + - Added Type Alias PartialIdAssetReference + - Added Type Alias PartialKubernetesOnlineDeployment + - Added Type Alias PartialManagedOnlineDeployment + - Added Type Alias PartialOnlineDeploymentUnion + - Added Type Alias PartialOutputPathAssetReference + - Added Type Alias PATAuthTypeWorkspaceConnectionProperties + - Added Type Alias PipelineJob + - Added Type Alias PrivateEndpointConnection + - Added Type Alias PrivateEndpointConnectionProvisioningState + - Added Type Alias PrivateEndpointConnectionsCreateOrUpdateResponse + - Added Type Alias PrivateEndpointConnectionsGetResponse + - Added Type Alias PrivateEndpointConnectionsListResponse + - Added Type Alias PrivateEndpointServiceConnectionStatus + - Added Type Alias PrivateLinkResource + - Added Type Alias PrivateLinkResourcesListResponse + - Added Type Alias ProvisioningState + - Added Type Alias ProvisioningStatus + - Added Type Alias PublicNetworkAccess + - Added Type Alias PyTorch + - Added Type Alias QuotasListNextResponse + - Added Type Alias QuotasListResponse + - Added Type Alias QuotasUpdateResponse + - Added Type Alias QuotaUnit + - Added Type Alias RandomSamplingAlgorithm + - Added Type Alias RandomSamplingAlgorithmRule + - Added Type Alias ReferenceType + - Added Type Alias RemoteLoginPortPublicAccess + - Added Type Alias SamplingAlgorithmType + - Added Type Alias SamplingAlgorithmUnion + - Added Type Alias SASAuthTypeWorkspaceConnectionProperties + - Added Type Alias SasDatastoreCredentials + - Added Type Alias SasDatastoreSecrets + - Added Type Alias ScaleType + - Added Type Alias ScheduleProvisioningState + - Added Type Alias ScheduleStatus + - Added Type Alias SecretsType + - Added Type Alias ServiceDataAccessAuthIdentity + - Added Type Alias ServicePrincipalDatastoreCredentials + - Added Type Alias ServicePrincipalDatastoreSecrets + - Added Type Alias SkuScaleType + - Added Type Alias SkuTier + - Added Type Alias SourceType + - Added Type Alias SshPublicAccess + - Added Type Alias SslConfigurationStatus + - Added Type Alias Status + - Added Type Alias StorageAccountType + - 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 UnavailabilityReason + - Added Type Alias UnderlyingResourceAction + - Added Type Alias UnitOfMeasure + - 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 UsagesListNextResponse + - Added Type Alias UsagesListResponse + - Added Type Alias UsageUnit + - Added Type Alias UserIdentity + - Added Type Alias UsernamePasswordAuthTypeWorkspaceConnectionProperties + - Added Type Alias ValueFormat + - Added Type Alias VirtualMachine + - Added Type Alias VirtualMachineSecrets + - Added Type Alias VirtualMachineSizesListResponse + - Added Type Alias VMPriceOSType + - Added Type Alias VmPriority + - Added Type Alias VMTier + - Added Type Alias WorkspaceConnectionPropertiesV2BasicResource + - Added Type Alias WorkspaceConnectionPropertiesV2Union + - Added Type Alias WorkspaceConnectionsCreateResponse + - Added Type Alias WorkspaceConnectionsGetResponse + - Added Type Alias WorkspaceConnectionsListNextResponse + - Added Type Alias WorkspaceConnectionsListResponse + - Added Type Alias WorkspaceFeaturesListNextResponse + - Added Type Alias WorkspaceFeaturesListResponse + - Added Type Alias WorkspacesDiagnoseResponse + - Added Type Alias WorkspacesListBySubscriptionNextResponse + - Added Type Alias WorkspacesListBySubscriptionResponse + - Added Type Alias WorkspacesListKeysResponse + - Added Type Alias WorkspacesListNotebookAccessTokenResponse + - Added Type Alias WorkspacesListNotebookKeysResponse + - Added Type Alias WorkspacesListOutboundNetworkDependenciesEndpointsResponse + - Added Type Alias WorkspacesListStorageAccountKeysResponse + - Added Type Alias WorkspacesPrepareNotebookResponse + - Interface ErrorResponse has a new optional parameter error + - Interface Resource has a new optional parameter systemData + - Interface Sku has a new optional parameter capacity + - Interface Sku has a new optional parameter family + - Interface Sku has a new optional parameter size + - Interface WorkspacesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom + - Interface WorkspacesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface WorkspacesDeleteOptionalParams has a new optional parameter resumeFrom + - Interface WorkspacesDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface WorkspacesListByResourceGroupNextOptionalParams has a new optional parameter skip + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter skip + - Interface WorkspacesUpdateOptionalParams has a new optional parameter resumeFrom + - Interface WorkspacesUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Interface WorkspaceUpdateParameters has a new optional parameter applicationInsights + - Interface WorkspaceUpdateParameters has a new optional parameter containerRegistry + - Interface WorkspaceUpdateParameters has a new optional parameter description + - Interface WorkspaceUpdateParameters has a new optional parameter friendlyName + - Interface WorkspaceUpdateParameters has a new optional parameter identity + - Interface WorkspaceUpdateParameters has a new optional parameter imageBuildCompute + - Interface WorkspaceUpdateParameters has a new optional parameter primaryUserAssignedIdentity + - Interface WorkspaceUpdateParameters has a new optional parameter publicNetworkAccess + - Interface WorkspaceUpdateParameters has a new optional parameter serviceManagedResourcesSettings + - Type Alias Workspace has a new parameter identity + - Type Alias Workspace has a new parameter location + - Type Alias Workspace has a new parameter sku + - Type Alias Workspace has a new parameter description + - Type Alias Workspace has a new parameter friendlyName + - Type Alias Workspace has a new parameter keyVault + - Type Alias Workspace has a new parameter applicationInsights + - Type Alias Workspace has a new parameter containerRegistry + - Type Alias Workspace has a new parameter storageAccount + - Type Alias Workspace has a new parameter discoveryUrl + - Type Alias Workspace has a new parameter provisioningState + - Type Alias Workspace has a new parameter encryption + - Type Alias Workspace has a new parameter hbiWorkspace + - Type Alias Workspace has a new parameter serviceProvisionedResourceGroup + - Type Alias Workspace has a new parameter privateLinkCount + - Type Alias Workspace has a new parameter imageBuildCompute + - Type Alias Workspace has a new parameter allowPublicAccessWhenBehindVnet + - Type Alias Workspace has a new parameter publicNetworkAccess + - Type Alias Workspace has a new parameter privateEndpointConnections + - Type Alias Workspace has a new parameter sharedPrivateLinkResources + - Type Alias Workspace has a new parameter notebookInfo + - Type Alias Workspace has a new parameter serviceManagedResourcesSettings + - Type Alias Workspace has a new parameter primaryUserAssignedIdentity + - Type Alias Workspace has a new parameter tenantId + - Type Alias Workspace has a new parameter storageHnsEnabled + - Type Alias Workspace has a new parameter mlFlowTrackingUri + - Added Enum KnownAllocationState + - Added Enum KnownApplicationSharingPolicy + - Added Enum KnownAutosave + - Added Enum KnownBatchLoggingLevel + - Added Enum KnownBatchOutputAction + - Added Enum KnownBillingCurrency + - Added Enum KnownCaching + - Added Enum KnownClusterPurpose + - Added Enum KnownComputeInstanceAuthorizationType + - Added Enum KnownComputeInstanceState + - Added Enum KnownComputePowerAction + - Added Enum KnownComputeType + - Added Enum KnownConnectionAuthType + - Added Enum KnownConnectionCategory + - Added Enum KnownContainerType + - Added Enum KnownCreatedByType + - Added Enum KnownCredentialsType + - Added Enum KnownDatastoreType + - Added Enum KnownDataType + - Added Enum KnownDeploymentProvisioningState + - Added Enum KnownDiagnoseResultLevel + - Added Enum KnownDistributionType + - Added Enum KnownEarlyTerminationPolicyType + - Added Enum KnownEncryptionStatus + - Added Enum KnownEndpointAuthMode + - Added Enum KnownEndpointComputeType + - Added Enum KnownEndpointProvisioningState + - Added Enum KnownEnvironmentType + - Added Enum KnownGoal + - Added Enum KnownIdentityConfigurationType + - Added Enum KnownInputDeliveryMode + - Added Enum KnownJobInputType + - Added Enum KnownJobLimitsType + - Added Enum KnownJobOutputType + - Added Enum KnownJobStatus + - Added Enum KnownJobType + - Added Enum KnownKeyType + - Added Enum KnownListViewType + - Added Enum KnownLoadBalancerType + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownMountAction + - Added Enum KnownMountState + - Added Enum KnownNetwork + - Added Enum KnownNodeState + - Added Enum KnownOperatingSystemType + - Added Enum KnownOperationName + - Added Enum KnownOperationStatus + - Added Enum KnownOperationTrigger + - Added Enum KnownOrderString + - Added Enum KnownOsType + - Added Enum KnownOutputDeliveryMode + - Added Enum KnownPrivateEndpointConnectionProvisioningState + - Added Enum KnownPrivateEndpointServiceConnectionStatus + - Added Enum KnownProvisioningState + - Added Enum KnownProvisioningStatus + - Added Enum KnownPublicNetworkAccess + - Added Enum KnownQuotaUnit + - Added Enum KnownRandomSamplingAlgorithmRule + - Added Enum KnownReferenceType + - Added Enum KnownRemoteLoginPortPublicAccess + - Added Enum KnownSamplingAlgorithmType + - Added Enum KnownScaleType + - Added Enum KnownScheduleProvisioningState + - Added Enum KnownScheduleStatus + - Added Enum KnownSecretsType + - Added Enum KnownServiceDataAccessAuthIdentity + - Added Enum KnownSkuScaleType + - Added Enum KnownSourceType + - Added Enum KnownSshPublicAccess + - Added Enum KnownSslConfigurationStatus + - Added Enum KnownStatus + - Added Enum KnownStorageAccountType + - Added Enum KnownUnavailabilityReason + - Added Enum KnownUnderlyingResourceAction + - Added Enum KnownUnitOfMeasure + - Added Enum KnownUsageUnit + - Added Enum KnownValueFormat + - Added Enum KnownVMPriceOSType + - Added Enum KnownVmPriority + - Added Enum KnownVMTier + +**Breaking Changes** + + - Removed operation Workspaces.createOrUpdate + - Removed operation Workspaces.delete + - Removed operation Workspaces.list + - Removed operation Workspaces.listWorkspaceKeys + - Removed operation Workspaces.resyncStorageKeys + - Removed operation Workspaces.update + - Deleted Class MachineLearningWorkspacesManagementClient + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter message + - Interface Resource no longer has parameter location + - Interface Resource no longer has parameter sku + - Interface Resource no longer has parameter tags + - Interface WorkspaceUpdateParameters no longer has parameter keyVaultIdentifierId + - Interface WorkspaceUpdateParameters no longer has parameter workspaceState + - Parameter name of interface Sku is now required + - Type Alias Workspace no longer has parameter userStorageAccountId + - Type Alias Workspace no longer has parameter ownerEmail + - Type Alias Workspace no longer has parameter workspaceType + - Type Alias Workspace no longer has parameter workspaceState + - Type Alias Workspace no longer has parameter creationTime + - Type Alias Workspace no longer has parameter studioEndpoint + - Type Alias Workspace no longer has parameter keyVaultIdentifierId + + ## 1.0.0 (2022-01-19) The package of @azure/arm-workspaces is using our next generation design principles since version 1.0.0, which contains breaking changes. diff --git a/sdk/machinelearning/arm-workspaces/README.md b/sdk/machinelearning/arm-workspaces/README.md index 1fa68a982567..62104acf683a 100644 --- a/sdk/machinelearning/arm-workspaces/README.md +++ b/sdk/machinelearning/arm-workspaces/README.md @@ -1,8 +1,8 @@ -# Azure Machine Learning Workspaces Management 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 Azure Machine Learning Workspaces Management 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. They support CRUD operations for Azure Machine Learning Workspaces. +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-workspaces) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-workspaces) | @@ -22,16 +22,16 @@ These APIs allow end users to operate on Azure Machine Learning Workspace resour ### Install the `@azure/arm-workspaces` package -Install the Azure Machine Learning Workspaces Management client library for JavaScript with `npm`: +Install the Azure Service client library for JavaScript with `npm`: ```bash npm install @azure/arm-workspaces ``` -### Create and authenticate a `MachineLearningWorkspacesManagementClient` +### Create and authenticate a `AzureMachineLearningWorkspaces` -To create a client object to access the Azure Machine Learning Workspaces Management API, you will need the `endpoint` of your Azure Machine Learning Workspaces Management resource and a `credential`. The Azure Machine Learning Workspaces Management client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure Machine Learning Workspaces Management 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). @@ -41,16 +41,16 @@ 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 Azure Machine Learning Workspaces Management** 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). ```javascript -const { MachineLearningWorkspacesManagementClient } = require("@azure/arm-workspaces"); +const { AzureMachineLearningWorkspaces } = require("@azure/arm-workspaces"); const { DefaultAzureCredential } = require("@azure/identity"); const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new MachineLearningWorkspacesManagementClient(new DefaultAzureCredential(), subscriptionId); +const client = new AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId); ``` @@ -59,9 +59,9 @@ To use this client library in the browser, first you need to use a bundler. For ## Key concepts -### MachineLearningWorkspacesManagementClient +### AzureMachineLearningWorkspaces -`MachineLearningWorkspacesManagementClient` is the primary interface for developers using the Azure Machine Learning Workspaces Management client library. Explore the methods on this client object to understand the different features of the Azure Machine Learning Workspaces Management 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-workspaces/_meta.json b/sdk/machinelearning/arm-workspaces/_meta.json index 1e2fc1252a49..25893ee31db6 100644 --- a/sdk/machinelearning/arm-workspaces/_meta.json +++ b/sdk/machinelearning/arm-workspaces/_meta.json @@ -1,7 +1,8 @@ { - "commit": "184b23b63ee3a79fb41ca3aa55a31a8d9e636772", + "commit": "91b159d73aa7bc4462fc09b1e104edad4f883d69", "readme": "specification/machinelearning/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearning/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/machinelearning/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.2.6", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-workspaces/api-extractor.json b/sdk/machinelearning/arm-workspaces/api-extractor.json index e5d24b400700..dab89e4b70e0 100644 --- a/sdk/machinelearning/arm-workspaces/api-extractor.json +++ b/sdk/machinelearning/arm-workspaces/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-workspaces.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-workspaces/package.json b/sdk/machinelearning/arm-workspaces/package.json index 966da3f600a2..ec24dcba49c8 100644 --- a/sdk/machinelearning/arm-workspaces/package.json +++ b/sdk/machinelearning/arm-workspaces/package.json @@ -2,17 +2,27 @@ "name": "@azure/arm-workspaces", "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "A generated SDK for MachineLearningWorkspacesManagementClient.", - "version": "1.0.0", - "engines": { "node": ">=12.0.0" }, + "description": "A generated SDK for AzureMachineLearningWorkspaces.", + "version": "2.0.0", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { + "@azure/core-lro": "^2.2.0", + "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -39,7 +49,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -86,19 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/MachineLearningWorkspacesManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": ["azure"], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-workspaces?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-workspaces/review/arm-workspaces.api.md b/sdk/machinelearning/arm-workspaces/review/arm-workspaces.api.md index e681a97ad3c5..95ea683c1c10 100644 --- a/sdk/machinelearning/arm-workspaces/review/arm-workspaces.api.md +++ b/sdk/machinelearning/arm-workspaces/review/arm-workspaces.api.md @@ -7,102 +7,4791 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; + +// @public +export type AccountKeyDatastoreCredentials = DatastoreCredentials & { + credentialsType: "AccountKey"; + secrets: AccountKeyDatastoreSecrets; +}; + +// @public +export type AccountKeyDatastoreSecrets = DatastoreSecrets & { + secretsType: "AccountKey"; + key?: string; +}; + +// @public +export type Aks = Compute & AKSSchema & { + computeType: "AKS"; +}; + +// @public +export type AksComputeSecrets = ComputeSecrets & AksComputeSecretsProperties & { + computeType: "AKS"; +}; + +// @public +export interface AksComputeSecretsProperties { + adminKubeConfig?: string; + imagePullSecretName?: string; + userKubeConfig?: string; +} + +// @public +export interface AksNetworkingConfiguration { + dnsServiceIP?: string; + dockerBridgeCidr?: string; + serviceCidr?: string; + subnetId?: string; +} + +// @public (undocumented) +export interface AKSSchema { + properties?: AKSSchemaProperties; +} + +// @public +export interface AKSSchemaProperties { + agentCount?: number; + agentVmSize?: string; + aksNetworkingConfiguration?: AksNetworkingConfiguration; + clusterFqdn?: string; + clusterPurpose?: ClusterPurpose; + loadBalancerSubnet?: string; + loadBalancerType?: LoadBalancerType; + sslConfiguration?: SslConfiguration; + readonly systemServices?: SystemService[]; +} + +// @public +export type AllocationState = string; + +// @public +export type AmlCompute = Compute & AmlComputeSchema & { + computeType: "AmlCompute"; +}; + +// @public +export interface AmlComputeNodeInformation { + readonly nodeId?: string; + readonly nodeState?: NodeState; + readonly port?: number; + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; + readonly runId?: string; +} + +// @public +export interface AmlComputeNodesInformation { + readonly nextLink?: string; + readonly nodes?: AmlComputeNodeInformation[]; +} + +// @public +export interface AmlComputeProperties { + readonly allocationState?: AllocationState; + readonly allocationStateTransitionTime?: Date; + readonly currentNodeCount?: number; + enableNodePublicIp?: boolean; + readonly errors?: ErrorResponse[]; + isolatedNetwork?: boolean; + readonly nodeStateCounts?: NodeStateCounts; + osType?: OsType; + propertyBag?: { + [propertyName: string]: any; + }; + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; + scaleSettings?: ScaleSettings; + subnet?: ResourceId; + readonly targetNodeCount?: number; + userAccountCredentials?: UserAccountCredentials; + virtualMachineImage?: VirtualMachineImage; + vmPriority?: VmPriority; + vmSize?: string; +} + +// @public +export interface AmlComputeSchema { + properties?: AmlComputeProperties; +} + +// @public +export interface AmlOperation { + display?: AmlOperationDisplay; + isDataAction?: boolean; + name?: string; +} + +// @public +export interface AmlOperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface AmlOperationListResult { + value?: AmlOperation[]; +} + +// @public +export type AmlToken = IdentityConfiguration & { + identityType: "AMLToken"; +}; + +// @public +export interface AmlUserFeature { + description?: string; + displayName?: string; + id?: string; +} + +// @public +export type ApplicationSharingPolicy = string; + +// @public (undocumented) +export type AssetBase = ResourceBase & { + isAnonymous?: boolean; + isArchived?: boolean; +}; + +// @public (undocumented) +export type AssetContainer = ResourceBase & { + isArchived?: boolean; + readonly latestVersion?: string; + readonly nextVersion?: string; +}; + +// @public +export interface AssetJobInput { + mode?: InputDeliveryMode; + uri: string; +} + +// @public +export interface AssetJobOutput { + mode?: OutputDeliveryMode; + uri?: string; +} + +// @public +export interface AssetReferenceBase { + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +// @public (undocumented) +export type AssetReferenceBaseUnion = AssetReferenceBase | DataPathAssetReference | IdAssetReference | OutputPathAssetReference; + +// @public +export interface AssignedUser { + objectId: string; + tenantId: string; +} + +// @public +export interface AutoPauseProperties { + // (undocumented) + delayInMinutes?: number; + // (undocumented) + enabled?: boolean; +} + +// @public +export type Autosave = string; + +// @public +export interface AutoScaleProperties { + // (undocumented) + enabled?: boolean; + // (undocumented) + maxNodeCount?: number; + // (undocumented) + minNodeCount?: number; +} + +// @public +export type AzureBlobDatastore = DatastoreDetails & { + accountName?: string; + containerName?: string; + endpoint?: string; + protocol?: string; + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +}; + +// @public +export type AzureDataLakeGen1Datastore = DatastoreDetails & { + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; + storeName: string; +}; + +// @public +export type AzureDataLakeGen2Datastore = DatastoreDetails & { + accountName: string; + endpoint?: string; + filesystem: string; + protocol?: string; + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +}; + +// @public +export type AzureFileDatastore = DatastoreDetails & { + accountName: string; + endpoint?: string; + fileShareName: string; + protocol?: string; + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +}; + +// @public (undocumented) +export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + batchDeployments: BatchDeployments; + // (undocumented) + batchEndpoints: BatchEndpoints; + // (undocumented) + codeContainers: CodeContainers; + // (undocumented) + codeVersions: CodeVersions; + // (undocumented) + componentContainers: ComponentContainers; + // (undocumented) + componentVersions: ComponentVersions; + // (undocumented) + computeOperations: ComputeOperations; + // (undocumented) + dataContainers: DataContainers; + // (undocumented) + datastores: Datastores; + // (undocumented) + dataVersions: DataVersions; + // (undocumented) + environmentContainers: EnvironmentContainers; + // (undocumented) + environmentVersions: EnvironmentVersions; + // (undocumented) + jobs: Jobs; + // (undocumented) + modelContainers: ModelContainers; + // (undocumented) + modelVersions: ModelVersions; + // (undocumented) + onlineDeployments: OnlineDeployments; + // (undocumented) + onlineEndpoints: OnlineEndpoints; + // (undocumented) + operations: Operations; + // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) + privateLinkResources: PrivateLinkResources; + // (undocumented) + quotas: Quotas; + // (undocumented) + subscriptionId: string; + // (undocumented) + usages: Usages; + // (undocumented) + virtualMachineSizes: VirtualMachineSizes; + // (undocumented) + workspaceConnections: WorkspaceConnections; + // (undocumented) + workspaceFeatures: WorkspaceFeatures; + // (undocumented) + workspaces: Workspaces; +} + +// @public +export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export type BanditPolicy = EarlyTerminationPolicy & { + policyType: "Bandit"; + slackAmount?: number; + slackFactor?: number; +}; + +// @public (undocumented) +export type BatchDeploymentData = TrackedResource & { + identity?: ManagedServiceIdentity; + kind?: string; + properties: BatchDeploymentDetails; + sku?: Sku; +}; + +// @public +export type BatchDeploymentDetails = EndpointDeploymentPropertiesBase & { + compute?: string; + errorThreshold?: number; + loggingLevel?: BatchLoggingLevel; + maxConcurrencyPerInstance?: number; + miniBatchSize?: number; + model?: AssetReferenceBaseUnion; + outputAction?: BatchOutputAction; + outputFileName?: string; + readonly provisioningState?: DeploymentProvisioningState; + resources?: ResourceConfiguration; + retrySettings?: BatchRetrySettings; +}; + +// @public +export interface BatchDeployments { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeploymentData, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise, BatchDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeploymentData, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialTrackedResource, options?: BatchDeploymentsUpdateOptionalParams): Promise, BatchDeploymentsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialTrackedResource, options?: BatchDeploymentsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchDeploymentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface BatchDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeploymentData; + +// @public +export interface BatchDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface BatchDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchDeploymentsGetResponse = BatchDeploymentData; + +// @public +export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface BatchDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface BatchDeploymentsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BatchDeploymentsUpdateResponse = BatchDeploymentData; + +// @public +export interface BatchDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: BatchDeploymentData[]; +} + +// @public (undocumented) +export type BatchEndpointData = TrackedResource & { + identity?: ManagedServiceIdentity; + kind?: string; + properties: BatchEndpointDetails; + sku?: Sku; +}; + +// @public +export interface BatchEndpointDefaults { + deploymentName?: string; +} + +// @public +export type BatchEndpointDetails = EndpointPropertiesBase & { + defaults?: BatchEndpointDefaults; + readonly provisioningState?: EndpointProvisioningState; +}; + +// @public +export interface BatchEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpointData, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise, BatchEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpointData, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialBatchEndpointPartialTrackedResource, options?: BatchEndpointsUpdateOptionalParams): Promise, BatchEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialBatchEndpointPartialTrackedResource, options?: BatchEndpointsUpdateOptionalParams): Promise; + checkNameAvailability(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsCheckNameAvailabilityOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: BatchEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface BatchEndpointsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsCheckNameAvailabilityResponse = NameAvailabilityResult; + +// @public +export interface BatchEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpointData; + +// @public +export interface BatchEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface BatchEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsGetResponse = BatchEndpointData; + +// @public +export interface BatchEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; + +// @public +export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface BatchEndpointsListOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface BatchEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface BatchEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BatchEndpointsUpdateResponse = BatchEndpointData; + +// @public +export interface BatchEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: BatchEndpointData[]; +} + +// @public +export type BatchLoggingLevel = string; + +// @public +export type BatchOutputAction = string; + +// @public +export interface BatchRetrySettings { + maxRetries?: number; + timeout?: string; +} + +// @public +export type BayesianSamplingAlgorithm = SamplingAlgorithm & { + samplingAlgorithmType: "Bayesian"; +}; + +// @public +export type BillingCurrency = string; + +// @public +export interface BuildContext { + contextUri: string; + dockerfilePath?: string; +} + +// @public +export type Caching = string; + +// @public +export type CertificateDatastoreCredentials = DatastoreCredentials & { + credentialsType: "Certificate"; + authorityUrl?: string; + clientId: string; + resourceUrl?: string; + secrets: CertificateDatastoreSecrets; + tenantId: string; + thumbprint: string; +}; + +// @public +export type CertificateDatastoreSecrets = DatastoreSecrets & { + secretsType: "Certificate"; + certificate?: string; +}; + +// @public +export type ClusterPurpose = string; + +// @public +export interface ClusterUpdateParameters { + properties?: ScaleSettingsInformation; +} + +// @public +export interface CodeConfiguration { + codeId?: string; + scoringScript: string; +} + +// @public +export type CodeContainerData = Resource & { + properties: CodeContainerDetails; +}; + +// @public +export type CodeContainerDetails = AssetContainer & {}; + +// @public +export interface CodeContainerResourceArmPaginatedResult { + nextLink?: string; + value?: CodeContainerData[]; +} + +// @public +export interface CodeContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: CodeContainerData, options?: CodeContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: CodeContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: CodeContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: CodeContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeContainersCreateOrUpdateResponse = CodeContainerData; + +// @public +export interface CodeContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CodeContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeContainersGetResponse = CodeContainerData; + +// @public +export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +// @public +export interface CodeContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +// @public +export type CodeVersionData = Resource & { + properties: CodeVersionDetails; +}; + +// @public +export type CodeVersionDetails = AssetBase & { + codeUri?: string; +}; + +// @public +export interface CodeVersionResourceArmPaginatedResult { + nextLink?: string; + value?: CodeVersionData[]; +} + +// @public +export interface CodeVersions { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: CodeVersionData, options?: CodeVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: CodeVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsCreateOrUpdateResponse = CodeVersionData; + +// @public +export interface CodeVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CodeVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsGetResponse = CodeVersionData; + +// @public +export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +// @public +export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +// @public +export type CommandJob = JobBaseDetails & { + codeId?: string; + command: string; + distribution?: DistributionConfigurationUnion; + environmentId: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + limits?: CommandJobLimits; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + readonly parameters?: Record; + resources?: ResourceConfiguration; +}; + +// @public +export type CommandJobLimits = JobLimits & { + jobLimitsType: "Command"; +}; + +// @public +export type ComponentContainerData = Resource & { + properties: ComponentContainerDetails; +}; + +// @public +export type ComponentContainerDetails = AssetContainer & {}; + +// @public +export interface ComponentContainerResourceArmPaginatedResult { + nextLink?: string; + value?: ComponentContainerData[]; +} + +// @public +export interface ComponentContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ComponentContainerData, options?: ComponentContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: ComponentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ComponentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ComponentContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ComponentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComponentContainersCreateOrUpdateResponse = ComponentContainerData; + +// @public +export interface ComponentContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ComponentContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComponentContainersGetResponse = ComponentContainerData; + +// @public +export interface ComponentContainersListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface ComponentContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export type ComponentVersionData = Resource & { + properties: ComponentVersionDetails; +}; + +// @public +export type ComponentVersionDetails = AssetBase & { + componentSpec?: Record; +}; + +// @public +export interface ComponentVersionResourceArmPaginatedResult { + nextLink?: string; + value?: ComponentVersionData[]; +} + +// @public +export interface ComponentVersions { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ComponentVersionData, options?: ComponentVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ComponentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ComponentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: ComponentVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ComponentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComponentVersionsCreateOrUpdateResponse = ComponentVersionData; + +// @public +export interface ComponentVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ComponentVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComponentVersionsGetResponse = ComponentVersionData; + +// @public +export interface ComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +export interface ComponentVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +// @public +export interface Compute { + readonly computeLocation?: string; + computeType: "AKS" | "Kubernetes" | "AmlCompute" | "ComputeInstance" | "VirtualMachine" | "HDInsight" | "DataFactory" | "Databricks" | "DataLakeAnalytics" | "SynapseSpark"; + readonly createdOn?: Date; + description?: string; + disableLocalAuth?: boolean; + readonly isAttachedCompute?: boolean; + readonly modifiedOn?: Date; + readonly provisioningErrors?: ErrorResponse[]; + readonly provisioningState?: ProvisioningState; + resourceId?: string; +} + +// @public +export interface ComputeCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface ComputeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeCreateOrUpdateResponse = ComputeResource; + +// @public +export interface ComputeDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface ComputeDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeGetResponse = ComputeResource; + +// @public +export type ComputeInstance = Compute & ComputeInstanceSchema & { + computeType: "ComputeInstance"; +}; + +// @public +export interface ComputeInstanceApplication { + displayName?: string; + endpointUri?: string; +} + +// @public +export type ComputeInstanceAuthorizationType = string; + +// @public +export interface ComputeInstanceConnectivityEndpoints { + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; +} + +// @public +export interface ComputeInstanceContainer { + autosave?: Autosave; + environment?: ComputeInstanceEnvironmentInfo; + gpu?: string; + name?: string; + network?: Network; + readonly services?: Record[]; +} + +// @public +export interface ComputeInstanceCreatedBy { + readonly userId?: string; + readonly userName?: string; + readonly userOrgId?: string; +} + +// @public +export interface ComputeInstanceDataDisk { + caching?: Caching; + diskSizeGB?: number; + lun?: number; + storageAccountType?: StorageAccountType; +} + +// @public +export interface ComputeInstanceDataMount { + createdBy?: string; + error?: string; + mountAction?: MountAction; + mountedOn?: Date; + mountName?: string; + mountPath?: string; + mountState?: MountState; + source?: string; + sourceType?: SourceType; +} + +// @public +export interface ComputeInstanceEnvironmentInfo { + name?: string; + version?: string; +} + +// @public +export interface ComputeInstanceLastOperation { + operationName?: OperationName; + operationStatus?: OperationStatus; + operationTime?: Date; + operationTrigger?: OperationTrigger; +} + +// @public +export interface ComputeInstanceProperties { + readonly applications?: ComputeInstanceApplication[]; + applicationSharingPolicy?: ApplicationSharingPolicy; + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + readonly containers?: ComputeInstanceContainer[]; + readonly createdBy?: ComputeInstanceCreatedBy; + readonly dataDisks?: ComputeInstanceDataDisk[]; + readonly dataMounts?: ComputeInstanceDataMount[]; + enableNodePublicIp?: boolean; + readonly errors?: ErrorResponse[]; + readonly lastOperation?: ComputeInstanceLastOperation; + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + readonly schedules?: ComputeSchedules; + setupScripts?: SetupScripts; + sshSettings?: ComputeInstanceSshSettings; + readonly state?: ComputeInstanceState; + subnet?: ResourceId; + readonly versions?: ComputeInstanceVersion; + vmSize?: string; +} + +// @public +export interface ComputeInstanceSchema { + properties?: ComputeInstanceProperties; +} + +// @public +export interface ComputeInstanceSshSettings { + adminPublicKey?: string; + readonly adminUserName?: string; + readonly sshPort?: number; + sshPublicAccess?: SshPublicAccess; +} + +// @public +export type ComputeInstanceState = string; + +// @public +export interface ComputeInstanceVersion { + runtime?: string; +} + +// @public +export interface ComputeListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListKeysResponse = ComputeSecretsUnion; + +// @public +export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeListNodesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeListNodesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeListResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeOperations { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise, ComputeCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise; + beginRestart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise, void>>; + beginRestartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise; + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise, void>>; + beginStartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise; + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise, void>>; + beginStopAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise, ComputeUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeGetOptionalParams): Promise; + 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; +} + +// @public +export type ComputePowerAction = string; + +// @public +export type ComputeResource = Resource & ComputeResourceSchema & { + identity?: ManagedServiceIdentity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; +}; + +// @public (undocumented) +export interface ComputeResourceSchema { + properties?: ComputeUnion; +} + +// @public +export interface ComputeRestartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeSchedules { + computeStartStop?: ComputeStartStopSchedule[]; +} + +// @public +export interface ComputeSecrets { + computeType: "AKS" | "VirtualMachine" | "Databricks"; +} + +// @public (undocumented) +export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; + +// @public +export interface ComputeStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeStartStopSchedule { + action?: ComputePowerAction; + readonly id?: string; + readonly provisioningStatus?: ProvisioningStatus; + // (undocumented) + schedule?: ScheduleBase; +} + +// @public +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeType = string; + +// @public (undocumented) +export type ComputeUnion = Compute | Aks | Kubernetes | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; + +// @public +export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeUpdateResponse = ComputeResource; + +// @public +export type ConnectionAuthType = string; + +// @public +export type ConnectionCategory = string; + +// @public +export interface ContainerResourceRequirements { + containerResourceLimits?: ContainerResourceSettings; + containerResourceRequests?: ContainerResourceSettings; +} + +// @public (undocumented) +export interface ContainerResourceSettings { + cpu?: string; + gpu?: string; + memory?: string; +} + +// @public +export type ContainerType = string; + +// @public (undocumented) +export interface CosmosDbSettings { + collectionsThroughput?: number; +} + +// @public +export type CreatedByType = string; + +// @public +export type CredentialsType = string; + +// @public (undocumented) +export type CustomModelJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type CustomModelJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export type Databricks = Compute & DatabricksSchema & { + computeType: "Databricks"; +}; + +// @public +export type DatabricksComputeSecrets = ComputeSecrets & DatabricksComputeSecretsProperties & { + computeType: "Databricks"; +}; + +// @public +export interface DatabricksComputeSecretsProperties { + databricksAccessToken?: string; +} + +// @public +export interface DatabricksProperties { + databricksAccessToken?: string; + workspaceUrl?: string; +} + +// @public (undocumented) +export interface DatabricksSchema { + properties?: DatabricksProperties; +} + +// @public +export type DataContainerData = Resource & { + properties: DataContainerDetails; +}; + +// @public +export type DataContainerDetails = AssetContainer & { + dataType: DataType; +}; + +// @public +export interface DataContainerResourceArmPaginatedResult { + nextLink?: string; + value?: DataContainerData[]; +} + +// @public +export interface DataContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: DataContainerData, options?: DataContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: DataContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: DataContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: DataContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataContainersCreateOrUpdateResponse = DataContainerData; + +// @public +export interface DataContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataContainersGetResponse = DataContainerData; + +// @public +export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +// @public +export interface DataContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; + +// @public +export type DataFactory = Compute & { + computeType: "DataFactory"; +}; + +// @public +export type DataLakeAnalytics = Compute & DataLakeAnalyticsSchema & { + computeType: "DataLakeAnalytics"; +}; + +// @public (undocumented) +export interface DataLakeAnalyticsSchema { + // (undocumented) + properties?: DataLakeAnalyticsSchemaProperties; +} + +// @public (undocumented) +export interface DataLakeAnalyticsSchemaProperties { + dataLakeStoreAccountName?: string; +} + +// @public +export type DataPathAssetReference = AssetReferenceBase & { + referenceType: "DataPath"; + datastoreId?: string; + path?: string; +}; + +// @public +export interface DatastoreCredentials { + credentialsType: "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal"; +} + +// @public (undocumented) +export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; + +// @public +export type DatastoreData = Resource & { + properties: DatastoreDetailsUnion; +}; + +// @public +export type DatastoreDetails = ResourceBase & { + credentials: DatastoreCredentialsUnion; + datastoreType: DatastoreType; + readonly isDefault?: boolean; +}; + +// @public (undocumented) +export type DatastoreDetailsUnion = DatastoreDetails | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore; + +// @public +export interface DatastoreResourceArmPaginatedResult { + nextLink?: string; + value?: DatastoreData[]; +} + +// @public +export interface Datastores { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: DatastoreData, options?: DatastoresCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: DatastoresDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: DatastoresGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: DatastoresListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, workspaceName: string, name: string, options?: DatastoresListSecretsOptionalParams): Promise; +} + +// @public +export interface DatastoresCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + skipValidation?: boolean; +} + +// @public +export type DatastoresCreateOrUpdateResponse = DatastoreData; + +// @public +export interface DatastoresDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DatastoreSecrets { + secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; +} + +// @public (undocumented) +export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; + +// @public +export interface DatastoresGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatastoresGetResponse = DatastoreData; + +// @public +export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + isDefault?: boolean; + names?: string[]; + orderBy?: string; + orderByAsc?: boolean; + searchText?: string; + skip?: string; +} + +// @public +export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; + +// @public +export interface DatastoresListOptionalParams extends coreClient.OperationOptions { + count?: number; + isDefault?: boolean; + names?: string[]; + orderBy?: string; + orderByAsc?: boolean; + searchText?: string; + skip?: string; +} + +// @public +export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; + +// @public +export interface DatastoresListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; + +// @public +export type DatastoreType = string; + +// @public +export type DataType = string; + +// @public +export type DataVersionBaseData = Resource & { + properties: DataVersionBaseDetailsUnion; +}; + +// @public +export type DataVersionBaseDetails = AssetBase & { + dataType: DataType; + dataUri: string; +}; + +// @public (undocumented) +export type DataVersionBaseDetailsUnion = DataVersionBaseDetails | MLTableData | UriFileDataVersion | UriFolderDataVersion; + +// @public +export interface DataVersionBaseResourceArmPaginatedResult { + nextLink?: string; + value?: DataVersionBaseData[]; +} + +// @public +export interface DataVersions { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DataVersionBaseData, options?: DataVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: DataVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: DataVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: DataVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataVersionsCreateOrUpdateResponse = DataVersionBaseData; + +// @public +export interface DataVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DataVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataVersionsGetResponse = DataVersionBaseData; + +// @public +export interface DataVersionsListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} + +// @public +export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +// @public +export interface DataVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} + +// @public +export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; + +// @public (undocumented) +export type DefaultScaleSettings = OnlineScaleSettings & { + scaleType: "Default"; +}; + +// @public (undocumented) +export interface DeploymentLogs { + content?: string; +} + +// @public (undocumented) +export interface DeploymentLogsRequest { + containerType?: ContainerType; + tail?: number; +} + +// @public +export type DeploymentProvisioningState = string; + +// @public (undocumented) +export interface DiagnoseRequestProperties { + applicationInsights?: { + [propertyName: string]: Record; + }; + containerRegistry?: { + [propertyName: string]: Record; + }; + dnsResolution?: { + [propertyName: string]: Record; + }; + keyVault?: { + [propertyName: string]: Record; + }; + nsg?: { + [propertyName: string]: Record; + }; + others?: { + [propertyName: string]: Record; + }; + resourceLock?: { + [propertyName: string]: Record; + }; + storageAccount?: { + [propertyName: string]: Record; + }; + udr?: { + [propertyName: string]: Record; + }; +} + +// @public (undocumented) +export interface DiagnoseResponseResult { + // (undocumented) + value?: DiagnoseResponseResultValue; +} + +// @public (undocumented) +export interface DiagnoseResponseResultValue { + // (undocumented) + applicationInsightsResults?: DiagnoseResult[]; + // (undocumented) + containerRegistryResults?: DiagnoseResult[]; + // (undocumented) + dnsResolutionResults?: DiagnoseResult[]; + // (undocumented) + keyVaultResults?: DiagnoseResult[]; + // (undocumented) + networkSecurityRuleResults?: DiagnoseResult[]; + // (undocumented) + otherResults?: DiagnoseResult[]; + // (undocumented) + resourceLockResults?: DiagnoseResult[]; + // (undocumented) + storageAccountResults?: DiagnoseResult[]; + // (undocumented) + userDefinedRouteResults?: DiagnoseResult[]; +} + +// @public +export interface DiagnoseResult { + readonly code?: string; + readonly level?: DiagnoseResultLevel; + readonly message?: string; +} + +// @public +export type DiagnoseResultLevel = string; + +// @public +export interface DiagnoseWorkspaceParameters { + value?: DiagnoseRequestProperties; +} + +// @public +export interface DistributionConfiguration { + distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +} + +// @public (undocumented) +export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | TensorFlow; + +// @public +export type DistributionType = string; + +// @public +export interface EarlyTerminationPolicy { + delayEvaluation?: number; + evaluationInterval?: number; + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; +} + +// @public +export type EarlyTerminationPolicyType = string; + +// @public (undocumented) +export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy | MedianStoppingPolicy | TruncationSelectionPolicy; + +// @public (undocumented) +export interface EncryptionKeyVaultProperties { + identityClientId?: string; + keyIdentifier: string; + keyVaultArmId: string; +} + +// @public (undocumented) +export interface EncryptionProperty { + identity?: IdentityForCmk; + keyVaultProperties: EncryptionKeyVaultProperties; + status: EncryptionStatus; +} + +// @public +export type EncryptionStatus = string; + +// @public +export interface EndpointAuthKeys { + primaryKey?: string; + secondaryKey?: string; +} + +// @public +export type EndpointAuthMode = string; + +// @public +export interface EndpointAuthToken { + accessToken?: string; + expiryTimeUtc?: number; + refreshAfterTimeUtc?: number; + tokenType?: string; +} + +// @public +export type EndpointComputeType = string; + +// @public +export interface EndpointDeploymentPropertiesBase { + codeConfiguration?: CodeConfiguration; + description?: string; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + properties?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface EndpointPropertiesBase { + authMode: EndpointAuthMode; + description?: string; + keys?: EndpointAuthKeys; + properties?: { + [propertyName: string]: string | null; + }; + readonly scoringUri?: string; + readonly swaggerUri?: string; +} + +// @public +export type EndpointProvisioningState = string; + +// @public +export type EnvironmentContainerData = Resource & { + properties: EnvironmentContainerDetails; +}; + +// @public +export type EnvironmentContainerDetails = AssetContainer & {}; + +// @public +export interface EnvironmentContainerResourceArmPaginatedResult { + nextLink?: string; + value?: EnvironmentContainerData[]; +} + +// @public +export interface EnvironmentContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: EnvironmentContainerData, options?: EnvironmentContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: EnvironmentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: EnvironmentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: EnvironmentContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerData; + +// @public +export interface EnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface EnvironmentContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentContainersGetResponse = EnvironmentContainerData; + +// @public +export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export interface EnvironmentContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export type EnvironmentType = string; + +// @public +export type EnvironmentVersionData = Resource & { + properties: EnvironmentVersionDetails; +}; + +// @public +export type EnvironmentVersionDetails = AssetBase & { + build?: BuildContext; + condaFile?: string; + readonly environmentType?: EnvironmentType; + image?: string; + inferenceConfig?: InferenceContainerProperties; + osType?: OperatingSystemType; +}; + +// @public +export interface EnvironmentVersionResourceArmPaginatedResult { + nextLink?: string; + value?: EnvironmentVersionData[]; +} + +// @public +export interface EnvironmentVersions { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: EnvironmentVersionData, options?: EnvironmentVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: EnvironmentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: EnvironmentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: EnvironmentVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface EnvironmentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersionData; + +// @public +export interface EnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface EnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type EnvironmentVersionsGetResponse = EnvironmentVersionData; + +// @public +export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; + +// @public +export interface EnvironmentVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorDetailAutoGenerated { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetailAutoGenerated[]; + readonly message?: string; + readonly target?: string; +} // @public export interface ErrorResponse { - code: string; - message: string; + error?: ErrorDetail; +} + +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetailAutoGenerated; +} + +// @public +export interface EstimatedVMPrice { + osType: VMPriceOSType; + retailPrice: number; + vmTier: VMTier; +} + +// @public +export interface EstimatedVMPrices { + billingCurrency: BillingCurrency; + unitOfMeasure: UnitOfMeasure; + values: EstimatedVMPrice[]; +} + +// @public (undocumented) +export interface ExternalFqdnResponse { + // (undocumented) + value?: FqdnEndpoints[]; +} + +// @public (undocumented) +export interface FlavorData { + data?: { + [propertyName: string]: string | null; + }; +} + +// @public (undocumented) +export interface FqdnEndpoint { + // (undocumented) + domainName?: string; + // (undocumented) + endpointDetails?: FqdnEndpointDetail[]; +} + +// @public (undocumented) +export interface FqdnEndpointDetail { + // (undocumented) + port?: number; +} + +// @public (undocumented) +export interface FqdnEndpoints { + // (undocumented) + properties?: FqdnEndpointsProperties; +} + +// @public (undocumented) +export interface FqdnEndpointsProperties { + // (undocumented) + category?: string; + // (undocumented) + endpoints?: FqdnEndpoint[]; +} + +// @public +export type Goal = string; + +// @public +export type GridSamplingAlgorithm = SamplingAlgorithm & { + samplingAlgorithmType: "Grid"; +}; + +// @public +export type HDInsight = Compute & HDInsightSchema & { + computeType: "HDInsight"; +}; + +// @public +export interface HDInsightProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + sshPort?: number; +} + +// @public (undocumented) +export interface HDInsightSchema { + properties?: HDInsightProperties; +} + +// @public +export type IdAssetReference = AssetReferenceBase & { + referenceType: "Id"; + assetId: string; +}; + +// @public +export interface IdentityConfiguration { + identityType: "AMLToken" | "Managed" | "UserIdentity"; +} + +// @public +export type IdentityConfigurationType = string; + +// @public (undocumented) +export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; + +// @public +export interface IdentityForCmk { + userAssignedIdentity?: string; +} + +// @public (undocumented) +export interface InferenceContainerProperties { + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; +} + +// @public +export type InputDeliveryMode = string; + +// @public +export interface InstanceTypeSchema { + nodeSelector?: { + [propertyName: string]: string; + }; + resources?: InstanceTypeSchemaResources; +} + +// @public +export interface InstanceTypeSchemaResources { + limits?: { + [propertyName: string]: string; + }; + requests?: { + [propertyName: string]: string; + }; +} + +// @public +export type JobBaseData = Resource & { + properties: JobBaseDetailsUnion; +}; + +// @public +export type JobBaseDetails = ResourceBase & { + computeId?: string; + displayName?: string; + experimentName?: string; + identity?: IdentityConfigurationUnion; + isArchived?: boolean; + jobType: JobType; + services?: { + [propertyName: string]: JobService | null; + }; + readonly status?: JobStatus; +}; + +// @public (undocumented) +export type JobBaseDetailsUnion = JobBaseDetails | CommandJob | PipelineJob | SweepJob; + +// @public +export interface JobBaseResourceArmPaginatedResult { + nextLink?: string; + value?: JobBaseData[]; +} + +// @public +export interface JobInput { + description?: string; + jobInputType: "custom_model" | "literal" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +export type JobInputType = string; + +// @public (undocumented) +export type JobInputUnion = JobInput | CustomModelJobInput | LiteralJobInput | MLFlowModelJobInput | MLTableJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; + +// @public (undocumented) +export interface JobLimits { + jobLimitsType: "Command" | "Sweep"; + timeout?: string; +} + +// @public +export type JobLimitsType = string; + +// @public (undocumented) +export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; + +// @public +export interface JobOutput { + description?: string; + jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +export type JobOutputType = string; + +// @public (undocumented) +export type JobOutputUnion = JobOutput | CustomModelJobOutput | MLFlowModelJobOutput | MLTableJobOutput | TritonModelJobOutput | UriFileJobOutput | UriFolderJobOutput; + +// @public +export interface Jobs { + beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; + beginCancelAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: JobBaseData, options?: JobsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, id: string, options?: JobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface JobsCancelHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface JobsCancelOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsCreateOrUpdateResponse = JobBaseData; + +// @public +export interface JobsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobService { + endpoint?: string; + readonly errorMessage?: string; + jobServiceType?: string; + port?: number; + properties?: { + [propertyName: string]: string | null; + }; + readonly status?: string; +} + +// @public +export interface JobsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsGetResponse = JobBaseData; + +// @public +export interface JobsListNextOptionalParams extends coreClient.OperationOptions { + jobType?: string; + listViewType?: ListViewType; + skip?: string; + tag?: string; +} + +// @public +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; + +// @public +export interface JobsListOptionalParams extends coreClient.OperationOptions { + jobType?: string; + listViewType?: ListViewType; + skip?: string; + tag?: string; +} + +// @public +export type JobsListResponse = JobBaseResourceArmPaginatedResult; + +// @public +export type JobStatus = string; + +// @public +export type JobType = string; + +// @public +type KeyType_2 = string; +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" +} + +// @public +export enum KnownJobStatus { + Canceled = "Canceled", + CancelRequested = "CancelRequested", + Completed = "Completed", + Failed = "Failed", + Finalizing = "Finalizing", + NotResponding = "NotResponding", + NotStarted = "NotStarted", + Paused = "Paused", + Preparing = "Preparing", + Provisioning = "Provisioning", + Queued = "Queued", + Running = "Running", + Starting = "Starting", + Unknown = "Unknown" +} + +// @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" +} + +// @public +export enum KnownServiceDataAccessAuthIdentity { + None = "None", + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +// @public +export enum KnownSkuScaleType { + // (undocumented) + Automatic = "Automatic", + // (undocumented) + Manual = "Manual", + // (undocumented) + None = "None" +} + +// @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 KnownSslConfigurationStatus { + // (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 KnownUnavailabilityReason { + // (undocumented) + AlreadyExists = "AlreadyExists", + // (undocumented) + Invalid = "Invalid" +} + +// @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 type Kubernetes = Compute & KubernetesSchema & { + computeType: "Kubernetes"; +}; + +// @public +export type KubernetesOnlineDeployment = OnlineDeploymentDetails & { + containerResourceRequirements?: ContainerResourceRequirements; +}; + +// @public +export interface KubernetesProperties { + defaultInstanceType?: string; + extensionInstanceReleaseTrain?: string; + extensionPrincipalId?: string; + instanceTypes?: { + [propertyName: string]: InstanceTypeSchema; + }; + namespace?: string; + relayConnectionString?: string; + serviceBusConnectionString?: string; + vcName?: string; +} + +// @public +export interface KubernetesSchema { + properties?: KubernetesProperties; +} + +// @public +export interface ListAmlUserFeatureResult { + readonly nextLink?: string; + readonly value?: AmlUserFeature[]; +} + +// @public (undocumented) +export interface ListNotebookKeysResult { + readonly primaryAccessKey?: string; + readonly secondaryAccessKey?: string; +} + +// @public (undocumented) +export interface ListStorageAccountKeysResult { + readonly userStorageKey?: string; +} + +// @public +export interface ListUsagesResult { + readonly nextLink?: string; + readonly value?: Usage[]; +} + +// @public +export type ListViewType = string; + +// @public (undocumented) +export interface ListWorkspaceKeysResult { + readonly appInsightsInstrumentationKey?: string; + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + readonly notebookAccessKeys?: ListNotebookKeysResult; + readonly userStorageKey?: string; + readonly userStorageResourceId?: string; +} + +// @public +export interface ListWorkspaceQuotas { + readonly nextLink?: string; + readonly value?: ResourceQuota[]; +} + +// @public +export type LiteralJobInput = JobInput & { + jobInputType: "literal"; + value: string; +}; + +// @public +export type LoadBalancerType = string; + +// @public +export type ManagedIdentity = IdentityConfiguration & { + identityType: "Managed"; + clientId?: string; + objectId?: string; + resourceId?: string; +}; + +// @public (undocumented) +export type ManagedIdentityAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + authType: "ManagedIdentity"; + credentials?: ManagedIdentityAutoGenerated; +}; + +// @public (undocumented) +export interface ManagedIdentityAutoGenerated { + // (undocumented) + clientId?: string; + // (undocumented) + resourceId?: string; +} + +// @public +export type ManagedOnlineDeployment = OnlineDeploymentDetails & {}; + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public +export type MedianStoppingPolicy = EarlyTerminationPolicy & { + policyType: "MedianStopping"; +}; + +// @public (undocumented) +export type MLFlowModelJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type MLFlowModelJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export type MLTableData = DataVersionBaseDetails & { + referencedUris?: string[]; +}; + +// @public (undocumented) +export type MLTableJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type MLTableJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export type ModelContainerData = Resource & { + properties: ModelContainerDetails; +}; + +// @public (undocumented) +export type ModelContainerDetails = AssetContainer & {}; + +// @public +export interface ModelContainerResourceArmPaginatedResult { + nextLink?: string; + value?: ModelContainerData[]; +} + +// @public +export interface ModelContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ModelContainerData, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersCreateOrUpdateResponse = ModelContainerData; + +// @public +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersGetResponse = ModelContainerData; + +// @public +export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { + count?: number; + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { + count?: number; + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export type ModelVersionData = Resource & { + properties: ModelVersionDetails; +}; + +// @public +export type ModelVersionDetails = AssetBase & { + flavors?: { + [propertyName: string]: FlavorData | null; + }; + jobName?: string; + modelType?: string; + modelUri?: string; +}; + +// @public +export interface ModelVersionResourceArmPaginatedResult { + nextLink?: string; + value?: ModelVersionData[]; +} + +// @public +export interface ModelVersions { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ModelVersionData, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsCreateOrUpdateResponse = ModelVersionData; + +// @public +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsGetResponse = ModelVersionData; + +// @public +export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { + description?: string; + feed?: string; + listViewType?: ListViewType; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + feed?: string; + listViewType?: ListViewType; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export type MountAction = string; + +// @public +export type MountState = string; + +// @public +export type Mpi = DistributionConfiguration & { + distributionType: "Mpi"; + processCountPerInstance?: number; +}; + +// @public +export interface NameAvailabilityResult { + message?: string; + nameAvailable?: boolean; + reason?: UnavailabilityReason; +} + +// @public +export type Network = string; + +// @public +export type NodeState = string; + +// @public +export interface NodeStateCounts { + readonly idleNodeCount?: number; + readonly leavingNodeCount?: number; + readonly preemptedNodeCount?: number; + readonly preparingNodeCount?: number; + readonly runningNodeCount?: number; + readonly unusableNodeCount?: number; +} + +// @public (undocumented) +export type NoneAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + authType: "None"; +}; + +// @public +export type NoneDatastoreCredentials = DatastoreCredentials & { + credentialsType: "None"; +}; + +// @public (undocumented) +export interface NotebookAccessTokenResult { + readonly accessToken?: string; + readonly expiresIn?: number; + readonly hostName?: string; + readonly notebookResourceId?: string; + readonly publicDns?: string; + readonly refreshToken?: string; + readonly scope?: string; + readonly tokenType?: string; +} + +// @public (undocumented) +export interface NotebookPreparationError { + // (undocumented) + errorMessage?: string; + // (undocumented) + statusCode?: number; +} + +// @public (undocumented) +export interface NotebookResourceInfo { + // (undocumented) + fqdn?: string; + notebookPreparationError?: NotebookPreparationError; + resourceId?: string; +} + +// @public +export interface Objective { + goal: Goal; + primaryMetric: string; +} + +// @public (undocumented) +export type OnlineDeploymentData = TrackedResource & { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineDeploymentDetailsUnion; + sku?: Sku; +}; + +// @public (undocumented) +export type OnlineDeploymentDetails = EndpointDeploymentPropertiesBase & { + appInsightsEnabled?: boolean; + endpointComputeType: EndpointComputeType; + instanceType?: string; + livenessProbe?: ProbeSettings; + model?: string; + modelMountPath?: string; + readonly provisioningState?: DeploymentProvisioningState; + readinessProbe?: ProbeSettings; + requestSettings?: OnlineRequestSettings; + scaleSettings?: OnlineScaleSettingsUnion; +}; + +// @public (undocumented) +export type OnlineDeploymentDetailsUnion = OnlineDeploymentDetails | KubernetesOnlineDeployment | ManagedOnlineDeployment; + +// @public +export interface OnlineDeployments { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeploymentData, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeploymentData, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialOnlineDeploymentPartialTrackedResource, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialOnlineDeploymentPartialTrackedResource, options?: OnlineDeploymentsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; + getLogs(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsListSkusOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentData; + +// @public +export interface OnlineDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +// @public +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetResponse = OnlineDeploymentData; + +// @public +export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentData; + +// @public +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineDeploymentData[]; +} + +// @public (undocumented) +export type OnlineEndpointData = TrackedResource & { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineEndpointDetails; + sku?: Sku; +}; + +// @public +export type OnlineEndpointDetails = EndpointPropertiesBase & { + compute?: string; + readonly provisioningState?: EndpointProvisioningState; + traffic?: { + [propertyName: string]: number; + }; +}; + +// @public +export interface OnlineEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpointData, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpointData, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; + beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialOnlineEndpointPartialTrackedResource, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialOnlineEndpointPartialTrackedResource, options?: OnlineEndpointsUpdateOptionalParams): Promise; + checkNameAvailability(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsCheckNameAvailabilityOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetOptionalParams): Promise; + getToken(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface OnlineEndpointsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsCheckNameAvailabilityResponse = NameAvailabilityResult; + +// @public +export interface OnlineEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointData; + +// @public +export interface OnlineEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsGetResponse = OnlineEndpointData; + +// @public +export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +// @public +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; + +// @public +export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineEndpointsUpdateResponse = OnlineEndpointData; + +// @public +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineEndpointData[]; +} + +// @public +export interface OnlineRequestSettings { + maxConcurrentRequestsPerInstance?: number; + maxQueueWait?: string; + requestTimeout?: string; +} + +// @public +export interface OnlineScaleSettings { + scaleType: "Default" | "TargetUtilization"; +} + +// @public (undocumented) +export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; + +// @public +export type OperatingSystemType = string; + +// @public +export type OperationName = string; + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = AmlOperationListResult; + +// @public +export type OperationStatus = string; + +// @public +export type OperationTrigger = string; + +// @public +export type OrderString = string; + +// @public +export type OsType = string; + +// @public +export type OutputDeliveryMode = string; + +// @public +export type OutputPathAssetReference = AssetReferenceBase & { + referenceType: "OutputPath"; + jobId?: string; + path?: string; +}; + +// @public +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; +} + +// @public +export interface PartialAssetReferenceBase { + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +// @public (undocumented) +export type PartialAssetReferenceBaseUnion = PartialAssetReferenceBase | PartialDataPathAssetReference | PartialIdAssetReference | PartialOutputPathAssetReference; + +// @public +export interface PartialBatchDeployment { + codeConfiguration?: PartialCodeConfiguration; + compute?: string; + description?: string; + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + errorThreshold?: number; + loggingLevel?: BatchLoggingLevel; + maxConcurrencyPerInstance?: number; + miniBatchSize?: number; + model?: PartialAssetReferenceBaseUnion; + outputAction?: BatchOutputAction; + outputFileName?: string; + properties?: { + [propertyName: string]: string | null; + }; + retrySettings?: PartialBatchRetrySettings; +} + +// @public +export interface PartialBatchDeploymentPartialTrackedResource { + identity?: PartialManagedServiceIdentity; + kind?: string; + location?: string; + properties?: PartialBatchDeployment; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface PartialBatchEndpoint { + defaults?: BatchEndpointDefaults; +} + +// @public +export interface PartialBatchEndpointPartialTrackedResource { + identity?: PartialManagedServiceIdentity; + kind?: string; + location?: string; + properties?: PartialBatchEndpoint; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface PartialBatchRetrySettings { + maxRetries?: number; + timeout?: string; +} + +// @public +export interface PartialCodeConfiguration { + codeId?: string; + scoringScript?: string; +} + +// @public +export type PartialDataPathAssetReference = PartialAssetReferenceBase & { + referenceType: "DataPath"; + datastoreId?: string; + path?: string; +}; + +// @public +export type PartialIdAssetReference = PartialAssetReferenceBase & { + referenceType: "Id"; + assetId?: string; +}; + +// @public +export type PartialKubernetesOnlineDeployment = PartialOnlineDeployment & { + endpointComputeType: "Kubernetes"; +}; + +// @public +export type PartialManagedOnlineDeployment = PartialOnlineDeployment & { + endpointComputeType: "Managed"; +}; + +// @public +export interface PartialManagedServiceIdentity { + type?: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: Record; + }; +} + +// @public +export interface PartialOnlineDeployment { + endpointComputeType: "Kubernetes" | "Managed"; +} + +// @public +export interface PartialOnlineDeploymentPartialTrackedResource { + identity?: PartialManagedServiceIdentity; + kind?: string; + location?: string; + properties?: PartialOnlineDeploymentUnion; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; +} + +// @public (undocumented) +export type PartialOnlineDeploymentUnion = PartialOnlineDeployment | PartialKubernetesOnlineDeployment | PartialManagedOnlineDeployment; + +// @public +export interface PartialOnlineEndpoint { + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface PartialOnlineEndpointPartialTrackedResource { + identity?: PartialManagedServiceIdentity; + kind?: string; + location?: string; + properties?: PartialOnlineEndpoint; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; +} + +// @public +export type PartialOutputPathAssetReference = PartialAssetReferenceBase & { + referenceType: "OutputPath"; + jobId?: string; + path?: string; +}; + +// @public +export interface PartialSku { + capacity?: number; + family?: string; + name?: string; + size?: string; + tier?: SkuTier; +} + +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; +} + +// @public (undocumented) +export type PATAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + authType: "PAT"; + credentials?: PersonalAccessToken; +}; + +// @public (undocumented) +export interface PersonalAccessToken { + // (undocumented) + pat?: string; +} + +// @public +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; +} + +// @public +export type PipelineJob = JobBaseDetails & { + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + jobs?: { + [propertyName: string]: Record; + }; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + settings?: Record; +}; + +// @public +export interface PrivateEndpoint { + readonly id?: string; + readonly subnetArmId?: string; +} + +// @public +export type PrivateEndpointConnection = Resource & { + identity?: ManagedServiceIdentity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; + +// @public +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +// @public +export type PrivateEndpointServiceConnectionStatus = string; + +// @public +export type PrivateLinkResource = Resource & { + identity?: ManagedServiceIdentity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly groupId?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; +}; + +// @public +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +} + +// @public +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; +} + +// @public +export type ProvisioningState = string; + +// @public +export type ProvisioningStatus = string; + +// @public +export type PublicNetworkAccess = string; + +// @public +export type PyTorch = DistributionConfiguration & { + distributionType: "PyTorch"; + processCountPerInstance?: number; +}; + +// @public +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; +} + +// @public +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +} + +// @public +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListNextResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +// @public +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; +} + +// @public +export type RandomSamplingAlgorithm = SamplingAlgorithm & { + samplingAlgorithmType: "Random"; + rule?: RandomSamplingAlgorithmRule; + seed?: number; +}; + +// @public +export type RandomSamplingAlgorithmRule = string; + +// @public +export type ReferenceType = string; + +// @public (undocumented) +export interface RegenerateEndpointKeysRequest { + keyType: KeyType_2; + keyValue?: string; +} + +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; +} + +// @public +export type RemoteLoginPortPublicAccess = string; + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public (undocumented) +export interface ResourceBase { + description?: string; + properties?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; +} + +// @public (undocumented) +export interface ResourceConfiguration { + instanceCount?: number; + instanceType?: string; + properties?: { + [propertyName: string]: Record; + }; +} + +// @public +export interface ResourceId { + id: string; +} + +// @public +export interface ResourceName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface ResourceQuota { + readonly amlWorkspaceLocation?: string; + readonly id?: string; + readonly limit?: number; + readonly name?: ResourceName; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public (undocumented) +export interface Route { + path: string; + port: number; +} + +// @public +export interface SamplingAlgorithm { + samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; +} + +// @public +export type SamplingAlgorithmType = string; + +// @public (undocumented) +export type SamplingAlgorithmUnion = SamplingAlgorithm | BayesianSamplingAlgorithm | GridSamplingAlgorithm | RandomSamplingAlgorithm; + +// @public (undocumented) +export type SASAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + authType: "SAS"; + credentials?: SharedAccessSignature; +}; + +// @public +export type SasDatastoreCredentials = DatastoreCredentials & { + credentialsType: "Sas"; + secrets: SasDatastoreSecrets; +}; + +// @public +export type SasDatastoreSecrets = DatastoreSecrets & { + secretsType: "Sas"; + sasToken?: string; +}; + +// @public +export interface ScaleSettings { + maxNodeCount: number; + minNodeCount?: number; + nodeIdleTimeBeforeScaleDown?: string; +} + +// @public +export interface ScaleSettingsInformation { + scaleSettings?: ScaleSettings; +} + +// @public +export type ScaleType = string; + +// @public (undocumented) +export interface ScheduleBase { + // (undocumented) + id?: string; + // (undocumented) + provisioningStatus?: ScheduleProvisioningState; + // (undocumented) + status?: ScheduleStatus; +} + +// @public +export type ScheduleProvisioningState = string; + +// @public +export type ScheduleStatus = string; + +// @public +export interface ScriptReference { + scriptArguments?: string; + scriptData?: string; + scriptSource?: string; + timeout?: string; +} + +// @public +export interface ScriptsToExecute { + creationScript?: ScriptReference; + startupScript?: ScriptReference; +} + +// @public +export type SecretsType = string; + +// @public +export type ServiceDataAccessAuthIdentity = string; + +// @public (undocumented) +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; +} + +// @public +export type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { + credentialsType: "ServicePrincipal"; + authorityUrl?: string; + clientId: string; + resourceUrl?: string; + secrets: ServicePrincipalDatastoreSecrets; + tenantId: string; +}; + +// @public +export type ServicePrincipalDatastoreSecrets = DatastoreSecrets & { + secretsType: "ServicePrincipal"; + clientSecret?: string; +}; + +// @public +export interface SetupScripts { + scripts?: ScriptsToExecute; +} + +// @public (undocumented) +export interface SharedAccessSignature { + // (undocumented) + sas?: string; +} + +// @public (undocumented) +export interface SharedPrivateLinkResource { + groupId?: string; + name?: string; + privateLinkResourceId?: string; + requestMessage?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface Sku { + capacity?: number; + family?: string; + name: string; + size?: string; + tier?: SkuTier; +} + +// @public +export interface SkuCapacity { + default?: number; + maximum?: number; + minimum?: number; + scaleType?: SkuScaleType; +} + +// @public +export interface SkuResource { + capacity?: SkuCapacity; + readonly resourceType?: string; + sku?: SkuSetting; +} + +// @public +export interface SkuResourceArmPaginatedResult { + nextLink?: string; + value?: SkuResource[]; +} + +// @public +export type SkuScaleType = string; + +// @public +export interface SkuSetting { + name: string; + tier?: SkuTier; +} + +// @public +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; + +// @public +export type SourceType = string; + +// @public +export type SshPublicAccess = string; + +// @public +export interface SslConfiguration { + cert?: string; + cname?: string; + key?: string; + leafDomainLabel?: string; + overwriteExistingDomain?: boolean; + status?: SslConfigurationStatus; } +// @public +export type SslConfigurationStatus = string; + +// @public +export type Status = string; + +// @public +export type StorageAccountType = string; + +// @public +export type SweepJob = JobBaseDetails & { + earlyTermination?: EarlyTerminationPolicyUnion; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + limits?: SweepJobLimits; + objective: Objective; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + samplingAlgorithm: SamplingAlgorithmUnion; + searchSpace: Record; + trial: TrialComponent; +}; + +// @public +export type SweepJobLimits = JobLimits & { + jobLimitsType: "Sweep"; + maxConcurrentTrials?: number; + maxTotalTrials?: number; + trialTimeout?: string; +}; + +// @public +export type SynapseSpark = Compute & { + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; +}; + // @public (undocumented) -export class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MachineLearningWorkspacesManagementClientOptionalParams); - // (undocumented) - apiVersion: string; +export interface SynapseSparkProperties { + autoPauseProperties?: AutoPauseProperties; + autoScaleProperties?: AutoScaleProperties; + nodeCount?: number; + nodeSize?: string; + nodeSizeFamily?: string; + poolName?: string; + resourceGroup?: string; + sparkVersion?: string; + subscriptionId?: string; + workspaceName?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface SystemService { + readonly publicIpAddress?: string; + readonly systemServiceType?: string; + readonly version?: string; +} + +// @public (undocumented) +export type TargetUtilizationScaleSettings = OnlineScaleSettings & { + scaleType: "TargetUtilization"; + maxInstances?: number; + minInstances?: number; + pollingInterval?: string; + targetUtilizationPercentage?: number; +}; + +// @public +export type TensorFlow = DistributionConfiguration & { + distributionType: "TensorFlow"; + parameterServerCount?: number; + workerCount?: number; +}; + +// @public +export type TrackedResource = Resource & { + tags?: { + [propertyName: string]: string; + }; + location: string; +}; + +// @public +export interface TrialComponent { + codeId?: string; + command: string; + distribution?: DistributionConfigurationUnion; + environmentId: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + resources?: ResourceConfiguration; +} + +// @public (undocumented) +export type TritonModelJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type TritonModelJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export type TruncationSelectionPolicy = EarlyTerminationPolicy & { + policyType: "TruncationSelection"; + truncationPercentage?: number; +}; + +// @public +export type UnavailabilityReason = string; + +// @public +export type UnderlyingResourceAction = string; + +// @public +export type UnitOfMeasure = string; + +// @public +export interface UpdateWorkspaceQuotas { + readonly id?: string; + limit?: number; + status?: Status; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public +export interface UpdateWorkspaceQuotasResult { + readonly nextLink?: string; + readonly value?: UpdateWorkspaceQuotas[]; +} + +// @public +export type UriFileDataVersion = DataVersionBaseDetails & {}; + +// @public (undocumented) +export type UriFileJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type UriFileJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export type UriFolderDataVersion = DataVersionBaseDetails & {}; + +// @public (undocumented) +export type UriFolderJobInput = AssetJobInput & JobInput & {}; + +// @public (undocumented) +export type UriFolderJobOutput = AssetJobOutput & JobOutput & {}; + +// @public +export interface Usage { + readonly amlWorkspaceLocation?: string; + readonly currentValue?: number; + readonly id?: string; + readonly limit?: number; + readonly name?: UsageName; + readonly type?: string; + readonly unit?: UsageUnit; +} + +// @public +export interface UsageName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface Usages { + list(location: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface UsagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListNextResponse = ListUsagesResult; + +// @public +export interface UsagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListResponse = ListUsagesResult; + +// @public +export type UsageUnit = string; + +// @public +export interface UserAccountCredentials { + adminUserName: string; + adminUserPassword?: string; + adminUserSshPublicKey?: string; +} + +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export type UserIdentity = IdentityConfiguration & { + identityType: "UserIdentity"; +}; + +// @public (undocumented) +export interface UsernamePassword { // (undocumented) - operations: Operations; + password?: string; // (undocumented) - subscriptionId: string; + username?: string; +} + +// @public (undocumented) +export type UsernamePasswordAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + authType: "UsernamePassword"; + credentials?: UsernamePassword; +}; + +// @public +export type ValueFormat = string; + +// @public +export type VirtualMachine = Compute & VirtualMachineSchema & { + computeType: "VirtualMachine"; +}; + +// @public +export interface VirtualMachineImage { + id: string; +} + +// @public (undocumented) +export interface VirtualMachineSchema { // (undocumented) - workspaces: Workspaces; + properties?: VirtualMachineSchemaProperties; +} + +// @public (undocumented) +export interface VirtualMachineSchemaProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + isNotebookInstanceCompute?: boolean; + notebookServerPort?: number; + sshPort?: number; + virtualMachineSize?: string; } // @public -export interface MachineLearningWorkspacesManagementClientOptionalParams extends coreClient.ServiceClientOptions { - $host?: string; - apiVersion?: string; - endpoint?: string; +export type VirtualMachineSecrets = ComputeSecrets & VirtualMachineSecretsSchema & { + computeType: "VirtualMachine"; +}; + +// @public (undocumented) +export interface VirtualMachineSecretsSchema { + administratorAccount?: VirtualMachineSshCredentials; } // @public -export interface Operation { - display?: OperationDisplay; - name?: string; +export interface VirtualMachineSize { + estimatedVMPrices?: EstimatedVMPrices; + readonly family?: string; + readonly gpus?: number; + readonly lowPriorityCapable?: boolean; + readonly maxResourceVolumeMB?: number; + readonly memoryGB?: number; + readonly name?: string; + readonly osVhdSizeMB?: number; + readonly premiumIO?: boolean; + supportedComputeTypes?: string[]; + readonly vCPUs?: number; } // @public -export interface OperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; +export interface VirtualMachineSizeListResult { + value?: VirtualMachineSize[]; } // @public -export interface OperationListResult { - value?: Operation[]; +export interface VirtualMachineSizes { + list(location: string, options?: VirtualMachineSizesListOptionalParams): Promise; } // @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +export interface VirtualMachineSizesListOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +// @public +export interface VirtualMachineSshCredentials { + password?: string; + privateKeyData?: string; + publicKeyData?: string; + username?: string; } // @public -export type OperationsListResponse = OperationListResult; +export type VMPriceOSType = string; // @public -export interface Resource { - readonly id?: string; - location: string; - readonly name?: string; - sku?: Sku; +export type VmPriority = string; + +// @public +export type VMTier = string; + +// @public +export type Workspace = Resource & { + identity?: ManagedServiceIdentity; + location?: string; tags?: { [propertyName: string]: string; }; - readonly type?: string; + sku?: Sku; + readonly workspaceId?: string; + description?: string; + friendlyName?: string; + keyVault?: string; + applicationInsights?: string; + containerRegistry?: string; + storageAccount?: string; + discoveryUrl?: string; + readonly provisioningState?: ProvisioningState; + encryption?: EncryptionProperty; + hbiWorkspace?: boolean; + readonly serviceProvisionedResourceGroup?: string; + readonly privateLinkCount?: number; + imageBuildCompute?: string; + allowPublicAccessWhenBehindVnet?: boolean; + publicNetworkAccess?: PublicNetworkAccess; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly notebookInfo?: NotebookResourceInfo; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + primaryUserAssignedIdentity?: string; + readonly tenantId?: string; + readonly storageHnsEnabled?: boolean; + readonly mlFlowTrackingUri?: string; +}; + +// @public (undocumented) +export interface WorkspaceConnectionPropertiesV2 { + authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; + category?: ConnectionCategory; + // (undocumented) + target?: string; + value?: string; + valueFormat?: ValueFormat; +} + +// @public (undocumented) +export type WorkspaceConnectionPropertiesV2BasicResource = Resource & { + properties: WorkspaceConnectionPropertiesV2Union; +}; + +// @public (undocumented) +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + readonly nextLink?: string; + // (undocumented) + value?: WorkspaceConnectionPropertiesV2BasicResource[]; } +// @public (undocumented) +export type WorkspaceConnectionPropertiesV2Union = WorkspaceConnectionPropertiesV2 | PATAuthTypeWorkspaceConnectionProperties | SASAuthTypeWorkspaceConnectionProperties | UsernamePasswordAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties; + // @public -export interface Sku { - name?: string; - tier?: string; +export interface WorkspaceConnections { + // (undocumented) + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: WorkspaceConnectionPropertiesV2BasicResource, options?: WorkspaceConnectionsCreateOptionalParams): Promise; + // (undocumented) + delete(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams): Promise; + // (undocumented) + get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsGetOptionalParams): Promise; + // (undocumented) + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export type Workspace = Resource & { - userStorageAccountId?: string; - ownerEmail?: string; - readonly workspaceType?: WorkspaceType; - readonly workspaceState?: WorkspaceState; - readonly workspaceId?: string; - readonly creationTime?: string; - readonly studioEndpoint?: string; - keyVaultIdentifierId?: string; -}; +export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface WorkspaceKeysResponse { - primaryToken?: string; - secondaryToken?: string; +export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions { + category?: string; + target?: string; +} + +// @public +export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +// @public +export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { + category?: string; + target?: string; +} + +// @public +export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +// @public +export interface WorkspaceFeatures { + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceFeaturesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceFeaturesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +// @public +export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions { } +// @public +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + // @public export interface WorkspaceListResult { nextLink?: string; @@ -111,18 +4800,32 @@ export interface WorkspaceListResult { // @public export interface Workspaces { - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + beginDiagnose(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise, WorkspacesDiagnoseResponse>>; + beginDiagnoseAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise; + beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise, WorkspacesPrepareNotebookResponse>>; + beginPrepareNotebookAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise; + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; + beginResyncKeysAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; - list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listWorkspaceKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesListWorkspaceKeysOptionalParams): Promise; - resyncStorageKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesResyncStorageKeysOptionalParams): Promise; - update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; + listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListKeysOptionalParams): Promise; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookAccessTokenOptionalParams): Promise; + listNotebookKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookKeysOptionalParams): Promise; + listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, workspaceName: string, options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams): Promise; + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; } // @public export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -130,8 +4833,26 @@ export type WorkspacesCreateOrUpdateResponse = Workspace; // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesDiagnoseHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { + parameters?: DiagnoseWorkspaceParameters; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; + // @public export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { } @@ -141,6 +4862,7 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public @@ -148,57 +4870,102 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; // @public -export interface WorkspacesListNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public -export type WorkspacesListNextResponse = WorkspaceListResult; +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; // @public -export interface WorkspacesListOptionalParams extends coreClient.OperationOptions { +export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public -export type WorkspacesListResponse = WorkspaceListResult; +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; // @public -export interface WorkspacesListWorkspaceKeysOptionalParams extends coreClient.OperationOptions { +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type WorkspacesListWorkspaceKeysResponse = WorkspaceKeysResponse; +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; // @public -export interface WorkspacesResyncStorageKeysOptionalParams extends coreClient.OperationOptions { +export interface WorkspacesListNotebookAccessTokenOptionalParams extends coreClient.OperationOptions { } // @public -export type WorkspaceState = "Deleted" | "Enabled" | "Disabled" | "Migrated" | "Updated" | "Registered" | "Unregistered"; +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; // @public -export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspacesListNotebookKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type WorkspacesUpdateResponse = Workspace; +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; + +// @public +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; + +// @public +export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClient.OperationOptions { +} // @public -export type WorkspaceType = "Production" | "Free" | "Anonymous" | "PaidStandard" | "PaidPremium"; +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; + +// @public +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; + +// @public +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesUpdateResponse = Workspace; // @public export interface WorkspaceUpdateParameters { - keyVaultIdentifierId?: string; + applicationInsights?: string; + containerRegistry?: string; + description?: string; + friendlyName?: string; + identity?: ManagedServiceIdentity; + imageBuildCompute?: string; + primaryUserAssignedIdentity?: string; + publicNetworkAccess?: PublicNetworkAccess; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; sku?: Sku; tags?: { [propertyName: string]: string; }; - workspaceState?: WorkspaceState; } // (No @packageDocumentation comment for this package) diff --git a/sdk/machinelearning/arm-workspaces/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-workspaces/src/azureMachineLearningWorkspaces.ts new file mode 100644 index 000000000000..4e8d91cd4988 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/azureMachineLearningWorkspaces.ts @@ -0,0 +1,179 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { + BatchEndpointsImpl, + BatchDeploymentsImpl, + CodeContainersImpl, + CodeVersionsImpl, + ComponentContainersImpl, + ComponentVersionsImpl, + DataContainersImpl, + DataVersionsImpl, + DatastoresImpl, + EnvironmentContainersImpl, + EnvironmentVersionsImpl, + JobsImpl, + ModelContainersImpl, + ModelVersionsImpl, + OnlineEndpointsImpl, + OnlineDeploymentsImpl, + OperationsImpl, + WorkspacesImpl, + UsagesImpl, + VirtualMachineSizesImpl, + QuotasImpl, + ComputeOperationsImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + WorkspaceConnectionsImpl, + WorkspaceFeaturesImpl +} from "./operations"; +import { + BatchEndpoints, + BatchDeployments, + CodeContainers, + CodeVersions, + ComponentContainers, + ComponentVersions, + DataContainers, + DataVersions, + Datastores, + EnvironmentContainers, + EnvironmentVersions, + Jobs, + ModelContainers, + ModelVersions, + OnlineEndpoints, + OnlineDeployments, + Operations, + Workspaces, + Usages, + VirtualMachineSizes, + Quotas, + ComputeOperations, + PrivateEndpointConnections, + PrivateLinkResources, + WorkspaceConnections, + WorkspaceFeatures +} from "./operationsInterfaces"; +import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; + +export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { + $host: string; + subscriptionId: string; + apiVersion: string; + + /** + * Initializes a new instance of the AzureMachineLearningWorkspaces class. + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options + */ + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: AzureMachineLearningWorkspacesOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: AzureMachineLearningWorkspacesOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-workspaces/2.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2022-05-01"; + this.batchEndpoints = new BatchEndpointsImpl(this); + this.batchDeployments = new BatchDeploymentsImpl(this); + this.codeContainers = new CodeContainersImpl(this); + this.codeVersions = new CodeVersionsImpl(this); + this.componentContainers = new ComponentContainersImpl(this); + this.componentVersions = new ComponentVersionsImpl(this); + this.dataContainers = new DataContainersImpl(this); + this.dataVersions = new DataVersionsImpl(this); + this.datastores = new DatastoresImpl(this); + this.environmentContainers = new EnvironmentContainersImpl(this); + this.environmentVersions = new EnvironmentVersionsImpl(this); + this.jobs = new JobsImpl(this); + this.modelContainers = new ModelContainersImpl(this); + this.modelVersions = new ModelVersionsImpl(this); + this.onlineEndpoints = new OnlineEndpointsImpl(this); + this.onlineDeployments = new OnlineDeploymentsImpl(this); + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.usages = new UsagesImpl(this); + this.virtualMachineSizes = new VirtualMachineSizesImpl(this); + this.quotas = new QuotasImpl(this); + this.computeOperations = new ComputeOperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + } + + batchEndpoints: BatchEndpoints; + batchDeployments: BatchDeployments; + codeContainers: CodeContainers; + codeVersions: CodeVersions; + componentContainers: ComponentContainers; + componentVersions: ComponentVersions; + dataContainers: DataContainers; + dataVersions: DataVersions; + datastores: Datastores; + environmentContainers: EnvironmentContainers; + environmentVersions: EnvironmentVersions; + jobs: Jobs; + modelContainers: ModelContainers; + modelVersions: ModelVersions; + onlineEndpoints: OnlineEndpoints; + onlineDeployments: OnlineDeployments; + operations: Operations; + workspaces: Workspaces; + usages: Usages; + virtualMachineSizes: VirtualMachineSizes; + quotas: Quotas; + computeOperations: ComputeOperations; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + workspaceConnections: WorkspaceConnections; + workspaceFeatures: WorkspaceFeatures; +} diff --git a/sdk/machinelearning/arm-workspaces/src/index.ts b/sdk/machinelearning/arm-workspaces/src/index.ts index 8148c8d031f5..47f9061306b0 100644 --- a/sdk/machinelearning/arm-workspaces/src/index.ts +++ b/sdk/machinelearning/arm-workspaces/src/index.ts @@ -8,5 +8,5 @@ /// export * from "./models"; -export { MachineLearningWorkspacesManagementClient } from "./machineLearningWorkspacesManagementClient"; +export { AzureMachineLearningWorkspaces } from "./azureMachineLearningWorkspaces"; export * from "./operationsInterfaces"; diff --git a/sdk/machinelearning/arm-workspaces/src/lroImpl.ts b/sdk/machinelearning/arm-workspaces/src/lroImpl.ts new file mode 100644 index 000000000000..518d5f053b4e --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/lroImpl.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; + +export class LroImpl implements LongRunningOperation { + constructor( + private sendOperationFn: (args: any, spec: any) => Promise>, + private args: Record, + private spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record, + public requestPath: string = spec.path!, + public requestMethod: string = spec.httpMethod + ) {} + public async sendInitialRequest(): Promise> { + return this.sendOperationFn(this.args, this.spec); + } + public async sendPollRequest(path: string): Promise> { + const { requestBody, ...restSpec } = this.spec; + return this.sendOperationFn(this.args, { + ...restSpec, + path, + httpMethod: "GET" + }); + } +} diff --git a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts b/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts deleted file mode 100644 index 9b11a64bdd95..000000000000 --- a/sdk/machinelearning/arm-workspaces/src/machineLearningWorkspacesManagementClient.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreAuth from "@azure/core-auth"; -import { OperationsImpl, WorkspacesImpl } from "./operations"; -import { Operations, Workspaces } from "./operationsInterfaces"; -import { MachineLearningWorkspacesManagementClientOptionalParams } from "./models"; - -export class MachineLearningWorkspacesManagementClient extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the MachineLearningWorkspacesManagementClient class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The Microsoft Azure subscription ID. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: MachineLearningWorkspacesManagementClientOptionalParams - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: MachineLearningWorkspacesManagementClientOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - - const packageDetails = `azsdk-js-arm-workspaces/1.0.0`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - baseUri: options.endpoint || "https://management.azure.com" - }; - super(optionsWithDefaults); - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2019-10-01"; - this.operations = new OperationsImpl(this); - this.workspaces = new WorkspacesImpl(this); - } - - operations: Operations; - workspaces: Workspaces; -} diff --git a/sdk/machinelearning/arm-workspaces/src/models/index.ts b/sdk/machinelearning/arm-workspaces/src/models/index.ts index 86c5dec660ac..558f91cfc489 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/index.ts +++ b/sdk/machinelearning/arm-workspaces/src/models/index.ts @@ -8,158 +8,6212 @@ import * as coreClient from "@azure/core-client"; +export type AssetReferenceBaseUnion = + | AssetReferenceBase + | DataPathAssetReference + | IdAssetReference + | OutputPathAssetReference; +export type PartialAssetReferenceBaseUnion = + | PartialAssetReferenceBase + | PartialDataPathAssetReference + | PartialIdAssetReference + | PartialOutputPathAssetReference; +export type DatastoreCredentialsUnion = + | DatastoreCredentials + | AccountKeyDatastoreCredentials + | CertificateDatastoreCredentials + | NoneDatastoreCredentials + | SasDatastoreCredentials + | ServicePrincipalDatastoreCredentials; +export type DatastoreSecretsUnion = + | DatastoreSecrets + | AccountKeyDatastoreSecrets + | CertificateDatastoreSecrets + | SasDatastoreSecrets + | ServicePrincipalDatastoreSecrets; +export type IdentityConfigurationUnion = + | IdentityConfiguration + | AmlToken + | ManagedIdentity + | UserIdentity; +export type OnlineScaleSettingsUnion = + | OnlineScaleSettings + | DefaultScaleSettings + | TargetUtilizationScaleSettings; +export type PartialOnlineDeploymentUnion = + | PartialOnlineDeployment + | PartialKubernetesOnlineDeployment + | PartialManagedOnlineDeployment; +export type ComputeUnion = + | Compute + | Aks + | Kubernetes + | AmlCompute + | ComputeInstance + | VirtualMachine + | HDInsight + | DataFactory + | Databricks + | DataLakeAnalytics + | SynapseSpark; +export type ComputeSecretsUnion = + | ComputeSecrets + | AksComputeSecrets + | VirtualMachineSecrets + | DatabricksComputeSecrets; +export type WorkspaceConnectionPropertiesV2Union = + | WorkspaceConnectionPropertiesV2 + | PATAuthTypeWorkspaceConnectionProperties + | SASAuthTypeWorkspaceConnectionProperties + | UsernamePasswordAuthTypeWorkspaceConnectionProperties + | NoneAuthTypeWorkspaceConnectionProperties + | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type EarlyTerminationPolicyUnion = + | EarlyTerminationPolicy + | BanditPolicy + | MedianStoppingPolicy + | TruncationSelectionPolicy; +export type SamplingAlgorithmUnion = + | SamplingAlgorithm + | BayesianSamplingAlgorithm + | GridSamplingAlgorithm + | RandomSamplingAlgorithm; +export type DistributionConfigurationUnion = + | DistributionConfiguration + | Mpi + | PyTorch + | TensorFlow; +export type JobInputUnion = + | JobInput + | CustomModelJobInput + | LiteralJobInput + | MLFlowModelJobInput + | MLTableJobInput + | TritonModelJobInput + | UriFileJobInput + | UriFolderJobInput; +export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; +export type JobOutputUnion = + | JobOutput + | CustomModelJobOutput + | MLFlowModelJobOutput + | MLTableJobOutput + | TritonModelJobOutput + | UriFileJobOutput + | UriFolderJobOutput; +export type OnlineDeploymentDetailsUnion = + | OnlineDeploymentDetails + | KubernetesOnlineDeployment + | ManagedOnlineDeployment; +export type DatastoreDetailsUnion = + | DatastoreDetails + | AzureBlobDatastore + | AzureDataLakeGen1Datastore + | AzureDataLakeGen2Datastore + | AzureFileDatastore; +export type JobBaseDetailsUnion = + | JobBaseDetails + | CommandJob + | PipelineJob + | SweepJob; +export type DataVersionBaseDetailsUnion = + | DataVersionBaseDetails + | MLTableData + | UriFileDataVersion + | UriFolderDataVersion; + +/** A paginated list of BatchEndpoint entities. */ +export interface BatchEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchEndpoint. */ + value?: BatchEndpointData[]; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { + /** + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { + /** + * The principal ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client ID of the assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + +/** Batch endpoint default values */ +export interface BatchEndpointDefaults { + /** + * Name of the deployment that will be default for the endpoint. + * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. + */ + deploymentName?: string; +} + +/** Inference Endpoint base definition */ +export interface EndpointPropertiesBase { + /** [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. */ + authMode: EndpointAuthMode; + /** Description of the inference endpoint. */ + description?: string; + /** + * EndpointAuthKeys to set initially on an Endpoint. + * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + */ + keys?: EndpointAuthKeys; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; + /** + * Endpoint URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scoringUri?: string; + /** + * Endpoint Swagger URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly swaggerUri?: string; +} + +/** Keys for endpoint authentication. */ +export interface EndpointAuthKeys { + /** The primary key. */ + primaryKey?: string; + /** The secondary key. */ + secondaryKey?: string; +} + +/** The resource model definition representing SKU */ +export interface Sku { + /** The name of the SKU. Ex - P3. It is typically a letter+number code */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** Strictly used in update requests. */ +export interface PartialBatchEndpointPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialBatchEndpoint; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface PartialManagedServiceIdentity { + /** Managed service identity (system assigned and/or user assigned identities) */ + type?: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: Record }; +} + +/** Mutable Batch endpoint configuration */ +export interface PartialBatchEndpoint { + /** Default values for Batch Endpoint */ + defaults?: BatchEndpointDefaults; +} + +/** Common SKU definition. */ +export interface PartialSku { + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** The name of the SKU. Ex - P3. It is typically a letter+number code. */ + name?: string; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; +} + +/** Whether or not an endpoint name is available or not. If not available, the reason will be provided. */ +export interface NameAvailabilityResult { + /** Specific message for why name is unavailable. Only set when NameAvailable = false. */ + message?: string; + /** Whether or not an endpoint name is available or not. If it is available, it is valid and unique in the region. */ + nameAvailable?: boolean; + /** Reason for why name is unavailable. Only set when NameAvailable = false. For example: NameExists,Invalid. */ + reason?: UnavailabilityReason; +} + +/** A paginated list of BatchDeployment entities. */ +export interface BatchDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchDeployment. */ + value?: BatchDeploymentData[]; +} + +/** Base definition for asset references. */ +export interface AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +export interface ResourceConfiguration { + /** Optional number of instances or nodes used by the compute target. */ + instanceCount?: number; + /** Optional type of VM used as supported by the compute target. */ + instanceType?: string; + /** Additional properties bag. */ + properties?: { [propertyName: string]: Record }; +} + +/** Retry settings for a batch inference operation. */ +export interface BatchRetrySettings { + /** Maximum retry count for a mini-batch */ + maxRetries?: number; + /** Invocation timeout for a mini-batch, in ISO 8601 format. */ + timeout?: string; +} + +/** Base definition for endpoint deployment. */ +export interface EndpointDeploymentPropertiesBase { + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: CodeConfiguration; + /** Description of the endpoint deployment. */ + description?: string; + /** ARM resource ID of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; +} + +/** Configuration for a scoring code asset. */ +export interface CodeConfiguration { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The script to execute on startup. eg. "score.py" */ + scoringScript: string; +} + +/** Strictly used in update requests. */ +export interface PartialBatchDeploymentPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialBatchDeployment; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** Mutable batch inference settings per deployment. */ +export interface PartialBatchDeployment { + /** Code configuration for the endpoint deployment. */ + codeConfiguration?: PartialCodeConfiguration; + /** Compute binding definition. */ + compute?: string; + /** Description of the endpoint deployment. */ + description?: string; + /** ARM resource ID of the environment specification for the endpoint deployment. */ + environmentId?: string; + /** Environment variables configuration for the deployment. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** + * Error threshold, if the error count for the entire input goes above this value, + * the batch inference will be aborted. Range is [-1, int.MaxValue]. + * For FileDataset, this value is the count of file failures. + * For TabularDataset, this value is the count of record failures. + * If set to -1 (the lower bound), all failures during batch inference will be ignored. + */ + errorThreshold?: number; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** Indicates number of processes per instance */ + maxConcurrencyPerInstance?: number; + /** + * Size of the mini-batch passed to each batch invocation. + * For FileDataset, this is the number of files per mini-batch. + * For TabularDataset, this is the size of the records in bytes, per mini-batch. + */ + miniBatchSize?: number; + /** Reference to the model asset for the endpoint deployment. */ + model?: PartialAssetReferenceBaseUnion; + /** Indicates how the output will be organized. */ + outputAction?: BatchOutputAction; + /** Customized output file name for append_row output action. */ + outputFileName?: string; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; + /** Retry Settings for the batch inference operation. */ + retrySettings?: PartialBatchRetrySettings; +} + +/** Configuration for a scoring code asset. */ +export interface PartialCodeConfiguration { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** The script to execute on startup. eg. "score.py" */ + scoringScript?: string; +} + +/** Base definition for asset references. */ +export interface PartialAssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "DataPath" | "Id" | "OutputPath"; +} + +/** Retry settings for a batch inference operation. */ +export interface PartialBatchRetrySettings { + /** Maximum retry count for a mini-batch */ + maxRetries?: number; + /** Invocation timeout for a mini-batch, in ISO 8601 format. */ + timeout?: string; +} + +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainerData[]; +} + +export interface ResourceBase { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; +} + +/** A paginated list of CodeVersion entities. */ +export interface CodeVersionResourceArmPaginatedResult { + /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersionData[]; +} + +/** A paginated list of ComponentContainer entities. */ +export interface ComponentContainerResourceArmPaginatedResult { + /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentContainer. */ + value?: ComponentContainerData[]; +} + +/** A paginated list of ComponentVersion entities. */ +export interface ComponentVersionResourceArmPaginatedResult { + /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentVersion. */ + value?: ComponentVersionData[]; +} + +/** A paginated list of DataContainer entities. */ +export interface DataContainerResourceArmPaginatedResult { + /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataContainer. */ + value?: DataContainerData[]; +} + +/** A paginated list of DataVersionBase entities. */ +export interface DataVersionBaseResourceArmPaginatedResult { + /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataVersionBase. */ + value?: DataVersionBaseData[]; +} + +/** A paginated list of Datastore entities. */ +export interface DatastoreResourceArmPaginatedResult { + /** The link to the next page of Datastore objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Datastore. */ + value?: DatastoreData[]; +} + +/** Base definition for datastore credentials. */ +export interface DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: + | "AccountKey" + | "Certificate" + | "None" + | "Sas" + | "ServicePrincipal"; +} + +/** Base definition for datastore secrets. */ +export interface DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; +} + +/** A paginated list of EnvironmentContainer entities. */ +export interface EnvironmentContainerResourceArmPaginatedResult { + /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentContainer. */ + value?: EnvironmentContainerData[]; +} + +/** A paginated list of EnvironmentVersion entities. */ +export interface EnvironmentVersionResourceArmPaginatedResult { + /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentVersion. */ + value?: EnvironmentVersionData[]; +} + +/** Configuration settings for Docker build context */ +export interface BuildContext { + /** + * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. + * + */ + contextUri: string; + /** + * Path to the Dockerfile in the build context. + * + */ + dockerfilePath?: string; +} + +export interface InferenceContainerProperties { + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; +} + +export interface Route { + /** [Required] The path for the route. */ + path: string; + /** [Required] The port for the route. */ + port: number; +} + +/** A paginated list of JobBase entities. */ +export interface JobBaseResourceArmPaginatedResult { + /** The link to the next page of JobBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type JobBase. */ + value?: JobBaseData[]; +} + +/** Base definition for identity configuration. */ +export interface IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken" | "Managed" | "UserIdentity"; +} + +/** Job endpoint definition */ +export interface JobService { + /** Url for endpoint. */ + endpoint?: string; + /** + * Any error in the service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; + /** Endpoint type. */ + jobServiceType?: string; + /** Port for endpoint. */ + port?: number; + /** Additional properties to set on the endpoint. */ + properties?: { [propertyName: string]: string | null }; + /** + * Status of endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; +} + +/** A paginated list of ModelContainer entities. */ +export interface ModelContainerResourceArmPaginatedResult { + /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelContainer. */ + value?: ModelContainerData[]; +} + +/** A paginated list of ModelVersion entities. */ +export interface ModelVersionResourceArmPaginatedResult { + /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelVersion. */ + value?: ModelVersionData[]; +} + +export interface FlavorData { + /** Model flavor-specific data. */ + data?: { [propertyName: string]: string | null }; +} + +/** A paginated list of OnlineEndpoint entities. */ +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineEndpoint. */ + value?: OnlineEndpointData[]; +} + +/** Strictly used in update requests. */ +export interface PartialOnlineEndpointPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialOnlineEndpoint; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** Mutable online endpoint configuration */ +export interface PartialOnlineEndpoint { + /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ + traffic?: { [propertyName: string]: number }; +} + +/** A paginated list of OnlineDeployment entities. */ +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineDeployment. */ + value?: OnlineDeploymentData[]; +} + +/** Deployment container liveness/readiness probe configuration. */ +export interface ProbeSettings { + /** The number of failures to allow before returning an unhealthy status. */ + failureThreshold?: number; + /** The delay before the first probe in ISO 8601 format. */ + initialDelay?: string; + /** The length of time between probes in ISO 8601 format. */ + period?: string; + /** The number of successful probes before returning a healthy status. */ + successThreshold?: number; + /** The probe timeout in ISO 8601 format. */ + timeout?: string; +} + +/** Online deployment scoring requests configuration. */ +export interface OnlineRequestSettings { + /** The number of maximum concurrent requests per node allowed per deployment. Defaults to 1. */ + maxConcurrentRequestsPerInstance?: number; + /** + * The maximum amount of time a request will stay in the queue in ISO 8601 format. + * Defaults to 500ms. + */ + maxQueueWait?: string; + /** + * The scoring timeout in ISO 8601 format. + * Defaults to 5000ms. + */ + requestTimeout?: string; +} + +/** Online deployment scaling configuration. */ +export interface OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default" | "TargetUtilization"; +} + +/** Strictly used in update requests. */ +export interface PartialOnlineDeploymentPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** The geo-location where the resource lives. */ + location?: string; + /** Additional attributes of the entity. */ + properties?: PartialOnlineDeploymentUnion; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** Mutable online deployment configuration */ +export interface PartialOnlineDeployment { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Kubernetes" | "Managed"; +} + +export interface DeploymentLogsRequest { + /** The type of container to retrieve logs from. */ + containerType?: ContainerType; + /** The maximum number of lines to tail. */ + tail?: number; +} + +export interface DeploymentLogs { + /** The retrieved online deployment logs. */ + content?: string; +} + +/** A paginated list of SkuResource entities. */ +export interface SkuResourceArmPaginatedResult { + /** The link to the next page of SkuResource objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type SkuResource. */ + value?: SkuResource[]; +} + +/** Fulfills ARM Contract requirement to list all available SKUS for a resource. */ +export interface SkuResource { + /** Gets or sets the Sku Capacity. */ + capacity?: SkuCapacity; + /** + * The resource type name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** Gets or sets the Sku. */ + sku?: SkuSetting; +} + +/** SKU capacity information */ +export interface SkuCapacity { + /** Gets or sets the default capacity. */ + default?: number; + /** Gets or sets the maximum. */ + maximum?: number; + /** Gets or sets the minimum. */ + minimum?: number; + /** Gets or sets the type of the scale. */ + scaleType?: SkuScaleType; +} + +/** SkuSetting fulfills the need for stripped down SKU info in ARM contract. */ +export interface SkuSetting { + /** [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; +} + +export interface RegenerateEndpointKeysRequest { + /** [Required] Specification for which type of key to generate. Primary or Secondary. */ + keyType: KeyType; + /** The value the key is set to. */ + keyValue?: string; +} + +/** Service Token */ +export interface EndpointAuthToken { + /** Access token for endpoint authentication. */ + accessToken?: string; + /** Access token expiry time (UTC). */ + expiryTimeUtc?: number; + /** Refresh access token after time (UTC). */ + refreshAfterTimeUtc?: number; + /** Access token type. */ + tokenType?: string; +} + /** An array of operations supported by the resource provider. */ -export interface OperationListResult { - /** List of AML Studio operations supported by the AML Studio resource provider. */ - value?: Operation[]; +export interface AmlOperationListResult { + /** List of AML workspace operations supported by the AML workspace resource provider. */ + value?: AmlOperation[]; } -/** Azure Machine Learning Studio REST API operation */ -export interface Operation { +/** Azure Machine Learning workspace REST API operation */ +export interface AmlOperation { /** Operation name: {provider}/{resource}/{operation} */ name?: string; /** Display name of operation */ - display?: OperationDisplay; + display?: AmlOperationDisplay; + /** Indicates whether the operation applies to data-plane */ + isDataAction?: boolean; +} + +/** Display name of operation */ +export interface AmlOperationDisplay { + /** The resource provider name: Microsoft.MachineLearningExperimentation */ + provider?: string; + /** The resource on which the operation is performed. */ + resource?: string; + /** The operation that users can perform. */ + operation?: string; + /** The description for the operation. */ + description?: string; +} + +export interface EncryptionProperty { + /** Indicates whether or not the encryption is enabled for the workspace. */ + status: EncryptionStatus; + /** The identity that will be used to access the key vault for encryption at rest. */ + identity?: IdentityForCmk; + /** Customer Key vault properties. */ + keyVaultProperties: EncryptionKeyVaultProperties; +} + +/** Identity that will be used to access key vault for encryption at rest */ +export interface IdentityForCmk { + /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ + userAssignedIdentity?: string; +} + +export interface EncryptionKeyVaultProperties { + /** The ArmId of the keyVault where the customer owned encryption key is present. */ + keyVaultArmId: string; + /** Key vault uri to access the encryption key. */ + keyIdentifier: string; + /** For future use - The client id of the identity which will be used to access key vault. */ + identityClientId?: string; +} + +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The ARM identifier for Subnet resource that private endpoint links to + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetArmId?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +export interface SharedPrivateLinkResource { + /** Unique name of the private link. */ + name?: string; + /** The resource id that private link links to. */ + privateLinkResourceId?: string; + /** The private link resource group id. */ + groupId?: string; + /** Request message. */ + requestMessage?: string; + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; +} + +export interface NotebookResourceInfo { + fqdn?: string; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; +} + +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +export interface ServiceManagedResourcesSettings { + /** The settings for the service managed cosmosdb account. */ + cosmosDb?: CosmosDbSettings; +} + +export interface CosmosDbSettings { + /** The throughput of the collections in cosmosdb database */ + collectionsThroughput?: number; +} + +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccess; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; +} + +/** The result of a request to list machine learning workspaces. */ +export interface WorkspaceListResult { + /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ + value?: Workspace[]; + /** The URI that can be used to request the next list of machine learning workspaces. */ + nextLink?: string; +} + +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + /** Value of Parameters */ + value?: DiagnoseRequestProperties; +} + +export interface DiagnoseRequestProperties { + /** Setting for diagnosing user defined routing */ + udr?: { [propertyName: string]: Record }; + /** Setting for diagnosing network security group */ + nsg?: { [propertyName: string]: Record }; + /** Setting for diagnosing resource lock */ + resourceLock?: { [propertyName: string]: Record }; + /** Setting for diagnosing dns resolution */ + dnsResolution?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent storage account */ + storageAccount?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent key vault */ + keyVault?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent container registry */ + containerRegistry?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent application insights */ + applicationInsights?: { [propertyName: string]: Record }; + /** Setting for diagnosing unclassified category of problems */ + others?: { [propertyName: string]: Record }; +} + +export interface DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; +} + +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; +} + +/** Result of Diagnose */ +export interface DiagnoseResult { + /** + * Code for workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * Level of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly level?: DiagnoseResultLevel; + /** + * Message of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; +} + +export interface ListWorkspaceKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly appInsightsInstrumentationKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookAccessKeys?: ListNotebookKeysResult; +} + +export interface RegistryListCredentialsResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly location?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly username?: string; + passwords?: Password[]; +} + +export interface Password { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: string; +} + +export interface ListNotebookKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly primaryAccessKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly secondaryAccessKey?: string; +} + +/** The List Usages operation response. */ +export interface ListUsagesResult { + /** + * The list of AML resource usages. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Usage[]; + /** + * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Describes AML Resource Usage. */ +export interface Usage { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly amlWorkspaceLocation?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * An enum describing the unit of usage measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: UsageUnit; + /** + * The current usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentValue?: number; + /** + * The maximum permitted usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * The name of the type of usage. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: UsageName; +} + +/** The Usage Names. */ +export interface UsageName { + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; +} + +/** The List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; +} + +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { + /** + * The name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The family name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly family?: string; + /** + * The number of vCPUs supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vCPUs?: number; + /** + * The number of gPUs supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gpus?: number; + /** + * The OS VHD disk size, in MB, allowed by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osVhdSizeMB?: number; + /** + * The resource volume size, in MB, allowed by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxResourceVolumeMB?: number; + /** + * The amount of memory, in GB, supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly memoryGB?: number; + /** + * Specifies if the virtual machine size supports low priority VMs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lowPriorityCapable?: boolean; + /** + * Specifies if the virtual machine size supports premium IO. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly premiumIO?: boolean; + /** The estimated price information for using a VM. */ + estimatedVMPrices?: EstimatedVMPrices; + /** Specifies the compute types supported by the virtual machine size. */ + supportedComputeTypes?: string[]; +} + +/** The estimated price info for using a VM. */ +export interface EstimatedVMPrices { + /** Three lettered code specifying the currency of the VM price. Example: USD */ + billingCurrency: BillingCurrency; + /** The unit of time measurement for the specified VM price. Example: OneHour */ + unitOfMeasure: UnitOfMeasure; + /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ + values: EstimatedVMPrice[]; +} + +/** The estimated price info for using a VM of a particular OS type, tier, etc. */ +export interface EstimatedVMPrice { + /** The price charged for using the VM. */ + retailPrice: number; + /** Operating system type used by the VM. */ + osType: VMPriceOSType; + /** The type of the VM. */ + vmTier: VMTier; +} + +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; +} + +/** The properties for Quota update or retrieval. */ +export interface QuotaBaseProperties { + /** Specifies the resource ID. */ + id?: string; + /** Specifies the resource type. */ + type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** An enum describing the unit of quota measurement. */ + unit?: QuotaUnit; +} + +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { + /** + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: UpdateWorkspaceQuotas[]; + /** + * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; +} + +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { + /** + * The list of Workspace Quotas by VM Family + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ResourceQuota[]; + /** + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The quota assigned to a resource. */ +export interface ResourceQuota { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly amlWorkspaceLocation?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: ResourceName; + /** + * The maximum permitted quota of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly limit?: number; + /** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: QuotaUnit; +} + +/** The Resource Name. */ +export interface ResourceName { + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; +} + +/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ +export interface PaginatedComputeResourcesList { + /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ + value?: ComputeResource[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +export interface ComputeResourceSchema { + /** Compute properties */ + properties?: ComputeUnion; +} + +/** Machine Learning compute object. */ +export interface Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: + | "AKS" + | "Kubernetes" + | "AmlCompute" + | "ComputeInstance" + | "VirtualMachine" + | "HDInsight" + | "DataFactory" + | "Databricks" + | "DataLakeAnalytics" + | "SynapseSpark"; + /** + * Location for the underlying compute + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly computeLocation?: string; + /** + * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The description of the Machine Learning compute. */ + description?: string; + /** + * The time at which the compute was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdOn?: Date; + /** + * The time at which the compute was last modified. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modifiedOn?: Date; + /** ARM resource id of the underlying compute */ + resourceId?: string; + /** + * Errors during provisioning + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningErrors?: ErrorResponse[]; + /** + * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isAttachedCompute?: boolean; + /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ + disableLocalAuth?: boolean; +} + +/** AmlCompute update parameters. */ +export interface ClusterUpdateParameters { + /** Properties of ClusterUpdate */ + properties?: ScaleSettingsInformation; +} + +/** Desired scale settings for the amlCompute. */ +export interface ScaleSettingsInformation { + /** scale settings for AML Compute */ + scaleSettings?: ScaleSettings; +} + +/** scale settings for AML Compute */ +export interface ScaleSettings { + /** Max number of nodes to use */ + maxNodeCount: number; + /** Min number of nodes to use */ + minNodeCount?: number; + /** Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ + nodeIdleTimeBeforeScaleDown?: string; +} + +/** Result of AmlCompute Nodes */ +export interface AmlComputeNodesInformation { + /** + * The collection of returned AmlCompute nodes details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodes?: AmlComputeNodeInformation[]; + /** + * The continuation token. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Compute node information related to a AmlCompute. */ +export interface AmlComputeNodeInformation { + /** + * ID of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeId?: string; + /** + * Private IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; + /** + * Public IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * SSH port number of the node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly port?: number; + /** + * State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeState?: NodeState; + /** + * ID of the Experiment running on the node, if any else null. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runId?: string; +} + +export interface NotebookAccessTokenResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly hostName?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly publicDns?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly accessToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly tokenType?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly expiresIn?: number; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly refreshToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly scope?: string; +} + +/** Secrets related to a Machine Learning compute. Might differ for every type of compute. */ +export interface ComputeSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS" | "VirtualMachine" | "Databricks"; +} + +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +export interface ListStorageAccountKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; +} + +export interface WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; + /** Category of the connection */ + category?: ConnectionCategory; + target?: string; + /** Value details of the workspace connection. */ + value?: string; + /** format for the workspace connection value */ + valueFormat?: ValueFormat; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetailAutoGenerated; +} + +/** The error detail. */ +export interface ErrorDetailAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + value?: WorkspaceConnectionPropertiesV2BasicResource[]; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly nextLink?: string; +} + +export interface ExternalFqdnResponse { + value?: FqdnEndpoints[]; +} + +export interface FqdnEndpoints { + properties?: FqdnEndpointsProperties; +} + +export interface FqdnEndpointsProperties { + category?: string; + endpoints?: FqdnEndpoint[]; +} + +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; +} + +export interface FqdnEndpointDetail { + port?: number; +} + +/** The List Aml user feature operation response. */ +export interface ListAmlUserFeatureResult { + /** + * The list of AML user facing features. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: AmlUserFeature[]; + /** + * The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Features enabled for a workspace */ +export interface AmlUserFeature { + /** Specifies the feature ID */ + id?: string; + /** Specifies the feature name */ + displayName?: string; + /** Describes the feature for user experience */ + description?: string; +} + +/** Asset input type. */ +export interface AssetJobInput { + /** Input Asset Delivery Mode. */ + mode?: InputDeliveryMode; + /** [Required] Input Asset URI. */ + uri: string; +} + +/** Asset output type. */ +export interface AssetJobOutput { + /** Output Asset Delivery Mode. */ + mode?: OutputDeliveryMode; + /** Output Asset URI. */ + uri?: string; +} + +/** Early termination policies enable canceling poor-performing runs before they complete */ +export interface EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; + /** Number of intervals by which to delay the first evaluation. */ + delayEvaluation?: number; + /** Interval (number of runs) between policy evaluations. */ + evaluationInterval?: number; +} + +/** + * The Sampling Algorithm used to generate hyperparameter values, along with properties to + * configure the algorithm + */ +export interface SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; +} + +/** Base definition for job distribution configuration. */ +export interface DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +} + +/** Command job definition. */ +export interface JobInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobInputType: + | "custom_model" + | "literal" + | "mlflow_model" + | "mltable" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the input. */ + description?: string; +} + +export interface JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command" | "Sweep"; + /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ + timeout?: string; +} + +/** Job output definition container information on where to find job output/logs. */ +export interface JobOutput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobOutputType: + | "custom_model" + | "mlflow_model" + | "mltable" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the output. */ + description?: string; +} + +/** Resource requirements for each container instance within an online deployment. */ +export interface ContainerResourceRequirements { + /** Container resource limit info: */ + containerResourceLimits?: ContainerResourceSettings; + /** Container resource request info: */ + containerResourceRequests?: ContainerResourceSettings; +} + +export interface ContainerResourceSettings { + /** + * Number of vCPUs request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + cpu?: string; + /** + * Number of Nvidia GPU cards request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + gpu?: string; + /** + * Memory size request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + memory?: string; +} + +/** Optimization objective. */ +export interface Objective { + /** [Required] Defines supported metric goals for hyperparameter tuning */ + goal: Goal; + /** [Required] Name of the metric to optimize. */ + primaryMetric: string; +} + +/** Trial component definition. */ +export interface TrialComponent { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Compute Resource configuration for the job. */ + resources?: ResourceConfiguration; +} + +/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ +export interface ResourceId { + /** The ID of the resource */ + id: string; +} + +export interface AKSSchema { + /** AKS properties */ + properties?: AKSSchemaProperties; +} + +/** AKS properties */ +export interface AKSSchemaProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; + /** + * System services + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemServices?: SystemService[]; + /** Number of agents */ + agentCount?: number; + /** Agent virtual machine size */ + agentVmSize?: string; + /** Intended usage of the cluster */ + clusterPurpose?: ClusterPurpose; + /** SSL configuration */ + sslConfiguration?: SslConfiguration; + /** AKS networking configuration for vnet */ + aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** Load Balancer Type */ + loadBalancerType?: LoadBalancerType; + /** Load Balancer Subnet */ + loadBalancerSubnet?: string; +} + +/** A system service running on a compute. */ +export interface SystemService { + /** + * The type of this system service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemServiceType?: string; + /** + * Public IP address + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * The version for this type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; +} + +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigurationStatus; + /** Cert data */ + cert?: string; + /** Key data */ + key?: string; + /** CNAME of the cert */ + cname?: string; + /** Leaf domain label of public endpoint */ + leafDomainLabel?: string; + /** Indicates whether to overwrite existing domain label. */ + overwriteExistingDomain?: boolean; +} + +/** Advance configuration for AKS networking */ +export interface AksNetworkingConfiguration { + /** Virtual network subnet resource ID the compute nodes belong to */ + subnetId?: string; + /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ + serviceCidr?: string; + /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ + dnsServiceIP?: string; + /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ + dockerBridgeCidr?: string; +} + +/** Kubernetes Compute Schema */ +export interface KubernetesSchema { + /** Properties of Kubernetes */ + properties?: KubernetesProperties; +} + +/** Kubernetes properties */ +export interface KubernetesProperties { + /** Relay connection string. */ + relayConnectionString?: string; + /** ServiceBus connection string. */ + serviceBusConnectionString?: string; + /** Extension principal-id. */ + extensionPrincipalId?: string; + /** Extension instance release train. */ + extensionInstanceReleaseTrain?: string; + /** VC name. */ + vcName?: string; + /** Compute namespace */ + namespace?: string; + /** Default instance type */ + defaultInstanceType?: string; + /** Instance Type Schema */ + instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; +} + +/** Instance type schema. */ +export interface InstanceTypeSchema { + /** Node Selector */ + nodeSelector?: { [propertyName: string]: string }; + /** Resource requests/limits for this instance type */ + resources?: InstanceTypeSchemaResources; +} + +/** Resource requests/limits for this instance type */ +export interface InstanceTypeSchemaResources { + /** Resource requests for this instance type */ + requests?: { [propertyName: string]: string }; + /** Resource limits for this instance type */ + limits?: { [propertyName: string]: string }; +} + +/** AML Compute properties */ +export interface AmlComputeProperties { + /** Compute OS Type */ + osType?: OsType; + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual Machine priority */ + vmPriority?: VmPriority; + /** Virtual Machine image for AML Compute - windows only */ + virtualMachineImage?: VirtualMachineImage; + /** Network is isolated or not */ + isolatedNetwork?: boolean; + /** Scale settings for AML Compute */ + scaleSettings?: ScaleSettings; + /** Credentials for an administrator user account that will be created on each compute node. */ + userAccountCredentials?: UserAccountCredentials; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; + /** + * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocationState?: AllocationState; + /** + * The time at which the compute entered its current allocation state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allocationStateTransitionTime?: Date; + /** + * Collection of errors encountered by various compute nodes during node setup. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: ErrorResponse[]; + /** + * The number of compute nodes currently assigned to the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentNodeCount?: number; + /** + * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetNodeCount?: number; + /** + * Counts of various node states on the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeStateCounts?: NodeStateCounts; + /** 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; + /** A property bag containing additional properties. */ + propertyBag?: { [propertyName: string]: any }; +} + +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; +} + +/** Settings for user account that gets created on each on the nodes of a compute. */ +export interface UserAccountCredentials { + /** Name of the administrator user account which can be used to SSH to nodes. */ + adminUserName: string; + /** SSH public key of the administrator user account. */ + adminUserSshPublicKey?: string; + /** Password of the administrator user account. */ + adminUserPassword?: string; +} + +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { + /** + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly idleNodeCount?: number; + /** + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly runningNodeCount?: number; + /** + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preparingNodeCount?: number; + /** + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unusableNodeCount?: number; + /** + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly leavingNodeCount?: number; + /** + * Number of compute nodes which are in preempted state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly preemptedNodeCount?: number; +} + +/** Properties(top level) of AmlCompute */ +export interface AmlComputeSchema { + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; +} + +/** Compute Instance properties */ +export interface ComputeInstanceProperties { + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ + applicationSharingPolicy?: ApplicationSharingPolicy; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; + /** + * Describes all connectivity endpoints available for this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + /** + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applications?: ComputeInstanceApplication[]; + /** + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: ComputeInstanceCreatedBy; + /** + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errors?: ErrorResponse[]; + /** + * The current state of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: ComputeInstanceState; + /** The Compute Instance Authorization type. Available values are personal (default). */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** Settings for a personal compute instance. */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** Details of customized scripts to execute for setting up the cluster. */ + setupScripts?: SetupScripts; + /** + * The last operation on ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastOperation?: ComputeInstanceLastOperation; + /** + * The list of schedules to be applied on the computes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly schedules?: ComputeSchedules; + /** 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; + /** + * Describes informations of containers on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containers?: ComputeInstanceContainer[]; + /** + * Describes informations of dataDisks on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataDisks?: ComputeInstanceDataDisk[]; + /** + * Describes informations of dataMounts on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataMounts?: ComputeInstanceDataMount[]; + /** + * ComputeInstance version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly versions?: ComputeInstanceVersion; +} + +/** Specifies policy and settings for SSH access. */ +export interface ComputeInstanceSshSettings { + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ + sshPublicAccess?: SshPublicAccess; + /** + * Describes the admin user name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly adminUserName?: string; + /** + * Describes the port for connecting through SSH. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sshPort?: number; + /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ + adminPublicKey?: string; +} + +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { + /** + * Public IP Address of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIpAddress?: string; + /** + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIpAddress?: string; +} + +/** Defines an Aml Instance application and its connectivity endpoint URI. */ +export interface ComputeInstanceApplication { + /** Name of the ComputeInstance application. */ + displayName?: string; + /** Application' endpoint URI. */ + endpointUri?: string; +} + +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { + /** + * Name of the user. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userName?: string; + /** + * Uniquely identifies user' Azure Active Directory organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userOrgId?: string; + /** + * Uniquely identifies the user within his/her organization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userId?: string; +} + +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; +} + +/** A user that can be assigned to a compute instance. */ +export interface AssignedUser { + /** User’s AAD Object Id. */ + objectId: string; + /** User’s AAD Tenant Id. */ + tenantId: string; +} + +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; +} + +/** Customized setup scripts */ +export interface ScriptsToExecute { + /** Script that's run every time the machine starts. */ + startupScript?: ScriptReference; + /** Script that's run only once during provision of the compute. */ + creationScript?: ScriptReference; +} + +/** Script reference */ +export interface ScriptReference { + /** The storage source of the script: inline, workspace. */ + scriptSource?: string; + /** The location of scripts in the mounted volume. */ + scriptData?: string; + /** Optional command line arguments passed to the script to run. */ + scriptArguments?: string; + /** Optional time period passed to timeout command. */ + timeout?: string; +} + +/** The last operation on ComputeInstance. */ +export interface ComputeInstanceLastOperation { + /** Name of the last operation. */ + operationName?: OperationName; + /** Time of the last operation. */ + operationTime?: Date; + /** Operation status. */ + operationStatus?: OperationStatus; + /** Trigger of operation. */ + operationTrigger?: OperationTrigger; +} + +/** The list of schedules to be applied on the computes */ +export interface ComputeSchedules { + /** The list of compute start stop schedules to be applied. */ + computeStartStop?: ComputeStartStopSchedule[]; +} + +/** Compute start stop schedule properties */ +export interface ComputeStartStopSchedule { + /** + * Schedule id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The current deployment state of schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: ProvisioningStatus; + /** The compute power action. */ + action?: ComputePowerAction; + schedule?: ScheduleBase; +} + +export interface ScheduleBase { + id?: string; + provisioningStatus?: ScheduleProvisioningState; + status?: ScheduleStatus; +} + +/** Defines an Aml Instance container. */ +export interface ComputeInstanceContainer { + /** Name of the ComputeInstance container. */ + name?: string; + /** Auto save settings. */ + autosave?: Autosave; + /** Information of GPU. */ + gpu?: string; + /** network of this container. */ + network?: Network; + /** Environment information of this container. */ + environment?: ComputeInstanceEnvironmentInfo; + /** + * services of this containers. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly services?: Record[]; +} + +/** Environment information */ +export interface ComputeInstanceEnvironmentInfo { + /** name of environment. */ + name?: string; + /** version of environment. */ + version?: string; +} + +/** Defines an Aml Instance DataDisk. */ +export interface ComputeInstanceDataDisk { + /** Caching type of Data Disk. */ + caching?: Caching; + /** The initial disk size in gigabytes. */ + diskSizeGB?: number; + /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ + lun?: number; + /** type of this storage account. */ + storageAccountType?: StorageAccountType; +} + +/** Defines an Aml Instance DataMount. */ +export interface ComputeInstanceDataMount { + /** Source of the ComputeInstance data mount. */ + source?: string; + /** Data source type. */ + sourceType?: SourceType; + /** name of the ComputeInstance data mount. */ + mountName?: string; + /** Mount Action. */ + mountAction?: MountAction; + /** who this data mount created by. */ + createdBy?: string; + /** Path of this data mount. */ + mountPath?: string; + /** Mount state. */ + mountState?: MountState; + /** The time when the disk mounted. */ + mountedOn?: Date; + /** Error of this data mount. */ + error?: string; +} + +/** Version of computeInstance. */ +export interface ComputeInstanceVersion { + /** Runtime of compute instance. */ + runtime?: string; +} + +/** Properties(top level) of ComputeInstance */ +export interface ComputeInstanceSchema { + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; +} + +export interface VirtualMachineSchema { + properties?: VirtualMachineSchemaProperties; +} + +export interface VirtualMachineSchemaProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Notebook server port open for ssh connections. */ + notebookServerPort?: number; + /** Public IP address of the virtual machine. */ + address?: string; + /** Admin credentials for virtual machine */ + administratorAccount?: VirtualMachineSshCredentials; + /** Indicates whether this compute will be used for running notebooks. */ + isNotebookInstanceCompute?: boolean; +} + +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; +} + +/** HDInsight compute properties */ +export interface HDInsightProperties { + /** Port open for ssh connections on the master node of the cluster. */ + sshPort?: number; + /** Public IP address of the master node of the cluster. */ + address?: string; + /** Admin credentials for master node of the cluster */ + administratorAccount?: VirtualMachineSshCredentials; +} + +export interface HDInsightSchema { + /** HDInsight compute properties */ + properties?: HDInsightProperties; +} + +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; +} + +export interface DatabricksSchema { + /** Properties of Databricks */ + properties?: DatabricksProperties; +} + +export interface DataLakeAnalyticsSchema { + properties?: DataLakeAnalyticsSchemaProperties; +} + +export interface DataLakeAnalyticsSchemaProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; +} + +export interface SynapseSparkProperties { + /** Auto scale properties. */ + autoScaleProperties?: AutoScaleProperties; + /** Auto pause properties. */ + autoPauseProperties?: AutoPauseProperties; + /** Spark version. */ + sparkVersion?: string; + /** The number of compute nodes currently assigned to the compute. */ + nodeCount?: number; + /** Node size. */ + nodeSize?: string; + /** Node size family. */ + nodeSizeFamily?: string; + /** Azure subscription identifier. */ + subscriptionId?: string; + /** Name of the resource group in which workspace is located. */ + resourceGroup?: string; + /** Name of Azure Machine Learning workspace. */ + workspaceName?: string; + /** Pool name. */ + poolName?: string; +} + +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; +} + +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} + +/** Properties of AksComputeSecrets */ +export interface AksComputeSecretsProperties { + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + userKubeConfig?: string; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + adminKubeConfig?: string; + /** Image registry pull secret. */ + imagePullSecretName?: string; +} + +export interface VirtualMachineSecretsSchema { + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; +} + +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; +} + +export interface UsernamePassword { + username?: string; + password?: string; +} + +export interface PersonalAccessToken { + pat?: string; +} + +export interface SharedAccessSignature { + sas?: string; +} + +export interface ManagedIdentityAutoGenerated { + resourceId?: string; + clientId?: string; +} + +/** Batch endpoint configuration. */ +export type BatchEndpointDetails = EndpointPropertiesBase & { + /** Default values for Batch Endpoint */ + defaults?: BatchEndpointDefaults; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; +}; + +/** Online endpoint configuration */ +export type OnlineEndpointDetails = EndpointPropertiesBase & { + /** + * ARM resource ID of the compute if it exists. + * optional + */ + compute?: string; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; + /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ + traffic?: { [propertyName: string]: number }; +}; + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +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 type CodeContainerData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: CodeContainerDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type CodeVersionData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: CodeVersionDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type ComponentContainerData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: ComponentContainerDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type ComponentVersionData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: ComponentVersionDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type DataContainerData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: DataContainerDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type DataVersionBaseData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: DataVersionBaseDetailsUnion; +}; + +/** Azure Resource Manager resource envelope. */ +export type DatastoreData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: DatastoreDetailsUnion; +}; + +/** Azure Resource Manager resource envelope. */ +export type EnvironmentContainerData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentContainerDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type EnvironmentVersionData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentVersionDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type JobBaseData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: JobBaseDetailsUnion; +}; + +/** Azure Resource Manager resource envelope. */ +export type ModelContainerData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: ModelContainerDetails; +}; + +/** Azure Resource Manager resource envelope. */ +export type ModelVersionData = Resource & { + /** [Required] Additional attributes of the entity. */ + properties: ModelVersionDetails; +}; + +/** The Private Endpoint Connection resource. */ +export type PrivateEndpointConnection = Resource & { + /** 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; + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. + * 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 type Workspace = Resource & { + /** 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; + /** + * The immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceId?: string; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ + keyVault?: string; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ + storageAccount?: string; + /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ + discoveryUrl?: string; + /** + * The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The encryption settings of Azure ML workspace. */ + encryption?: EncryptionProperty; + /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ + hbiWorkspace?: boolean; + /** + * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serviceProvisionedResourceGroup?: string; + /** + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkCount?: number; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The flag to indicate whether to allow public access when behind VNet. */ + allowPublicAccessWhenBehindVnet?: boolean; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** The list of shared private link resources in this workspace. */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly notebookInfo?: NotebookResourceInfo; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** + * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly storageHnsEnabled?: boolean; + /** + * The URI associated with this workspace that machine learning flow must point at to set up tracking. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mlFlowTrackingUri?: string; +}; + +/** Machine Learning compute object wrapped into ARM resource envelope. */ +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 type PrivateLinkResource = Resource & { + /** 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; + /** + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; +}; + +export type WorkspaceConnectionPropertiesV2BasicResource = Resource & { + properties: WorkspaceConnectionPropertiesV2Union; +}; + +/** Reference to an asset via its path in a datastore. */ +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 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 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 type BatchDeploymentDetails = EndpointDeploymentPropertiesBase & { + /** Compute target for batch inference operation. */ + compute?: string; + /** + * Error threshold, if the error count for the entire input goes above this value, + * the batch inference will be aborted. Range is [-1, int.MaxValue]. + * For FileDataset, this value is the count of file failures. + * For TabularDataset, this value is the count of record failures. + * If set to -1 (the lower bound), all failures during batch inference will be ignored. + */ + errorThreshold?: number; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** Indicates maximum number of parallelism per instance. */ + maxConcurrencyPerInstance?: number; + /** + * Size of the mini-batch passed to each batch invocation. + * For FileDataset, this is the number of files per mini-batch. + * For TabularDataset, this is the size of the records in bytes, per mini-batch. + */ + miniBatchSize?: number; + /** Reference to the model asset for the endpoint deployment. */ + model?: AssetReferenceBaseUnion; + /** Indicates how the output will be organized. */ + outputAction?: BatchOutputAction; + /** Customized output file name for append_row output action. */ + outputFileName?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; + /** + * Indicates compute configuration for the job. + * If not provided, will default to the defaults defined in ResourceConfiguration. + */ + resources?: ResourceConfiguration; + /** + * Retry Settings for the batch inference operation. + * If not provided, will default to the defaults defined in BatchRetrySettings. + */ + retrySettings?: BatchRetrySettings; +}; + +export type OnlineDeploymentDetails = EndpointDeploymentPropertiesBase & { + /** If true, enables Application Insights logging. */ + appInsightsEnabled?: boolean; + /** [Required] The compute type of the endpoint. */ + endpointComputeType: EndpointComputeType; + /** Compute instance type. */ + instanceType?: string; + /** Liveness probe monitors the health of the container regularly. */ + livenessProbe?: ProbeSettings; + /** The URI path to the model. */ + model?: string; + /** The path to mount the model in custom container. */ + modelMountPath?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; + /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ + readinessProbe?: ProbeSettings; + /** Request settings for the deployment. */ + requestSettings?: OnlineRequestSettings; + /** + * Scale settings for the deployment. + * If it is null or not provided, + * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + * and to DefaultScaleSettings for ManagedOnlineDeployment. + */ + scaleSettings?: OnlineScaleSettingsUnion; +}; + +/** Reference to an asset via its path in a datastore. */ +export type PartialDataPathAssetReference = PartialAssetReferenceBase & { + /** 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 type PartialIdAssetReference = PartialAssetReferenceBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "Id"; + /** ARM resource ID of the asset. */ + assetId?: string; +}; + +/** Reference to an asset via its path in a job output. */ +export type PartialOutputPathAssetReference = PartialAssetReferenceBase & { + /** 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; +}; + +export type AssetContainer = ResourceBase & { + /** Is the asset archived? */ + isArchived?: boolean; + /** + * The latest version inside this container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly latestVersion?: string; + /** + * The next auto incremental version + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextVersion?: string; +}; + +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 type DatastoreDetails = ResourceBase & { + /** [Required] Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** [Required] Storage type backing the datastore. */ + datastoreType: DatastoreType; + /** + * Readonly property to indicate if datastore is the workspace default datastore + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefault?: boolean; +}; + +/** Base definition for a job. */ +export type JobBaseDetails = ResourceBase & { + /** ARM resource ID of the compute resource. */ + computeId?: string; + /** Display name of job. */ + displayName?: string; + /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ + experimentName?: string; + /** + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + * Defaults to AmlToken if null. + */ + identity?: IdentityConfigurationUnion; + /** Is the asset archived? */ + isArchived?: boolean; + /** [Required] Specifies the type of job. */ + jobType: JobType; + /** + * List of JobEndpoints. + * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + */ + services?: { [propertyName: string]: JobService | null }; + /** + * Status of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: JobStatus; +}; + +/** Account key datastore credentials configuration. */ +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 type CertificateDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "Certificate"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: CertificateDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; + /** [Required] Thumbprint of the certificate used for authentication. */ + thumbprint: string; +}; + +/** Empty/none datastore credentials. */ +export type NoneDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "None"; +}; + +/** SAS datastore credentials configuration. */ +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 type ServicePrincipalDatastoreCredentials = DatastoreCredentials & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "ServicePrincipal"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: ServicePrincipalDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; +}; + +/** Datastore account key secrets. */ +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 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 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 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 type AmlToken = IdentityConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken"; +}; + +/** Managed identity configuration. */ +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. */ + clientId?: string; + /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ + 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 type UserIdentity = IdentityConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "UserIdentity"; +}; + +export type DefaultScaleSettings = OnlineScaleSettings & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default"; +}; + +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. */ + maxInstances?: number; + /** The minimum number of instances to always be present. */ + minInstances?: number; + /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ + pollingInterval?: string; + /** Target CPU usage for the autoscaler. */ + targetUtilizationPercentage?: number; +}; + +/** Properties specific to a KubernetesOnlineDeployment. */ +export type PartialKubernetesOnlineDeployment = PartialOnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Kubernetes"; +}; + +/** Properties specific to a ManagedOnlineDeployment. */ +export type PartialManagedOnlineDeployment = PartialOnlineDeployment & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Managed"; +}; + +/** A Machine Learning compute based on 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 type Kubernetes = Compute & + KubernetesSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Kubernetes"; + }; + +/** An Azure Machine Learning compute. */ +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 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 type VirtualMachine = Compute & + VirtualMachineSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + }; + +/** A HDInsight compute. */ +export type HDInsight = Compute & + HDInsightSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; + }; + +/** A DataFactory compute. */ +export type DataFactory = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataFactory"; +}; + +/** A DataFactory compute. */ +export type Databricks = Compute & + DatabricksSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + }; + +/** A DataLakeAnalytics compute. */ +export type DataLakeAnalytics = Compute & + DataLakeAnalyticsSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; + }; + +/** A SynapseSpark 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 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 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 type DatabricksComputeSecrets = ComputeSecrets & + DatabricksComputeSecretsProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + }; + +export type PATAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT"; + credentials?: PersonalAccessToken; +}; + +export type SASAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "SAS"; + credentials?: SharedAccessSignature; +}; + +export type UsernamePasswordAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "UsernamePassword"; + credentials?: UsernamePassword; +}; + +export type NoneAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "None"; +}; + +export type ManagedIdentityAuthTypeWorkspaceConnectionProperties = WorkspaceConnectionPropertiesV2 & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ManagedIdentity"; + credentials?: ManagedIdentityAutoGenerated; +}; + +export type CustomModelJobInput = AssetJobInput & JobInput & {}; + +export type MLFlowModelJobInput = AssetJobInput & JobInput & {}; + +export type MLTableJobInput = AssetJobInput & JobInput & {}; + +export type TritonModelJobInput = AssetJobInput & JobInput & {}; + +export type UriFileJobInput = AssetJobInput & JobInput & {}; + +export type UriFolderJobInput = AssetJobInput & JobInput & {}; + +export type CustomModelJobOutput = AssetJobOutput & JobOutput & {}; + +export type MLFlowModelJobOutput = AssetJobOutput & JobOutput & {}; + +export type MLTableJobOutput = AssetJobOutput & JobOutput & {}; + +export type TritonModelJobOutput = AssetJobOutput & JobOutput & {}; + +export type UriFileJobOutput = 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 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 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 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 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 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 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 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 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 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 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 type CommandJobLimits = JobLimits & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command"; +}; + +/** Sweep Job limit class. */ +export type SweepJobLimits = JobLimits & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Sweep"; + /** Sweep Job max concurrent trials. */ + maxConcurrentTrials?: number; + /** Sweep Job max total trials. */ + maxTotalTrials?: number; + /** Sweep Job Trial timeout value. */ + trialTimeout?: string; +}; + +export type BatchEndpointData = 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. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchEndpointDetails; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +}; + +export type BatchDeploymentData = 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. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchDeploymentDetails; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +}; + +export type OnlineEndpointData = 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. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineEndpointDetails; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +}; + +export type OnlineDeploymentData = 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. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineDeploymentDetailsUnion; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +}; + +/** Properties specific to a KubernetesOnlineDeployment. */ +export type KubernetesOnlineDeployment = OnlineDeploymentDetails & { + /** The resource requirements for the container (cpu and memory). */ + containerResourceRequirements?: ContainerResourceRequirements; +}; + +/** Properties specific to a ManagedOnlineDeployment. */ +export type ManagedOnlineDeployment = OnlineDeploymentDetails & {}; + +/** Container for code asset versions. */ +export type CodeContainerDetails = AssetContainer & {}; + +/** + * Component container definition. + * + */ +export type ComponentContainerDetails = AssetContainer & {}; + +/** Container for data asset versions. */ +export type DataContainerDetails = AssetContainer & { + /** [Required] Specifies the type of data. */ + dataType: DataType; +}; + +/** Container for environment specification versions. */ +export type EnvironmentContainerDetails = AssetContainer & {}; + +export type ModelContainerDetails = AssetContainer & {}; + +/** Code asset version details. */ +export type CodeVersionDetails = AssetBase & { + /** Uri where code is located */ + codeUri?: string; +}; + +/** Definition of a component version: defines resources that span component types. */ +export type ComponentVersionDetails = AssetBase & { + /** + * Defines Component definition details. + * + */ + componentSpec?: Record; +}; + +/** Data version base definition */ +export type DataVersionBaseDetails = 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 type EnvironmentVersionDetails = AssetBase & { + /** Configuration settings for Docker build context. */ + build?: BuildContext; + /** + * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + * + */ + condaFile?: string; + /** + * Environment type is either user managed or curated by the Azure ML service + * + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentType?: EnvironmentType; + /** + * Name of the image that will be used for the environment. + * + */ + image?: string; + /** Defines configuration specific to inference. */ + inferenceConfig?: InferenceContainerProperties; + /** The OS type of the environment. */ + osType?: OperatingSystemType; +}; + +/** Model asset version details. */ +export type ModelVersionDetails = AssetBase & { + /** Mapping of model flavors to their properties. */ + flavors?: { [propertyName: string]: FlavorData | null }; + /** Name of the training job which produced this model */ + jobName?: string; + /** The storage format for this entity. Used for NCD. */ + modelType?: string; + /** The URI path to the model contents. */ + modelUri?: string; +}; + +/** Azure Blob datastore configuration. */ +export type AzureBlobDatastore = DatastoreDetails & { + /** Storage account name. */ + accountName?: string; + /** Storage account container name. */ + containerName?: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** Protocol used to communicate with the storage account. */ + 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 type AzureDataLakeGen1Datastore = DatastoreDetails & { + /** 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 type AzureDataLakeGen2Datastore = DatastoreDetails & { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] The name of the Data Lake Gen2 filesystem. */ + filesystem: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +}; + +/** Azure File datastore configuration. */ +export type AzureFileDatastore = DatastoreDetails & { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] TODO - File share name. */ + fileShareName: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +}; + +/** Command job definition. */ +export type CommandJob = JobBaseDetails & { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Command Job limit. */ + limits?: CommandJobLimits; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** + * Input parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly parameters?: Record; + /** Compute Resource configuration for the job. */ + resources?: ResourceConfiguration; +}; + +/** Pipeline Job definition: defines generic to MFE attributes. */ +export type PipelineJob = JobBaseDetails & { + /** Inputs for the pipeline job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jobs construct the Pipeline Job. */ + jobs?: { [propertyName: string]: Record }; + /** Outputs for the pipeline job */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + settings?: Record; +}; + +/** Sweep job definition. */ +export type SweepJob = JobBaseDetails & { + /** Early termination policies enable canceling poor-performing runs before they complete */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Sweep Job limit. */ + limits?: SweepJobLimits; + /** [Required] Optimization objective. */ + objective: Objective; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** [Required] The hyperparameter sampling algorithm */ + samplingAlgorithm: SamplingAlgorithmUnion; + /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ + searchSpace: Record; + /** [Required] Trial component definition. */ + trial: TrialComponent; +}; + +/** MLTable data definition */ +export type MLTableData = DataVersionBaseDetails & { + /** Uris referenced in the MLTable definition (required for lineage) */ + referencedUris?: string[]; +}; + +/** uri-file data version entity */ +export type UriFileDataVersion = DataVersionBaseDetails & {}; + +/** uri-folder data version entity */ +export type UriFolderDataVersion = DataVersionBaseDetails & {}; + +/** Defines headers for BatchEndpoints_delete operation. */ +export interface BatchEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_update operation. */ +export interface BatchEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_createOrUpdate operation. */ +export interface BatchEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for BatchDeployments_delete operation. */ +export interface BatchDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_update operation. */ +export interface BatchDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_createOrUpdate operation. */ +export interface BatchDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Jobs_delete operation. */ +export interface JobsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Jobs_cancel operation. */ +export interface JobsCancelHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_delete operation. */ +export interface OnlineEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_update operation. */ +export interface OnlineEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ +export interface OnlineEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ +export interface OnlineEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_delete operation. */ +export interface OnlineDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_update operation. */ +export interface OnlineDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_createOrUpdate operation. */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Workspaces_diagnose operation. */ +export interface WorkspacesDiagnoseHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Compute_createOrUpdate operation. */ +export interface ComputeCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Compute_delete operation. */ +export interface ComputeDeleteHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + UserAssigned = "UserAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type ManagedServiceIdentityType = string; + +/** Known values of {@link EndpointProvisioningState} that the service accepts. */ +export enum KnownEndpointProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Updating = "Updating", + Canceled = "Canceled" +} + +/** + * Defines values for EndpointProvisioningState. \ + * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** + */ +export type EndpointProvisioningState = string; + +/** Known values of {@link EndpointAuthMode} that the service accepts. */ +export enum KnownEndpointAuthMode { + AMLToken = "AMLToken", + Key = "Key", + AADToken = "AADToken" +} + +/** + * Defines values for EndpointAuthMode. \ + * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AMLToken** \ + * **Key** \ + * **AADToken** + */ +export type EndpointAuthMode = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link UnavailabilityReason} that the service accepts. */ +export enum KnownUnavailabilityReason { + Invalid = "Invalid", + AlreadyExists = "AlreadyExists" +} + +/** + * Defines values for UnavailabilityReason. \ + * {@link KnownUnavailabilityReason} can be used interchangeably with UnavailabilityReason, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Invalid** \ + * **AlreadyExists** + */ +export type UnavailabilityReason = string; + +/** Known values of {@link BatchLoggingLevel} that the service accepts. */ +export enum KnownBatchLoggingLevel { + Info = "Info", + Warning = "Warning", + Debug = "Debug" +} + +/** + * Defines values for BatchLoggingLevel. \ + * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Info** \ + * **Warning** \ + * **Debug** + */ +export type BatchLoggingLevel = string; + +/** Known values of {@link ReferenceType} that the service accepts. */ +export enum KnownReferenceType { + Id = "Id", + DataPath = "DataPath", + OutputPath = "OutputPath" +} + +/** + * Defines values for ReferenceType. \ + * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Id** \ + * **DataPath** \ + * **OutputPath** + */ +export type ReferenceType = string; + +/** Known values of {@link BatchOutputAction} that the service accepts. */ +export enum KnownBatchOutputAction { + SummaryOnly = "SummaryOnly", + AppendRow = "AppendRow" +} + +/** + * Defines values for BatchOutputAction. \ + * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SummaryOnly** \ + * **AppendRow** + */ +export type BatchOutputAction = string; + +/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ +export enum KnownDeploymentProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Scaling = "Scaling", + Updating = "Updating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" +} + +/** + * Defines values for DeploymentProvisioningState. \ + * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Scaling** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type DeploymentProvisioningState = string; + +/** Known values of {@link ListViewType} that the service accepts. */ +export enum KnownListViewType { + ActiveOnly = "ActiveOnly", + ArchivedOnly = "ArchivedOnly", + All = "All" +} + +/** + * Defines values for ListViewType. \ + * {@link KnownListViewType} can be used interchangeably with ListViewType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveOnly** \ + * **ArchivedOnly** \ + * **All** + */ +export type ListViewType = string; + +/** Known values of {@link DataType} that the service accepts. */ +export enum KnownDataType { + UriFile = "uri_file", + UriFolder = "uri_folder", + Mltable = "mltable" +} + +/** + * Defines values for DataType. \ + * {@link KnownDataType} can be used interchangeably with DataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** + */ +export type DataType = string; + +/** Known values of {@link CredentialsType} that the service accepts. */ +export enum KnownCredentialsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + None = "None", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal" +} + +/** + * Defines values for CredentialsType. \ + * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** + */ +export type CredentialsType = string; + +/** Known values of {@link DatastoreType} that the service accepts. */ +export enum KnownDatastoreType { + AzureBlob = "AzureBlob", + AzureDataLakeGen1 = "AzureDataLakeGen1", + AzureDataLakeGen2 = "AzureDataLakeGen2", + AzureFile = "AzureFile" +} + +/** + * Defines values for DatastoreType. \ + * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureBlob** \ + * **AzureDataLakeGen1** \ + * **AzureDataLakeGen2** \ + * **AzureFile** + */ +export type DatastoreType = string; + +/** Known values of {@link SecretsType} that the service accepts. */ +export enum KnownSecretsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal" +} + +/** + * Defines values for SecretsType. \ + * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **Sas** \ + * **ServicePrincipal** + */ +export type SecretsType = string; + +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + Curated = "Curated", + UserCreated = "UserCreated" +} + +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Curated** \ + * **UserCreated** + */ +export type EnvironmentType = string; + +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + Linux = "Linux", + Windows = "Windows" +} + +/** + * Defines values for OperatingSystemType. \ + * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type OperatingSystemType = string; + +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export enum KnownIdentityConfigurationType { + Managed = "Managed", + AMLToken = "AMLToken", + UserIdentity = "UserIdentity" +} + +/** + * Defines values for IdentityConfigurationType. \ + * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **AMLToken** \ + * **UserIdentity** + */ +export type IdentityConfigurationType = string; + +/** Known values of {@link JobType} that the service accepts. */ +export enum KnownJobType { + Command = "Command", + Sweep = "Sweep", + Pipeline = "Pipeline" +} + +/** + * Defines values for JobType. \ + * {@link KnownJobType} can be used interchangeably with JobType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Command** \ + * **Sweep** \ + * **Pipeline** + */ +export type JobType = string; + +/** Known values of {@link JobStatus} that the service accepts. */ +export enum KnownJobStatus { + /** Run hasn't started yet. */ + NotStarted = "NotStarted", + /** Run has started. The user has a run ID. */ + Starting = "Starting", + /** (Not used currently) It will be used if ES is creating the compute target. */ + Provisioning = "Provisioning", + /** The run environment is being prepared. */ + Preparing = "Preparing", + /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ + Queued = "Queued", + /** The job started to run in the compute target. */ + Running = "Running", + /** Job is completed in the target. It is in output collection state now. */ + Finalizing = "Finalizing", + /** Cancellation has been requested for the job. */ + CancelRequested = "CancelRequested", + /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ + Completed = "Completed", + /** Job failed. */ + Failed = "Failed", + /** Following cancellation request, the job is now successfully canceled. */ + Canceled = "Canceled", + /** + * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. + */ + NotResponding = "NotResponding", + /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ + Paused = "Paused", + /** Default job status if not mapped to all other statuses */ + Unknown = "Unknown" +} + +/** + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted**: Run hasn't started yet. \ + * **Starting**: Run has started. The user has a run ID. \ + * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ + * **Preparing**: The run environment is being prepared. \ + * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ + * **Running**: The job started to run in the compute target. \ + * **Finalizing**: Job is completed in the target. It is in output collection state now. \ + * **CancelRequested**: Cancellation has been requested for the job. \ + * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ + * **Failed**: Job failed. \ + * **Canceled**: Following cancellation request, the job is now successfully canceled. \ + * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ + * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ + * **Unknown**: Default job status if not mapped to all other statuses + */ +export type JobStatus = string; + +/** Known values of {@link EndpointComputeType} that the service accepts. */ +export enum KnownEndpointComputeType { + Managed = "Managed", + Kubernetes = "Kubernetes", + AzureMLCompute = "AzureMLCompute" +} + +/** + * Defines values for EndpointComputeType. \ + * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **Kubernetes** \ + * **AzureMLCompute** + */ +export type EndpointComputeType = string; + +/** Known values of {@link OrderString} that the service accepts. */ +export enum KnownOrderString { + CreatedAtDesc = "CreatedAtDesc", + CreatedAtAsc = "CreatedAtAsc", + UpdatedAtDesc = "UpdatedAtDesc", + UpdatedAtAsc = "UpdatedAtAsc" +} + +/** + * Defines values for OrderString. \ + * {@link KnownOrderString} can be used interchangeably with OrderString, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedAtDesc** \ + * **CreatedAtAsc** \ + * **UpdatedAtDesc** \ + * **UpdatedAtAsc** + */ +export type OrderString = string; + +/** Known values of {@link ScaleType} that the service accepts. */ +export enum KnownScaleType { + Default = "Default", + TargetUtilization = "TargetUtilization" +} + +/** + * Defines values for ScaleType. \ + * {@link KnownScaleType} can be used interchangeably with ScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **TargetUtilization** + */ +export type ScaleType = string; + +/** Known values of {@link ContainerType} that the service accepts. */ +export enum KnownContainerType { + StorageInitializer = "StorageInitializer", + InferenceServer = "InferenceServer" +} + +/** + * Defines values for ContainerType. \ + * {@link KnownContainerType} can be used interchangeably with ContainerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **StorageInitializer** \ + * **InferenceServer** + */ +export type ContainerType = string; + +/** Known values of {@link SkuScaleType} that the service accepts. */ +export enum KnownSkuScaleType { + Automatic = "Automatic", + Manual = "Manual", + None = "None" +} + +/** + * Defines values for SkuScaleType. \ + * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Automatic** \ + * **Manual** \ + * **None** + */ +export type SkuScaleType = string; + +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" +} + +/** + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type KeyType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + Unknown = "Unknown", + Updating = "Updating", + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Updating** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ProvisioningState = string; + +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type EncryptionStatus = string; + +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccess = string; + +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected", + Disconnected = "Disconnected", + Timeout = "Timeout" +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + Succeeded = "Succeeded", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + Warning = "Warning", + Error = "Error", + Information = "Information" +} + +/** + * Defines values for DiagnoseResultLevel. \ + * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Warning** \ + * **Error** \ + * **Information** + */ +export type DiagnoseResultLevel = string; + +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + Count = "Count" +} + +/** + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type UsageUnit = string; + +/** Known values of {@link BillingCurrency} that the service accepts. */ +export enum KnownBillingCurrency { + USD = "USD" +} + +/** + * Defines values for BillingCurrency. \ + * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **USD** + */ +export type BillingCurrency = string; + +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export enum KnownUnitOfMeasure { + OneHour = "OneHour" +} + +/** + * Defines values for UnitOfMeasure. \ + * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OneHour** + */ +export type UnitOfMeasure = string; + +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export enum KnownVMPriceOSType { + Linux = "Linux", + Windows = "Windows" +} + +/** + * Defines values for VMPriceOSType. \ + * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type VMPriceOSType = string; + +/** Known values of {@link VMTier} that the service accepts. */ +export enum KnownVMTier { + Standard = "Standard", + LowPriority = "LowPriority", + Spot = "Spot" +} + +/** + * Defines values for VMTier. \ + * {@link KnownVMTier} can be used interchangeably with VMTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **LowPriority** \ + * **Spot** + */ +export type VMTier = string; + +/** Known values of {@link QuotaUnit} that the service accepts. */ +export enum KnownQuotaUnit { + Count = "Count" +} + +/** + * Defines values for QuotaUnit. \ + * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** + */ +export type QuotaUnit = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + Undefined = "Undefined", + Success = "Success", + Failure = "Failure", + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + InvalidVMFamilyName = "InvalidVMFamilyName", + OperationNotSupportedForSku = "OperationNotSupportedForSku", + OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +} + +/** + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Undefined** \ + * **Success** \ + * **Failure** \ + * **InvalidQuotaBelowClusterMinimum** \ + * **InvalidQuotaExceedsSubscriptionLimit** \ + * **InvalidVMFamilyName** \ + * **OperationNotSupportedForSku** \ + * **OperationNotEnabledForRegion** + */ +export type Status = string; + +/** Known values of {@link ComputeType} that the service accepts. */ +export enum KnownComputeType { + AKS = "AKS", + Kubernetes = "Kubernetes", + AmlCompute = "AmlCompute", + ComputeInstance = "ComputeInstance", + DataFactory = "DataFactory", + VirtualMachine = "VirtualMachine", + HDInsight = "HDInsight", + Databricks = "Databricks", + DataLakeAnalytics = "DataLakeAnalytics", + SynapseSpark = "SynapseSpark" +} + +/** + * Defines values for ComputeType. \ + * {@link KnownComputeType} can be used interchangeably with ComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AKS** \ + * **Kubernetes** \ + * **AmlCompute** \ + * **ComputeInstance** \ + * **DataFactory** \ + * **VirtualMachine** \ + * **HDInsight** \ + * **Databricks** \ + * **DataLakeAnalytics** \ + * **SynapseSpark** + */ +export type ComputeType = string; + +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export enum KnownUnderlyingResourceAction { + Delete = "Delete", + Detach = "Detach" +} + +/** + * Defines values for UnderlyingResourceAction. \ + * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Delete** \ + * **Detach** + */ +export type UnderlyingResourceAction = string; + +/** Known values of {@link NodeState} that the service accepts. */ +export enum KnownNodeState { + Idle = "idle", + Running = "running", + Preparing = "preparing", + Unusable = "unusable", + Leaving = "leaving", + Preempted = "preempted" +} + +/** + * Defines values for NodeState. \ + * {@link KnownNodeState} can be used interchangeably with NodeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **idle** \ + * **running** \ + * **preparing** \ + * **unusable** \ + * **leaving** \ + * **preempted** + */ +export type NodeState = string; + +/** Known values of {@link ConnectionAuthType} that the service accepts. */ +export enum KnownConnectionAuthType { + PAT = "PAT", + ManagedIdentity = "ManagedIdentity", + UsernamePassword = "UsernamePassword", + None = "None", + SAS = "SAS" +} + +/** + * Defines values for ConnectionAuthType. \ + * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PAT** \ + * **ManagedIdentity** \ + * **UsernamePassword** \ + * **None** \ + * **SAS** + */ +export type ConnectionAuthType = string; + +/** Known values of {@link ConnectionCategory} that the service accepts. */ +export enum KnownConnectionCategory { + PythonFeed = "PythonFeed", + ContainerRegistry = "ContainerRegistry", + Git = "Git" +} + +/** + * Defines values for ConnectionCategory. \ + * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PythonFeed** \ + * **ContainerRegistry** \ + * **Git** + */ +export type ConnectionCategory = string; + +/** Known values of {@link ValueFormat} that the service accepts. */ +export enum KnownValueFormat { + Json = "JSON" +} + +/** + * Defines values for ValueFormat. \ + * {@link KnownValueFormat} can be used interchangeably with ValueFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JSON** + */ +export type ValueFormat = string; + +/** Known values of {@link InputDeliveryMode} that the service accepts. */ +export enum KnownInputDeliveryMode { + ReadOnlyMount = "ReadOnlyMount", + ReadWriteMount = "ReadWriteMount", + Download = "Download", + Direct = "Direct", + EvalMount = "EvalMount", + EvalDownload = "EvalDownload" +} + +/** + * Defines values for InputDeliveryMode. \ + * {@link KnownInputDeliveryMode} can be used interchangeably with InputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadOnlyMount** \ + * **ReadWriteMount** \ + * **Download** \ + * **Direct** \ + * **EvalMount** \ + * **EvalDownload** + */ +export type InputDeliveryMode = string; + +/** Known values of {@link OutputDeliveryMode} that the service accepts. */ +export enum KnownOutputDeliveryMode { + ReadWriteMount = "ReadWriteMount", + Upload = "Upload" +} + +/** + * Defines values for OutputDeliveryMode. \ + * {@link KnownOutputDeliveryMode} can be used interchangeably with OutputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadWriteMount** \ + * **Upload** + */ +export type OutputDeliveryMode = string; + +/** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ +export enum KnownServiceDataAccessAuthIdentity { + /** Do not use any identity for service data access. */ + None = "None", + /** Use the system assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + /** Use the user assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +/** + * Defines values for ServiceDataAccessAuthIdentity. \ + * {@link KnownServiceDataAccessAuthIdentity} can be used interchangeably with ServiceDataAccessAuthIdentity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Do not use any identity for service data access. \ + * **WorkspaceSystemAssignedIdentity**: Use the system assigned managed identity of the Workspace to authenticate service data access. \ + * **WorkspaceUserAssignedIdentity**: Use the user assigned managed identity of the Workspace to authenticate service data access. + */ +export type ServiceDataAccessAuthIdentity = string; + +/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ +export enum KnownEarlyTerminationPolicyType { + Bandit = "Bandit", + MedianStopping = "MedianStopping", + TruncationSelection = "TruncationSelection" +} + +/** + * Defines values for EarlyTerminationPolicyType. \ + * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bandit** \ + * **MedianStopping** \ + * **TruncationSelection** + */ +export type EarlyTerminationPolicyType = string; + +/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ +export enum KnownSamplingAlgorithmType { + Grid = "Grid", + Random = "Random", + Bayesian = "Bayesian" +} + +/** + * Defines values for SamplingAlgorithmType. \ + * {@link KnownSamplingAlgorithmType} can be used interchangeably with SamplingAlgorithmType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Grid** \ + * **Random** \ + * **Bayesian** + */ +export type SamplingAlgorithmType = string; + +/** Known values of {@link DistributionType} that the service accepts. */ +export enum KnownDistributionType { + PyTorch = "PyTorch", + TensorFlow = "TensorFlow", + Mpi = "Mpi" +} + +/** + * Defines values for DistributionType. \ + * {@link KnownDistributionType} can be used interchangeably with DistributionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PyTorch** \ + * **TensorFlow** \ + * **Mpi** + */ +export type DistributionType = string; + +/** Known values of {@link JobInputType} that the service accepts. */ +export enum KnownJobInputType { + Literal = "literal", + UriFile = "uri_file", + UriFolder = "uri_folder", + Mltable = "mltable", + CustomModel = "custom_model", + MlflowModel = "mlflow_model", + TritonModel = "triton_model" +} + +/** + * Defines values for JobInputType. \ + * {@link KnownJobInputType} can be used interchangeably with JobInputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **literal** \ + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobInputType = string; + +/** Known values of {@link JobLimitsType} that the service accepts. */ +export enum KnownJobLimitsType { + Command = "Command", + Sweep = "Sweep" +} + +/** + * Defines values for JobLimitsType. \ + * {@link KnownJobLimitsType} can be used interchangeably with JobLimitsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Command** \ + * **Sweep** + */ +export type JobLimitsType = string; + +/** Known values of {@link JobOutputType} that the service accepts. */ +export enum KnownJobOutputType { + UriFile = "uri_file", + UriFolder = "uri_folder", + Mltable = "mltable", + CustomModel = "custom_model", + MlflowModel = "mlflow_model", + TritonModel = "triton_model" +} + +/** + * Defines values for JobOutputType. \ + * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobOutputType = string; + +/** Known values of {@link Goal} that the service accepts. */ +export enum KnownGoal { + Minimize = "Minimize", + Maximize = "Maximize" +} + +/** + * Defines values for Goal. \ + * {@link KnownGoal} can be used interchangeably with Goal, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minimize** \ + * **Maximize** + */ +export type Goal = string; + +/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ +export enum KnownRandomSamplingAlgorithmRule { + Random = "Random", + Sobol = "Sobol" +} + +/** + * Defines values for RandomSamplingAlgorithmRule. \ + * {@link KnownRandomSamplingAlgorithmRule} can be used interchangeably with RandomSamplingAlgorithmRule, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Random** \ + * **Sobol** + */ +export type RandomSamplingAlgorithmRule = string; + +/** Known values of {@link ClusterPurpose} that the service accepts. */ +export enum KnownClusterPurpose { + FastProd = "FastProd", + DenseProd = "DenseProd", + DevTest = "DevTest" +} + +/** + * Defines values for ClusterPurpose. \ + * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FastProd** \ + * **DenseProd** \ + * **DevTest** + */ +export type ClusterPurpose = string; + +/** Known values of {@link SslConfigurationStatus} that the service accepts. */ +export enum KnownSslConfigurationStatus { + Disabled = "Disabled", + Enabled = "Enabled", + Auto = "Auto" +} + +/** + * Defines values for SslConfigurationStatus. \ + * {@link KnownSslConfigurationStatus} can be used interchangeably with SslConfigurationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Auto** + */ +export type SslConfigurationStatus = string; + +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export enum KnownLoadBalancerType { + PublicIp = "PublicIp", + InternalLoadBalancer = "InternalLoadBalancer" +} + +/** + * Defines values for LoadBalancerType. \ + * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PublicIp** \ + * **InternalLoadBalancer** + */ +export type LoadBalancerType = string; + +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + Linux = "Linux", + Windows = "Windows" +} + +/** + * Defines values for OsType. \ + * {@link KnownOsType} can be used interchangeably with OsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type OsType = string; + +/** Known values of {@link VmPriority} that the service accepts. */ +export enum KnownVmPriority { + Dedicated = "Dedicated", + LowPriority = "LowPriority" +} + +/** + * Defines values for VmPriority. \ + * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dedicated** \ + * **LowPriority** + */ +export type VmPriority = string; + +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export enum KnownRemoteLoginPortPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled", + NotSpecified = "NotSpecified" +} + +/** + * Defines values for RemoteLoginPortPublicAccess. \ + * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **NotSpecified** + */ +export type RemoteLoginPortPublicAccess = string; + +/** Known values of {@link AllocationState} that the service accepts. */ +export enum KnownAllocationState { + Steady = "Steady", + Resizing = "Resizing" +} + +/** + * Defines values for AllocationState. \ + * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Steady** \ + * **Resizing** + */ +export type AllocationState = string; + +/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ +export enum KnownApplicationSharingPolicy { + Personal = "Personal", + Shared = "Shared" +} + +/** + * Defines values for ApplicationSharingPolicy. \ + * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Personal** \ + * **Shared** + */ +export type ApplicationSharingPolicy = string; + +/** Known values of {@link SshPublicAccess} that the service accepts. */ +export enum KnownSshPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for SshPublicAccess. \ + * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type SshPublicAccess = string; + +/** Known values of {@link ComputeInstanceState} that the service accepts. */ +export enum KnownComputeInstanceState { + Creating = "Creating", + CreateFailed = "CreateFailed", + Deleting = "Deleting", + Running = "Running", + Restarting = "Restarting", + JobRunning = "JobRunning", + SettingUp = "SettingUp", + SetupFailed = "SetupFailed", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + UserSettingUp = "UserSettingUp", + UserSetupFailed = "UserSetupFailed", + Unknown = "Unknown", + Unusable = "Unusable" +} + +/** + * Defines values for ComputeInstanceState. \ + * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **CreateFailed** \ + * **Deleting** \ + * **Running** \ + * **Restarting** \ + * **JobRunning** \ + * **SettingUp** \ + * **SetupFailed** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** \ + * **UserSettingUp** \ + * **UserSetupFailed** \ + * **Unknown** \ + * **Unusable** + */ +export type ComputeInstanceState = string; + +/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ +export enum KnownComputeInstanceAuthorizationType { + Personal = "personal" +} + +/** + * Defines values for ComputeInstanceAuthorizationType. \ + * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **personal** + */ +export type ComputeInstanceAuthorizationType = string; + +/** Known values of {@link OperationName} that the service accepts. */ +export enum KnownOperationName { + Create = "Create", + Start = "Start", + Stop = "Stop", + Restart = "Restart", + Reimage = "Reimage", + Delete = "Delete" +} + +/** + * Defines values for OperationName. \ + * {@link KnownOperationName} can be used interchangeably with OperationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Create** \ + * **Start** \ + * **Stop** \ + * **Restart** \ + * **Reimage** \ + * **Delete** + */ +export type OperationName = string; + +/** Known values of {@link OperationStatus} that the service accepts. */ +export enum KnownOperationStatus { + InProgress = "InProgress", + Succeeded = "Succeeded", + CreateFailed = "CreateFailed", + StartFailed = "StartFailed", + StopFailed = "StopFailed", + RestartFailed = "RestartFailed", + ReimageFailed = "ReimageFailed", + DeleteFailed = "DeleteFailed" +} + +/** + * Defines values for OperationStatus. \ + * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **CreateFailed** \ + * **StartFailed** \ + * **StopFailed** \ + * **RestartFailed** \ + * **ReimageFailed** \ + * **DeleteFailed** + */ +export type OperationStatus = string; + +/** Known values of {@link OperationTrigger} that the service accepts. */ +export enum KnownOperationTrigger { + User = "User", + Schedule = "Schedule", + IdleShutdown = "IdleShutdown" +} + +/** + * Defines values for OperationTrigger. \ + * {@link KnownOperationTrigger} can be used interchangeably with OperationTrigger, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Schedule** \ + * **IdleShutdown** + */ +export type OperationTrigger = string; + +/** Known values of {@link ProvisioningStatus} that the service accepts. */ +export enum KnownProvisioningStatus { + Completed = "Completed", + Provisioning = "Provisioning", + Failed = "Failed" +} + +/** + * Defines values for ProvisioningStatus. \ + * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ProvisioningStatus = string; + +/** Known values of {@link ComputePowerAction} that the service accepts. */ +export enum KnownComputePowerAction { + Start = "Start", + Stop = "Stop" +} + +/** + * Defines values for ComputePowerAction. \ + * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Start** \ + * **Stop** + */ +export type ComputePowerAction = string; + +/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ +export enum KnownScheduleProvisioningState { + Completed = "Completed", + Provisioning = "Provisioning", + Failed = "Failed" +} + +/** + * Defines values for ScheduleProvisioningState. \ + * {@link KnownScheduleProvisioningState} can be used interchangeably with ScheduleProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ScheduleProvisioningState = string; + +/** Known values of {@link ScheduleStatus} that the service accepts. */ +export enum KnownScheduleStatus { + Enabled = "Enabled", + Disabled = "Disabled" +} + +/** + * Defines values for ScheduleStatus. \ + * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ScheduleStatus = string; + +/** Known values of {@link Autosave} that the service accepts. */ +export enum KnownAutosave { + None = "None", + Local = "Local", + Remote = "Remote" +} + +/** + * Defines values for Autosave. \ + * {@link KnownAutosave} can be used interchangeably with Autosave, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Local** \ + * **Remote** + */ +export type Autosave = string; + +/** Known values of {@link Network} that the service accepts. */ +export enum KnownNetwork { + Bridge = "Bridge", + Host = "Host" +} + +/** + * Defines values for Network. \ + * {@link KnownNetwork} can be used interchangeably with Network, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bridge** \ + * **Host** + */ +export type Network = string; + +/** Known values of {@link Caching} that the service accepts. */ +export enum KnownCaching { + None = "None", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite" +} + +/** + * Defines values for Caching. \ + * {@link KnownCaching} can be used interchangeably with Caching, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **ReadOnly** \ + * **ReadWrite** + */ +export type Caching = string; + +/** Known values of {@link StorageAccountType} that the service accepts. */ +export enum KnownStorageAccountType { + StandardLRS = "Standard_LRS", + PremiumLRS = "Premium_LRS" +} + +/** + * Defines values for StorageAccountType. \ + * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Premium_LRS** + */ +export type StorageAccountType = string; + +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + Dataset = "Dataset", + Datastore = "Datastore", + URI = "URI" +} + +/** + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Datastore** \ + * **URI** + */ +export type SourceType = string; + +/** Known values of {@link MountAction} that the service accepts. */ +export enum KnownMountAction { + Mount = "Mount", + Unmount = "Unmount" +} + +/** + * Defines values for MountAction. \ + * {@link KnownMountAction} can be used interchangeably with MountAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Mount** \ + * **Unmount** + */ +export type MountAction = string; + +/** Known values of {@link MountState} that the service accepts. */ +export enum KnownMountState { + MountRequested = "MountRequested", + Mounted = "Mounted", + MountFailed = "MountFailed", + UnmountRequested = "UnmountRequested", + UnmountFailed = "UnmountFailed", + Unmounted = "Unmounted" +} + +/** + * Defines values for MountState. \ + * {@link KnownMountState} can be used interchangeably with MountState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MountRequested** \ + * **Mounted** \ + * **MountFailed** \ + * **UnmountRequested** \ + * **UnmountFailed** \ + * **Unmounted** + */ +export type MountState = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; + +/** Optional parameters. */ +export interface BatchEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface BatchEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BatchEndpointsGetResponse = BatchEndpointData; + +/** Optional parameters. */ +export interface BatchEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type BatchEndpointsUpdateResponse = BatchEndpointData; + +/** Optional parameters. */ +export interface BatchEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpointData; + +/** Optional parameters. */ +export interface BatchEndpointsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type BatchEndpointsCheckNameAvailabilityResponse = NameAvailabilityResult; + +/** Optional parameters. */ +export interface BatchEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface BatchEndpointsListNextOptionalParams + extends coreClient.OperationOptions { + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchDeploymentsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchDeploymentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface BatchDeploymentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BatchDeploymentsGetResponse = BatchDeploymentData; + +/** Optional parameters. */ +export interface BatchDeploymentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type BatchDeploymentsUpdateResponse = BatchDeploymentData; + +/** Optional parameters. */ +export interface BatchDeploymentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeploymentData; + +/** Optional parameters. */ +export interface BatchDeploymentsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; +} + +/** Contains response data for the listNext operation. */ +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeContainersGetResponse = CodeContainerData; + +/** Optional parameters. */ +export interface CodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeContainersCreateOrUpdateResponse = CodeContainerData; + +/** Optional parameters. */ +export interface CodeContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeVersionsGetResponse = CodeVersionData; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersionData; + +/** Optional parameters. */ +export interface CodeVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the listNext operation. */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentContainersGetResponse = ComponentContainerData; + +/** Optional parameters. */ +export interface ComponentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentContainersCreateOrUpdateResponse = ComponentContainerData; + +/** Optional parameters. */ +export interface ComponentContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentVersionsGetResponse = ComponentVersionData; + +/** Optional parameters. */ +export interface ComponentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentVersionsCreateOrUpdateResponse = ComponentVersionData; + +/** Optional parameters. */ +export interface ComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataContainersGetResponse = DataContainerData; + +/** Optional parameters. */ +export interface DataContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataContainersCreateOrUpdateResponse = DataContainerData; + +/** Optional parameters. */ +export interface DataContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; +} + +/** Contains response data for the list operation. */ +export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataVersionsGetResponse = DataVersionBaseData; + +/** Optional parameters. */ +export interface DataVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataVersionsCreateOrUpdateResponse = DataVersionBaseData; + +/** Optional parameters. */ +export interface DataVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; +} + +/** Contains response data for the listNext operation. */ +export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; +} + +/** Contains response data for the list operation. */ +export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DatastoresGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DatastoresGetResponse = DatastoreData; + +/** Optional parameters. */ +export interface DatastoresCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Flag to skip validation. */ + skipValidation?: boolean; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DatastoresCreateOrUpdateResponse = DatastoreData; + +/** Optional parameters. */ +export interface DatastoresListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; + +/** Optional parameters. */ +export interface DatastoresListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; +} + +/** Contains response data for the listNext operation. */ +export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface EnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EnvironmentContainersGetResponse = EnvironmentContainerData; + +/** Optional parameters. */ +export interface EnvironmentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerData; + +/** Optional parameters. */ +export interface EnvironmentContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface EnvironmentVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface EnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EnvironmentVersionsGetResponse = EnvironmentVersionData; + +/** Optional parameters. */ +export interface EnvironmentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersionData; + +/** Optional parameters. */ +export interface EnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface JobsListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Type of job to be returned. */ + jobType?: string; + /** Jobs returned will have this tag key. */ + tag?: string; +} + +/** Contains response data for the list operation. */ +export type JobsListResponse = JobBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobsGetResponse = JobBaseData; + +/** Optional parameters. */ +export interface JobsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type JobsCreateOrUpdateResponse = JobBaseData; + +/** Optional parameters. */ +export interface JobsCancelOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface JobsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Type of job to be returned. */ + jobType?: string; + /** Jobs returned will have this tag key. */ + tag?: string; +} + +/** Contains response data for the listNext operation. */ +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelContainersListOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of results to return. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the list operation. */ +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ModelContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ModelContainersGetResponse = ModelContainerData; + +/** Optional parameters. */ +export interface ModelContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ModelContainersCreateOrUpdateResponse = ModelContainerData; + +/** Optional parameters. */ +export interface ModelContainersListNextOptionalParams + extends coreClient.OperationOptions { + /** Maximum number of results to return. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} + +/** Contains response data for the listNext operation. */ +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; + /** Name of the feed. */ + feed?: string; +} + +/** Contains response data for the list operation. */ +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ModelVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ModelVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ModelVersionsGetResponse = ModelVersionData; + +/** Optional parameters. */ +export interface ModelVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ModelVersionsCreateOrUpdateResponse = ModelVersionData; + +/** Optional parameters. */ +export interface ModelVersionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; + /** Name of the feed. */ + feed?: string; +} + +/** Contains response data for the listNext operation. */ +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Name of the endpoint. */ + name?: string; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; + /** The option to order the response. */ + orderBy?: OrderString; +} + +/** Contains response data for the list operation. */ +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineEndpointsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface OnlineEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type OnlineEndpointsGetResponse = OnlineEndpointData; + +/** Optional parameters. */ +export interface OnlineEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type OnlineEndpointsUpdateResponse = OnlineEndpointData; + +/** Optional parameters. */ +export interface OnlineEndpointsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointData; + +/** Optional parameters. */ +export interface OnlineEndpointsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type OnlineEndpointsCheckNameAvailabilityResponse = NameAvailabilityResult; + +/** Optional parameters. */ +export interface OnlineEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface OnlineEndpointsRegenerateKeysOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface OnlineEndpointsGetTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getToken operation. */ +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +/** Optional parameters. */ +export interface OnlineEndpointsListNextOptionalParams + extends coreClient.OperationOptions { + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Name of the endpoint. */ + name?: string; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; + /** The option to order the response. */ + orderBy?: OrderString; } -/** Display name of operation */ -export interface OperationDisplay { - /** The resource provider name: Microsoft.MachineLearning */ - provider?: string; - /** The resource on which the operation is performed. */ - resource?: string; - /** The operation that users can perform. */ - operation?: string; - /** The description for the operation. */ - description?: string; +/** Contains response data for the listNext operation. */ +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } -/** The error response send when an operation fails. */ -export interface ErrorResponse { - /** error code */ - code: string; - /** error message */ - message: string; +/** Contains response data for the list operation. */ +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** An Azure resource. */ -export interface Resource { - /** - * The resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The location of the resource. This cannot be changed after the resource is created. */ - location: string; - /** The tags of the resource. */ - tags?: { [propertyName: string]: string }; - /** The sku of the workspace. */ - sku?: Sku; +/** Optional parameters. */ +export interface OnlineDeploymentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type OnlineDeploymentsGetResponse = OnlineDeploymentData; + +/** Optional parameters. */ +export interface OnlineDeploymentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Sku of the resource */ -export interface Sku { - /** Name of the sku */ - name?: string; - /** Tier of the sku like Basic or Enterprise */ - tier?: string; +/** Contains response data for the update operation. */ +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentData; + +/** Optional parameters. */ +export interface OnlineDeploymentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** The parameters for updating a machine learning workspace. */ -export interface WorkspaceUpdateParameters { - /** The resource tags for the machine learning workspace. */ - tags?: { [propertyName: string]: string }; - /** The current state of workspace resource. */ - workspaceState?: WorkspaceState; - /** The key vault identifier used for encrypted workspaces. */ - keyVaultIdentifierId?: string; - /** The sku of the workspace. */ - sku?: Sku; +/** Contains response data for the createOrUpdate operation. */ +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentData; + +/** Optional parameters. */ +export interface OnlineDeploymentsGetLogsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLogs operation. */ +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +/** Optional parameters. */ +export interface OnlineDeploymentsListSkusOptionalParams + extends coreClient.OperationOptions { + /** Number of Skus to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; } -/** Workspace authorization keys for a workspace. */ -export interface WorkspaceKeysResponse { - /** Primary authorization key for this workspace. */ - primaryToken?: string; - /** Secondary authorization key for this workspace. */ - secondaryToken?: string; +/** Contains response data for the listSkus operation. */ +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } -/** The result of a request to list machine learning workspace keys. */ -export interface WorkspaceListResult { - /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ - value?: Workspace[]; - /** The URI that can be used to request the next list of machine learning workspaces. */ - nextLink?: string; +/** Contains response data for the listNext operation. */ +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListSkusNextOptionalParams + extends coreClient.OperationOptions { + /** Number of Skus to be retrieved in a page of results. */ + count?: number; + /** Continuation token for pagination. */ + skip?: string; } -/** An object that represents a machine learning workspace. */ -export type Workspace = Resource & { - /** The fully qualified arm id of the storage account associated with this workspace. */ - userStorageAccountId?: string; - /** The email id of the owner for this workspace. */ - ownerEmail?: string; - /** - * The type of this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceType?: WorkspaceType; - /** - * The current state of workspace resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceState?: WorkspaceState; - /** - * The immutable id associated with this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceId?: string; - /** - * The creation time for this workspace resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: string; - /** - * The regional endpoint for the machine learning studio service which hosts this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly studioEndpoint?: string; - /** The key vault identifier used for encrypted workspaces. */ - keyVaultIdentifierId?: string; -}; -/** Defines values for WorkspaceType. */ -export type WorkspaceType = - | "Production" - | "Free" - | "Anonymous" - | "PaidStandard" - | "PaidPremium"; -/** Defines values for WorkspaceState. */ -export type WorkspaceState = - | "Deleted" - | "Enabled" - | "Disabled" - | "Migrated" - | "Updated" - | "Registered" - | "Unregistered"; +/** Contains response data for the listSkusNext operation. */ +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +export type OperationsListResponse = AmlOperationListResult; /** Optional parameters. */ export interface WorkspacesGetOptionalParams @@ -170,63 +6224,382 @@ export type WorkspacesGetResponse = Workspace; /** Optional parameters. */ export interface WorkspacesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ export type WorkspacesCreateOrUpdateResponse = Workspace; /** Optional parameters. */ export interface WorkspacesDeleteOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface WorkspacesUpdateOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ export type WorkspacesUpdateResponse = Workspace; /** Optional parameters. */ -export interface WorkspacesResyncStorageKeysOptionalParams +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesDiagnoseOptionalParams + extends coreClient.OperationOptions { + /** The parameter of diagnosing workspace health */ + parameters?: DiagnoseWorkspaceParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the diagnose operation. */ +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; + +/** Optional parameters. */ +export interface WorkspacesListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; + +/** Optional parameters. */ +export interface WorkspacesResyncKeysOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesListNotebookAccessTokenOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNotebookAccessToken operation. */ +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; + +/** Optional parameters. */ +export interface WorkspacesPrepareNotebookOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the prepareNotebook operation. */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; + /** Optional parameters. */ -export interface WorkspacesListWorkspaceKeysOptionalParams +export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listWorkspaceKeys operation. */ -export type WorkspacesListWorkspaceKeysResponse = WorkspaceKeysResponse; +/** Contains response data for the listStorageAccountKeys operation. */ +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams +export interface WorkspacesListNotebookKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; +/** Contains response data for the listNotebookKeys operation. */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; /** Optional parameters. */ -export interface WorkspacesListOptionalParams +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type WorkspacesListResponse = WorkspaceListResult; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; /** Optional parameters. */ export interface WorkspacesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} /** Contains response data for the listByResourceGroupNext operation. */ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface WorkspacesListNextOptionalParams +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface UsagesListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type UsagesListResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface UsagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type UsagesListNextResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface VirtualMachineSizesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface QuotasUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +/** Optional parameters. */ +export interface QuotasListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type ComputeListResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ComputeCreateOrUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ComputeUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeRestartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface WorkspaceConnectionsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; +} + +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListNextOptionalParams + extends coreClient.OperationOptions { + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; +} + +/** Contains response data for the listNext operation. */ +export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface WorkspaceFeaturesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface WorkspaceFeaturesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspacesListNextResponse = WorkspaceListResult; +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; /** Optional parameters. */ -export interface MachineLearningWorkspacesManagementClientOptionalParams +export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; diff --git a/sdk/machinelearning/arm-workspaces/src/models/mappers.ts b/sdk/machinelearning/arm-workspaces/src/models/mappers.ts index c108fdebee45..4a534eb07a65 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/mappers.ts +++ b/sdk/machinelearning/arm-workspaces/src/models/mappers.ts @@ -8,11 +8,17 @@ import * as coreClient from "@azure/core-client"; -export const OperationListResult: coreClient.CompositeMapper = { +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "BatchEndpointTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -20,7 +26,7 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "BatchEndpointData" } } } @@ -29,53 +35,130 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ManagedServiceIdentity", modelProperties: { - name: { - serializedName: "name", + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - display: { - serializedName: "display", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Composite", - className: "OperationDisplay" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "UserAssignedIdentity", modelProperties: { - provider: { - serializedName: "provider", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - resource: { - serializedName: "resource", + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const BatchEndpointDefaults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointDefaults", + modelProperties: { + deploymentName: { + serializedName: "deploymentName", + nullable: true, type: { name: "String" } - }, - operation: { - serializedName: "operation", + } + } + } +}; + +export const EndpointPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointPropertiesBase", + modelProperties: { + authMode: { + serializedName: "authMode", + required: true, type: { name: "String" } }, description: { serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "EndpointAuthKeys" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + scoringUri: { + serializedName: "scoringUri", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + swaggerUri: { + serializedName: "swaggerUri", + readOnly: true, + nullable: true, type: { name: "String" } @@ -84,21 +167,21 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const ErrorResponse: coreClient.CompositeMapper = { +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "EndpointAuthKeys", modelProperties: { - code: { - serializedName: "code", - required: true, + primaryKey: { + serializedName: "primaryKey", + nullable: true, type: { name: "String" } }, - message: { - serializedName: "message", - required: true, + secondaryKey: { + serializedName: "secondaryKey", + nullable: true, type: { name: "String" } @@ -107,245 +190,9707 @@ export const ErrorResponse: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "Sku", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + tier: { + serializedName: "tier", type: { - name: "String" + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] } }, - location: { - serializedName: "location", - required: true, + size: { + serializedName: "size", type: { name: "String" } }, - tags: { - serializedName: "tags", + family: { + serializedName: "family", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + capacity: { + serializedName: "capacity", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const Sku: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "Resource", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "SystemData", modelProperties: { - tags: { - serializedName: "tags", + createdBy: { + serializedName: "createdBy", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - workspaceState: { - serializedName: "properties.workspaceState", + createdByType: { + serializedName: "createdByType", type: { - name: "Enum", - allowedValues: [ - "Deleted", - "Enabled", - "Disabled", - "Migrated", - "Updated", - "Registered", - "Unregistered" - ] + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" } }, - keyVaultIdentifierId: { - serializedName: "properties.keyVaultIdentifierId", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - sku: { - serializedName: "properties.sku", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Composite", - className: "Sku" + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" } } } } }; -export const WorkspaceKeysResponse: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceKeysResponse", + className: "ErrorResponse", modelProperties: { - primaryToken: { - serializedName: "primaryToken", - type: { - name: "String" - } - }, - secondaryToken: { - serializedName: "secondaryToken", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "ErrorDetail", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Workspace" + className: "ErrorDetail" } } } }, - nextLink: { - serializedName: "nextLink", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const Workspace: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "ErrorAdditionalInfo", modelProperties: { - ...Resource.type.modelProperties, - userStorageAccountId: { - serializedName: "properties.userStorageAccountId", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - ownerEmail: { - serializedName: "properties.ownerEmail", + info: { + serializedName: "info", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - }, - workspaceType: { - serializedName: "properties.workspaceType", - readOnly: true, + } + } + } +}; + +export const PartialBatchEndpointPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchEndpointPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", type: { - name: "Enum", - allowedValues: [ - "Production", - "Free", - "Anonymous", - "PaidStandard", - "PaidPremium" - ] + name: "Composite", + className: "PartialManagedServiceIdentity" } }, - workspaceState: { - serializedName: "properties.workspaceState", - readOnly: true, + kind: { + serializedName: "kind", type: { - name: "Enum", - allowedValues: [ - "Deleted", - "Enabled", - "Disabled", - "Migrated", - "Updated", - "Registered", - "Unregistered" - ] + name: "String" } }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PartialBatchEndpoint" } }, - studioEndpoint: { - serializedName: "properties.studioEndpoint", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PartialSku" } }, - keyVaultIdentifierId: { - serializedName: "properties.keyVaultIdentifierId", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialManagedServiceIdentity", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } } } } }; + +export const PartialBatchEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchEndpoint", + modelProperties: { + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + } + } + } +}; + +export const PartialSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialSku", + modelProperties: { + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] + } + } + } + } +}; + +export const NameAvailabilityResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NameAvailabilityResult", + modelProperties: { + message: { + serializedName: "message", + nullable: true, + type: { + name: "String" + } + }, + nameAvailable: { + defaultValue: true, + serializedName: "nameAvailable", + type: { + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchDeploymentData" + } + } + } + } + } + } +}; + +export const AssetReferenceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType" + }, + modelProperties: { + referenceType: { + serializedName: "referenceType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceConfiguration", + modelProperties: { + instanceCount: { + defaultValue: 1, + serializedName: "instanceCount", + type: { + name: "Number" + } + }, + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + } +}; + +export const BatchRetrySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchRetrySettings", + modelProperties: { + maxRetries: { + defaultValue: 3, + serializedName: "maxRetries", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "PT30S", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDeploymentPropertiesBase", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const CodeConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeConfiguration", + modelProperties: { + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "scoringScript", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartialBatchDeploymentPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchDeploymentPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialBatchDeployment" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialBatchDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchDeployment", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "PartialCodeConfiguration" + } + }, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + errorThreshold: { + serializedName: "errorThreshold", + type: { + name: "Number" + } + }, + loggingLevel: { + serializedName: "loggingLevel", + type: { + name: "String" + } + }, + maxConcurrencyPerInstance: { + serializedName: "maxConcurrencyPerInstance", + type: { + name: "Number" + } + }, + miniBatchSize: { + serializedName: "miniBatchSize", + type: { + name: "Number" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "PartialAssetReferenceBase" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" + } + }, + outputFileName: { + serializedName: "outputFileName", + nullable: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + retrySettings: { + serializedName: "retrySettings", + type: { + name: "Composite", + className: "PartialBatchRetrySettings" + } + } + } + } +}; + +export const PartialCodeConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialCodeConfiguration", + modelProperties: { + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + scoringScript: { + constraints: { + MinLength: 1 + }, + serializedName: "scoringScript", + type: { + name: "String" + } + } + } + } +}; + +export const PartialAssetReferenceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialAssetReferenceBase", + uberParent: "PartialAssetReferenceBase", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType" + }, + modelProperties: { + referenceType: { + serializedName: "referenceType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartialBatchRetrySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialBatchRetrySettings", + modelProperties: { + maxRetries: { + serializedName: "maxRetries", + type: { + name: "Number" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeContainerData" + } + } + } + } + } + } +}; + +export const ResourceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceBase", + modelProperties: { + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeVersionData" + } + } + } + } + } + } +}; + +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentContainerData" + } + } + } + } + } + } +}; + +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentVersionData" + } + } + } + } + } + } +}; + +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataContainerData" + } + } + } + } + } + } +}; + +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBaseResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataVersionBaseData" + } + } + } + } + } + } +}; + +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatastoreData" + } + } + } + } + } + } +}; + +export const DatastoreCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, + modelProperties: { + credentialsType: { + serializedName: "credentialsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreSecrets: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: { + serializedName: "secretsType", + clientName: "secretsType" + }, + modelProperties: { + secretsType: { + serializedName: "secretsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentContainerData" + } + } + } + } + } + } +}; + +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentVersionData" + } + } + } + } + } + } +}; + +export const BuildContext: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuildContext", + modelProperties: { + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "contextUri", + required: true, + type: { + name: "String" + } + }, + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const InferenceContainerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceContainerProperties", + modelProperties: { + livenessRoute: { + serializedName: "livenessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + readinessRoute: { + serializedName: "readinessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" + } + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "path", + required: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBaseResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBaseData" + } + } + } + } + } + } +}; + +export const IdentityConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, + modelProperties: { + identityType: { + serializedName: "identityType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobService", + modelProperties: { + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelContainerData" + } + } + } + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersionData" + } + } + } + } + } + } +}; + +export const FlavorData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlavorData", + modelProperties: { + data: { + serializedName: "data", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineEndpointData" + } + } + } + } + } + } +}; + +export const PartialOnlineEndpointPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineEndpointPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineEndpoint" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialOnlineEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineEndpoint", + modelProperties: { + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineDeploymentData" + } + } + } + } + } + } +}; + +export const ProbeSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProbeSettings", + modelProperties: { + failureThreshold: { + defaultValue: 30, + serializedName: "failureThreshold", + type: { + name: "Number" + } + }, + initialDelay: { + serializedName: "initialDelay", + nullable: true, + type: { + name: "TimeSpan" + } + }, + period: { + defaultValue: "PT10S", + serializedName: "period", + type: { + name: "TimeSpan" + } + }, + successThreshold: { + defaultValue: 1, + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "PT2S", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const OnlineRequestSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineRequestSettings", + modelProperties: { + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", + type: { + name: "Number" + } + }, + maxQueueWait: { + defaultValue: "PT0.5S", + serializedName: "maxQueueWait", + type: { + name: "TimeSpan" + } + }, + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const OnlineScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, + modelProperties: { + scaleType: { + serializedName: "scaleType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartialOnlineDeploymentPartialTrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineDeploymentPartialTrackedResource", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineDeployment" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PartialOnlineDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentLogsRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogsRequest", + modelProperties: { + containerType: { + serializedName: "containerType", + type: { + name: "String" + } + }, + tail: { + serializedName: "tail", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const DeploymentLogs: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuResource" + } + } + } + } + } + } +}; + +export const SkuResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuResource", + modelProperties: { + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + }, + resourceType: { + serializedName: "resourceType", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuSetting" + } + } + } + } +}; + +export const SkuCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + default: { + defaultValue: 0, + serializedName: "default", + type: { + name: "Number" + } + }, + maximum: { + defaultValue: 0, + serializedName: "maximum", + type: { + name: "Number" + } + }, + minimum: { + defaultValue: 0, + serializedName: "minimum", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const SkuSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuSetting", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] + } + } + } + } +}; + +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + type: { + name: "String" + } + }, + keyValue: { + serializedName: "keyValue", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointAuthToken", + modelProperties: { + accessToken: { + serializedName: "accessToken", + nullable: true, + type: { + name: "String" + } + }, + expiryTimeUtc: { + defaultValue: 0, + serializedName: "expiryTimeUtc", + type: { + name: "Number" + } + }, + refreshAfterTimeUtc: { + defaultValue: 0, + serializedName: "refreshAfterTimeUtc", + type: { + name: "Number" + } + }, + tokenType: { + serializedName: "tokenType", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlOperation" + } + } + } + } + } + } +}; + +export const AmlOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "AmlOperationDisplay" + } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AmlOperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityForCmk" + } + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", + type: { + name: "Composite", + className: "EncryptionKeyVaultProperties" + } + } + } + } +}; + +export const IdentityForCmk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityForCmk", + modelProperties: { + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const EncryptionKeyVaultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionKeyVaultProperties", + modelProperties: { + keyVaultArmId: { + serializedName: "keyVaultArmId", + required: true, + type: { + name: "String" + } + }, + keyIdentifier: { + serializedName: "keyIdentifier", + required: true, + type: { + name: "String" + } + }, + identityClientId: { + serializedName: "identityClientId", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + subnetArmId: { + serializedName: "subnetArmId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedPrivateLinkResource", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", + type: { + name: "String" + } + }, + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requestMessage: { + serializedName: "properties.requestMessage", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const NotebookResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + notebookPreparationError: { + serializedName: "notebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError" + } + } + } + } +}; + +export const NotebookPreparationError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "Number" + } + } + } + } +}; + +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", + type: { + name: "Composite", + className: "CosmosDbSettings" + } + } + } + } +}; + +export const CosmosDbSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CosmosDbSettings", + modelProperties: { + collectionsThroughput: { + serializedName: "collectionsThroughput", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseWorkspaceParameters", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Composite", + className: "DiagnoseRequestProperties" + } + } + } + } +}; + +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseRequestProperties", + modelProperties: { + udr: { + serializedName: "udr", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + nsg: { + serializedName: "nsg", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + resourceLock: { + serializedName: "resourceLock", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + dnsResolution: { + serializedName: "dnsResolution", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + storageAccount: { + serializedName: "storageAccount", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + keyVault: { + serializedName: "keyVault", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + containerRegistry: { + serializedName: "containerRegistry", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + applicationInsights: { + serializedName: "applicationInsights", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + others: { + serializedName: "others", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + } + } + } +}; + +export const DiagnoseResponseResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseResponseResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Composite", + className: "DiagnoseResponseResultValue" + } + } + } + } +}; + +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseResponseResultValue", + modelProperties: { + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + resourceLockResults: { + serializedName: "resourceLockResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + dnsResolutionResults: { + serializedName: "dnsResolutionResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + storageAccountResults: { + serializedName: "storageAccountResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + keyVaultResults: { + serializedName: "keyVaultResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + containerRegistryResults: { + serializedName: "containerRegistryResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + applicationInsightsResults: { + serializedName: "applicationInsightsResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + }, + otherResults: { + serializedName: "otherResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } + } + } + } + } +}; + +export const DiagnoseResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseResult", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + level: { + serializedName: "level", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListWorkspaceKeysResult", + modelProperties: { + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, + type: { + name: "String" + } + }, + userStorageResourceId: { + serializedName: "userStorageResourceId", + readOnly: true, + type: { + name: "String" + } + }, + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", + readOnly: true, + type: { + name: "String" + } + }, + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", + type: { + name: "Composite", + className: "RegistryListCredentialsResult" + } + }, + notebookAccessKeys: { + serializedName: "notebookAccessKeys", + type: { + name: "Composite", + className: "ListNotebookKeysResult" + } + } + } + } +}; + +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryListCredentialsResult", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + username: { + serializedName: "username", + readOnly: true, + type: { + name: "String" + } + }, + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password" + } + } + } + } + } + } +}; + +export const Password: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Password", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListNotebookKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListNotebookKeysResult", + modelProperties: { + primaryAccessKey: { + serializedName: "primaryAccessKey", + readOnly: true, + type: { + name: "String" + } + }, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListUsagesResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListUsagesResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Usage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Usage", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + currentValue: { + serializedName: "currentValue", + readOnly: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" + } + } + } + } +}; + +export const UsageName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsageName", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSizeListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize" + } + } + } + } + } + } +}; + +export const VirtualMachineSize: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSize", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + family: { + serializedName: "family", + readOnly: true, + type: { + name: "String" + } + }, + vCPUs: { + serializedName: "vCPUs", + readOnly: true, + type: { + name: "Number" + } + }, + gpus: { + serializedName: "gpus", + readOnly: true, + type: { + name: "Number" + } + }, + osVhdSizeMB: { + serializedName: "osVhdSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", + readOnly: true, + type: { + name: "Number" + } + }, + memoryGB: { + serializedName: "memoryGB", + readOnly: true, + type: { + name: "Number" + } + }, + lowPriorityCapable: { + serializedName: "lowPriorityCapable", + readOnly: true, + type: { + name: "Boolean" + } + }, + premiumIO: { + serializedName: "premiumIO", + readOnly: true, + type: { + name: "Boolean" + } + }, + estimatedVMPrices: { + serializedName: "estimatedVMPrices", + type: { + name: "Composite", + className: "EstimatedVMPrices" + } + }, + supportedComputeTypes: { + serializedName: "supportedComputeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EstimatedVMPrices: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EstimatedVMPrices", + modelProperties: { + billingCurrency: { + serializedName: "billingCurrency", + required: true, + type: { + name: "String" + } + }, + unitOfMeasure: { + serializedName: "unitOfMeasure", + required: true, + type: { + name: "String" + } + }, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EstimatedVMPrice" + } + } + } + } + } + } +}; + +export const EstimatedVMPrice: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EstimatedVMPrice", + modelProperties: { + retailPrice: { + serializedName: "retailPrice", + required: true, + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + required: true, + type: { + name: "String" + } + }, + vmTier: { + serializedName: "vmTier", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const QuotaUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaUpdateParameters", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const QuotaBaseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotasResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListWorkspaceQuotas", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceQuota: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceQuota", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeResourceSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResourceSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "Compute" + } + } + } + } +}; + +export const Compute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Compute", + uberParent: "Compute", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" + } + }, + computeLocation: { + serializedName: "computeLocation", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime" + } + }, + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, + type: { + name: "DateTime" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, + type: { + name: "Boolean" + } + }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ClusterUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterUpdateParameters", + modelProperties: { + properties: { + serializedName: "properties.properties", + type: { + name: "Composite", + className: "ScaleSettingsInformation" + } + } + } + } +}; + +export const ScaleSettingsInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleSettingsInformation", + modelProperties: { + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + } + } + } +}; + +export const ScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleSettings", + modelProperties: { + maxNodeCount: { + serializedName: "maxNodeCount", + required: true, + type: { + name: "Number" + } + }, + minNodeCount: { + defaultValue: 0, + serializedName: "minNodeCount", + type: { + name: "Number" + } + }, + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodesInformation", + modelProperties: { + nodes: { + serializedName: "nodes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodeInformation", + modelProperties: { + nodeId: { + serializedName: "nodeId", + readOnly: true, + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + readOnly: true, + type: { + name: "Number" + } + }, + nodeState: { + serializedName: "nodeState", + readOnly: true, + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookAccessTokenResult", + modelProperties: { + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, + type: { + name: "String" + } + }, + hostName: { + serializedName: "hostName", + readOnly: true, + type: { + name: "String" + } + }, + publicDns: { + serializedName: "publicDns", + readOnly: true, + type: { + name: "String" + } + }, + accessToken: { + serializedName: "accessToken", + readOnly: true, + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + readOnly: true, + type: { + name: "String" + } + }, + expiresIn: { + serializedName: "expiresIn", + readOnly: true, + type: { + name: "Number" + } + }, + refreshToken: { + serializedName: "refreshToken", + readOnly: true, + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeSecrets: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListStorageAccountKeysResult", + modelProperties: { + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, + modelProperties: { + authType: { + serializedName: "authType", + required: true, + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + valueFormat: { + serializedName: "valueFormat", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + } +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExternalFqdnResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalFqdnResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoints" + } + } + } + } + } + } +}; + +export const FqdnEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoints", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FqdnEndpointsProperties" + } + } + } + } +}; + +export const FqdnEndpointsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpointsProperties", + modelProperties: { + category: { + serializedName: "category", + type: { + name: "String" + } + }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoint" + } + } + } + } + } + } +}; + +export const FqdnEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoint", + modelProperties: { + domainName: { + serializedName: "domainName", + type: { + name: "String" + } + }, + endpointDetails: { + serializedName: "endpointDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointDetail" + } + } + } + } + } + } +}; + +export const FqdnEndpointDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpointDetail", + modelProperties: { + port: { + serializedName: "port", + type: { + name: "Number" + } + } + } + } +}; + +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlUserFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlUserFeature", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const AssetJobInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetJobInput", + modelProperties: { + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "uri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AssetJobOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetJobOutput", + modelProperties: { + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, + modelProperties: { + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + serializedName: "policyType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SamplingAlgorithm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, + modelProperties: { + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DistributionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + modelProperties: { + distributionType: { + serializedName: "distributionType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType" + }, + modelProperties: { + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + jobInputType: { + serializedName: "jobInputType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobLimits: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: { + serializedName: "jobLimitsType", + clientName: "jobLimitsType" + }, + modelProperties: { + jobLimitsType: { + serializedName: "jobLimitsType", + required: true, + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + nullable: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const JobOutput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobOutput", + uberParent: "JobOutput", + polymorphicDiscriminator: { + serializedName: "jobOutputType", + clientName: "jobOutputType" + }, + modelProperties: { + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + jobOutputType: { + serializedName: "jobOutputType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ContainerResourceRequirements: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + containerResourceLimits: { + serializedName: "containerResourceLimits", + type: { + name: "Composite", + className: "ContainerResourceSettings" + } + }, + containerResourceRequests: { + serializedName: "containerResourceRequests", + type: { + name: "Composite", + className: "ContainerResourceSettings" + } + } + } + } +}; + +export const ContainerResourceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerResourceSettings", + modelProperties: { + cpu: { + serializedName: "cpu", + nullable: true, + type: { + name: "String" + } + }, + gpu: { + serializedName: "gpu", + nullable: true, + type: { + name: "String" + } + }, + memory: { + serializedName: "memory", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const Objective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String" + } + }, + primaryMetric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "primaryMetric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "ResourceConfiguration" + } + } + } + } +}; + +export const ResourceId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceId", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AKSSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AKSSchemaProperties" + } + } + } + } +}; + +export const AKSSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AKSSchemaProperties", + modelProperties: { + clusterFqdn: { + serializedName: "clusterFqdn", + type: { + name: "String" + } + }, + systemServices: { + serializedName: "systemServices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } + } + }, + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", + type: { + name: "Number" + } + }, + agentVmSize: { + serializedName: "agentVmSize", + type: { + name: "String" + } + }, + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { + name: "String" + } + }, + sslConfiguration: { + serializedName: "sslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + }, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + type: { + name: "String" + } + } + } + } +}; + +export const SystemService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemService", + modelProperties: { + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SslConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SslConfiguration", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + cert: { + serializedName: "cert", + type: { + name: "String" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + leafDomainLabel: { + serializedName: "leafDomainLabel", + type: { + name: "String" + } + }, + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AksNetworkingConfiguration", + modelProperties: { + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + serviceCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "serviceCidr", + type: { + name: "String" + } + }, + dnsServiceIP: { + constraints: { + Pattern: new RegExp( + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "dnsServiceIP", + type: { + name: "String" + } + }, + dockerBridgeCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "dockerBridgeCidr", + type: { + name: "String" + } + } + } + } +}; + +export const KubernetesSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "KubernetesProperties" + } + } + } + } +}; + +export const KubernetesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesProperties", + modelProperties: { + relayConnectionString: { + serializedName: "relayConnectionString", + type: { + name: "String" + } + }, + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", + type: { + name: "String" + } + }, + extensionPrincipalId: { + serializedName: "extensionPrincipalId", + type: { + name: "String" + } + }, + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", + type: { + name: "String" + } + }, + vcName: { + serializedName: "vcName", + type: { + name: "String" + } + }, + namespace: { + defaultValue: "default", + serializedName: "namespace", + type: { + name: "String" + } + }, + defaultInstanceType: { + serializedName: "defaultInstanceType", + type: { + name: "String" + } + }, + instanceTypes: { + serializedName: "instanceTypes", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } + } + } + } + } + } +}; + +export const InstanceTypeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchema", + modelProperties: { + nodeSelector: { + serializedName: "nodeSelector", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "InstanceTypeSchemaResources" + } + } + } + } +}; + +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchemaResources", + modelProperties: { + requests: { + serializedName: "requests", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AmlComputeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeProperties", + modelProperties: { + osType: { + defaultValue: "Linux", + serializedName: "osType", + type: { + name: "String" + } + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + vmPriority: { + serializedName: "vmPriority", + type: { + name: "String" + } + }, + virtualMachineImage: { + serializedName: "virtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage" + } + }, + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + userAccountCredentials: { + serializedName: "userAccountCredentials", + type: { + name: "Composite", + className: "UserAccountCredentials" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", + type: { + name: "String" + } + }, + allocationState: { + serializedName: "allocationState", + readOnly: true, + type: { + name: "String" + } + }, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + nodeStateCounts: { + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + }, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + type: { + name: "Boolean" + } + }, + propertyBag: { + serializedName: "propertyBag", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const VirtualMachineImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserAccountCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAccountCredentials", + modelProperties: { + adminUserName: { + serializedName: "adminUserName", + required: true, + type: { + name: "String" + } + }, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", + type: { + name: "String" + } + }, + adminUserPassword: { + serializedName: "adminUserPassword", + type: { + name: "String" + } + } + } + } +}; + +export const NodeStateCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeStateCounts", + modelProperties: { + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AmlComputeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AmlComputeProperties" + } + } + } + } +}; + +export const ComputeInstanceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", + type: { + name: "String" + } + }, + sshSettings: { + serializedName: "sshSettings", + type: { + name: "Composite", + className: "ComputeInstanceSshSettings" + } + }, + connectivityEndpoints: { + serializedName: "connectivityEndpoints", + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" + } + }, + applications: { + serializedName: "applications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } + } + }, + createdBy: { + serializedName: "createdBy", + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, + lastOperation: { + serializedName: "lastOperation", + type: { + name: "Composite", + className: "ComputeInstanceLastOperation" + } + }, + schedules: { + serializedName: "schedules", + type: { + name: "Composite", + className: "ComputeSchedules" + } + }, + enableNodePublicIp: { + serializedName: "enableNodePublicIp", + type: { + name: "Boolean" + } + }, + containers: { + serializedName: "containers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceContainer" + } + } + } + }, + dataDisks: { + serializedName: "dataDisks", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataDisk" + } + } + } + }, + dataMounts: { + serializedName: "dataMounts", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataMount" + } + } + } + }, + versions: { + serializedName: "versions", + type: { + name: "Composite", + className: "ComputeInstanceVersion" + } + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", + type: { + name: "String" + } + }, + adminUserName: { + serializedName: "adminUserName", + readOnly: true, + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + readOnly: true, + type: { + name: "Number" + } + }, + adminPublicKey: { + serializedName: "adminPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints", + modelProperties: { + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceApplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + serializedName: "userName", + readOnly: true, + type: { + name: "String" + } + }, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, + type: { + name: "String" + } + }, + userId: { + serializedName: "userId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const AssignedUser: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + serializedName: "objectId", + required: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SetupScripts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + +export const ScriptsToExecute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const ScriptReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", + type: { + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", + type: { + name: "String" + } + }, + operationTime: { + serializedName: "operationTime", + type: { + name: "DateTime" + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "String" + } + }, + operationTrigger: { + serializedName: "operationTrigger", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeSchedules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSchedules", + modelProperties: { + computeStartStop: { + serializedName: "computeStartStop", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } + } + } + } + } +}; + +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeStartStopSchedule", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "ScheduleBase" + } + } + } + } +}; + +export const ScheduleBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduleBase", + modelProperties: { + id: { + serializedName: "id", + nullable: true, + type: { + name: "String" + } + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceContainer", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + autosave: { + serializedName: "autosave", + type: { + name: "String" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "String" + } + }, + network: { + serializedName: "network", + type: { + name: "String" + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "ComputeInstanceEnvironmentInfo" + } + }, + services: { + serializedName: "services", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } + } + } +}; + +export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceEnvironmentInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceDataDisk", + modelProperties: { + caching: { + serializedName: "caching", + type: { + name: "String" + } + }, + diskSizeGB: { + serializedName: "diskSizeGB", + type: { + name: "Number" + } + }, + lun: { + serializedName: "lun", + type: { + name: "Number" + } + }, + storageAccountType: { + defaultValue: "Standard_LRS", + serializedName: "storageAccountType", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceDataMount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceDataMount", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "String" + } + }, + sourceType: { + serializedName: "sourceType", + type: { + name: "String" + } + }, + mountName: { + serializedName: "mountName", + type: { + name: "String" + } + }, + mountAction: { + serializedName: "mountAction", + type: { + name: "String" + } + }, + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + type: { + name: "String" + } + }, + mountState: { + serializedName: "mountState", + type: { + name: "String" + } + }, + mountedOn: { + serializedName: "mountedOn", + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceVersion", + modelProperties: { + runtime: { + serializedName: "runtime", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComputeInstanceProperties" + } + } + } + } +}; + +export const VirtualMachineSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VirtualMachineSchemaProperties" + } + } + } + } +}; + +export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchemaProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + notebookServerPort: { + serializedName: "notebookServerPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", + type: { + name: "String" + } + } + } + } +}; + +export const HDInsightProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const HDInsightSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "HDInsightProperties" + } + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } + } + } + } +}; + +export const DatabricksSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatabricksProperties" + } + } + } + } +}; + +export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties" + } + } + } + } +}; + +export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", + type: { + name: "String" + } + } + } + } +}; + +export const SynapseSparkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseSparkProperties", + modelProperties: { + autoScaleProperties: { + serializedName: "autoScaleProperties", + type: { + name: "Composite", + className: "AutoScaleProperties" + } + }, + autoPauseProperties: { + serializedName: "autoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + sparkVersion: { + serializedName: "sparkVersion", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + nodeSize: { + serializedName: "nodeSize", + type: { + name: "String" + } + }, + nodeSizeFamily: { + serializedName: "nodeSizeFamily", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + workspaceName: { + serializedName: "workspaceName", + type: { + name: "String" + } + }, + poolName: { + serializedName: "poolName", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoScaleProperties", + modelProperties: { + minNodeCount: { + serializedName: "minNodeCount", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoPauseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoPauseProperties", + modelProperties: { + delayInMinutes: { + serializedName: "delayInMinutes", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AksComputeSecretsProperties", + modelProperties: { + userKubeConfig: { + serializedName: "userKubeConfig", + type: { + name: "String" + } + }, + adminKubeConfig: { + serializedName: "adminKubeConfig", + type: { + name: "String" + } + }, + imagePullSecretName: { + serializedName: "imagePullSecretName", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSecretsSchema", + modelProperties: { + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksComputeSecretsProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + } + } + } +}; + +export const UsernamePassword: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UsernamePassword", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const PersonalAccessToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalAccessToken", + modelProperties: { + pat: { + serializedName: "pat", + type: { + name: "String" + } + } + } + } +}; + +export const SharedAccessSignature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SharedAccessSignature", + modelProperties: { + sas: { + serializedName: "sas", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentityAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentityAutoGenerated", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpointDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointDetails", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointDetails", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CodeContainerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainerData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerDetails" + } + } + } + } +}; + +export const CodeVersionData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionDetails" + } + } + } + } +}; + +export const ComponentContainerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainerData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerDetails" + } + } + } + } +}; + +export const ComponentVersionData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersionData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionDetails" + } + } + } + } +}; + +export const DataContainerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainerData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerDetails" + } + } + } + } +}; + +export const DataVersionBaseData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBaseData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseDetails" + } + } + } + } +}; + +export const DatastoreData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatastoreData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreDetails" + } + } + } + } +}; + +export const EnvironmentContainerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerDetails" + } + } + } + } +}; + +export const EnvironmentVersionData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersionData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionDetails" + } + } + } + } +}; + +export const JobBaseData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBaseData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBaseDetails" + } + } + } + } +}; + +export const ModelContainerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerDetails" + } + } + } + } +}; + +export const ModelVersionData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionData", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionDetails" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + nullable: true, + type: { + name: "String" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + hbiWorkspace: { + defaultValue: false, + serializedName: "properties.hbiWorkspace", + type: { + name: "Boolean" + } + }, + serviceProvisionedResourceGroup: { + serializedName: "properties.serviceProvisionedResourceGroup", + readOnly: true, + type: { + name: "String" + } + }, + privateLinkCount: { + serializedName: "properties.privateLinkCount", + readOnly: true, + type: { + name: "Number" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + allowPublicAccessWhenBehindVnet: { + defaultValue: false, + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + }, + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...ComputeResourceSchema.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" + } + } + } + } +}; + +export const DataPathAssetReference: coreClient.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + className: "DataPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const IdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "IdAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "assetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutputPathAssetReference: coreClient.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + className: "OutputPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BatchDeploymentDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentDetails", + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + errorThreshold: { + defaultValue: -1, + serializedName: "errorThreshold", + type: { + name: "Number" + } + }, + loggingLevel: { + serializedName: "loggingLevel", + type: { + name: "String" + } + }, + maxConcurrencyPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrencyPerInstance", + type: { + name: "Number" + } + }, + miniBatchSize: { + defaultValue: 10, + serializedName: "miniBatchSize", + type: { + name: "Number" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" + } + }, + outputFileName: { + defaultValue: "predictions.csv", + serializedName: "outputFileName", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "ResourceConfiguration" + } + }, + retrySettings: { + serializedName: "retrySettings", + type: { + name: "Composite", + className: "BatchRetrySettings" + } + } + } + } +}; + +export const OnlineDeploymentDetails: coreClient.CompositeMapper = { + serializedName: "OnlineDeploymentDetails", + type: { + name: "Composite", + className: "OnlineDeploymentDetails", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + appInsightsEnabled: { + defaultValue: false, + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + model: { + serializedName: "model", + nullable: true, + type: { + name: "String" + } + }, + modelMountPath: { + serializedName: "modelMountPath", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + } + } + } +}; + +export const PartialDataPathAssetReference: coreClient.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + className: "PartialDataPathAssetReference", + uberParent: "PartialAssetReferenceBase", + polymorphicDiscriminator: + PartialAssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...PartialAssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartialIdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "PartialIdAssetReference", + uberParent: "PartialAssetReferenceBase", + polymorphicDiscriminator: + PartialAssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...PartialAssetReferenceBase.type.modelProperties, + assetId: { + serializedName: "assetId", + type: { + name: "String" + } + } + } + } +}; + +export const PartialOutputPathAssetReference: coreClient.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + className: "PartialOutputPathAssetReference", + uberParent: "PartialAssetReferenceBase", + polymorphicDiscriminator: + PartialAssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...PartialAssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AssetContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetContainer", + modelProperties: { + ...ResourceBase.type.modelProperties, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + latestVersion: { + serializedName: "latestVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + nextVersion: { + serializedName: "nextVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AssetBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetBase", + modelProperties: { + ...ResourceBase.type.modelProperties, + isAnonymous: { + defaultValue: false, + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DatastoreDetails: coreClient.CompositeMapper = { + serializedName: "DatastoreDetails", + type: { + name: "Composite", + className: "DatastoreDetails", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "datastoreType", + clientName: "datastoreType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + datastoreType: { + serializedName: "datastoreType", + required: true, + type: { + name: "String" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const JobBaseDetails: coreClient.CompositeMapper = { + serializedName: "JobBaseDetails", + type: { + name: "Composite", + className: "JobBaseDetails", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + computeId: { + serializedName: "computeId", + nullable: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + experimentName: { + defaultValue: "Default", + serializedName: "experimentName", + nullable: true, + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + services: { + serializedName: "services", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobService" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets" + } + } + } + } +}; + +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + }, + thumbprint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "thumbprint", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties + } + } +}; + +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SasDatastoreSecrets" + } + } + } + } +}; + +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + nullable: true, + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const DefaultScaleSettings: coreClient.CompositeMapper = { + serializedName: "Default", + type: { + name: "Composite", + className: "DefaultScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties + } + } +}; + +export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { + serializedName: "TargetUtilization", + type: { + name: "Composite", + className: "TargetUtilizationScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + maxInstances: { + defaultValue: 1, + serializedName: "maxInstances", + type: { + name: "Number" + } + }, + minInstances: { + defaultValue: 1, + serializedName: "minInstances", + type: { + name: "Number" + } + }, + pollingInterval: { + defaultValue: "PT1S", + serializedName: "pollingInterval", + type: { + name: "TimeSpan" + } + }, + targetUtilizationPercentage: { + defaultValue: 70, + serializedName: "targetUtilizationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const PartialKubernetesOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "PartialKubernetesOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: + PartialOnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties + } + } +}; + +export const PartialManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "PartialManagedOnlineDeployment", + uberParent: "PartialOnlineDeployment", + polymorphicDiscriminator: + PartialOnlineDeployment.type.polymorphicDiscriminator, + modelProperties: { + ...PartialOnlineDeployment.type.modelProperties + } + } +}; + +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AKSSchema.type.modelProperties + } + } +}; + +export const Kubernetes: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "Kubernetes", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...KubernetesSchema.type.modelProperties + } + } +}; + +export const AmlCompute: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlCompute", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AmlComputeSchema.type.modelProperties + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...ComputeInstanceSchema.type.modelProperties + } + } +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...VirtualMachineSchema.type.modelProperties + } + } +}; + +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...HDInsightSchema.type.modelProperties + } + } +}; + +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties + } + } +}; + +export const Databricks: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "Databricks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DatabricksSchema.type.modelProperties + } + } +}; + +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DataLakeAnalyticsSchema.type.modelProperties + } + } +}; + +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...AksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...VirtualMachineSecretsSchema.type.modelProperties + } + } +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "PAT", + type: { + name: "Composite", + className: "PATAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "PersonalAccessToken" + } + } + } + } +}; + +export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "SharedAccessSignature" + } + } + } + } +}; + +export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "UsernamePassword", + type: { + name: "Composite", + className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "UsernamePassword" + } + } + } + } +}; + +export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties + } + } +}; + +export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "ManagedIdentityAutoGenerated" + } + } + } + } +}; + +export const CustomModelJobInput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const MLFlowModelJobInput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const MLTableJobInput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const TritonModelJobInput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFileJobInput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFolderJobInput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const CustomModelJobOutput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLFlowModelJobOutput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLTableJobOutput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const TritonModelJobOutput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFileJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFolderJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const BanditPolicy: coreClient.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + className: "BanditPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + defaultValue: 0, + serializedName: "slackAmount", + type: { + name: "Number" + } + }, + slackFactor: { + defaultValue: 0, + serializedName: "slackFactor", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties + } + } +}; + +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + defaultValue: 0, + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Bayesian", + type: { + name: "Composite", + className: "BayesianSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const GridSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Grid", + type: { + name: "Composite", + className: "GridSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Random", + type: { + name: "Composite", + className: "RandomSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties, + rule: { + serializedName: "rule", + type: { + name: "String" + } + }, + seed: { + serializedName: "seed", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const Mpi: coreClient.CompositeMapper = { + serializedName: "Mpi", + type: { + name: "Composite", + className: "Mpi", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const TensorFlow: coreClient.CompositeMapper = { + serializedName: "TensorFlow", + type: { + name: "Composite", + className: "TensorFlow", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { + defaultValue: 0, + serializedName: "parameterServerCount", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const LiteralJobInput: coreClient.CompositeMapper = { + serializedName: "literal", + type: { + name: "Composite", + className: "LiteralJobInput", + uberParent: "JobInput", + polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + modelProperties: { + ...JobInput.type.modelProperties, + value: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "value", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CommandJobLimits: coreClient.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + className: "CommandJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + modelProperties: { + ...JobLimits.type.modelProperties + } + } +}; + +export const SweepJobLimits: coreClient.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + className: "SweepJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + modelProperties: { + ...JobLimits.type.modelProperties, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + nullable: true, + type: { + name: "Number" + } + }, + maxTotalTrials: { + serializedName: "maxTotalTrials", + nullable: true, + type: { + name: "Number" + } + }, + trialTimeout: { + serializedName: "trialTimeout", + nullable: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const BatchEndpointData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointData", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchEndpointDetails" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const BatchDeploymentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentData", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeploymentDetails" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const OnlineEndpointData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointData", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineEndpointDetails" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const OnlineDeploymentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentData", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineDeploymentDetails" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "KubernetesOnlineDeployment", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: + EndpointDeploymentPropertiesBase.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeploymentDetails.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const ManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedOnlineDeployment", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: + EndpointDeploymentPropertiesBase.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeploymentDetails.type.modelProperties + } + } +}; + +export const CodeContainerDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainerDetails", + modelProperties: { + ...AssetContainer.type.modelProperties + } + } +}; + +export const ComponentContainerDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainerDetails", + modelProperties: { + ...AssetContainer.type.modelProperties + } + } +}; + +export const DataContainerDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainerDetails", + modelProperties: { + ...AssetContainer.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentContainerDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainerDetails", + modelProperties: { + ...AssetContainer.type.modelProperties + } + } +}; + +export const ModelContainerDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainerDetails", + modelProperties: { + ...AssetContainer.type.modelProperties + } + } +}; + +export const CodeVersionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersionDetails", + modelProperties: { + ...AssetBase.type.modelProperties, + codeUri: { + serializedName: "codeUri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComponentVersionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersionDetails", + modelProperties: { + ...AssetBase.type.modelProperties, + componentSpec: { + serializedName: "componentSpec", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const DataVersionBaseDetails: coreClient.CompositeMapper = { + serializedName: "DataVersionBaseDetails", + type: { + name: "Composite", + className: "DataVersionBaseDetails", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, + modelProperties: { + ...AssetBase.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + dataUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "dataUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentVersionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersionDetails", + modelProperties: { + ...AssetBase.type.modelProperties, + build: { + serializedName: "build", + type: { + name: "Composite", + className: "BuildContext" + } + }, + condaFile: { + serializedName: "condaFile", + type: { + name: "String" + } + }, + environmentType: { + serializedName: "environmentType", + readOnly: true, + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "String" + } + }, + inferenceConfig: { + serializedName: "inferenceConfig", + type: { + name: "Composite", + className: "InferenceContainerProperties" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + } + } + } +}; + +export const ModelVersionDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionDetails", + modelProperties: { + ...AssetBase.type.modelProperties, + flavors: { + serializedName: "flavors", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } + } + }, + jobName: { + serializedName: "jobName", + nullable: true, + type: { + name: "String" + } + }, + modelType: { + serializedName: "modelType", + nullable: true, + type: { + name: "String" + } + }, + modelUri: { + serializedName: "modelUri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureBlobDatastore: coreClient.CompositeMapper = { + serializedName: "AzureBlob", + type: { + name: "Composite", + className: "AzureBlobDatastore", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreDetails.type.modelProperties, + accountName: { + serializedName: "accountName", + nullable: true, + type: { + name: "String" + } + }, + containerName: { + serializedName: "containerName", + nullable: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", + type: { + name: "Composite", + className: "AzureDataLakeGen1Datastore", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreDetails.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "storeName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", + type: { + name: "Composite", + className: "AzureDataLakeGen2Datastore", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreDetails.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + filesystem: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "filesystem", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileDatastore: coreClient.CompositeMapper = { + serializedName: "AzureFile", + type: { + name: "Composite", + className: "AzureFileDatastore", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreDetails.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + fileShareName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "fileShareName", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + className: "CommandJob", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseDetails.type.modelProperties, + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]") + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "CommandJobLimits" + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + parameters: { + serializedName: "parameters", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "ResourceConfiguration" + } + } + } + } +}; + +export const PipelineJob: coreClient.CompositeMapper = { + serializedName: "Pipeline", + type: { + name: "Composite", + className: "PipelineJob", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseDetails.type.modelProperties, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + jobs: { + serializedName: "jobs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + settings: { + serializedName: "settings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + className: "SweepJob", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...JobBaseDetails.type.modelProperties, + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "SweepJobLimits" + } + }, + objective: { + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + type: { + name: "Composite", + className: "SamplingAlgorithm" + } + }, + searchSpace: { + serializedName: "searchSpace", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + trial: { + serializedName: "trial", + type: { + name: "Composite", + className: "TrialComponent" + } + } + } + } +}; + +export const MLTableData: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableData", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseDetails.type.modelProperties, + referencedUris: { + serializedName: "referencedUris", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const UriFileDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileDataVersion", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseDetails.type.modelProperties + } + } +}; + +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderDataVersion", + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataVersionBaseDetails.type.modelProperties + } + } +}; + +export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const JobsCancelHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsCancelHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsRegenerateKeysHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacesDiagnoseHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export let discriminators = { + AssetReferenceBase: AssetReferenceBase, + PartialAssetReferenceBase: PartialAssetReferenceBase, + DatastoreCredentials: DatastoreCredentials, + DatastoreSecrets: DatastoreSecrets, + IdentityConfiguration: IdentityConfiguration, + OnlineScaleSettings: OnlineScaleSettings, + PartialOnlineDeployment: PartialOnlineDeployment, + Compute: Compute, + ComputeSecrets: ComputeSecrets, + WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + EarlyTerminationPolicy: EarlyTerminationPolicy, + SamplingAlgorithm: SamplingAlgorithm, + DistributionConfiguration: DistributionConfiguration, + JobInput: JobInput, + JobLimits: JobLimits, + JobOutput: JobOutput, + "AssetReferenceBase.DataPath": DataPathAssetReference, + "AssetReferenceBase.Id": IdAssetReference, + "AssetReferenceBase.OutputPath": OutputPathAssetReference, + "EndpointDeploymentPropertiesBase.OnlineDeploymentDetails": OnlineDeploymentDetails, + "PartialAssetReferenceBase.DataPath": PartialDataPathAssetReference, + "PartialAssetReferenceBase.Id": PartialIdAssetReference, + "PartialAssetReferenceBase.OutputPath": PartialOutputPathAssetReference, + "ResourceBase.DatastoreDetails": DatastoreDetails, + "ResourceBase.JobBaseDetails": JobBaseDetails, + "DatastoreCredentials.AccountKey": AccountKeyDatastoreCredentials, + "DatastoreCredentials.Certificate": CertificateDatastoreCredentials, + "DatastoreCredentials.None": NoneDatastoreCredentials, + "DatastoreCredentials.Sas": SasDatastoreCredentials, + "DatastoreCredentials.ServicePrincipal": ServicePrincipalDatastoreCredentials, + "DatastoreSecrets.AccountKey": AccountKeyDatastoreSecrets, + "DatastoreSecrets.Certificate": CertificateDatastoreSecrets, + "DatastoreSecrets.Sas": SasDatastoreSecrets, + "DatastoreSecrets.ServicePrincipal": ServicePrincipalDatastoreSecrets, + "IdentityConfiguration.AMLToken": AmlToken, + "IdentityConfiguration.Managed": ManagedIdentity, + "IdentityConfiguration.UserIdentity": UserIdentity, + "OnlineScaleSettings.Default": DefaultScaleSettings, + "OnlineScaleSettings.TargetUtilization": TargetUtilizationScaleSettings, + "PartialOnlineDeployment.Kubernetes": PartialKubernetesOnlineDeployment, + "PartialOnlineDeployment.Managed": PartialManagedOnlineDeployment, + "Compute.AKS": Aks, + "Compute.Kubernetes": Kubernetes, + "Compute.AmlCompute": AmlCompute, + "Compute.ComputeInstance": ComputeInstance, + "Compute.VirtualMachine": VirtualMachine, + "Compute.HDInsight": HDInsight, + "Compute.DataFactory": DataFactory, + "Compute.Databricks": Databricks, + "Compute.DataLakeAnalytics": DataLakeAnalytics, + "Compute.SynapseSpark": SynapseSpark, + "ComputeSecrets.AKS": AksComputeSecrets, + "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, + "ComputeSecrets.Databricks": DatabricksComputeSecrets, + "WorkspaceConnectionPropertiesV2.PAT": PATAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.SAS": SASAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, + "AssetJobInput.custom_model": CustomModelJobInput, + "AssetJobInput.mlflow_model": MLFlowModelJobInput, + "AssetJobInput.mltable": MLTableJobInput, + "AssetJobInput.triton_model": TritonModelJobInput, + "AssetJobInput.uri_file": UriFileJobInput, + "AssetJobInput.uri_folder": UriFolderJobInput, + "AssetJobOutput.custom_model": CustomModelJobOutput, + "AssetJobOutput.mlflow_model": MLFlowModelJobOutput, + "AssetJobOutput.mltable": MLTableJobOutput, + "AssetJobOutput.triton_model": TritonModelJobOutput, + "AssetJobOutput.uri_file": UriFileJobOutput, + "AssetJobOutput.uri_folder": UriFolderJobOutput, + "EarlyTerminationPolicy.Bandit": BanditPolicy, + "EarlyTerminationPolicy.MedianStopping": MedianStoppingPolicy, + "EarlyTerminationPolicy.TruncationSelection": TruncationSelectionPolicy, + "SamplingAlgorithm.Bayesian": BayesianSamplingAlgorithm, + "SamplingAlgorithm.Grid": GridSamplingAlgorithm, + "SamplingAlgorithm.Random": RandomSamplingAlgorithm, + "DistributionConfiguration.Mpi": Mpi, + "DistributionConfiguration.PyTorch": PyTorch, + "DistributionConfiguration.TensorFlow": TensorFlow, + "JobInput.literal": LiteralJobInput, + "JobLimits.Command": CommandJobLimits, + "JobLimits.Sweep": SweepJobLimits, + "EndpointDeploymentPropertiesBase.Kubernetes": KubernetesOnlineDeployment, + "EndpointDeploymentPropertiesBase.Managed": ManagedOnlineDeployment, + "ResourceBase.DataVersionBaseDetails": DataVersionBaseDetails, + "ResourceBase.AzureBlob": AzureBlobDatastore, + "ResourceBase.AzureDataLakeGen1": AzureDataLakeGen1Datastore, + "ResourceBase.AzureDataLakeGen2": AzureDataLakeGen2Datastore, + "ResourceBase.AzureFile": AzureFileDatastore, + "ResourceBase.Command": CommandJob, + "ResourceBase.Pipeline": PipelineJob, + "ResourceBase.Sweep": SweepJob, + "ResourceBase.mltable": MLTableData, + "ResourceBase.uri_file": UriFileDataVersion, + "ResourceBase.uri_folder": UriFolderDataVersion +}; diff --git a/sdk/machinelearning/arm-workspaces/src/models/parameters.ts b/sdk/machinelearning/arm-workspaces/src/models/parameters.ts index 3617216c1113..3c9aa53b87f5 100644 --- a/sdk/machinelearning/arm-workspaces/src/models/parameters.ts +++ b/sdk/machinelearning/arm-workspaces/src/models/parameters.ts @@ -12,8 +12,36 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + PartialBatchEndpointPartialTrackedResource as PartialBatchEndpointPartialTrackedResourceMapper, + BatchEndpointData as BatchEndpointDataMapper, + PartialBatchDeploymentPartialTrackedResource as PartialBatchDeploymentPartialTrackedResourceMapper, + BatchDeploymentData as BatchDeploymentDataMapper, + CodeContainerData as CodeContainerDataMapper, + CodeVersionData as CodeVersionDataMapper, + ComponentContainerData as ComponentContainerDataMapper, + ComponentVersionData as ComponentVersionDataMapper, + DataContainerData as DataContainerDataMapper, + DataVersionBaseData as DataVersionBaseDataMapper, + DatastoreData as DatastoreDataMapper, + EnvironmentContainerData as EnvironmentContainerDataMapper, + EnvironmentVersionData as EnvironmentVersionDataMapper, + JobBaseData as JobBaseDataMapper, + ModelContainerData as ModelContainerDataMapper, + ModelVersionData as ModelVersionDataMapper, + PartialOnlineEndpointPartialTrackedResource as PartialOnlineEndpointPartialTrackedResourceMapper, + OnlineEndpointData as OnlineEndpointDataMapper, + RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, + PartialOnlineDeploymentPartialTrackedResource as PartialOnlineDeploymentPartialTrackedResourceMapper, + OnlineDeploymentData as OnlineDeploymentDataMapper, + DeploymentLogsRequest as DeploymentLogsRequestMapper, Workspace as WorkspaceMapper, - WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, + QuotaUpdateParameters as QuotaUpdateParametersMapper, + ComputeResource as ComputeResourceMapper, + ClusterUpdateParameters as ClusterUpdateParametersMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -40,21 +68,12 @@ export const $host: OperationURLParameter = { skipEncoding: true }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2019-10-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, type: { @@ -66,6 +85,10 @@ export const subscriptionId: OperationURLParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, serializedName: "resourceGroupName", required: true, type: { @@ -85,6 +108,49 @@ export const workspaceName: OperationURLParameter = { } }; +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-05-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + serializedName: "$skip", + type: { + name: "String" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { @@ -97,6 +163,457 @@ export const contentType: OperationParameter = { } }; +export const body: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchEndpointPartialTrackedResourceMapper +}; + +export const endpointName1: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body1: OperationParameter = { + parameterPath: "body", + mapper: BatchEndpointDataMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const orderBy: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "$orderBy", + type: { + name: "String" + } + } +}; + +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; + +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body2: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchDeploymentPartialTrackedResourceMapper +}; + +export const deploymentName1: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body3: OperationParameter = { + parameterPath: "body", + mapper: BatchDeploymentDataMapper +}; + +export const name: OperationURLParameter = { + parameterPath: "name", + mapper: { + serializedName: "name", + required: true, + type: { + name: "String" + } + } +}; + +export const body4: OperationParameter = { + parameterPath: "body", + mapper: CodeContainerDataMapper +}; + +export const name1: OperationURLParameter = { + parameterPath: "name", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "name", + required: true, + type: { + name: "String" + } + } +}; + +export const version: OperationURLParameter = { + parameterPath: "version", + mapper: { + serializedName: "version", + required: true, + type: { + name: "String" + } + } +}; + +export const body5: OperationParameter = { + parameterPath: "body", + mapper: CodeVersionDataMapper +}; + +export const listViewType: OperationQueryParameter = { + parameterPath: ["options", "listViewType"], + mapper: { + serializedName: "listViewType", + type: { + name: "String" + } + } +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: ComponentContainerDataMapper +}; + +export const body7: OperationParameter = { + parameterPath: "body", + mapper: ComponentVersionDataMapper +}; + +export const body8: OperationParameter = { + parameterPath: "body", + mapper: DataContainerDataMapper +}; + +export const tags: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "$tags", + type: { + name: "String" + } + } +}; + +export const body9: OperationParameter = { + parameterPath: "body", + mapper: DataVersionBaseDataMapper +}; + +export const count1: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + defaultValue: 30, + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const isDefault: OperationQueryParameter = { + parameterPath: ["options", "isDefault"], + mapper: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + } +}; + +export const names: OperationQueryParameter = { + parameterPath: ["options", "names"], + mapper: { + serializedName: "names", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: "CSV" +}; + +export const searchText: OperationQueryParameter = { + parameterPath: ["options", "searchText"], + mapper: { + serializedName: "searchText", + type: { + name: "String" + } + } +}; + +export const orderBy1: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const orderByAsc: OperationQueryParameter = { + parameterPath: ["options", "orderByAsc"], + mapper: { + defaultValue: false, + serializedName: "orderByAsc", + type: { + name: "Boolean" + } + } +}; + +export const body10: OperationParameter = { + parameterPath: "body", + mapper: DatastoreDataMapper +}; + +export const skipValidation: OperationQueryParameter = { + parameterPath: ["options", "skipValidation"], + mapper: { + defaultValue: false, + serializedName: "skipValidation", + type: { + name: "Boolean" + } + } +}; + +export const body11: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentContainerDataMapper +}; + +export const body12: OperationParameter = { + parameterPath: "body", + mapper: EnvironmentVersionDataMapper +}; + +export const jobType: OperationQueryParameter = { + parameterPath: ["options", "jobType"], + mapper: { + serializedName: "jobType", + type: { + name: "String" + } + } +}; + +export const tag: OperationQueryParameter = { + parameterPath: ["options", "tag"], + mapper: { + serializedName: "tag", + type: { + name: "String" + } + } +}; + +export const id: OperationURLParameter = { + parameterPath: "id", + mapper: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: JobBaseDataMapper +}; + +export const id1: OperationURLParameter = { + parameterPath: "id", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "id", + required: true, + type: { + name: "String" + } + } +}; + +export const body14: OperationParameter = { + parameterPath: "body", + mapper: ModelContainerDataMapper +}; + +export const version1: OperationQueryParameter = { + parameterPath: ["options", "version"], + mapper: { + serializedName: "version", + type: { + name: "String" + } + } +}; + +export const description: OperationQueryParameter = { + parameterPath: ["options", "description"], + mapper: { + serializedName: "description", + type: { + name: "String" + } + } +}; + +export const offset: OperationQueryParameter = { + parameterPath: ["options", "offset"], + mapper: { + serializedName: "offset", + type: { + name: "Number" + } + } +}; + +export const tags1: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; + +export const properties: OperationQueryParameter = { + parameterPath: ["options", "properties"], + mapper: { + serializedName: "properties", + type: { + name: "String" + } + } +}; + +export const feed: OperationQueryParameter = { + parameterPath: ["options", "feed"], + mapper: { + serializedName: "feed", + type: { + name: "String" + } + } +}; + +export const body15: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionDataMapper +}; + +export const name2: OperationQueryParameter = { + parameterPath: ["options", "name"], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } +}; + +export const computeType: OperationQueryParameter = { + parameterPath: ["options", "computeType"], + mapper: { + serializedName: "computeType", + type: { + name: "String" + } + } +}; + +export const orderBy2: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const body16: OperationParameter = { + parameterPath: "body", + mapper: PartialOnlineEndpointPartialTrackedResourceMapper +}; + +export const body17: OperationParameter = { + parameterPath: "body", + mapper: OnlineEndpointDataMapper +}; + +export const body18: OperationParameter = { + parameterPath: "body", + mapper: RegenerateEndpointKeysRequestMapper +}; + +export const body19: OperationParameter = { + parameterPath: "body", + mapper: PartialOnlineDeploymentPartialTrackedResourceMapper +}; + +export const body20: OperationParameter = { + parameterPath: "body", + mapper: OnlineDeploymentDataMapper +}; + +export const body21: OperationParameter = { + parameterPath: "body", + mapper: DeploymentLogsRequestMapper +}; + export const parameters: OperationParameter = { parameterPath: "parameters", mapper: WorkspaceMapper @@ -107,14 +624,110 @@ export const parameters1: OperationParameter = { mapper: WorkspaceUpdateParametersMapper }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const parameters2: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: DiagnoseWorkspaceParametersMapper +}; + +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "nextLink", + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "location", required: true, type: { name: "String" } - }, - skipEncoding: true + } +}; + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: QuotaUpdateParametersMapper +}; + +export const computeName: OperationURLParameter = { + parameterPath: "computeName", + mapper: { + serializedName: "computeName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: ComputeResourceMapper +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterUpdateParametersMapper +}; + +export const underlyingResourceAction: OperationQueryParameter = { + parameterPath: "underlyingResourceAction", + mapper: { + serializedName: "underlyingResourceAction", + required: true, + type: { + name: "String" + } + } +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const properties1: OperationParameter = { + parameterPath: "properties", + mapper: PrivateEndpointConnectionMapper +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper +}; + +export const connectionName: OperationURLParameter = { + parameterPath: "connectionName", + mapper: { + serializedName: "connectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const target: OperationQueryParameter = { + parameterPath: ["options", "target"], + mapper: { + serializedName: "target", + type: { + name: "String" + } + } +}; + +export const category: OperationQueryParameter = { + parameterPath: ["options", "category"], + mapper: { + serializedName: "category", + type: { + name: "String" + } + } }; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/batchDeployments.ts b/sdk/machinelearning/arm-workspaces/src/operations/batchDeployments.ts new file mode 100644 index 000000000000..6064ce66d9a2 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/batchDeployments.ts @@ -0,0 +1,680 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BatchDeployments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BatchDeploymentData, + BatchDeploymentsListNextOptionalParams, + BatchDeploymentsListOptionalParams, + BatchDeploymentsListResponse, + BatchDeploymentsDeleteOptionalParams, + BatchDeploymentsGetOptionalParams, + BatchDeploymentsGetResponse, + PartialBatchDeploymentPartialTrackedResource, + BatchDeploymentsUpdateOptionalParams, + BatchDeploymentsUpdateResponse, + BatchDeploymentsCreateOrUpdateOptionalParams, + BatchDeploymentsCreateOrUpdateResponse, + BatchDeploymentsListNextResponse +} from "../models"; + +/// +/** Class containing BatchDeployments operations. */ +export class BatchDeploymentsImpl implements BatchDeployments { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class BatchDeployments class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists Batch inference deployments in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchDeploymentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + endpointName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + endpointName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchDeploymentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + endpointName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + endpointName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchDeploymentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + endpointName, + options + )) { + yield* page; + } + } + + /** + * Lists Batch inference deployments in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchDeploymentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + listOperationSpec + ); + } + + /** + * Delete Batch Inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Delete Batch Inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets a batch inference deployment by id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName The identifier for the Batch deployments. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + }, + getOperationSpec + ); + } + + /** + * Update a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchDeploymentsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Update a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Creates/updates a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: BatchDeploymentData, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchDeploymentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates/updates a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: BatchDeploymentData, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + nextLink: string, + options?: BatchDeploymentsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentData + }, + 201: { + bodyMapper: Mappers.BatchDeploymentData + }, + 202: { + bodyMapper: Mappers.BatchDeploymentData + }, + 204: { + bodyMapper: Mappers.BatchDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentData + }, + 201: { + bodyMapper: Mappers.BatchDeploymentData + }, + 202: { + bodyMapper: Mappers.BatchDeploymentData + }, + 204: { + bodyMapper: Mappers.BatchDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/batchEndpoints.ts b/sdk/machinelearning/arm-workspaces/src/operations/batchEndpoints.ts new file mode 100644 index 000000000000..0018fc1df934 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/batchEndpoints.ts @@ -0,0 +1,685 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BatchEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BatchEndpointData, + BatchEndpointsListNextOptionalParams, + BatchEndpointsListOptionalParams, + BatchEndpointsListResponse, + BatchEndpointsDeleteOptionalParams, + BatchEndpointsGetOptionalParams, + BatchEndpointsGetResponse, + PartialBatchEndpointPartialTrackedResource, + BatchEndpointsUpdateOptionalParams, + BatchEndpointsUpdateResponse, + BatchEndpointsCreateOrUpdateOptionalParams, + BatchEndpointsCreateOrUpdateResponse, + BatchEndpointsCheckNameAvailabilityOptionalParams, + BatchEndpointsCheckNameAvailabilityResponse, + BatchEndpointsListKeysOptionalParams, + BatchEndpointsListKeysResponse, + BatchEndpointsListNextResponse +} from "../models"; + +/// +/** Class containing BatchEndpoints operations. */ +export class BatchEndpointsImpl implements BatchEndpoints { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class BatchEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Batch Inference Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Delete Batch Inference Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + endpointName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets a batch inference endpoint by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch Endpoint. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + getOperationSpec + ); + } + + /** + * Update a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, body, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Update a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + endpointName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Creates a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: BatchEndpointData, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, body, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: BatchEndpointData, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + endpointName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Check that the provided endpoint name is available and valid, otherwise return result with + * validation issues. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * Lists batch Inference Endpoint keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + listKeysOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: BatchEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.count, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointData + }, + 201: { + bodyMapper: Mappers.BatchEndpointData + }, + 202: { + bodyMapper: Mappers.BatchEndpointData + }, + 204: { + bodyMapper: Mappers.BatchEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointData + }, + 201: { + bodyMapper: Mappers.BatchEndpointData + }, + 202: { + bodyMapper: Mappers.BatchEndpointData + }, + 204: { + bodyMapper: Mappers.BatchEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/checkNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NameAvailabilityResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BatchEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.count, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/codeContainers.ts b/sdk/machinelearning/arm-workspaces/src/operations/codeContainers.ts new file mode 100644 index 000000000000..9fad310a11ec --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/codeContainers.ts @@ -0,0 +1,314 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CodeContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + CodeContainerData, + CodeContainersListNextOptionalParams, + CodeContainersListOptionalParams, + CodeContainersListResponse, + CodeContainersDeleteOptionalParams, + CodeContainersGetOptionalParams, + CodeContainersGetResponse, + CodeContainersCreateOrUpdateOptionalParams, + CodeContainersCreateOrUpdateResponse, + CodeContainersListNextResponse +} from "../models"; + +/// +/** Class containing CodeContainers operations. */ +export class CodeContainersImpl implements CodeContainers { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class CodeContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: CodeContainerData, + options?: CodeContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: CodeContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerData + }, + 201: { + bodyMapper: Mappers.CodeContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/codeVersions.ts b/sdk/machinelearning/arm-workspaces/src/operations/codeVersions.ts new file mode 100644 index 000000000000..ca794886d851 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/codeVersions.ts @@ -0,0 +1,360 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { CodeVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + CodeVersionData, + CodeVersionsListNextOptionalParams, + CodeVersionsListOptionalParams, + CodeVersionsListResponse, + CodeVersionsDeleteOptionalParams, + CodeVersionsGetOptionalParams, + CodeVersionsGetResponse, + CodeVersionsCreateOrUpdateOptionalParams, + CodeVersionsCreateOrUpdateResponse, + CodeVersionsListNextResponse +} from "../models"; + +/// +/** Class containing CodeVersions operations. */ +export class CodeVersionsImpl implements CodeVersions { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class CodeVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: CodeVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: CodeVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: CodeVersionData, + options?: CodeVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: CodeVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionData + }, + 201: { + bodyMapper: Mappers.CodeVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/componentContainers.ts b/sdk/machinelearning/arm-workspaces/src/operations/componentContainers.ts new file mode 100644 index 000000000000..ce736e12900e --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/componentContainers.ts @@ -0,0 +1,322 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComponentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ComponentContainerData, + ComponentContainersListNextOptionalParams, + ComponentContainersListOptionalParams, + ComponentContainersListResponse, + ComponentContainersDeleteOptionalParams, + ComponentContainersGetOptionalParams, + ComponentContainersGetResponse, + ComponentContainersCreateOrUpdateOptionalParams, + ComponentContainersCreateOrUpdateResponse, + ComponentContainersListNextResponse +} from "../models"; + +/// +/** Class containing ComponentContainers operations. */ +export class ComponentContainersImpl implements ComponentContainers { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ComponentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List component containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ComponentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ComponentContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ComponentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List component containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ComponentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ComponentContainerData, + options?: ComponentContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ComponentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerData + }, + 201: { + bodyMapper: Mappers.ComponentContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/componentVersions.ts b/sdk/machinelearning/arm-workspaces/src/operations/componentVersions.ts new file mode 100644 index 000000000000..32d6f0a01755 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/componentVersions.ts @@ -0,0 +1,362 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComponentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ComponentVersionData, + ComponentVersionsListNextOptionalParams, + ComponentVersionsListOptionalParams, + ComponentVersionsListResponse, + ComponentVersionsDeleteOptionalParams, + ComponentVersionsGetOptionalParams, + ComponentVersionsGetResponse, + ComponentVersionsCreateOrUpdateOptionalParams, + ComponentVersionsCreateOrUpdateResponse, + ComponentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing ComponentVersions operations. */ +export class ComponentVersionsImpl implements ComponentVersions { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ComponentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List component versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Component name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List component versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Component name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ComponentVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ComponentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: ComponentVersionData, + options?: ComponentVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Component name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: ComponentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionData + }, + 201: { + bodyMapper: Mappers.ComponentVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/computeOperations.ts b/sdk/machinelearning/arm-workspaces/src/operations/computeOperations.ts new file mode 100644 index 000000000000..763af86a3222 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/computeOperations.ts @@ -0,0 +1,1159 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ComputeOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ComputeResource, + ComputeListNextOptionalParams, + ComputeListOptionalParams, + AmlComputeNodeInformation, + ComputeListNodesNextOptionalParams, + ComputeListNodesOptionalParams, + ComputeListResponse, + ComputeGetOptionalParams, + ComputeGetResponse, + ComputeCreateOrUpdateOptionalParams, + ComputeCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeUpdateOptionalParams, + ComputeUpdateResponse, + UnderlyingResourceAction, + ComputeDeleteOptionalParams, + ComputeListNodesResponse, + ComputeListKeysOptionalParams, + ComputeListKeysResponse, + ComputeStartOptionalParams, + ComputeStopOptionalParams, + ComputeRestartOptionalParams, + ComputeListNextResponse, + ComputeListNodesNextResponse +} from "../models"; + +/// +/** Class containing ComputeOperations operations. */ +export class ComputeOperationsImpl implements ComputeOperations { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ComputeOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @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 options The options parameters. + */ + public listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listNodesPagingAll( + resourceGroupName, + workspaceName, + computeName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + ); + } + }; + } + + private async *listNodesPagingPage( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): AsyncIterableIterator { + let result = await this._listNodes( + resourceGroupName, + workspaceName, + computeName, + options + ); + yield result.nodes || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNodesNext( + resourceGroupName, + workspaceName, + computeName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.nodes || []; + } + } + + private async *listNodesPagingAll( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + )) { + yield* page; + } + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @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 options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @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 Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, computeName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @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 Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @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 Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise< + PollerLike, ComputeUpdateResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, computeName, parameters, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @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 Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specified Machine Learning compute. + * @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 underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + computeName, + underlyingResourceAction, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes specified Machine Learning compute. + * @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 underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + computeName, + underlyingResourceAction, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @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 options The options parameters. + */ + private _listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listNodesOperationSpec + ); + } + + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @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 options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listKeysOperationSpec + ); + } + + /** + * Posts a start action to 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 options The options parameters. + */ + async beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, computeName, options }, + startOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a start action to 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 options The options parameters. + */ + async beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise { + const poller = await this.beginStart( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a stop action to 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 options The options parameters. + */ + async beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, computeName, options }, + stopOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a stop action to 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 options The options parameters. + */ + async beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise { + const poller = await this.beginStop( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a restart action to 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 options The options parameters. + */ + async beginRestart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, computeName, options }, + restartOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a restart action to 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 options The options parameters. + */ + async beginRestartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise { + const poller = await this.beginRestart( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ComputeListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListNodesNext + * @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 nextLink The nextLink from the previous successful call to the ListNodes method. + * @param options The options parameters. + */ + private _listNodesNext( + resourceGroupName: string, + workspaceName: string, + computeName: string, + nextLink: string, + options?: ComputeListNodesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, nextLink, options }, + listNodesNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.underlyingResourceAction], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ComputeSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const restartOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/dataContainers.ts b/sdk/machinelearning/arm-workspaces/src/operations/dataContainers.ts new file mode 100644 index 000000000000..e1f6c08791c4 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/dataContainers.ts @@ -0,0 +1,322 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + DataContainerData, + DataContainersListNextOptionalParams, + DataContainersListOptionalParams, + DataContainersListResponse, + DataContainersDeleteOptionalParams, + DataContainersGetOptionalParams, + DataContainersGetResponse, + DataContainersCreateOrUpdateOptionalParams, + DataContainersCreateOrUpdateResponse, + DataContainersListNextResponse +} from "../models"; + +/// +/** Class containing DataContainers operations. */ +export class DataContainersImpl implements DataContainers { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class DataContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: DataContainerData, + options?: DataContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DataContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataContainerData + }, + 201: { + bodyMapper: Mappers.DataContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/dataVersions.ts b/sdk/machinelearning/arm-workspaces/src/operations/dataVersions.ts new file mode 100644 index 000000000000..c4583d98363b --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/dataVersions.ts @@ -0,0 +1,364 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + DataVersionBaseData, + DataVersionsListNextOptionalParams, + DataVersionsListOptionalParams, + DataVersionsListResponse, + DataVersionsDeleteOptionalParams, + DataVersionsGetOptionalParams, + DataVersionsGetResponse, + DataVersionsCreateOrUpdateOptionalParams, + DataVersionsCreateOrUpdateResponse, + DataVersionsListNextResponse +} from "../models"; + +/// +/** Class containing DataVersions operations. */ +export class DataVersionsImpl implements DataVersions { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class DataVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Data container's name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Data container's name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: DataVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: DataVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DataVersionBaseData, + options?: DataVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Data container's name + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: DataVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseData + }, + 201: { + bodyMapper: Mappers.DataVersionBaseData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/datastores.ts b/sdk/machinelearning/arm-workspaces/src/operations/datastores.ts new file mode 100644 index 000000000000..20ae5aff664f --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/datastores.ts @@ -0,0 +1,376 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Datastores } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + DatastoreData, + DatastoresListNextOptionalParams, + DatastoresListOptionalParams, + DatastoresListResponse, + DatastoresDeleteOptionalParams, + DatastoresGetOptionalParams, + DatastoresGetResponse, + DatastoresCreateOrUpdateOptionalParams, + DatastoresCreateOrUpdateResponse, + DatastoresListSecretsOptionalParams, + DatastoresListSecretsResponse, + DatastoresListNextResponse +} from "../models"; + +/// +/** Class containing Datastores operations. */ +export class DatastoresImpl implements Datastores { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class Datastores class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param body Datastore entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: DatastoreData, + options?: DatastoresCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Get datastore secrets. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresListSecretsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listSecretsOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: DatastoresListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastoreResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastoreData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatastoreData + }, + 201: { + bodyMapper: Mappers.DatastoreData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body10, + queryParameters: [Parameters.apiVersion, Parameters.skipValidation], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DatastoreSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatastoreResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.count1, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/environmentContainers.ts b/sdk/machinelearning/arm-workspaces/src/operations/environmentContainers.ts new file mode 100644 index 000000000000..84e22bd7273f --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/environmentContainers.ts @@ -0,0 +1,322 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { EnvironmentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + EnvironmentContainerData, + EnvironmentContainersListNextOptionalParams, + EnvironmentContainersListOptionalParams, + EnvironmentContainersListResponse, + EnvironmentContainersDeleteOptionalParams, + EnvironmentContainersGetOptionalParams, + EnvironmentContainersGetResponse, + EnvironmentContainersCreateOrUpdateOptionalParams, + EnvironmentContainersCreateOrUpdateResponse, + EnvironmentContainersListNextResponse +} from "../models"; + +/// +/** Class containing EnvironmentContainers operations. */ +export class EnvironmentContainersImpl implements EnvironmentContainers { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class EnvironmentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: EnvironmentContainerData, + options?: EnvironmentContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: EnvironmentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerData + }, + 201: { + bodyMapper: Mappers.EnvironmentContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/environmentVersions.ts b/sdk/machinelearning/arm-workspaces/src/operations/environmentVersions.ts new file mode 100644 index 000000000000..74d24accbc44 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/environmentVersions.ts @@ -0,0 +1,362 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { EnvironmentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + EnvironmentVersionData, + EnvironmentVersionsListNextOptionalParams, + EnvironmentVersionsListOptionalParams, + EnvironmentVersionsListResponse, + EnvironmentVersionsDeleteOptionalParams, + EnvironmentVersionsGetOptionalParams, + EnvironmentVersionsGetResponse, + EnvironmentVersionsCreateOrUpdateOptionalParams, + EnvironmentVersionsCreateOrUpdateResponse, + EnvironmentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing EnvironmentVersions operations. */ +export class EnvironmentVersionsImpl implements EnvironmentVersions { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class EnvironmentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: EnvironmentVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: EnvironmentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an EnvironmentVersion. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Name of EnvironmentVersion. This is case-sensitive. + * @param version Version of EnvironmentVersion. + * @param body Definition of EnvironmentVersion. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: EnvironmentVersionData, + options?: EnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: EnvironmentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionData + }, + 201: { + bodyMapper: Mappers.EnvironmentVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body12, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/index.ts b/sdk/machinelearning/arm-workspaces/src/operations/index.ts index ae3e870e0ac6..0c901d7dd63b 100644 --- a/sdk/machinelearning/arm-workspaces/src/operations/index.ts +++ b/sdk/machinelearning/arm-workspaces/src/operations/index.ts @@ -6,5 +6,29 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./batchEndpoints"; +export * from "./batchDeployments"; +export * from "./codeContainers"; +export * from "./codeVersions"; +export * from "./componentContainers"; +export * from "./componentVersions"; +export * from "./dataContainers"; +export * from "./dataVersions"; +export * from "./datastores"; +export * from "./environmentContainers"; +export * from "./environmentVersions"; +export * from "./jobs"; +export * from "./modelContainers"; +export * from "./modelVersions"; +export * from "./onlineEndpoints"; +export * from "./onlineDeployments"; export * from "./operations"; export * from "./workspaces"; +export * from "./usages"; +export * from "./virtualMachineSizes"; +export * from "./quotas"; +export * from "./computeOperations"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./workspaceConnections"; +export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/jobs.ts b/sdk/machinelearning/arm-workspaces/src/operations/jobs.ts new file mode 100644 index 000000000000..784972a8fd00 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/jobs.ts @@ -0,0 +1,507 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Jobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + JobBaseData, + JobsListNextOptionalParams, + JobsListOptionalParams, + JobsListResponse, + JobsDeleteOptionalParams, + JobsGetOptionalParams, + JobsGetResponse, + JobsCreateOrUpdateOptionalParams, + JobsCreateOrUpdateResponse, + JobsCancelOptionalParams, + JobsListNextResponse +} from "../models"; + +/// +/** Class containing Jobs operations. */ +export class JobsImpl implements Jobs { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class Jobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Deletes a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, id, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + id, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets a Job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + getOperationSpec + ); + } + + /** + * Creates and executes a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition object. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: JobBaseData, + options?: JobsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Cancels a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + async beginCancel( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsCancelOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, id, options }, + cancelOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Cancels a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + async beginCancelAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsCancelOptionalParams + ): Promise { + const poller = await this.beginCancel( + resourceGroupName, + workspaceName, + id, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: JobsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.jobType, + Parameters.tag + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.JobBaseData + }, + 201: { + bodyMapper: Mappers.JobBaseData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body13, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const cancelOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.jobType, + Parameters.tag + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/modelContainers.ts b/sdk/machinelearning/arm-workspaces/src/operations/modelContainers.ts new file mode 100644 index 000000000000..0d76febabeea --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/modelContainers.ts @@ -0,0 +1,324 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ModelContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ModelContainerData, + ModelContainersListNextOptionalParams, + ModelContainersListOptionalParams, + ModelContainersListResponse, + ModelContainersDeleteOptionalParams, + ModelContainersGetOptionalParams, + ModelContainersGetResponse, + ModelContainersCreateOrUpdateOptionalParams, + ModelContainersCreateOrUpdateResponse, + ModelContainersListNextResponse +} from "../models"; + +/// +/** Class containing ModelContainers operations. */ +export class ModelContainersImpl implements ModelContainers { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ModelContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelContainersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + deleteOperationSpec + ); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ModelContainerData, + options?: ModelContainersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ModelContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.count, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerData + }, + 201: { + bodyMapper: Mappers.ModelContainerData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body14, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.count, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/modelVersions.ts b/sdk/machinelearning/arm-workspaces/src/operations/modelVersions.ts new file mode 100644 index 000000000000..2df6d11ae10c --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/modelVersions.ts @@ -0,0 +1,374 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ModelVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ModelVersionData, + ModelVersionsListNextOptionalParams, + ModelVersionsListOptionalParams, + ModelVersionsListResponse, + ModelVersionsDeleteOptionalParams, + ModelVersionsGetOptionalParams, + ModelVersionsGetResponse, + ModelVersionsCreateOrUpdateOptionalParams, + ModelVersionsCreateOrUpdateResponse, + ModelVersionsListNextResponse +} from "../models"; + +/// +/** Class containing ModelVersions operations. */ +export class ModelVersionsImpl implements ModelVersions { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ModelVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List model versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Model name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelVersionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List model versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Model name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ModelVersionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + deleteOperationSpec + ); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ModelVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: ModelVersionData, + options?: ModelVersionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrUpdateOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Model name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: ModelVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags1, + Parameters.properties, + Parameters.feed + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionData + }, + 201: { + bodyMapper: Mappers.ModelVersionData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body15, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags1, + Parameters.properties, + Parameters.feed + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-workspaces/src/operations/onlineDeployments.ts new file mode 100644 index 000000000000..877ec70edf1e --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/onlineDeployments.ts @@ -0,0 +1,938 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OnlineDeployments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + OnlineDeploymentData, + OnlineDeploymentsListNextOptionalParams, + OnlineDeploymentsListOptionalParams, + SkuResource, + OnlineDeploymentsListSkusNextOptionalParams, + OnlineDeploymentsListSkusOptionalParams, + OnlineDeploymentsListResponse, + OnlineDeploymentsDeleteOptionalParams, + OnlineDeploymentsGetOptionalParams, + OnlineDeploymentsGetResponse, + PartialOnlineDeploymentPartialTrackedResource, + OnlineDeploymentsUpdateOptionalParams, + OnlineDeploymentsUpdateResponse, + OnlineDeploymentsCreateOrUpdateOptionalParams, + OnlineDeploymentsCreateOrUpdateResponse, + DeploymentLogsRequest, + OnlineDeploymentsGetLogsOptionalParams, + OnlineDeploymentsGetLogsResponse, + OnlineDeploymentsListSkusResponse, + OnlineDeploymentsListNextResponse, + OnlineDeploymentsListSkusNextResponse +} from "../models"; + +/// +/** Class containing OnlineDeployments operations. */ +export class OnlineDeploymentsImpl implements OnlineDeployments { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class OnlineDeployments class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List Inference Endpoint Deployments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineDeploymentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + endpointName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + endpointName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineDeploymentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + endpointName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + endpointName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineDeploymentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + endpointName, + options + )) { + yield* page; + } + } + + /** + * List Inference Endpoint Deployment Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + public listSkus( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listSkusPagingPage( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + ); + } + }; + } + + private async *listSkusPagingPage( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsListSkusOptionalParams + ): AsyncIterableIterator { + let result = await this._listSkus( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listSkusNext( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listSkusPagingAll( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + )) { + yield* page; + } + } + + /** + * List Inference Endpoint Deployments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineDeploymentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + listOperationSpec + ); + } + + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Inference Deployment Deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + }, + getOperationSpec + ); + } + + /** + * Update Online Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Update Online Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: OnlineDeploymentData, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: OnlineDeploymentData, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Polls an Endpoint operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param body The request containing parameters for retrieving logs. + * @param options The options parameters. + */ + getLogs( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: DeploymentLogsRequest, + options?: OnlineDeploymentsGetLogsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + body, + options + }, + getLogsOperationSpec + ); + } + + /** + * List Inference Endpoint Deployment Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + private _listSkus( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + options + }, + listSkusOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + nextLink: string, + options?: OnlineDeploymentsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListSkusNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param nextLink The nextLink from the previous successful call to the ListSkus method. + * @param options The options parameters. + */ + private _listSkusNext( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + nextLink: string, + options?: OnlineDeploymentsListSkusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + endpointName, + deploymentName, + nextLink, + options + }, + listSkusNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 202: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 204: { + bodyMapper: Mappers.OnlineDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body19, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 202: { + bodyMapper: Mappers.OnlineDeploymentData + }, + 204: { + bodyMapper: Mappers.OnlineDeploymentData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1, + Parameters.deploymentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getLogsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeploymentLogs + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.count, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.count, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName, + Parameters.nextLink, + Parameters.deploymentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-workspaces/src/operations/onlineEndpoints.ts new file mode 100644 index 000000000000..a8935f77ba87 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/onlineEndpoints.ts @@ -0,0 +1,866 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OnlineEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + OnlineEndpointData, + OnlineEndpointsListNextOptionalParams, + OnlineEndpointsListOptionalParams, + OnlineEndpointsListResponse, + OnlineEndpointsDeleteOptionalParams, + OnlineEndpointsGetOptionalParams, + OnlineEndpointsGetResponse, + PartialOnlineEndpointPartialTrackedResource, + OnlineEndpointsUpdateOptionalParams, + OnlineEndpointsUpdateResponse, + OnlineEndpointsCreateOrUpdateOptionalParams, + OnlineEndpointsCreateOrUpdateResponse, + OnlineEndpointsCheckNameAvailabilityOptionalParams, + OnlineEndpointsCheckNameAvailabilityResponse, + OnlineEndpointsListKeysOptionalParams, + OnlineEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + OnlineEndpointsRegenerateKeysOptionalParams, + OnlineEndpointsGetTokenOptionalParams, + OnlineEndpointsGetTokenResponse, + OnlineEndpointsListNextResponse +} from "../models"; + +/// +/** Class containing OnlineEndpoints operations. */ +export class OnlineEndpointsImpl implements OnlineEndpoints { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class OnlineEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Delete Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + endpointName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Online Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + getOperationSpec + ); + } + + /** + * Update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, body, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + endpointName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: OnlineEndpointData, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, body, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Create or update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: OnlineEndpointData, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + endpointName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Check that the provided endpoint name is available and valid, otherwise return result with + * validation issues. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + listKeysOperationSpec + ); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, endpointName, body, options }, + regenerateKeysOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise { + const poller = await this.beginRegenerateKeys( + resourceGroupName, + workspaceName, + endpointName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + getToken( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsGetTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, endpointName, options }, + getTokenOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: OnlineEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.count, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.name2, + Parameters.computeType, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointData + }, + 201: { + bodyMapper: Mappers.OnlineEndpointData + }, + 202: { + bodyMapper: Mappers.OnlineEndpointData + }, + 204: { + bodyMapper: Mappers.OnlineEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointData + }, + 201: { + bodyMapper: Mappers.OnlineEndpointData + }, + 202: { + bodyMapper: Mappers.OnlineEndpointData + }, + 204: { + bodyMapper: Mappers.OnlineEndpointData + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/checkNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NameAvailabilityResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthToken + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.endpointName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.count, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.name2, + Parameters.computeType, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/operations.ts b/sdk/machinelearning/arm-workspaces/src/operations/operations.ts index c706d062e9d3..27096702a4d9 100644 --- a/sdk/machinelearning/arm-workspaces/src/operations/operations.ts +++ b/sdk/machinelearning/arm-workspaces/src/operations/operations.ts @@ -11,9 +11,9 @@ import { Operations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; import { - Operation, + AmlOperation, OperationsListOptionalParams, OperationsListResponse } from "../models"; @@ -21,23 +21,23 @@ import { /// /** Class containing Operations operations. */ export class OperationsImpl implements Operations { - private readonly client: MachineLearningWorkspacesManagementClient; + private readonly client: AzureMachineLearningWorkspaces; /** * Initialize a new instance of the class Operations class. * @param client Reference to the service client */ - constructor(client: MachineLearningWorkspacesManagementClient) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** - * Lists all of the available Azure Machine Learning Studio REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations. * @param options The options parameters. */ public list( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -54,21 +54,21 @@ export class OperationsImpl implements Operations { private async *listPagingPage( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result = await this._list(options); yield result.value || []; } private async *listPagingAll( options?: OperationsListOptionalParams - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } /** - * Lists all of the available Azure Machine Learning Studio REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations. * @param options The options parameters. */ private _list( @@ -81,11 +81,11 @@ export class OperationsImpl implements Operations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.MachineLearning/operations", + path: "/providers/Microsoft.MachineLearningServices/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.AmlOperationListResult }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/machinelearning/arm-workspaces/src/operations/privateEndpointConnections.ts b/sdk/machinelearning/arm-workspaces/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..bf697638d2af --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/privateEndpointConnections.ts @@ -0,0 +1,277 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Class containing PrivateEndpointConnections operations. */ +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + getOperationSpec + ); + } + + /** + * Update the state of specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param properties The private endpoint connection properties. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + properties, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.properties1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/privateLinkResources.ts b/sdk/machinelearning/arm-workspaces/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..efe5fab5b56b --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/privateLinkResources.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; + +/** Class containing PrivateLinkResources operations. */ +export class PrivateLinkResourcesImpl implements PrivateLinkResources { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class PrivateLinkResources class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/quotas.ts b/sdk/machinelearning/arm-workspaces/src/operations/quotas.ts new file mode 100644 index 000000000000..122706485233 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/quotas.ts @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Quotas } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ResourceQuota, + QuotasListNextOptionalParams, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse, + QuotasListResponse, + QuotasListNextResponse +} from "../models"; + +/// +/** Class containing Quotas operations. */ +export class QuotasImpl implements Quotas { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class Quotas class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + public list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param options The options parameters. + */ + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, parameters, options }, + updateOperationSpec + ); + } + + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + private _list( + location: string, + options?: QuotasListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param location The location for which resource usage is queried. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + location: string, + nextLink: string, + options?: QuotasListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.UpdateWorkspaceQuotasResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/quotas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListWorkspaceQuotas + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/usages.ts b/sdk/machinelearning/arm-workspaces/src/operations/usages.ts new file mode 100644 index 000000000000..7a4cf449aae5 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/usages.ts @@ -0,0 +1,160 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Usages } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + Usage, + UsagesListNextOptionalParams, + UsagesListOptionalParams, + UsagesListResponse, + UsagesListNextResponse +} from "../models"; + +/// +/** Class containing Usages operations. */ +export class UsagesImpl implements Usages { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class Usages class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + public list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + private _list( + location: string, + options?: UsagesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param location The location for which resource usage is queried. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + location: string, + nextLink: string, + options?: UsagesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListUsagesResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListUsagesResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/virtualMachineSizes.ts b/sdk/machinelearning/arm-workspaces/src/operations/virtualMachineSizes.ts new file mode 100644 index 000000000000..1b937ab98879 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/virtualMachineSizes.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { VirtualMachineSizes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; + +/** Class containing VirtualMachineSizes operations. */ +export class VirtualMachineSizesImpl implements VirtualMachineSizes { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class VirtualMachineSizes class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Returns supported VM Sizes in a location + * @param location The location upon which virtual-machine-sizes is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineSizeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-workspaces/src/operations/workspaceConnections.ts new file mode 100644 index 000000000000..e2b658b57e4d --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/workspaceConnections.ts @@ -0,0 +1,316 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + WorkspaceConnectionPropertiesV2BasicResource, + WorkspaceConnectionsListNextOptionalParams, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsListResponse, + WorkspaceConnectionsListNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceConnections operations. */ +export class WorkspaceConnectionsImpl implements WorkspaceConnections { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class WorkspaceConnections class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnectionPropertiesV2BasicResource, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, parameters, options }, + createOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, options }, + getOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, options }, + deleteOperationSpec + ); + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceConnectionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/workspaceFeatures.ts b/sdk/machinelearning/arm-workspaces/src/operations/workspaceFeatures.ts new file mode 100644 index 000000000000..e3efc94dd9db --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operations/workspaceFeatures.ts @@ -0,0 +1,177 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceFeatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + AmlUserFeature, + WorkspaceFeaturesListNextOptionalParams, + WorkspaceFeaturesListOptionalParams, + WorkspaceFeaturesListResponse, + WorkspaceFeaturesListNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceFeatures operations. */ +export class WorkspaceFeaturesImpl implements WorkspaceFeatures { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class WorkspaceFeatures class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists all enabled features for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists all enabled features for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceFeaturesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListAmlUserFeatureResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListAmlUserFeatureResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-workspaces/src/operations/workspaces.ts b/sdk/machinelearning/arm-workspaces/src/operations/workspaces.ts index d28044611e31..c4943ae246fe 100644 --- a/sdk/machinelearning/arm-workspaces/src/operations/workspaces.ts +++ b/sdk/machinelearning/arm-workspaces/src/operations/workspaces.ts @@ -11,13 +11,15 @@ import { Workspaces } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; import { Workspace, WorkspacesListByResourceGroupNextOptionalParams, WorkspacesListByResourceGroupOptionalParams, - WorkspacesListNextOptionalParams, - WorkspacesListOptionalParams, + WorkspacesListBySubscriptionNextOptionalParams, + WorkspacesListBySubscriptionOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, WorkspacesCreateOrUpdateOptionalParams, @@ -26,32 +28,43 @@ import { WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, - WorkspacesResyncStorageKeysOptionalParams, - WorkspacesListWorkspaceKeysOptionalParams, - WorkspacesListWorkspaceKeysResponse, WorkspacesListByResourceGroupResponse, - WorkspacesListResponse, + WorkspacesDiagnoseOptionalParams, + WorkspacesDiagnoseResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListBySubscriptionResponse, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse, + WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, + WorkspacesListOutboundNetworkDependenciesEndpointsResponse, WorkspacesListByResourceGroupNextResponse, - WorkspacesListNextResponse + WorkspacesListBySubscriptionNextResponse } from "../models"; /// /** Class containing Workspaces operations. */ export class WorkspacesImpl implements Workspaces { - private readonly client: MachineLearningWorkspacesManagementClient; + private readonly client: AzureMachineLearningWorkspaces; /** * Initialize a new instance of the class Workspaces class. * @param client Reference to the service client */ - constructor(client: MachineLearningWorkspacesManagementClient) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -106,10 +119,10 @@ export class WorkspacesImpl implements Workspaces { * Lists all the available machine learning workspaces under the specified subscription. * @param options The options parameters. */ - public list( - options?: WorkspacesListOptionalParams + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); + const iter = this.listBySubscriptionPagingAll(options); return { next() { return iter.next(); @@ -118,37 +131,36 @@ export class WorkspacesImpl implements Workspaces { return this; }, byPage: () => { - return this.listPagingPage(options); + return this.listBySubscriptionPagingPage(options); } }; } - private async *listPagingPage( - options?: WorkspacesListOptionalParams + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams ): AsyncIterableIterator { - let result = await this._list(options); + let result = await this._listBySubscription(options); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { - result = await this._listNext(continuationToken, options); + result = await this._listBySubscriptionNext(continuationToken, options); continuationToken = result.nextLink; yield result.value || []; } } - private async *listPagingAll( - options?: WorkspacesListOptionalParams + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { + for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; } } /** * Gets the properties of the specified machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ get( @@ -164,128 +176,636 @@ export class WorkspacesImpl implements Workspaces { /** * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - createOrUpdate( + async beginCreateOrUpdate( resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + parameters, + options + ); + return poller.pollUntilDone(); } /** * Deletes a machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } /** * Updates a machine learning workspace with the specified parameters. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for updating a machine learning workspace. * @param options The options parameters. */ - update( + async beginUpdate( resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, parameters, options }, updateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Resync storage keys associated with this workspace. - * @param workspaceName The name of the machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for updating a machine learning workspace. * @param options The options parameters. */ - resyncStorageKeys( + async beginUpdateAndWait( + resourceGroupName: string, workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDiagnose( resourceGroupName: string, - options?: WorkspacesResyncStorageKeysOptionalParams + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDiagnoseResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + diagnoseOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginDiagnoseAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise { + const poller = await this.beginDiagnose( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listKeysOperationSpec + ); + } + + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + resyncKeysOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginResyncKeysAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams ): Promise { + const poller = await this.beginResyncKeys( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { workspaceName, resourceGroupName, options }, - resyncStorageKeysOperationSpec + { options }, + listBySubscriptionOperationSpec ); } /** - * List the authorization keys associated with this workspace. - * @param workspaceName The name of the machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listWorkspaceKeys( + listNotebookAccessToken( + resourceGroupName: string, workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookAccessTokenOperationSpec + ); + } + + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginPrepareNotebook( resourceGroupName: string, - options?: WorkspacesListWorkspaceKeysOptionalParams - ): Promise { + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + prepareNotebookOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + async beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise { + const poller = await this.beginPrepareNotebook( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List storage account keys of a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { workspaceName, resourceGroupName, options }, - listWorkspaceKeysOperationSpec + { resourceGroupName, workspaceName, options }, + listStorageAccountKeysOperationSpec ); } /** - * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * List keys of a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - private _listByResourceGroup( + listNotebookKeys( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams - ): Promise { + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec + { resourceGroupName, workspaceName, options }, + listNotebookKeysOperationSpec ); } /** - * Lists all the available machine learning workspaces under the specified subscription. + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - private _list( - options?: WorkspacesListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOutboundNetworkDependenciesEndpointsOperationSpec + ); } /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ @@ -301,17 +821,17 @@ export class WorkspacesImpl implements Workspaces { } /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. */ - private _listNext( + private _listBySubscriptionNext( nextLink: string, - options?: WorkspacesListNextOptionalParams - ): Promise { + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listBySubscriptionNextOperationSpec ); } } @@ -320,7 +840,7 @@ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "GET", responses: { 200: { @@ -342,12 +862,21 @@ const getOperationSpec: coreClient.OperationSpec = { }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Workspace }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -366,10 +895,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }; const deleteOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse @@ -387,12 +918,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { }; const updateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Workspace }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -409,16 +949,49 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const resyncStorageKeysOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const diagnoseOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/diagnose", httpMethod: "POST", responses: { - 200: {}, + 200: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 201: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 202: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 204: { + bodyMapper: Mappers.DiagnoseResponseResult + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -426,16 +999,17 @@ const resyncStorageKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.workspaceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listWorkspaceKeysOperationSpec: coreClient.OperationSpec = { +const listKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WorkspaceKeysResponse + bodyMapper: Mappers.ListWorkspaceKeysResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -451,9 +1025,32 @@ const listWorkspaceKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { +const resyncKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces", + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", httpMethod: "GET", responses: { 200: { @@ -463,29 +1060,127 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const prepareNotebookOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 201: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 204: { + bodyMapper: Mappers.NotebookResourceInfo + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListStorageAccountKeysResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNotebookKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.ExternalFqdnResponse }, default: { bodyMapper: Mappers.ErrorResponse } }, queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], headerParameters: [Parameters.accept], serializer }; @@ -500,7 +1195,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -510,7 +1205,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -521,7 +1216,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchDeployments.ts new file mode 100644 index 000000000000..615523ebbb3f --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchDeployments.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BatchDeploymentData, + BatchDeploymentsListOptionalParams, + BatchDeploymentsDeleteOptionalParams, + BatchDeploymentsGetOptionalParams, + BatchDeploymentsGetResponse, + PartialBatchDeploymentPartialTrackedResource, + BatchDeploymentsUpdateOptionalParams, + BatchDeploymentsUpdateResponse, + BatchDeploymentsCreateOrUpdateOptionalParams, + BatchDeploymentsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a BatchDeployments. */ +export interface BatchDeployments { + /** + * Lists Batch inference deployments in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchDeploymentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Batch Inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Batch Inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName Inference deployment identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsDeleteOptionalParams + ): Promise; + /** + * Gets a batch inference deployment by id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Endpoint name + * @param deploymentName The identifier for the Batch deployments. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: BatchDeploymentsGetOptionalParams + ): Promise; + /** + * Update a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchDeploymentsUpdateResponse + > + >; + /** + * Update a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialBatchDeploymentPartialTrackedResource, + options?: BatchDeploymentsUpdateOptionalParams + ): Promise; + /** + * Creates/updates a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: BatchDeploymentData, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchDeploymentsCreateOrUpdateResponse + > + >; + /** + * Creates/updates a batch inference deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name + * @param deploymentName The identifier for the Batch inference deployment. + * @param body Batch inference deployment definition object. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: BatchDeploymentData, + options?: BatchDeploymentsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchEndpoints.ts new file mode 100644 index 000000000000..1effcba4fcfc --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/batchEndpoints.ts @@ -0,0 +1,178 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BatchEndpointData, + BatchEndpointsListOptionalParams, + BatchEndpointsDeleteOptionalParams, + BatchEndpointsGetOptionalParams, + BatchEndpointsGetResponse, + PartialBatchEndpointPartialTrackedResource, + BatchEndpointsUpdateOptionalParams, + BatchEndpointsUpdateResponse, + BatchEndpointsCreateOrUpdateOptionalParams, + BatchEndpointsCreateOrUpdateResponse, + BatchEndpointsCheckNameAvailabilityOptionalParams, + BatchEndpointsCheckNameAvailabilityResponse, + BatchEndpointsListKeysOptionalParams, + BatchEndpointsListKeysResponse +} from "../models"; + +/// +/** Interface representing a BatchEndpoints. */ +export interface BatchEndpoints { + /** + * Lists Batch inference endpoint in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: BatchEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Batch Inference Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Batch Inference Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsDeleteOptionalParams + ): Promise; + /** + * Gets a batch inference endpoint by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch Endpoint. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsGetOptionalParams + ): Promise; + /** + * Update a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchEndpointsUpdateResponse + > + >; + /** + * Update a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Mutable batch inference endpoint definition object. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialBatchEndpointPartialTrackedResource, + options?: BatchEndpointsUpdateOptionalParams + ): Promise; + /** + * Creates a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: BatchEndpointData, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BatchEndpointsCreateOrUpdateResponse + > + >; + /** + * Creates a batch inference endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Name for the Batch inference endpoint. + * @param body Batch inference endpoint definition object. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: BatchEndpointData, + options?: BatchEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * Check that the provided endpoint name is available and valid, otherwise return result with + * validation issues. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * Lists batch Inference Endpoint keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: BatchEndpointsListKeysOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeContainers.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeContainers.ts new file mode 100644 index 000000000000..5cac5fd27c12 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeContainers.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CodeContainerData, + CodeContainersListOptionalParams, + CodeContainersDeleteOptionalParams, + CodeContainersGetOptionalParams, + CodeContainersGetResponse, + CodeContainersCreateOrUpdateOptionalParams, + CodeContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a CodeContainers. */ +export interface CodeContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: CodeContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: CodeContainerData, + options?: CodeContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeVersions.ts new file mode 100644 index 000000000000..9dfb9f1424b1 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/codeVersions.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CodeVersionData, + CodeVersionsListOptionalParams, + CodeVersionsDeleteOptionalParams, + CodeVersionsGetOptionalParams, + CodeVersionsGetResponse, + CodeVersionsCreateOrUpdateOptionalParams, + CodeVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a CodeVersions. */ +export interface CodeVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: CodeVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: CodeVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: CodeVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: CodeVersionData, + options?: CodeVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentContainers.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentContainers.ts new file mode 100644 index 000000000000..adc76d494ab6 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentContainers.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ComponentContainerData, + ComponentContainersListOptionalParams, + ComponentContainersDeleteOptionalParams, + ComponentContainersGetOptionalParams, + ComponentContainersGetResponse, + ComponentContainersCreateOrUpdateOptionalParams, + ComponentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ComponentContainers. */ +export interface ComponentContainers { + /** + * List component containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ComponentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ComponentContainerData, + options?: ComponentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentVersions.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentVersions.ts new file mode 100644 index 000000000000..4c532525657d --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/componentVersions.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ComponentVersionData, + ComponentVersionsListOptionalParams, + ComponentVersionsDeleteOptionalParams, + ComponentVersionsGetOptionalParams, + ComponentVersionsGetResponse, + ComponentVersionsCreateOrUpdateOptionalParams, + ComponentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ComponentVersions. */ +export interface ComponentVersions { + /** + * List component versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Component name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ComponentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ComponentVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: ComponentVersionData, + options?: ComponentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/computeOperations.ts new file mode 100644 index 000000000000..630c4eee8be1 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/computeOperations.ts @@ -0,0 +1,269 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ComputeResource, + ComputeListOptionalParams, + AmlComputeNodeInformation, + ComputeListNodesOptionalParams, + ComputeGetOptionalParams, + ComputeGetResponse, + ComputeCreateOrUpdateOptionalParams, + ComputeCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeUpdateOptionalParams, + ComputeUpdateResponse, + UnderlyingResourceAction, + ComputeDeleteOptionalParams, + ComputeListKeysOptionalParams, + ComputeListKeysResponse, + ComputeStartOptionalParams, + ComputeStopOptionalParams, + ComputeRestartOptionalParams +} from "../models"; + +/// +/** Interface representing a ComputeOperations. */ +export interface ComputeOperations { + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @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 options The options parameters. + */ + listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @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 options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetOptionalParams + ): Promise; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @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 Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeCreateOrUpdateResponse + > + >; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @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 Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @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 Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise< + PollerLike, ComputeUpdateResponse> + >; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @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 Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise; + /** + * Deletes specified Machine Learning compute. + * @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 underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes specified Machine Learning compute. + * @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 underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise; + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @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 options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListKeysOptionalParams + ): Promise; + /** + * Posts a start action to 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 options The options parameters. + */ + beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise, void>>; + /** + * Posts a start action to 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 options The options parameters. + */ + beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise; + /** + * Posts a stop action to 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 options The options parameters. + */ + beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise, void>>; + /** + * Posts a stop action to 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 options The options parameters. + */ + beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise; + /** + * Posts a restart action to 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 options The options parameters. + */ + beginRestart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise, void>>; + /** + * Posts a restart action to 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 options The options parameters. + */ + beginRestartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataContainers.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataContainers.ts new file mode 100644 index 000000000000..db066620dbbf --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataContainers.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataContainerData, + DataContainersListOptionalParams, + DataContainersDeleteOptionalParams, + DataContainersGetOptionalParams, + DataContainersGetResponse, + DataContainersCreateOrUpdateOptionalParams, + DataContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DataContainers. */ +export interface DataContainers { + /** + * List data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: DataContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: DataContainerData, + options?: DataContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataVersions.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataVersions.ts new file mode 100644 index 000000000000..4140b489f95c --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/dataVersions.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataVersionBaseData, + DataVersionsListOptionalParams, + DataVersionsDeleteOptionalParams, + DataVersionsGetOptionalParams, + DataVersionsGetResponse, + DataVersionsCreateOrUpdateOptionalParams, + DataVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a DataVersions. */ +export interface DataVersions { + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Data container's name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DataVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: DataVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: DataVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: DataVersionBaseData, + options?: DataVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/datastores.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/datastores.ts new file mode 100644 index 000000000000..3602aca6384b --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/datastores.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DatastoreData, + DatastoresListOptionalParams, + DatastoresDeleteOptionalParams, + DatastoresGetOptionalParams, + DatastoresGetResponse, + DatastoresCreateOrUpdateOptionalParams, + DatastoresCreateOrUpdateResponse, + DatastoresListSecretsOptionalParams, + DatastoresListSecretsResponse +} from "../models"; + +/// +/** Interface representing a Datastores. */ +export interface Datastores { + /** + * List datastores. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: DatastoresListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresDeleteOptionalParams + ): Promise; + /** + * Get datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresGetOptionalParams + ): Promise; + /** + * Create or update datastore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param body Datastore entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: DatastoreData, + options?: DatastoresCreateOrUpdateOptionalParams + ): Promise; + /** + * Get datastore secrets. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Datastore name. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: DatastoresListSecretsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentContainers.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentContainers.ts new file mode 100644 index 000000000000..13443d3448a8 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentContainers.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + EnvironmentContainerData, + EnvironmentContainersListOptionalParams, + EnvironmentContainersDeleteOptionalParams, + EnvironmentContainersGetOptionalParams, + EnvironmentContainersGetResponse, + EnvironmentContainersCreateOrUpdateOptionalParams, + EnvironmentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a EnvironmentContainers. */ +export interface EnvironmentContainers { + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: EnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: EnvironmentContainerData, + options?: EnvironmentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentVersions.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentVersions.ts new file mode 100644 index 000000000000..4b3b2ec0cbc8 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/environmentVersions.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + EnvironmentVersionData, + EnvironmentVersionsListOptionalParams, + EnvironmentVersionsDeleteOptionalParams, + EnvironmentVersionsGetOptionalParams, + EnvironmentVersionsGetResponse, + EnvironmentVersionsCreateOrUpdateOptionalParams, + EnvironmentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a EnvironmentVersions. */ +export interface EnvironmentVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: EnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: EnvironmentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: EnvironmentVersionsGetOptionalParams + ): Promise; + /** + * Creates or updates an EnvironmentVersion. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Name of EnvironmentVersion. This is case-sensitive. + * @param version Version of EnvironmentVersion. + * @param body Definition of EnvironmentVersion. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: EnvironmentVersionData, + options?: EnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/index.ts index ae3e870e0ac6..0c901d7dd63b 100644 --- a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/index.ts @@ -6,5 +6,29 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./batchEndpoints"; +export * from "./batchDeployments"; +export * from "./codeContainers"; +export * from "./codeVersions"; +export * from "./componentContainers"; +export * from "./componentVersions"; +export * from "./dataContainers"; +export * from "./dataVersions"; +export * from "./datastores"; +export * from "./environmentContainers"; +export * from "./environmentVersions"; +export * from "./jobs"; +export * from "./modelContainers"; +export * from "./modelVersions"; +export * from "./onlineEndpoints"; +export * from "./onlineDeployments"; export * from "./operations"; export * from "./workspaces"; +export * from "./usages"; +export * from "./virtualMachineSizes"; +export * from "./quotas"; +export * from "./computeOperations"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./workspaceConnections"; +export * from "./workspaceFeatures"; diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/jobs.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/jobs.ts new file mode 100644 index 000000000000..1b5110f4c07e --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/jobs.ts @@ -0,0 +1,116 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + JobBaseData, + JobsListOptionalParams, + JobsDeleteOptionalParams, + JobsGetOptionalParams, + JobsGetResponse, + JobsCreateOrUpdateOptionalParams, + JobsCreateOrUpdateResponse, + JobsCancelOptionalParams +} from "../models"; + +/// +/** Interface representing a Jobs. */ +export interface Jobs { + /** + * Lists Jobs in the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: JobsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsDeleteOptionalParams + ): Promise; + /** + * Gets a Job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsGetOptionalParams + ): Promise; + /** + * Creates and executes a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition object. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: JobBaseData, + options?: JobsCreateOrUpdateOptionalParams + ): Promise; + /** + * Cancels a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + beginCancel( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsCancelOptionalParams + ): Promise, void>>; + /** + * Cancels a Job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param options The options parameters. + */ + beginCancelAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: JobsCancelOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelContainers.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelContainers.ts new file mode 100644 index 000000000000..162f2e86b4e9 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelContainers.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ModelContainerData, + ModelContainersListOptionalParams, + ModelContainersDeleteOptionalParams, + ModelContainersGetOptionalParams, + ModelContainersGetResponse, + ModelContainersCreateOrUpdateOptionalParams, + ModelContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ModelContainers. */ +export interface ModelContainers { + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ModelContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ModelContainerData, + options?: ModelContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelVersions.ts new file mode 100644 index 000000000000..2bd82ffed0d8 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/modelVersions.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ModelVersionData, + ModelVersionsListOptionalParams, + ModelVersionsDeleteOptionalParams, + ModelVersionsGetOptionalParams, + ModelVersionsGetResponse, + ModelVersionsCreateOrUpdateOptionalParams, + ModelVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ModelVersions. */ +export interface ModelVersions { + /** + * List model versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Model name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ModelVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ModelVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: ModelVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: ModelVersionData, + options?: ModelVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineDeployments.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineDeployments.ts new file mode 100644 index 000000000000..9ed8245d8dae --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineDeployments.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineDeploymentData, + OnlineDeploymentsListOptionalParams, + SkuResource, + OnlineDeploymentsListSkusOptionalParams, + OnlineDeploymentsDeleteOptionalParams, + OnlineDeploymentsGetOptionalParams, + OnlineDeploymentsGetResponse, + PartialOnlineDeploymentPartialTrackedResource, + OnlineDeploymentsUpdateOptionalParams, + OnlineDeploymentsUpdateResponse, + OnlineDeploymentsCreateOrUpdateOptionalParams, + OnlineDeploymentsCreateOrUpdateResponse, + DeploymentLogsRequest, + OnlineDeploymentsGetLogsOptionalParams, + OnlineDeploymentsGetLogsResponse +} from "../models"; + +/// +/** Interface representing a OnlineDeployments. */ +export interface OnlineDeployments { + /** + * List Inference Endpoint Deployments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineDeploymentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * List Inference Endpoint Deployment Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsListSkusOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsDeleteOptionalParams + ): Promise; + /** + * Get Inference Deployment Deployment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + options?: OnlineDeploymentsGetOptionalParams + ): Promise; + /** + * Update Online Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsUpdateResponse + > + >; + /** + * Update Online Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: PartialOnlineDeploymentPartialTrackedResource, + options?: OnlineDeploymentsUpdateOptionalParams + ): Promise; + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: OnlineDeploymentData, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineDeploymentsCreateOrUpdateResponse + > + >; + /** + * Create or update Inference Endpoint Deployment (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param body Inference Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: OnlineDeploymentData, + options?: OnlineDeploymentsCreateOrUpdateOptionalParams + ): Promise; + /** + * Polls an Endpoint operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param body The request containing parameters for retrieving logs. + * @param options The options parameters. + */ + getLogs( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + deploymentName: string, + body: DeploymentLogsRequest, + options?: OnlineDeploymentsGetLogsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineEndpoints.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineEndpoints.ts new file mode 100644 index 000000000000..e2c4a82429a6 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/onlineEndpoints.ts @@ -0,0 +1,225 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OnlineEndpointData, + OnlineEndpointsListOptionalParams, + OnlineEndpointsDeleteOptionalParams, + OnlineEndpointsGetOptionalParams, + OnlineEndpointsGetResponse, + PartialOnlineEndpointPartialTrackedResource, + OnlineEndpointsUpdateOptionalParams, + OnlineEndpointsUpdateResponse, + OnlineEndpointsCreateOrUpdateOptionalParams, + OnlineEndpointsCreateOrUpdateResponse, + OnlineEndpointsCheckNameAvailabilityOptionalParams, + OnlineEndpointsCheckNameAvailabilityResponse, + OnlineEndpointsListKeysOptionalParams, + OnlineEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + OnlineEndpointsRegenerateKeysOptionalParams, + OnlineEndpointsGetTokenOptionalParams, + OnlineEndpointsGetTokenResponse +} from "../models"; + +/// +/** Interface representing a OnlineEndpoints. */ +export interface OnlineEndpoints { + /** + * List Online Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: OnlineEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsDeleteOptionalParams + ): Promise; + /** + * Get Online Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsGetOptionalParams + ): Promise; + /** + * Update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsUpdateResponse + > + >; + /** + * Update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: PartialOnlineEndpointPartialTrackedResource, + options?: OnlineEndpointsUpdateOptionalParams + ): Promise; + /** + * Create or update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: OnlineEndpointData, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OnlineEndpointsCreateOrUpdateResponse + > + >; + /** + * Create or update Online Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: OnlineEndpointData, + options?: OnlineEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * Check that the provided endpoint name is available and valid, otherwise return result with + * validation issues. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsListKeysOptionalParams + ): Promise; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise, void>>; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + body: RegenerateEndpointKeysRequest, + options?: OnlineEndpointsRegenerateKeysOptionalParams + ): Promise; + /** + * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param endpointName Online Endpoint name. + * @param options The options parameters. + */ + getToken( + resourceGroupName: string, + workspaceName: string, + endpointName: string, + options?: OnlineEndpointsGetTokenOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/operations.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/operations.ts index 4551f8116d5f..b36bbe2a8d98 100644 --- a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/operations.ts +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; +import { AmlOperation, OperationsListOptionalParams } from "../models"; /// /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available Azure Machine Learning Studio REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations. * @param options The options parameters. */ list( options?: OperationsListOptionalParams - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; } diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..e36e60ff73cb --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; + /** + * Update the state of specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param properties The private endpoint connection properties. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateLinkResources.ts new file mode 100644 index 000000000000..9297407ea513 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/privateLinkResources.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; + +/** Interface representing a PrivateLinkResources. */ +export interface PrivateLinkResources { + /** + * Gets the private link resources that need to be created for a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/quotas.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/quotas.ts new file mode 100644 index 000000000000..697550823c9d --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/quotas.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ResourceQuota, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse +} from "../models"; + +/// +/** Interface representing a Quotas. */ +export interface Quotas { + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param options The options parameters. + */ + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/usages.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/usages.ts new file mode 100644 index 000000000000..219dcb3ef947 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/usages.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Usage, UsagesListOptionalParams } from "../models"; + +/// +/** Interface representing a Usages. */ +export interface Usages { + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/virtualMachineSizes.ts new file mode 100644 index 000000000000..5d9839525136 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/virtualMachineSizes.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; + +/** Interface representing a VirtualMachineSizes. */ +export interface VirtualMachineSizes { + /** + * Returns supported VM Sizes in a location + * @param location The location upon which virtual-machine-sizes is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceConnections.ts new file mode 100644 index 000000000000..1b33ac27cf3e --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceConnections.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + WorkspaceConnectionPropertiesV2BasicResource, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceConnections. */ +export interface WorkspaceConnections { + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnectionPropertiesV2BasicResource, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceFeatures.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceFeatures.ts new file mode 100644 index 000000000000..8b7697375224 --- /dev/null +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaceFeatures.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { AmlUserFeature, WorkspaceFeaturesListOptionalParams } from "../models"; + +/// +/** Interface representing a WorkspaceFeatures. */ +export interface WorkspaceFeatures { + /** + * Lists all enabled features for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaces.ts b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaces.ts index 01314c1cb5fe..39e9d916b20b 100644 --- a/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-workspaces/src/operationsInterfaces/workspaces.ts @@ -7,10 +7,11 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Workspace, WorkspacesListByResourceGroupOptionalParams, - WorkspacesListOptionalParams, + WorkspacesListBySubscriptionOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, WorkspacesCreateOrUpdateOptionalParams, @@ -19,9 +20,21 @@ import { WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, - WorkspacesResyncStorageKeysOptionalParams, - WorkspacesListWorkspaceKeysOptionalParams, - WorkspacesListWorkspaceKeysResponse + WorkspacesDiagnoseOptionalParams, + WorkspacesDiagnoseResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse, + WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, + WorkspacesListOutboundNetworkDependenciesEndpointsResponse } from "../models"; /// @@ -29,8 +42,7 @@ import { export interface Workspaces { /** * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -41,14 +53,13 @@ export interface Workspaces { * Lists all the available machine learning workspaces under the specified subscription. * @param options The options parameters. */ - list( - options?: WorkspacesListOptionalParams + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** * Gets the properties of the specified machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ get( @@ -58,13 +69,30 @@ export interface Workspaces { ): Promise; /** * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - createOrUpdate( + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( resourceGroupName: string, workspaceName: string, parameters: Workspace, @@ -72,52 +100,190 @@ export interface Workspaces { ): Promise; /** * Deletes a machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - delete( + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams ): Promise; /** * Updates a machine learning workspace with the specified parameters. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. - * @param workspaceName The name of the machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for updating a machine learning workspace. * @param options The options parameters. */ - update( + beginUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + >; + /** + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for updating a machine learning workspace. + * @param options The options parameters. + */ + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams ): Promise; /** - * Resync storage keys associated with this workspace. - * @param workspaceName The name of the machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDiagnose( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDiagnoseResponse + > + >; + /** + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDiagnoseAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise; + /** + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - resyncStorageKeys( + listKeys( + resourceGroupName: string, workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>>; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeysAndWait( resourceGroupName: string, - options?: WorkspacesResyncStorageKeysOptionalParams + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams ): Promise; /** - * List the authorization keys associated with this workspace. - * @param workspaceName The name of the machine learning workspace. - * @param resourceGroupName The name of the resource group to which the machine learning workspace - * belongs. + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - listWorkspaceKeys( + listNotebookAccessToken( + resourceGroupName: string, workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise; + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebook( resourceGroupName: string, - options?: WorkspacesListWorkspaceKeysOptionalParams - ): Promise; + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + >; + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise; + /** + * List storage account keys of a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise; + /** + * List keys of a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listNotebookKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise; + /** + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-workspaces/tsconfig.json b/sdk/machinelearning/arm-workspaces/tsconfig.json index e30c010e0bca..8292b80f5b3f 100644 --- a/sdk/machinelearning/arm-workspaces/tsconfig.json +++ b/sdk/machinelearning/arm-workspaces/tsconfig.json @@ -9,12 +9,21 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-workspaces": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/machinelearning/ci.mgmt.yml b/sdk/machinelearning/ci.mgmt.yml index 8088985e6a32..97dcf8c25c50 100644 --- a/sdk/machinelearning/ci.mgmt.yml +++ b/sdk/machinelearning/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -12,6 +12,9 @@ trigger: - sdk/machinelearning/arm-workspaces/ - sdk/machinelearning/arm-webservices/ - sdk/machinelearning/arm-commitmentplans/ + - sdk/machinelearning/arm-commitmentplans + - sdk/machinelearning/arm-webservices + - sdk/machinelearning/arm-workspaces pr: branches: include: @@ -27,7 +30,9 @@ pr: - sdk/machinelearning/arm-workspaces/ - sdk/machinelearning/arm-webservices/ - sdk/machinelearning/arm-commitmentplans/ - + - sdk/machinelearning/arm-commitmentplans + - sdk/machinelearning/arm-webservices + - sdk/machinelearning/arm-workspaces extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: @@ -38,4 +43,4 @@ extends: - name: azure-arm-webservices safeName: azurearmwebservices - name: azure-arm-commitmentplans - safeName: azurearmcommitmentplans \ No newline at end of file + safeName: azurearmcommitmentplans