From c3aba663b69bce150c43f17274a87d82999cee13 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 9 Apr 2021 14:40:57 +0000 Subject: [PATCH] CodeGen from PR 12508 in Azure/azure-rest-api-specs Merge 978aba484fd3594b29784bc0cb03370acd55956f into a9d1be862638de3e5225f26acac8204dcd688d93 --- .../arm-machinelearningservices/LICENSE.txt | 2 +- .../src/azureMachineLearningWorkspaces.ts | 42 +- .../azureMachineLearningWorkspacesContext.ts | 2 +- .../src/models/codeContainersMappers.ts | 230 + .../src/models/codeVersionsMappers.ts | 230 + .../src/models/componentContainersMappers.ts | 230 + .../src/models/componentVersionsMappers.ts | 230 + .../src/models/dataContainersMappers.ts | 230 + .../src/models/dataVersionsMappers.ts | 230 + .../src/models/datastoresMappers.ts | 230 + .../models/environmentContainersMappers.ts | 230 + ...environmentSpecificationVersionsMappers.ts | 230 + .../src/models/index.ts | 8727 +++++++++++++++- .../src/models/jobsMappers.ts | 231 + .../src/models/labelingJobsMappers.ts | 237 + .../src/models/linkedServicesMappers.ts | 231 + .../models/machineLearningComputeMappers.ts | 175 +- .../models/machineLearningServiceMappers.ts | 248 + .../src/models/mappers.ts | 8856 ++++++++++++++++- .../src/models/modelContainersMappers.ts | 230 + .../src/models/modelVersionsMappers.ts | 230 + .../src/models/notebooksMappers.ts | 5 +- .../src/models/onlineDeploymentsMappers.ts | 237 + .../src/models/onlineEndpointsMappers.ts | 239 + .../src/models/operationsMappers.ts | 4 +- .../src/models/parameters.ts | 430 +- .../privateEndpointConnectionsMappers.ts | 175 +- .../src/models/privateLinkResourcesMappers.ts | 175 +- .../src/models/quotasMappers.ts | 2 + .../src/models/workspaceConnectionsMappers.ts | 175 +- .../src/models/workspaceFeaturesMappers.ts | 4 +- .../src/models/workspacesMappers.ts | 176 +- .../src/operations/codeContainers.ts | 339 + .../src/operations/codeVersions.ts | 363 + .../src/operations/componentContainers.ts | 339 + .../src/operations/componentVersions.ts | 363 + .../src/operations/dataContainers.ts | 339 + .../src/operations/dataVersions.ts | 363 + .../src/operations/datastores.ts | 413 + .../src/operations/environmentContainers.ts | 339 + .../environmentSpecificationVersions.ts | 363 + .../src/operations/index.ts | 21 +- .../src/operations/jobs.ts | 411 + .../src/operations/labelingJobs.ts | 540 + .../src/operations/linkedServices.ts | 282 + .../src/operations/machineLearningCompute.ts | 52 + .../src/operations/machineLearningService.ts | 359 + .../src/operations/modelContainers.ts | 341 + .../src/operations/modelVersions.ts | 373 + .../src/operations/notebooks.ts | 56 + .../src/operations/onlineDeployments.ts | 522 + .../src/operations/onlineEndpoints.ts | 627 ++ .../operations/privateEndpointConnections.ts | 38 +- .../src/operations/virtualMachineSizes.ts | 10 +- 54 files changed, 28878 insertions(+), 878 deletions(-) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/componentContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/componentVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/linkedServicesMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/linkedServices.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts diff --git a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt +++ b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 4cc5d45384af..78ca399bb945 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -20,14 +20,31 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte operations: operations.Operations; workspaces: operations.Workspaces; workspaceFeatures: operations.WorkspaceFeatures; - notebooks: operations.Notebooks; usages: operations.Usages; virtualMachineSizes: operations.VirtualMachineSizes; quotas: operations.Quotas; - workspaceConnections: operations.WorkspaceConnections; machineLearningCompute: operations.MachineLearningCompute; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + linkedServices: operations.LinkedServices; + machineLearningService: operations.MachineLearningService; + notebooks: operations.Notebooks; + workspaceConnections: operations.WorkspaceConnections; + codeContainers: operations.CodeContainers; + codeVersions: operations.CodeVersions; + componentContainers: operations.ComponentContainers; + componentVersions: operations.ComponentVersions; + dataContainers: operations.DataContainers; + datastores: operations.Datastores; + dataVersions: operations.DataVersions; + environmentContainers: operations.EnvironmentContainers; + environmentSpecificationVersions: operations.EnvironmentSpecificationVersions; + jobs: operations.Jobs; + labelingJobs: operations.LabelingJobs; + modelContainers: operations.ModelContainers; + modelVersions: operations.ModelVersions; + onlineDeployments: operations.OnlineDeployments; + onlineEndpoints: operations.OnlineEndpoints; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. @@ -40,14 +57,31 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte this.operations = new operations.Operations(this); this.workspaces = new operations.Workspaces(this); this.workspaceFeatures = new operations.WorkspaceFeatures(this); - this.notebooks = new operations.Notebooks(this); this.usages = new operations.Usages(this); this.virtualMachineSizes = new operations.VirtualMachineSizes(this); this.quotas = new operations.Quotas(this); - this.workspaceConnections = new operations.WorkspaceConnections(this); this.machineLearningCompute = new operations.MachineLearningCompute(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.privateLinkResources = new operations.PrivateLinkResources(this); + this.linkedServices = new operations.LinkedServices(this); + this.machineLearningService = new operations.MachineLearningService(this); + this.notebooks = new operations.Notebooks(this); + this.workspaceConnections = new operations.WorkspaceConnections(this); + this.codeContainers = new operations.CodeContainers(this); + this.codeVersions = new operations.CodeVersions(this); + this.componentContainers = new operations.ComponentContainers(this); + this.componentVersions = new operations.ComponentVersions(this); + this.dataContainers = new operations.DataContainers(this); + this.datastores = new operations.Datastores(this); + this.dataVersions = new operations.DataVersions(this); + this.environmentContainers = new operations.EnvironmentContainers(this); + this.environmentSpecificationVersions = new operations.EnvironmentSpecificationVersions(this); + this.jobs = new operations.Jobs(this); + this.labelingJobs = new operations.LabelingJobs(this); + this.modelContainers = new operations.ModelContainers(this); + this.modelVersions = new operations.ModelVersions(this); + this.onlineDeployments = new operations.OnlineDeployments(this); + this.onlineEndpoints = new operations.OnlineEndpoints(this); } /** diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts index 5dfaeebdef9f..4794340c26db 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts @@ -43,7 +43,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2020-08-01'; + this.apiVersion = '2020-09-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts new file mode 100644 index 000000000000..e01ccb92949f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeContainersMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeContainerResourceArmPaginatedResult, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts new file mode 100644 index 000000000000..c258f6c1adae --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/codeVersionsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CodeVersionResourceArmPaginatedResult, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentContainersMappers.ts new file mode 100644 index 000000000000..5d41d1d404f4 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentContainersMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentContainerResourceArmPaginatedResult, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentVersionsMappers.ts new file mode 100644 index 000000000000..48995ed6011c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/componentVersionsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + ComponentVersionResourceArmPaginatedResult, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts new file mode 100644 index 000000000000..87c0edc0eb93 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataContainersMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataContainerResourceArmPaginatedResult, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts new file mode 100644 index 000000000000..4028fdd30a3a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/dataVersionsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DataVersionResourceArmPaginatedResult, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts new file mode 100644 index 000000000000..efe94f27e993 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/datastoresMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DatastorePropertiesResourceArmPaginatedResult, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts new file mode 100644 index 000000000000..9a9fa32e0928 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentContainersMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentContainerResourceArmPaginatedResult, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts new file mode 100644 index 000000000000..fe749226bc7c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/environmentSpecificationVersionsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + EnvironmentSpecificationVersionResourceArmPaginatedResult, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index 77ada3593b7f..437d11f8d6b7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -47,37 +47,6 @@ export interface Operation { display?: OperationDisplay; } -/** - * An interface representing NotebookListCredentialsResult. - */ -export interface NotebookListCredentialsResult { - primaryAccessKey?: string; - secondaryAccessKey?: string; -} - -/** - * An interface representing NotebookPreparationError. - */ -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; -} - -/** - * An interface representing NotebookResourceInfo. - */ -export interface NotebookResourceInfo { - fqdn?: string; - /** - * the data plane resourceId that used to initialize notebook component - */ - resourceId?: string; - /** - * The error that occurs when preparing notebook. - */ - notebookPreparationError?: NotebookPreparationError; -} - /** * An interface representing KeyVaultProperties. */ @@ -143,24 +112,46 @@ export interface PrivateLinkServiceConnectionState { } /** - * The Private Endpoint Connection resource. + * Azure Resource Manager resource envelope. */ -export interface PrivateEndpointConnection extends BaseResource { +export interface Resource extends BaseResource { /** - * ResourceId of the private endpoint connection. + * Specifies the resource ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * Friendly name of the private endpoint connection. + * Specifies the name of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * Resource type of private endpoint connection. + * The identity of the resource. + */ + identity?: Identity; + /** + * Specifies the location of the resource. + */ + location?: string; + /** + * Specifies the type of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; + /** + * Contains resource tags defined as key/value pairs. + */ + tags?: { [propertyName: string]: string }; + /** + * The sku of the workspace. + */ + sku?: Sku; +} + +/** + * The Private Endpoint Connection resource. + */ +export interface PrivateEndpointConnection extends Resource { /** * The resource of private end point. */ @@ -204,43 +195,6 @@ export interface SharedPrivateLinkResource { status?: PrivateEndpointServiceConnectionStatus; } -/** - * Azure Resource Manager resource envelope. - */ -export interface Resource extends BaseResource { - /** - * Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Specifies the name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The identity of the resource. - */ - identity?: Identity; - /** - * Specifies the location of the resource. - */ - location?: string; - /** - * Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Contains resource tags defined as key/value pairs. - */ - tags?: { [propertyName: string]: string }; - /** - * The sku of the workspace. - */ - sku?: Sku; -} - /** * An object that represents a machine learning workspace. */ @@ -332,11 +286,6 @@ export interface Workspace extends Resource { * 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; } /** @@ -527,10 +476,6 @@ export interface VirtualMachineSize { * Estimated VM prices. The estimated price information for using a VM. */ estimatedVMPrices?: EstimatedVMPrices; - /** - * Supported Compute Types. Specifies the compute types supported by the virtual machine size. - */ - supportedComputeTypes?: string[]; } /** @@ -563,6 +508,10 @@ export interface QuotaBaseProperties { * An enum describing the unit of quota measurement. Possible values include: 'Count' */ unit?: QuotaUnit; + /** + * Region of the AML workspace in the id. + */ + location?: string; } /** @@ -649,6 +598,11 @@ export interface ResourceQuota { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; + /** + * Region of the AML workspace in the id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; /** * Specifies the resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -672,16 +626,21 @@ export interface ResourceQuota { } /** - * An interface representing IdentityUserAssignedIdentitiesValue. + * User Assigned Identity */ -export interface IdentityUserAssignedIdentitiesValue { +export interface UserAssignedIdentity { /** - * The principal id of user assigned identity. + * The principal ID of the user assigned identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * The client id of user assigned identity. + * The tenant ID of the user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The clientId(aka appId) of the user assigned identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly clientId?: string; @@ -702,16 +661,14 @@ export interface Identity { */ readonly tenantId?: string; /** - * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', - * 'SystemAssigned,UserAssigned', 'None' + * The identity type. Possible values include: 'SystemAssigned', 'SystemAssigned,UserAssigned', + * 'UserAssigned', 'None' */ - type: ResourceIdentityType; + type?: ResourceIdentityType; /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * The user assigned identities associated with the resource. */ - userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } /** @@ -773,7 +730,6 @@ export interface ListWorkspaceKeysResult { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly containerRegistryCredentials?: RegistryListCredentialsResult; - notebookAccessKeys?: NotebookListCredentialsResult; } /** @@ -913,7 +869,7 @@ export interface SystemService { */ export interface SslConfiguration { /** - * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled', 'Auto' */ status?: Status1; /** @@ -975,7 +931,7 @@ export interface AKSProperties { /** * Agent virtual machine size */ - agentVMSize?: string; + agentVmSize?: string; /** * SSL configuration */ @@ -1040,6 +996,16 @@ export interface AKS { properties?: AKSProperties; } +/** + * Virtual Machine image for Windows AML Compute + */ +export interface VirtualMachineImage { + /** + * Virtual Machine image path + */ + id: string; +} + /** * scale settings for AML Compute */ @@ -1053,7 +1019,7 @@ export interface ScaleSettings { */ minNodeCount?: number; /** - * Node Idle Time before scaling down amlCompute + * Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ nodeIdleTimeBeforeScaleDown?: string; } @@ -1116,6 +1082,10 @@ export interface NodeStateCounts { * AML Compute properties */ export interface AmlComputeProperties { + /** + * Compute OS Type. Possible values include: 'Linux', 'Windows'. Default value: 'Linux'. + */ + osType?: OsType; /** * Virtual Machine Size */ @@ -1124,6 +1094,14 @@ export interface AmlComputeProperties { * Virtual Machine priority. Possible values include: 'Dedicated', 'LowPriority' */ vmPriority?: VmPriority; + /** + * Virtual Machine image for AML Compute - windows only + */ + virtualMachineImage?: VirtualMachineImage; + /** + * Network is isolated or not + */ + isolatedNetwork?: boolean; /** * Scale settings for AML Compute */ @@ -1186,6 +1164,13 @@ export interface AmlComputeProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nodeStateCounts?: NodeStateCounts; + /** + * Enable node public IP. Enable or disable node public IP address provisioning. Possible values + * are: Possible values are: true - Indicates that the compute nodes will have public IPs + * provisioned. false - Indicates that the compute nodes will have a private endpoint and no + * public IPs. Default value: true. + */ + enableNodePublicIp?: boolean; } /** @@ -1271,7 +1256,7 @@ export interface ComputeInstanceSshSettings { } /** - * Defines all connectivity endpoints and properties for a ComputeInstance. + * Defines all connectivity endpoints and properties for an ComputeInstance. */ export interface ComputeInstanceConnectivityEndpoints { /** @@ -1322,6 +1307,76 @@ export interface ComputeInstanceCreatedBy { readonly userId?: string; } +/** + * A user that can be assigned to a compute instance. + */ +export interface AssignedUser { + /** + * User’s AAD Object Id. + */ + objectId: string; + /** + * User’s AAD Tenant Id. + */ + tenantId: string; +} + +/** + * Settings for a personal compute instance. + */ +export interface PersonalComputeInstanceSettings { + /** + * Assigned User. A user explicitly assigned to a personal compute instance. + */ + assignedUser?: AssignedUser; +} + +/** + * Script reference + */ +export interface ScriptReference { + /** + * The storage source of the script: inline, workspace. + */ + scriptSource?: string; + /** + * The location of scripts in the mounted volume. + */ + scriptData?: string; + /** + * Optional command line arguments passed to the script to run. + */ + scriptArguments?: string; + /** + * Optional time period passed to timeout command. + */ + timeout?: string; +} + +/** + * Customized setup scripts + */ +export interface ScriptsToExecute { + /** + * Script that's run every time the machine starts. + */ + startupScript?: ScriptReference; + /** + * Script that's run only once during provision of the compute. + */ + creationScript?: ScriptReference; +} + +/** + * Details of customized scripts to execute for setting up the cluster. + */ +export interface SetupScripts { + /** + * Customized setup scripts + */ + scripts?: ScriptsToExecute; +} + /** * The last operation on ComputeInstance. */ @@ -1393,6 +1448,19 @@ export interface ComputeInstanceProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly state?: ComputeInstanceState; + /** + * Compute Instance Authorization type. The Compute Instance Authorization type. Available values + * are personal (default). Possible values include: 'personal'. Default value: 'personal'. + */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** + * Personal Compute Instance settings. Settings for a personal compute instance. + */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** + * Details of customized scripts to execute for setting up the cluster. + */ + setupScripts?: SetupScripts; /** * The last operation on ComputeInstance. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1873,26 +1941,6 @@ export interface AmlComputeNodeInformation { readonly runId?: string; } -/** - * Compute node information related to a AmlCompute. - */ -export interface AmlComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "AmlCompute"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; - /** - * The collection of returned AmlCompute nodes details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodes?: AmlComputeNodeInformation[]; -} - /** * Contains the possible cases for ComputeSecrets. */ @@ -2034,7 +2082,7 @@ export interface Restriction { /** * Describes Workspace Sku details and features */ -export interface SkuSettings { +export interface WorkspaceSku { /** * The set of locations that the SKU is available. This will be supported and registered Azure * Geo Regions (e.g. West US, East US, Southeast Asia, etc.). @@ -2071,21 +2119,6 @@ export interface SkuSettings { restrictions?: Restriction[]; } -/** - * AML workspace sku information - */ -export interface WorkspaceSku { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; - /** - * The list of workspace sku settings - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skus?: SkuSettings[]; -} - /** * A private link resource */ @@ -2117,481 +2150,8056 @@ export interface PrivateLinkResourceListResult { } /** - * Workspace connection. + * LinkedService specific properties. */ -export interface WorkspaceConnection extends BaseResource { +export interface LinkedServiceProps { /** - * ResourceId of the workspace connection. + * ResourceId of the link target of the linked service. + */ + linkedServiceResourceId: string; + /** + * Type of the link target. Possible values include: 'Synapse' + */ + linkType?: LinkedServiceLinkType; + /** + * The creation time of the linked service. + */ + createdTime?: Date; + /** + * The last modified time of the linked service. + */ + modifiedTime?: Date; +} + +/** + * Linked service. + */ +export interface LinkedServiceResponse extends BaseResource { + /** + * ResourceId of the link of the linked service. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * Friendly name of the workspace connection. + * Friendly name of the linked service. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * Resource type of workspace connection. + * Resource type of linked service. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * Category of the workspace connection. + * location of the linked service. */ - category?: string; + location?: string; + identity?: Identity; + properties?: LinkedServiceProps; +} + +/** + * object used for creating linked service. + */ +export interface LinkedServiceRequest { /** - * Target of the workspace connection. + * Friendly name of the linked service */ - target?: string; + name?: string; /** - * Authorization type of the workspace connection. + * location of the linked service. */ - authType?: string; + location?: string; + identity?: Identity; + properties?: LinkedServiceProps; +} + +/** + * List response of linked service. + */ +export interface LinkedServiceList { /** - * Value details of the workspace connection. + * Array of linked service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: string; + readonly value?: LinkedServiceResponse[]; } /** - * object used for creating workspace connection. + * The error details. */ -export interface WorkspaceConnectionDto { +export interface ServiceResponseBaseError extends ErrorResponse { +} + +/** + * Contains the possible cases for ServiceResponseBase. + */ +export type ServiceResponseBaseUnion = ServiceResponseBase | ACIServiceResponse | AKSVariantResponseUnion; + +/** + * The base service response. The correct inherited response based on computeType will be returned + * (ex. ACIServiceResponse) + */ +export interface ServiceResponseBase { /** - * Friendly name of the workspace connection + * Polymorphic Discriminator */ - name?: string; + computeType: "ServiceResponseBase"; /** - * Category of the workspace connection. + * The service description. */ - category?: string; + description?: string; /** - * Target of the workspace connection. + * The service tag dictionary. Tags are mutable. */ - target?: string; + kvTags?: { [propertyName: string]: string }; /** - * Authorization type of the workspace connection. + * The service property dictionary. Properties are immutable. */ - authType?: string; + properties?: { [propertyName: string]: string }; /** - * Value details of the workspace connection. + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: string; + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; } /** - * Optional Parameters. + * Machine Learning service object wrapped into ARM resource envelope. */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceResource extends Resource { /** - * Continuation token for pagination. + * Service properties */ - skiptoken?: string; + properties?: ServiceResponseBaseUnion; } /** - * Optional Parameters. + * The resource requirements for the container (cpu and memory). */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface ContainerResourceRequirements { /** - * Continuation token for pagination. + * The number of CPU cores on the container. */ - skiptoken?: string; + cpu?: number; + /** + * The amount of memory on the container in GB. + */ + memoryInGB?: number; + /** + * The number of GPU cores in the container. + */ + gpu?: number; + /** + * The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. + */ + fpga?: number; } /** - * Optional Parameters. + * The Model data collection properties. */ -export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { +export interface ModelDataCollection { /** - * Continuation token for pagination. + * Option for enabling/disabling Event Hub. */ - skiptoken?: string; + eventHubEnabled?: boolean; + /** + * Option for enabling/disabling storage. + */ + storageEnabled?: boolean; } /** - * Optional Parameters. + * Details of the data collection options specified. */ -export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; +export interface ACIServiceResponseDataCollection extends ModelDataCollection { } /** - * Optional Parameters. + * The dataset reference object. */ -export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { +export interface DatasetReference { /** - * Type of compute to filter by. + * The name of the dataset reference. */ - computeType?: string; + name?: string; /** - * Specifies whether to return recommended vm sizes or all vm sizes + * The id of the dataset reference. */ - recommended?: boolean; + id?: string; } /** - * Optional Parameters. + * An Azure Machine Learning Model. */ -export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { +export interface Model { /** - * Target of the workspace connection. + * The Model Id. */ - target?: string; + id?: string; /** - * Category of the workspace connection. + * The Model name. */ - category?: string; -} - -/** - * Optional Parameters. - */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + name: string; /** - * Continuation token for pagination. + * The Model framework. */ - skiptoken?: string; + framework?: string; + /** + * The Model framework version. + */ + frameworkVersion?: string; + /** + * The Model version assigned by Model Management Service. + */ + version?: number; + /** + * The list of datasets associated with the model. + */ + datasets?: DatasetReference[]; + /** + * The URL of the Model. Usually a SAS URL. + */ + url: string; + /** + * The MIME type of Model content. For more details about MIME type, please open + * https://www.iana.org/assignments/media-types/media-types.xhtml + */ + mimeType: string; + /** + * The Model description text. + */ + description?: string; + /** + * The Model creation time (UTC). + */ + createdTime?: Date; + /** + * The Model last modified time (UTC). + */ + modifiedTime?: Date; + /** + * Indicates whether we need to unpack the Model during docker Image creation. + */ + unpack?: boolean; + /** + * The Parent Model Id. + */ + parentModelId?: string; + /** + * The RunId that created this model. + */ + runId?: string; + /** + * The name of the experiment where this model was created. + */ + experimentName?: string; + /** + * The Model tag dictionary. Items are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The Model property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * Models derived from this model + */ + derivedModelIds?: string[]; + /** + * Sample Input Data for the Model. A reference to a dataset in the workspace in the format + * aml://dataset/{datasetId} + */ + sampleInputData?: string; + /** + * Sample Output Data for the Model. A reference to a dataset in the workspace in the format + * aml://dataset/{datasetId} + */ + sampleOutputData?: string; + /** + * Resource requirements for the model + */ + resourceRequirements?: ContainerResourceRequirements; } /** - * Optional Parameters. + * Request to create a Docker image based on Environment. */ -export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { +export interface EnvironmentImageResponse { /** - * Continuation token for pagination. + * The name of the driver file. */ - skiptoken?: string; + driverProgram?: string; + /** + * The list of assets. + */ + assets?: ImageAsset[]; + /** + * The list of model Ids. + */ + modelIds?: string[]; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The details of the AZURE ML environment. + */ + environment?: EnvironmentImageResponseEnvironment; + /** + * The unique identifying details of the AZURE ML environment. + */ + environmentReference?: EnvironmentImageResponseEnvironmentReference; } /** - * An interface representing AzureMachineLearningWorkspacesOptions. + * The Environment, models and assets used for inferencing. */ -export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ACIServiceResponseEnvironmentImageRequest extends EnvironmentImageResponse { } /** - * Defines headers for CreateOrUpdate operation. + * An interface representing VnetConfiguration. */ -export interface MachineLearningComputeCreateOrUpdateHeaders { +export interface VnetConfiguration { /** - * URI to poll for asynchronous operation status. + * The name of the virtual network. */ - azureAsyncOperation: string; + vnetName?: string; + /** + * The name of the virtual network subnet. + */ + subnetName?: string; } /** - * Defines headers for Delete operation. + * The virtual network configuration. */ -export interface MachineLearningComputeDeleteHeaders { +export interface ACIServiceResponseVnetConfiguration extends VnetConfiguration { +} + +/** + * An interface representing EncryptionProperties. + */ +export interface EncryptionProperties { /** - * URI to poll for asynchronous operation status. + * vault base Url */ - azureAsyncOperation: string; + vaultBaseUrl: string; /** - * URI to poll for asynchronous operation result. + * Encryption Key name */ - location: string; + keyName: string; + /** + * Encryption Key Version + */ + keyVersion: string; } /** - * @interface - * An array of operations supported by the resource provider. - * @extends Array + * The encryption properties. */ -export interface OperationListResult extends Array { +export interface ACIServiceResponseEncryptionProperties extends EncryptionProperties { } /** - * @interface - * The result of a request to list machine learning workspaces. - * @extends Array + * The response for an ACI service. */ -export interface WorkspaceListResult extends Array { +export interface ACIServiceResponse { /** - * The URI that can be used to request the next list of machine learning workspaces. + * Polymorphic Discriminator */ - nextLink?: string; -} - -/** - * @interface - * The List Aml user feature operation response. - * @extends Array - */ -export interface ListAmlUserFeatureResult extends Array { + computeType: "ACI"; /** - * 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. + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The Uri for sending scoring requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Whether or not authentication is enabled on the service. + */ + authEnabled?: boolean; + /** + * Whether or not SSL is enabled. + */ + sslEnabled?: boolean; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * Details of the data collection options specified. + */ + dataCollection?: ACIServiceResponseDataCollection; + /** + * The public SSL certificate in PEM format to use if SSL is enabled. + */ + sslCertificate?: string; + /** + * The public SSL key in PEM format for the certificate. + */ + sslKey?: string; + /** + * The CName for the service. + */ + cname?: string; + /** + * The public IP address for the service. + */ + publicIp?: string; + /** + * The public Fqdn for the service. + */ + publicFqdn?: string; + /** + * The Uri for sending swagger requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * Details on the models and configurations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modelConfigMap?: { [propertyName: string]: any }; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The Environment, models and assets used for inferencing. + */ + environmentImageRequest?: ACIServiceResponseEnvironmentImageRequest; + /** + * The virtual network configuration. + */ + vnetConfiguration?: ACIServiceResponseVnetConfiguration; + /** + * The encryption properties. + */ + encryptionProperties?: ACIServiceResponseEncryptionProperties; } /** - * @interface - * The List Usages operation response. - * @extends Array + * An Image asset. */ -export interface ListUsagesResult extends Array { +export interface ImageAsset { /** - * 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.** + * The Asset Id. */ - readonly nextLink?: string; + id?: string; + /** + * The mime type. + */ + mimeType?: string; + /** + * The Url of the Asset. + */ + url?: string; + /** + * Whether the Asset is unpacked. + */ + unpack?: boolean; } /** - * @interface - * The List WorkspaceQuotasByVMFamily operation response. - * @extends Array + * An interface representing ModelEnvironmentDefinition. */ -export interface ListWorkspaceQuotas extends Array { +export interface ModelEnvironmentDefinition { /** - * 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.** + * The name of the environment. */ - readonly nextLink?: string; + name?: string; + /** + * The environment version. + */ + version?: string; + /** + * Settings for a Python environment. + */ + python?: ModelEnvironmentDefinitionPython; + /** + * Definition of environment variables to be defined in the environment. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * The definition of a Docker container. + */ + docker?: ModelEnvironmentDefinitionDocker; + /** + * The configuration for a Spark environment. + */ + spark?: ModelEnvironmentDefinitionSpark; + /** + * Settings for a R environment. + */ + r?: ModelEnvironmentDefinitionR; + /** + * The inferencing stack version added to the image. To avoid adding an inferencing stack, do not + * set this value. Valid values: "latest". + */ + inferencingStackVersion?: string; } /** - * @interface - * Paginated list of Workspace connection objects. - * @extends Array + * The details of the AZURE ML environment. */ -export interface PaginatedWorkspaceConnectionsList extends Array { - /** - * A continuation link (absolute URI) to the next page of results in the list. - */ - nextLink?: string; +export interface EnvironmentImageRequestEnvironment extends ModelEnvironmentDefinition { } /** - * @interface - * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. - * @extends Array + * An interface representing EnvironmentReference. */ -export interface PaginatedComputeResourcesList extends Array { +export interface EnvironmentReference { /** - * A continuation link (absolute URI) to the next page of results in the list. + * Name of the environment. */ - nextLink?: string; + name?: string; + /** + * Version of the environment. + */ + version?: string; } /** - * @interface - * List of skus with features - * @extends Array + * The unique identifying details of the AZURE ML environment. */ -export interface SkuListResult extends Array { +export interface EnvironmentImageRequestEnvironmentReference extends EnvironmentReference { +} + +/** + * Request to create a Docker image based on Environment. + */ +export interface EnvironmentImageRequest { /** - * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the - * next page of Workspace Skus + * The name of the driver file. */ - nextLink?: string; + driverProgram?: string; + /** + * The list of assets. + */ + assets?: ImageAsset[]; + /** + * The list of model Ids. + */ + modelIds?: string[]; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The details of the AZURE ML environment. + */ + environment?: EnvironmentImageRequestEnvironment; + /** + * The unique identifying details of the AZURE ML environment. + */ + environmentReference?: EnvironmentImageRequestEnvironmentReference; } /** - * Defines values for ProvisioningState. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @readonly - * @enum {string} + * An interface representing ModelEnvironmentDefinitionResponse. */ -export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; +export interface ModelEnvironmentDefinitionResponse { + /** + * The name of the environment. + */ + name?: string; + /** + * The environment version. + */ + version?: string; + /** + * Settings for a Python environment. + */ + python?: ModelEnvironmentDefinitionResponsePython; + /** + * Definition of environment variables to be defined in the environment. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * The definition of a Docker container. + */ + docker?: ModelEnvironmentDefinitionResponseDocker; + /** + * The configuration for a Spark environment. + */ + spark?: ModelEnvironmentDefinitionResponseSpark; + /** + * Settings for a R environment. + */ + r?: ModelEnvironmentDefinitionResponseR; + /** + * The inferencing stack version added to the image. To avoid adding an inferencing stack, do not + * set this value. Valid values: "latest". + */ + inferencingStackVersion?: string; +} /** - * Defines values for EncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * The details of the AZURE ML environment. */ -export type EncryptionStatus = 'Enabled' | 'Disabled'; +export interface EnvironmentImageResponseEnvironment extends ModelEnvironmentDefinitionResponse { +} /** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - * @readonly - * @enum {string} + * The unique identifying details of the AZURE ML environment. */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; +export interface EnvironmentImageResponseEnvironmentReference extends EnvironmentReference { +} /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} + * An interface representing ModelPythonSection. */ -export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export interface ModelPythonSection { + /** + * The python interpreter path to use if an environment build is not required. The path specified + * gets used to call the user script. + */ + interpreterPath?: string; + /** + * True means that AzureML reuses an existing python environment; False means that AzureML will + * create a python environment based on the Conda dependencies specification. + */ + userManagedDependencies?: boolean; + /** + * A JObject containing Conda dependencies. + */ + condaDependencies?: any; + baseCondaEnvironment?: string; +} /** - * Defines values for UsageUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * Settings for a Python environment. */ -export type UsageUnit = 'Count'; +export interface ModelEnvironmentDefinitionPython extends ModelPythonSection { +} /** - * Defines values for VMPriceOSType. - * Possible values include: 'Linux', 'Windows' - * @readonly - * @enum {string} + * An interface representing ModelDockerSection. */ -export type VMPriceOSType = 'Linux' | 'Windows'; +export interface ModelDockerSection { + /** + * Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile. + */ + baseImage?: string; + /** + * Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage. + */ + baseDockerfile?: string; + /** + * Image registry that contains the base image. + */ + baseImageRegistry?: ModelDockerSectionBaseImageRegistry; +} /** - * Defines values for VMTier. - * Possible values include: 'Standard', 'LowPriority', 'Spot' - * @readonly - * @enum {string} + * The definition of a Docker container. */ -export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; +export interface ModelEnvironmentDefinitionDocker extends ModelDockerSection { +} /** - * Defines values for QuotaUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * An interface representing ModelSparkSection. */ -export type QuotaUnit = 'Count'; +export interface ModelSparkSection { + /** + * The list of spark repositories. + */ + repositories?: string[]; + /** + * The Spark packages to use. + */ + packages?: SparkMavenPackage[]; + /** + * Whether to precache the packages. + */ + precachePackages?: boolean; +} /** - * Defines values for Status. - * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' - * @readonly - * @enum {string} + * The configuration for a Spark environment. */ -export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; +export interface ModelEnvironmentDefinitionSpark extends ModelSparkSection { +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * An interface representing RSection. + */ +export interface RSection { + /** + * The version of R to be installed + */ + rVersion?: string; + /** + * Indicates whether the environment is managed by user or by AzureML. + */ + userManaged?: boolean; + /** + * The Rscript path to use if an environment build is not required. + * The path specified gets used to call the user script. + */ + rscriptPath?: string; + /** + * Date of MRAN snapshot to use in YYYY-MM-DD format, e.g. "2019-04-17" + */ + snapshotDate?: string; + /** + * The CRAN packages to use. + */ + cranPackages?: RCranPackage[]; + /** + * The packages directly from GitHub. + */ + gitHubPackages?: RGitHubPackage[]; + /** + * The packages from custom urls. + */ + customUrlPackages?: string[]; + /** + * The packages from Bioconductor. + */ + bioConductorPackages?: string[]; +} + +/** + * Settings for a R environment. */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export interface ModelEnvironmentDefinitionR extends RSection { +} /** - * Defines values for VmPriority. - * Possible values include: 'Dedicated', 'LowPriority' - * @readonly - * @enum {string} + * Settings for a Python environment. */ -export type VmPriority = 'Dedicated' | 'LowPriority'; +export interface ModelEnvironmentDefinitionResponsePython extends ModelPythonSection { +} /** - * Defines values for RemoteLoginPortPublicAccess. - * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' - * @readonly - * @enum {string} + * An interface representing ModelDockerSectionResponse. */ -export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; +export interface ModelDockerSectionResponse { + /** + * Base image used for Docker-based runs. Mutually exclusive with BaseDockerfile. + */ + baseImage?: string; + /** + * Base Dockerfile used for Docker-based runs. Mutually exclusive with BaseImage. + */ + baseDockerfile?: string; + /** + * Image registry that contains the base image. + */ + baseImageRegistry?: ModelDockerSectionResponseBaseImageRegistry; +} /** - * Defines values for AllocationState. - * Possible values include: 'Steady', 'Resizing' - * @readonly - * @enum {string} + * The definition of a Docker container. */ -export type AllocationState = 'Steady' | 'Resizing'; +export interface ModelEnvironmentDefinitionResponseDocker extends ModelDockerSectionResponse { +} /** - * Defines values for ApplicationSharingPolicy. - * Possible values include: 'Personal', 'Shared' - * @readonly - * @enum {string} + * The configuration for a Spark environment. */ -export type ApplicationSharingPolicy = 'Personal' | 'Shared'; +export interface ModelEnvironmentDefinitionResponseSpark extends ModelSparkSection { +} /** - * Defines values for SshPublicAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * An interface representing RSectionResponse. */ -export type SshPublicAccess = 'Enabled' | 'Disabled'; +export interface RSectionResponse { + /** + * The version of R to be installed + */ + rVersion?: string; + /** + * Indicates whether the environment is managed by user or by AzureML. + */ + userManaged?: boolean; + /** + * The Rscript path to use if an environment build is not required. + * The path specified gets used to call the user script. + */ + rscriptPath?: string; + /** + * Date of MRAN snapshot to use in YYYY-MM-DD format, e.g. "2019-04-17" + */ + snapshotDate?: string; + /** + * The CRAN packages to use. + */ + cranPackages?: RCranPackage[]; + /** + * The packages directly from GitHub. + */ + gitHubPackages?: RGitHubPackageResponse[]; + /** + * The packages from custom urls. + */ + customUrlPackages?: string[]; + /** + * The packages from Bioconductor. + */ + bioConductorPackages?: string[]; +} /** - * Defines values for ComputeInstanceState. - * Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting', - * 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', - * 'UserSetupFailed', 'Unknown', 'Unusable' - * @readonly - * @enum {string} + * Settings for a R environment. */ -export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; +export interface ModelEnvironmentDefinitionResponseR extends RSectionResponse { +} /** - * Defines values for OperationName. - * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' - * @readonly - * @enum {string} + * An interface representing ContainerRegistry. */ -export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; +export interface ContainerRegistry { + address?: string; + username?: string; + password?: string; +} /** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', - * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - * @readonly - * @enum {string} + * An interface representing ContainerRegistryResponse. */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; +export interface ContainerRegistryResponse { + address?: string; +} /** - * Defines values for NodeState. - * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' - * @readonly - * @enum {string} + * Image registry that contains the base image. */ -export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; +export interface ModelDockerSectionBaseImageRegistry extends ContainerRegistry { +} /** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', - * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' - * @readonly - * @enum {string} + * Image registry that contains the base image. */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; +export interface ModelDockerSectionResponseBaseImageRegistry extends ContainerRegistryResponse { +} /** - * Defines values for ReasonCode. - * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' - * @readonly - * @enum {string} + * An interface representing SparkMavenPackage. */ -export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; +export interface SparkMavenPackage { + group?: string; + artifact?: string; + version?: string; +} /** - * Defines values for UnderlyingResourceAction. - * Possible values include: 'Delete', 'Detach' - * @readonly - * @enum {string} + * An interface representing RCranPackage. */ -export type UnderlyingResourceAction = 'Delete' | 'Detach'; +export interface RCranPackage { + /** + * The package name. + */ + name?: string; + /** + * The repository name. + */ + repository?: string; +} + +/** + * An interface representing RGitHubPackage. + */ +export interface RGitHubPackage { + /** + * Repository address in the format username/repo[/subdir][@ref|#pull]. + */ + repository?: string; + /** + * Personal access token to install from a private repo + */ + authToken?: string; +} + +/** + * An interface representing RGitHubPackageResponse. + */ +export interface RGitHubPackageResponse { + /** + * Repository address in the format username/repo[/subdir][@ref|#pull]. + */ + repository?: string; +} + +/** + * Contains the possible cases for AKSVariantResponse. + */ +export type AKSVariantResponseUnion = AKSVariantResponse | AKSServiceResponse; + +/** + * The response for an AKS variant. + */ +export interface AKSVariantResponse { + /** + * Polymorphic Discriminator + */ + computeType: "Custom"; + /** + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; +} + +/** + * The Auto Scaler properties. + */ +export interface AutoScaler { + /** + * Option to enable/disable auto scaling. + */ + autoscaleEnabled?: boolean; + /** + * The minimum number of replicas to scale down to. + */ + minReplicas?: number; + /** + * The maximum number of replicas in the cluster. + */ + maxReplicas?: number; + /** + * The target utilization percentage to use for determining whether to scale the cluster. + */ + targetUtilization?: number; + /** + * The amount of seconds to wait between auto scale updates. + */ + refreshPeriodInSeconds?: number; +} + +/** + * The error details. + */ +export interface AKSReplicaStatusError extends ErrorResponse { +} + +/** + * An interface representing AKSReplicaStatus. + */ +export interface AKSReplicaStatus { + /** + * The desired number of replicas. + */ + desiredReplicas?: number; + /** + * The number of updated replicas. + */ + updatedReplicas?: number; + /** + * The number of available replicas. + */ + availableReplicas?: number; + /** + * The error details. + */ + error?: AKSReplicaStatusError; +} + +/** + * The liveness probe requirements. + */ +export interface LivenessProbeRequirements { + /** + * The number of failures to allow before returning an unhealthy status. + */ + failureThreshold?: number; + /** + * The number of successful probes before returning a healthy status. + */ + successThreshold?: number; + /** + * The probe timeout in seconds. + */ + timeoutSeconds?: number; + /** + * The length of time between probes in seconds. + */ + periodSeconds?: number; + /** + * The delay before the first probe in seconds. + */ + initialDelaySeconds?: number; +} + +/** + * Details of the data collection options specified. + */ +export interface AKSServiceResponseDataCollection extends ModelDataCollection { +} + +/** + * The auto scaler properties. + */ +export interface AKSServiceResponseAutoScaler extends AutoScaler { +} + +/** + * The deployment status. + */ +export interface AKSServiceResponseDeploymentStatus extends AKSReplicaStatus { +} + +/** + * The liveness probe requirements. + */ +export interface AKSServiceResponseLivenessProbeRequirements extends LivenessProbeRequirements { +} + +/** + * The Environment, models and assets used for inferencing. + */ +export interface AKSServiceResponseEnvironmentImageRequest extends EnvironmentImageResponse { +} + +/** + * The response for an AKS service. + */ +export interface AKSServiceResponse { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + /** + * The service description. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service property dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The current state of the service. Possible values include: 'Transitioning', 'Healthy', + * 'Unhealthy', 'Failed', 'Unschedulable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: WebServiceState; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: ServiceResponseBaseError; + /** + * The deployment type for the service. Possible values include: 'GRPCRealtimeEndpoint', + * 'HttpRealtimeEndpoint', 'Batch' + */ + deploymentType?: DeploymentType; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; + /** + * The list of models. + */ + modelsProperty?: Model[]; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The maximum number of concurrent requests per container. + */ + maxConcurrentRequestsPerContainer?: number; + /** + * Maximum time a request will wait in the queue (in milliseconds). After this time, the service + * will return 503 (Service Unavailable) + */ + maxQueueWaitMs?: number; + /** + * The name of the compute resource. + */ + computeName?: string; + /** + * The Kubernetes namespace of the deployment. + */ + namespace?: string; + /** + * The number of replicas on the cluster. + */ + numReplicas?: number; + /** + * Details of the data collection options specified. + */ + dataCollection?: AKSServiceResponseDataCollection; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * The auto scaler properties. + */ + autoScaler?: AKSServiceResponseAutoScaler; + /** + * The Uri for sending scoring requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scoringUri?: string; + /** + * The deployment status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deploymentStatus?: AKSServiceResponseDeploymentStatus; + /** + * The scoring timeout in milliseconds. + */ + scoringTimeoutMs?: number; + /** + * The liveness probe requirements. + */ + livenessProbeRequirements?: AKSServiceResponseLivenessProbeRequirements; + /** + * Whether or not authentication is enabled. + */ + authEnabled?: boolean; + /** + * Whether or not AAD authentication is enabled. + */ + aadAuthEnabled?: boolean; + /** + * The Uri for sending swagger requests. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerUri?: string; + /** + * Details on the models and configurations. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modelConfigMap?: { [propertyName: string]: any }; + /** + * The Environment, models and assets used for inferencing. + */ + environmentImageRequest?: AKSServiceResponseEnvironmentImageRequest; +} + +/** + * An interface representing AuthKeys. + */ +export interface AuthKeys { + /** + * The primary key. + */ + primaryKey?: string; + /** + * The secondary key. + */ + secondaryKey?: string; +} + +/** + * The authentication keys. + */ +export interface CreateServiceRequestKeys extends AuthKeys { +} + +/** + * The Environment, models and assets needed for inferencing. + */ +export interface CreateServiceRequestEnvironmentImageRequest extends EnvironmentImageRequest { +} + +/** + * Contains the possible cases for CreateServiceRequest. + */ +export type CreateServiceRequestUnion = CreateServiceRequest | ACIServiceCreateRequest | CreateEndpointVariantRequestUnion; + +/** + * The base class for creating a service. + */ +export interface CreateServiceRequest { + /** + * Polymorphic Discriminator + */ + computeType: "CreateServiceRequest"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; +} + +/** + * Details of the data collection options specified. + */ +export interface ACIServiceCreateRequestDataCollection extends ModelDataCollection { +} + +/** + * The virtual network configuration. + */ +export interface ACIServiceCreateRequestVnetConfiguration extends VnetConfiguration { +} + +/** + * The encryption properties. + */ +export interface ACIServiceCreateRequestEncryptionProperties extends EncryptionProperties { +} + +/** + * An interface representing ACIServiceCreateRequest. + */ +export interface ACIServiceCreateRequest { + /** + * Polymorphic Discriminator + */ + computeType: "ACI"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * Whether or not authentication is enabled on the service. Default value: false. + */ + authEnabled?: boolean; + /** + * Whether or not SSL is enabled. Default value: false. + */ + sslEnabled?: boolean; + /** + * Whether or not Application Insights is enabled. Default value: false. + */ + appInsightsEnabled?: boolean; + /** + * Details of the data collection options specified. + */ + dataCollection?: ACIServiceCreateRequestDataCollection; + /** + * The public SSL certificate in PEM format to use if SSL is enabled. + */ + sslCertificate?: string; + /** + * The public SSL key in PEM format for the certificate. + */ + sslKey?: string; + /** + * The CName for the service. + */ + cname?: string; + /** + * The Dns label for the service. + */ + dnsNameLabel?: string; + /** + * The virtual network configuration. + */ + vnetConfiguration?: ACIServiceCreateRequestVnetConfiguration; + /** + * The encryption properties. + */ + encryptionProperties?: ACIServiceCreateRequestEncryptionProperties; +} + +/** + * Details of the data collection options specified. + */ +export interface AKSServiceCreateRequestDataCollection extends ModelDataCollection { +} + +/** + * The auto scaler properties. + */ +export interface AKSServiceCreateRequestAutoScaler extends AutoScaler { +} + +/** + * The liveness probe requirements. + */ +export interface AKSServiceCreateRequestLivenessProbeRequirements extends LivenessProbeRequirements { +} + +/** + * Contains the possible cases for CreateEndpointVariantRequest. + */ +export type CreateEndpointVariantRequestUnion = CreateEndpointVariantRequest | AKSServiceCreateRequest; + +/** + * The Variant properties. + */ +export interface CreateEndpointVariantRequest { + /** + * Polymorphic Discriminator + */ + computeType: "Custom"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; +} + +/** + * The request to create an AKS service. + */ +export interface AKSServiceCreateRequest { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + /** + * The description of the service. + */ + description?: string; + /** + * The service tag dictionary. Tags are mutable. + */ + kvTags?: { [propertyName: string]: string }; + /** + * The service properties dictionary. Properties are immutable. + */ + properties?: { [propertyName: string]: string }; + /** + * The authentication keys. + */ + keys?: CreateServiceRequestKeys; + /** + * The Environment, models and assets needed for inferencing. + */ + environmentImageRequest?: CreateServiceRequestEnvironmentImageRequest; + /** + * The name of the Azure location/region. + */ + location?: string; + /** + * Is this the default variant. + */ + isDefault?: boolean; + /** + * The amount of traffic variant receives. + */ + trafficPercentile?: number; + /** + * The type of the variant. Possible values include: 'Control', 'Treatment' + */ + type?: VariantType; + /** + * The number of replicas on the cluster. + */ + numReplicas?: number; + /** + * Details of the data collection options specified. + */ + dataCollection?: AKSServiceCreateRequestDataCollection; + /** + * The name of the compute resource. + */ + computeName?: string; + /** + * Whether or not Application Insights is enabled. + */ + appInsightsEnabled?: boolean; + /** + * The auto scaler properties. + */ + autoScaler?: AKSServiceCreateRequestAutoScaler; + /** + * The container resource requirements. + */ + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The maximum number of concurrent requests per container. + */ + maxConcurrentRequestsPerContainer?: number; + /** + * Maximum time a request will wait in the queue (in milliseconds). After this time, the service + * will return 503 (Service Unavailable) + */ + maxQueueWaitMs?: number; + /** + * Kubernetes namespace for the service. + */ + namespace?: string; + /** + * The scoring timeout in milliseconds. + */ + scoringTimeoutMs?: number; + /** + * Whether or not authentication is enabled. + */ + authEnabled?: boolean; + /** + * The liveness probe requirements. + */ + livenessProbeRequirements?: AKSServiceCreateRequestLivenessProbeRequirements; + /** + * Whether or not AAD authentication is enabled. + */ + aadAuthEnabled?: boolean; +} + +/** + * An interface representing NotebookListCredentialsResult. + */ +export interface NotebookListCredentialsResult { + primaryAccessKey?: string; + secondaryAccessKey?: string; +} + +/** + * An interface representing NotebookPreparationError. + */ +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +/** + * An interface representing NotebookResourceInfo. + */ +export interface NotebookResourceInfo { + fqdn?: string; + /** + * the data plane resourceId that used to initialize notebook component + */ + resourceId?: string; + /** + * The error that occurs when preparing notebook. + */ + notebookPreparationError?: NotebookPreparationError; +} + +/** + * An interface representing ListNotebookKeysResult. + */ +export interface ListNotebookKeysResult { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly primaryAccessKey?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secondaryAccessKey?: string; +} + +/** + * Workspace connection. + */ +export interface WorkspaceConnection extends BaseResource { + /** + * ResourceId of the workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Friendly name of the workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type of workspace connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Category of the workspace connection. + */ + category?: string; + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Authorization type of the workspace connection. + */ + authType?: string; + /** + * Value details of the workspace connection. + */ + value?: string; +} + +/** + * object used for creating workspace connection. + */ +export interface WorkspaceConnectionDto { + /** + * Friendly name of the workspace connection + */ + name?: string; + /** + * Category of the workspace connection. + */ + category?: string; + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Authorization type of the workspace connection. + */ + authType?: string; + /** + * Value details of the workspace connection. + */ + value?: string; +} + +/** + * User assigned identities associated with a resource. + */ +export interface UserAssignedIdentityMeta { + /** + * the object ID of the service principal object for your managed identity that is used to grant + * role-based access to an Azure resource + */ + principalId?: string; + /** + * aka appId, a unique identifier generated by Azure AD that is tied to an application and + * service principal during its initial provisioning + */ + clientId?: string; +} + +/** + * Service identity associated with a resource. + */ +export interface ResourceIdentity { + /** + * Defines values for a ResourceIdentity's type. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + */ + type?: ResourceIdentityAssignment; + /** + * Oid that used as the "client_id" when authenticating + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * AAD Tenant where this identity lives. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * Dictionary of the user assigned identities, key is ResourceId of the UAI. + */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentityMeta }; +} + +/** + * 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. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + 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. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface CodeContainerResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: { [propertyName: string]: string }; + tags?: { [propertyName: string]: string }; + description?: string; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Details of an AssetUri. + */ +export interface AssetPath { + /** + * The path of file/directory. + */ + path: string; + /** + * Whether the path defines a directory or a single file. + */ + isDirectory?: boolean; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface CodeVersionResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The asset datastoreId + */ + datastoreId?: string; + /** + * DEPRECATED - use Microsoft.MachineLearning.ManagementFrontEnd.Contracts.Assets.Asset.Path + * instead + */ + assetPath?: AssetPath; + /** + * The path of the file/directory. + */ + path?: string; + /** + * If the name version are system generated (anonymous registration) or user generated. Possible + * values include: 'User', 'System' + */ + generatedBy?: AssetGenerator; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ComponentContainerResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing CodeConfiguration. + */ +export interface CodeConfiguration { + /** + * The ID of the code asset. + */ + codeArtifactId?: string; + /** + * The command to execute on startup of the job. eg. ["python", "train.py"] + */ + command: string; +} + +/** + * Contains the possible cases for ComponentInput. + */ +export type ComponentInputUnion = ComponentInput | ComponentInputRangedNumber | ComponentInputEnum | ComponentInputGeneric; + +/** + * An interface representing ComponentInput. + */ +export interface ComponentInput { + /** + * Polymorphic Discriminator + */ + componentInputType: "ComponentInput"; + /** + * If the input is optional. Defaults to false/required. + */ + optional?: boolean; + /** + * Description for input. + */ + description?: string; + /** + * Default value for an input. Must match the given type. + */ + default?: string; + /** + * Component input type. String is used for type extensibility. + */ + dataType: string; +} + +/** + * An interface representing ComponentInputRangedNumber. + */ +export interface ComponentInputRangedNumber { + /** + * Polymorphic Discriminator + */ + componentInputType: "RangedNumber"; + /** + * If the input is optional. Defaults to false/required. + */ + optional?: boolean; + /** + * Description for input. + */ + description?: string; + /** + * Default value for an input. Must match the given type. + */ + default?: string; + /** + * Component input type. String is used for type extensibility. + */ + dataType: string; + /** + * The minimum value that can be accepted, used to validate the inputs for type float/int. + */ + min?: string; + /** + * The maximum value that can be accepted, used to validate the inputs for type float/int. + */ + max?: string; +} + +/** + * An interface representing ComponentInputEnum. + */ +export interface ComponentInputEnum { + /** + * Polymorphic Discriminator + */ + componentInputType: "Enum"; + /** + * If the input is optional. Defaults to false/required. + */ + optional?: boolean; + /** + * Description for input. + */ + description?: string; + /** + * Default value for an input. Must match the given type. + */ + default?: string; + /** + * Component input type. String is used for type extensibility. + */ + dataType: string; + /** + * The enum definition list for enum types, used to validate the inputs for type enum. + */ + enum?: string[]; +} + +/** + * An interface representing ComponentInputGeneric. + */ +export interface ComponentInputGeneric { + /** + * Polymorphic Discriminator + */ + componentInputType: "Generic"; + /** + * If the input is optional. Defaults to false/required. + */ + optional?: boolean; + /** + * Description for input. + */ + description?: string; + /** + * Default value for an input. Must match the given type. + */ + default?: string; + /** + * Component input type. String is used for type extensibility. + */ + dataType: string; +} + +/** + * An interface representing ComponentOutput. + */ +export interface ComponentOutput { + /** + * Description for output. + */ + description?: string; + /** + * Component output type. String is used for type extensibility. + */ + dataType: string; +} + +/** + * An interface representing Component. + */ +export interface Component { + /** + * Component Type, should match the schema. Possible values include: 'CommandComponent' + */ + componentType?: ComponentType; + /** + * DisplayName of the component on the UI. Defaults to same as name. + */ + displayName?: string; + /** + * Whether or not its deterministic. Defaults to true. + */ + isDeterministic?: boolean; + /** + * Defines input ports of the component. The string key is the name of input, which should be a + * valid Python variable name. + */ + inputs?: { [propertyName: string]: ComponentInputUnion }; + /** + * Defines output ports of the component. The string key is the name of Output, which should be a + * valid Python variable name. + */ + outputs?: { [propertyName: string]: ComponentOutput }; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ComponentVersionResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Environment configuration of the component. + */ + environmentId?: string; + /** + * Code configuration of the job. Includes CodeArtifactId and Command. + */ + codeConfiguration: CodeConfiguration; + /** + * Component definition details. + */ + component?: Component; + /** + * If the name version are system generated (anonymous registration) or user generated. Possible + * values include: 'User', 'System' + */ + generatedBy?: AssetGenerator; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DataContainerResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: { [propertyName: string]: string }; + tags?: { [propertyName: string]: string }; + description?: string; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing AccountKeySection. + */ +export interface AccountKeySection { + /** + * Storage account key. + */ + key?: string; +} + +/** + * An interface representing CertificateSection. + */ +export interface CertificateSection { + /** + * Authority URL used for authentication. + */ + authorityUrl?: string; + /** + * Resource the service principal has access to. + */ + resourceUri?: string; + /** + * ID of the tenant to which the service principal belongs. + */ + tenantId: string; + /** + * Service principal client ID. + */ + clientId: string; + /** + * Service principal certificate. + */ + certificate?: string; + /** + * Thumbprint of the certificate used for authentication. + */ + thumbprint: string; +} + +/** + * An interface representing SasSection. + */ +export interface SasSection { + /** + * Storage container SAS token. + */ + sasToken?: string; +} + +/** + * An interface representing ServicePrincipalSection. + */ +export interface ServicePrincipalSection { + /** + * Authority URL used for authentication. + */ + authorityUrl?: string; + /** + * Resource the service principal has access to. + */ + resourceUri?: string; + /** + * ID of the tenant to which the service principal belongs. + */ + tenantId: string; + /** + * Service principal client ID. + */ + clientId: string; + /** + * Service principal secret. + */ + clientSecret?: string; +} + +/** + * An interface representing SqlAdminSection. + */ +export interface SqlAdminSection { + /** + * SQL database user name. + */ + userId: string; + /** + * SQL database password. + */ + password?: string; +} + +/** + * An interface representing DatastoreCredentials. + */ +export interface DatastoreCredentials { + /** + * Credential type used to authentication with storage. Possible values include: 'AccountKey', + * 'Certificate', 'None', 'Sas', 'ServicePrincipal', 'SqlAdmin' + */ + datastoreCredentialsType: CredentialsType; + /** + * Storage account key authentication. + */ + accountKey?: AccountKeySection; + /** + * Service principal certificate authentication. + */ + certificate?: CertificateSection; + /** + * Storage container SAS token authentication. + */ + sas?: SasSection; + /** + * Service principal password authentication. + */ + servicePrincipal?: ServicePrincipalSection; + /** + * SQL user/password authentication. + */ + sqlAdmin?: SqlAdminSection; +} + +/** + * An interface representing AzureDataLakeSection. + */ +export interface AzureDataLakeSection { + /** + * Azure Data Lake credentials. + */ + credentials: DatastoreCredentials; + /** + * Azure Data Lake store name. + */ + storeName: string; +} + +/** + * An interface representing AzureMySqlSection. + */ +export interface AzureMySqlSection { + /** + * Azure SQL database credentials. + */ + credentials: DatastoreCredentials; + /** + * Azure SQL database name. + */ + databaseName: string; + /** + * Azure cloud endpoint for the database. + */ + endpoint: string; + /** + * Azure SQL server port. + */ + portNumber: number; + /** + * Azure SQL server name. + */ + serverName: string; +} + +/** + * An interface representing AzurePostgreSqlSection. + */ +export interface AzurePostgreSqlSection { + /** + * Whether the Azure PostgreSQL server requires SSL. + */ + enableSSL?: boolean; + /** + * Azure SQL database credentials. + */ + credentials: DatastoreCredentials; + /** + * Azure SQL database name. + */ + databaseName: string; + /** + * Azure cloud endpoint for the database. + */ + endpoint: string; + /** + * Azure SQL server port. + */ + portNumber: number; + /** + * Azure SQL server name. + */ + serverName: string; +} + +/** + * An interface representing AzureSqlDatabaseSection. + */ +export interface AzureSqlDatabaseSection { + /** + * Azure SQL database credentials. + */ + credentials: DatastoreCredentials; + /** + * Azure SQL database name. + */ + databaseName: string; + /** + * Azure cloud endpoint for the database. + */ + endpoint: string; + /** + * Azure SQL server port. + */ + portNumber: number; + /** + * Azure SQL server name. + */ + serverName: string; +} + +/** + * An interface representing AzureStorageSection. + */ +export interface AzureStorageSection { + /** + * Storage account name. + */ + accountName: string; + /** + * Blob storage cache timeout. + */ + blobCacheTimeout?: number; + /** + * Storage account container name. + */ + containerName: string; + /** + * Storage account credentials. + */ + credentials: DatastoreCredentials; + /** + * Azure cloud endpoint for the storage account. + */ + endpoint: string; + /** + * Protocol used to communicate with the storage account. + */ + protocol: string; +} + +/** + * An interface representing GlusterFsSection. + */ +export interface GlusterFsSection { + /** + * GlusterFS server address (can be the IP address or server name). + */ + serverAddress: string; + /** + * GlusterFS volume name. + */ + volumeName: string; +} + +/** + * An interface representing DatastoreContents. + */ +export interface DatastoreContents { + /** + * Storage type backing the datastore. Possible values include: 'AzureBlob', 'AzureDataLake', + * 'AzureDataLakeGen2', 'AzureFile', 'AzureMySql', 'AzurePostgreSql', 'AzureSqlDatabase', + * 'GlusterFs' + */ + datastoreContentsType: ContentsType; + /** + * Azure Data Lake (Gen1/2) storage information. + */ + azureDataLake?: AzureDataLakeSection; + /** + * Azure Database for MySQL information. + */ + azureMySql?: AzureMySqlSection; + /** + * Azure Database for PostgreSQL information. + */ + azurePostgreSql?: AzurePostgreSqlSection; + /** + * Azure SQL Database information. + */ + azureSqlDatabase?: AzureSqlDatabaseSection; + /** + * Azure storage account (blobs, files) information. + */ + azureStorage?: AzureStorageSection; + /** + * GlusterFS volume information. + */ + glusterFs?: GlusterFsSection; +} + +/** + * An interface representing LinkedInfo. + */ +export interface LinkedInfo { + /** + * Linked service ID. + */ + linkedId?: string; + /** + * Linked service resource name. + */ + linkedResourceName?: string; + /** + * Type of the linked service. Possible values include: 'Synapse' + */ + origin?: OriginType; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DatastorePropertiesResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Reference to the datastore storage contents. + */ + contents: DatastoreContents; + /** + * Whether the service has validated access to the datastore with the provided credentials. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hasBeenValidated?: boolean; + /** + * Whether this datastore is the default for the workspace. + */ + isDefault?: boolean; + /** + * Information about the datastore origin, if linked. + */ + linkedInfo?: LinkedInfo; + properties?: { [propertyName: string]: string }; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface DataVersionResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The Format of dataset. Possible values include: 'Simple', 'Dataflow' + */ + datasetType?: DatasetType; + /** + * The asset datastoreId + */ + datastoreId?: string; + /** + * DEPRECATED - use Microsoft.MachineLearning.ManagementFrontEnd.Contracts.Assets.Asset.Path + * instead + */ + assetPath?: AssetPath; + /** + * The path of the file/directory. + */ + path?: string; + /** + * If the name version are system generated (anonymous registration) or user generated. Possible + * values include: 'User', 'System' + */ + generatedBy?: AssetGenerator; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface EnvironmentContainerResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties?: { [propertyName: string]: string }; + tags?: { [propertyName: string]: string }; + description?: string; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing DockerImagePlatform. + */ +export interface DockerImagePlatform { + /** + * The OS type the Environment. Possible values include: 'Linux', 'Windows' + */ + operatingSystemType?: OperatingSystemType; +} + +/** + * Contains the possible cases for DockerSpecification. + */ +export type DockerSpecificationUnion = DockerSpecification | DockerImage | DockerBuild; + +/** + * Class to represent configuration settings for Docker + */ +export interface DockerSpecification { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "DockerSpecification"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; +} + +/** + * Class to represent configuration settings for Docker Build + */ +export interface DockerImage { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "Image"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; + /** + * Image name of a custom base image. + * + */ + dockerImageUri: string; +} + +/** + * Class to represent configuration settings for Docker Build + */ +export interface DockerBuild { + /** + * Polymorphic Discriminator + */ + dockerSpecificationType: "Build"; + /** + * The platform information of the docker image. + */ + platform?: DockerImagePlatform; + /** + * Docker command line instructions to assemble an image. + * + */ + dockerfile: string; + /** + * Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is + * specified. + * The path is relative to the asset path which must contain a single Blob URI value. + * Microsoft.MachineLearning.ManagementFrontEnd.Contracts.Assets.Asset.Path + */ + context?: string; +} + +/** + * An interface representing Route. + */ +export interface Route { + /** + * The path for the route. + */ + path: string; + /** + * The port for the route. + */ + port: number; +} + +/** + * An interface representing InferenceContainerProperties. + */ +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; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface EnvironmentSpecificationVersionResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Environment specification is either user managed or curated by the Azure ML service + * . Possible values include: 'Curated', 'UserCreated' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly environmentSpecificationType?: EnvironmentSpecificationType; + docker?: DockerSpecificationUnion; + /** + * Standard configuration file used by conda that lets you install any kind of package, including + * Python, R, and C/C++ packages + * + */ + condaFile?: string; + /** + * Defines configuration specific to inference. + */ + inferenceContainerProperties?: InferenceContainerProperties; + /** + * If the name version are system generated (anonymous registration) or user generated. Possible + * values include: 'User', 'System' + */ + generatedBy?: AssetGenerator; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * General Settings to submit an AutoML Job. + */ +export interface GeneralSettings { + /** + * Primary optimization metric. Possible values include: 'AUC_weighted', 'Accuracy', + * 'Norm_macro_recall', 'Average_precision_score_weighted', 'Precision_score_weighted', + * 'Spearman_correlation', 'Normalized_root_mean_squared_error', 'R2_score', + * 'Normalized_mean_absolute_error', 'Normalized_root_mean_squared_log_error' + */ + primaryMetric?: OptimizationMetric; + /** + * Flag to turn on explainability on best model. + */ + enableModelExplainability?: boolean; + /** + * Type of AutoML Experiment [Classification, Regression, Forecasting]. Possible values include: + * 'Classification', 'Regression', 'Forecasting' + */ + taskType?: TaskType; +} + +/** + * Limit settings on AutoML Experiment. + */ +export interface ExperimentLimits { + /** + * Number of iterations. + */ + maxTrials?: number; + /** + * Experiment Timeout + */ + experimentTimeoutInMinutes?: number; + /** + * Maximum Concurrent iterations + */ + maxConcurrentTrials?: number; + /** + * Max cores per iteration. + */ + maxCoresPerTrial?: number; +} + +/** + * Dataset datamodel. + * This is the class represents the Dataset Json string structure that passed into Jasmine. + */ +export interface TrainingDataSettings { + /** + * The Dataset Arm Id. + */ + datasetArmId?: string; + /** + * Label column name. + */ + targetColumnName?: string; + /** + * Weight column name. + */ + weightColumnName?: string; +} + +/** + * An interface representing ValidationDataSettings. + */ +export interface ValidationDataSettings { + /** + * Dataset Arm id.. + */ + datasetArmId?: string; + /** + * Number of cross validation folds to be applied on training dataset + * when validation dataset is not provided. + */ + nCrossValidations?: number; + /** + * The fraction of training dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. + */ + validationSize?: number; +} + +/** + * This class represents the Dataset Json that is passed into Jasmine for training. + */ +export interface DataSettings { + /** + * The training_data + */ + trainingData?: TrainingDataSettings; + /** + * The validation_data + */ + validationData?: ValidationDataSettings; +} + +/** + * Featurization Configuration + */ +export interface FeaturizationSettings { + /** + * Featurization config json string. + */ + featurizationConfig?: string; + /** + * Enable Dnn featurization. + */ + enableDnnFeaturization?: boolean; +} + +/** + * Forecasting specific parameters. + */ +export interface ForecastingSettings { + /** + * Country or region for holidays for forecasting tasks. + * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. + */ + forecastingCountryOrRegion?: string; + /** + * Time column name + */ + timeColumnName?: string; + /** + * Target Lags. + */ + targetLags?: number[]; + /** + * Forecasting Window Size + */ + targetRollingWindowSize?: number; + /** + * Forecasting Horizon. + */ + forecastHorizon?: number; + /** + * Time series column names + */ + timeSeriesIdColumnNames?: string[]; + /** + * Enable recommendation of DNN models. + */ + enableDnnTraining?: boolean; +} + +/** + * Training related configuration. + */ +export interface TrainingSettings { + /** + * Iteration Timeout + */ + trialTimeoutInMinutes?: number; + /** + * List of Algorithms/Models to be blocked for training. + */ + blockListModels?: string[]; + /** + * List of Algorithms/Models to be Allowed for training. + */ + allowListModels?: string[]; + /** + * Exit score for the AutoML experiment. + */ + experimentExitScore?: number; + /** + * Enable early termination. + */ + enableEarlyTermination?: boolean; +} + +/** + * Compute binding definition. + */ +export interface ComputeBinding { + /** + * Resource ID of the compute resource. + */ + computeId?: string; + /** + * Number of nodes. + */ + nodeCount?: number; + /** + * Set to true for jobs running on local compute. + */ + isLocal?: boolean; +} + +/** + * An interface representing JobOutput. + */ +export interface JobOutput { + /** + * ARM ID of the datastore where the job logs and artifacts are stored, or null for the default + * container ("azureml") in the workspace's storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly datastoreId?: string; + /** + * Path within the datastore to the job logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly path?: string; +} + +/** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + */ +export interface JobBaseInteractionEndpoints { + tracking?: string; + studio?: string; + grafana?: string; + tensorboard?: string; + local?: string; +} + +/** + * Contains the possible cases for JobBase. + */ +export type JobBaseUnion = JobBase | ComputeJobBaseUnion; + +/** + * Job base definition + */ +export interface JobBase { + /** + * Polymorphic Discriminator + */ + jobType: "JobBase"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; +} + +/** + * Contains the possible cases for ComputeJobBase. + */ +export type ComputeJobBaseUnion = ComputeJobBase | AutoMLJob | CommandJob | PipelineJob | SweepJob; + +/** + * Compute job base definition + */ +export interface ComputeJobBase { + /** + * Polymorphic Discriminator + */ + jobType: "ComputeJobBase"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * The name of the experiment the job belongs to. If not set, the job is placed in the "Default" + * experiment. + */ + experimentName?: string; + /** + * Compute binding for the job. + */ + computeBinding: ComputeBinding; + /** + * Location of the job output logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview is only for whitelisted customers + */ + priority?: number; +} + +/** + * AutoML Job definition + */ +export interface AutoMLJob { + /** + * Polymorphic Discriminator + */ + jobType: "AutoML"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * The name of the experiment the job belongs to. If not set, the job is placed in the "Default" + * experiment. + */ + experimentName?: string; + /** + * Compute binding for the job. + */ + computeBinding: ComputeBinding; + /** + * Location of the job output logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview is only for whitelisted customers + */ + priority?: number; + /** + * Status of the job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * General Settings + */ + generalSettings?: GeneralSettings; + /** + * Limit Settings + */ + limitSettings?: ExperimentLimits; + /** + * Collection of registered Tabular Dataset Ids required for training. + */ + dataSettings?: DataSettings; + /** + * Featurization related configuration. + */ + featurizationSettings?: FeaturizationSettings; + /** + * Forecasting experiment specific configuration. + */ + forecastingSettings?: ForecastingSettings; + /** + * Advanced configuration settings for an AutoML Job. + */ + trainingSettings?: TrainingSettings; +} + +/** + * Data binding definition. + */ +export interface DataBinding { + /** + * Reference to source data artifact. + */ + sourceDataReference?: string; + /** + * Location of data inside the container process. + */ + localReference?: string; + /** + * Mechanism for accessing the data artifact. Possible values include: 'Mount', 'Download', + * 'Upload' + */ + mode?: DataBindingMode; +} + +/** + * Contains the possible cases for DistributionConfiguration. + */ +export type DistributionConfigurationUnion = DistributionConfiguration | TensorFlow | Mpi | PyTorch; + +/** + * An interface representing DistributionConfiguration. + */ +export interface DistributionConfiguration { + /** + * Polymorphic Discriminator + */ + distributionType: "DistributionConfiguration"; +} + +/** + * An interface representing TensorFlow. + */ +export interface TensorFlow { + /** + * Polymorphic Discriminator + */ + distributionType: "TensorFlow"; + /** + * Number of workers. Overwrites the node count in compute binding. + */ + workerCount?: number; + parameterServerCount?: number; +} + +/** + * An interface representing Mpi. + */ +export interface Mpi { + /** + * Polymorphic Discriminator + */ + distributionType: "Mpi"; + processCountPerInstance?: number; +} + +/** + * An interface representing PyTorch. + */ +export interface PyTorch { + /** + * Polymorphic Discriminator + */ + distributionType: "PyTorch"; + /** + * Total process count for the distributed job. + */ + processCount?: number; +} + +/** + * Contains the possible cases for IdentityConfiguration. + */ +export type IdentityConfigurationUnion = IdentityConfiguration | AmlTokenConfiguration | ManagedIdentityConfiguration | ServicePrincipalConfiguration; + +/** + * An interface representing IdentityConfiguration. + */ +export interface IdentityConfiguration { + /** + * Polymorphic Discriminator + */ + identityType: "IdentityConfiguration"; +} + +/** + * An interface representing AmlTokenConfiguration. + */ +export interface AmlTokenConfiguration { + /** + * Polymorphic Discriminator + */ + identityType: "AMLToken"; +} + +/** + * An interface representing ManagedIdentityConfiguration. + */ +export interface ManagedIdentityConfiguration { + /** + * Polymorphic Discriminator + */ + 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 resource ID. For system-assigned, do not set this field. + */ + msiResourceId?: string; +} + +/** + * An interface representing ServicePrincipalConfiguration. + */ +export interface ServicePrincipalConfiguration { + /** + * Polymorphic Discriminator + */ + identityType: "ServicePrincipal"; + secret: string; +} + +/** + * Code Job definition + */ +export interface CommandJob { + /** + * Polymorphic Discriminator + */ + jobType: "Command"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * The name of the experiment the job belongs to. If not set, the job is placed in the "Default" + * experiment. + */ + experimentName?: string; + /** + * Compute binding for the job. + */ + computeBinding: ComputeBinding; + /** + * Location of the job output logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview is only for whitelisted customers + */ + priority?: number; + /** + * Status of the job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * The max run duration in seconds, after which the job will be cancelled. + */ + maxRunDurationSeconds?: number; + /** + * Code configuration of the job. + */ + codeConfiguration: CodeConfiguration; + /** + * Environment specification of the job. + */ + environmentId?: string; + /** + * Mapping of data bindings used in the job. + */ + dataBindings?: { [propertyName: string]: DataBinding }; + distributionConfiguration?: DistributionConfigurationUnion; + /** + * Environment variables included in the job. + */ + environmentVariables?: { [propertyName: string]: string }; + identityConfiguration?: IdentityConfigurationUnion; + /** + * Input parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly parameters?: { [propertyName: string]: any }; +} + +/** + * An interface representing InputData. + */ +export interface InputData { + /** + * Dataset registration id. + */ + datasetId?: string; + /** + * Mode type, can be set for DatasetId. Possible values include: 'Mount', 'Download', 'Upload' + */ + mode?: DataBindingMode; + /** + * Literal Value of a data binding. Example "42". + */ + value?: string; +} + +/** + * An interface representing ComponentJobInput. + */ +export interface ComponentJobInput { + /** + * Input data definition. + */ + data?: InputData; + /** + * Reference to an output of another job's ComponentJobInput or reference to a ComponentJobInput. + * Example "input2". + */ + inputBinding?: string; +} + +/** + * An interface representing OutputData. + */ +export interface OutputData { + /** + * Output dataset name. + */ + datasetName?: string; + /** + * Datastore location for output data. + */ + datastore?: string; + /** + * Path location within the datastore for output data. + */ + datapath?: string; + /** + * Mode type for data. Possible values include: 'Mount', 'Download', 'Upload' + */ + mode?: DataBindingMode; +} + +/** + * An interface representing ComponentJobOutput. + */ +export interface ComponentJobOutput { + /** + * Output data definition. + */ + data?: OutputData; + /** + * This is to pull the ComponentJobOutput from the overall PipelineOutputs. Example "outputPath". + */ + outputBinding?: string; +} + +/** + * An interface representing ComponentJob. + */ +export interface ComponentJob { + /** + * Compute definition for job. + */ + computeBinding?: ComputeBinding; + /** + * Reference to component artifact. + */ + componentId?: string; + /** + * Data input set for job. + */ + inputs?: { [propertyName: string]: ComponentJobInput }; + /** + * Data output set for job. + */ + outputs?: { [propertyName: string]: ComponentJobOutput }; +} + +/** + * An interface representing PipelineInput. + */ +export interface PipelineInput { + /** + * Input data definition. + */ + data?: InputData; +} + +/** + * An interface representing PipelineOutput. + */ +export interface PipelineOutput { + /** + * Output data definition. + */ + data?: OutputData; +} + +/** + * An interface representing PipelineModel. + */ +export interface PipelineModel { + /** + * Flag when set, continue pipeline execution if a step fails. + */ + continueRunOnStepFailure?: boolean; + /** + * Default datastore name shared by all pipeline jobs. + */ + defaultDatastoreName?: string; + /** + * JobDefinition set for PipelineStepJobs. + */ + componentJobs?: { [propertyName: string]: ComponentJob }; + /** + * Data input set for jobs. + */ + inputs?: { [propertyName: string]: PipelineInput }; + /** + * Data output set for jobs. + */ + outputs?: { [propertyName: string]: PipelineOutput }; +} + +/** + * Pipeline Job definition + */ +export interface PipelineJob { + /** + * Polymorphic Discriminator + */ + jobType: "Pipeline"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * The name of the experiment the job belongs to. If not set, the job is placed in the "Default" + * experiment. + */ + experimentName?: string; + /** + * Compute binding for the job. + */ + computeBinding: ComputeBinding; + /** + * Location of the job output logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview is only for whitelisted customers + */ + priority?: number; + /** + * Status of the job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * Type of PipelineJob. Possible values include: 'AzureML' + */ + pipelineType?: PipelineType; + /** + * Pipeline details. + */ + pipelineProperty?: PipelineModel; +} + +/** + * class for all hyperparameter sampling algorithms + */ +export interface ParameterSamplingConfiguration { + /** + * A dictionary containing each parameter and its distribution. The dictionary key is the name of + * the parameter + */ + parameterSpace: any; + /** + * Type of the hyperparameter sampling algorithms. Possible values include: 'Grid', 'Random', + * 'Bayesian' + */ + samplingType: ParameterSamplingType; +} + +/** + * Contains the possible cases for EarlyTerminationPolicyConfiguration. + */ +export type EarlyTerminationPolicyConfigurationUnion = EarlyTerminationPolicyConfiguration | BanditPolicyConfiguration | MedianStoppingPolicyConfiguration | TruncationSelectionPolicyConfiguration; + +/** + * Early termination policies enable canceling poor-performing runs before they complete + */ +export interface EarlyTerminationPolicyConfiguration { + /** + * Polymorphic Discriminator + */ + policyType: "EarlyTerminationPolicyConfiguration"; + evaluationInterval?: number; + delayEvaluation?: number; +} + +/** + * Defines an early termination policy based on slack criteria, and a frequency and delay interval + * for evaluation + */ +export interface BanditPolicyConfiguration { + /** + * Polymorphic Discriminator + */ + policyType: "Bandit"; + evaluationInterval?: number; + delayEvaluation?: number; + slackFactor?: number; + slackAmount?: number; +} + +/** + * Defines an early termination policy based on running averages of the primary metric of all runs + */ +export interface MedianStoppingPolicyConfiguration { + /** + * Polymorphic Discriminator + */ + policyType: "MedianStopping"; + evaluationInterval?: number; + delayEvaluation?: number; +} + +/** + * Defines an early termination policy that cancels a given percentage of runs at each evaluation + * interval. + */ +export interface TruncationSelectionPolicyConfiguration { + /** + * Polymorphic Discriminator + */ + policyType: "TruncationSelection"; + evaluationInterval?: number; + delayEvaluation?: number; + truncationPercentage?: number; + excludeFinishedJobs?: boolean; +} + +/** + * An interface representing TerminationConfiguration. + */ +export interface TerminationConfiguration { + maxTotalRuns?: number; + maxConcurrentRuns?: number; + maxDurationMinutes?: number; + earlyTerminationPolicyConfiguration?: EarlyTerminationPolicyConfigurationUnion; +} + +/** + * An interface representing EvaluationConfiguration. + */ +export interface EvaluationConfiguration { + primaryMetricName: string; + /** + * Defines supported metric goals for hyperparameter tuning. Possible values include: 'Minimize', + * 'Maximize' + */ + primaryMetricGoal: PrimaryMetricGoal; +} + +/** + * An interface representing TrialComponent. + */ +export interface TrialComponent { + /** + * Code configuration of the job. + */ + codeConfiguration?: CodeConfiguration; + /** + * Environment id of the job. + */ + environmentId?: string; + /** + * Mapping of data bindings used in the job. + */ + dataBindings?: { [propertyName: string]: DataBinding }; + /** + * Environment variables included in the job. + */ + environmentVariables?: { [propertyName: string]: string }; + distributionConfiguration?: DistributionConfigurationUnion; +} + +/** + * An interface representing SweepJob. + */ +export interface SweepJob { + /** + * Polymorphic Discriminator + */ + jobType: "Sweep"; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * The name of the experiment the job belongs to. If not set, the job is placed in the "Default" + * experiment. + */ + experimentName?: string; + /** + * Compute binding for the job. + */ + computeBinding: ComputeBinding; + /** + * Location of the job output logs and artifacts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly output?: JobOutput; + /** + * Job priority for scheduling policy. Only applies to AMLCompute. + * Private preview is only for whitelisted customers + */ + priority?: number; + /** + * The status of a job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * class for all hyperparameter sampling algorithms + */ + parameterSamplingConfiguration: ParameterSamplingConfiguration; + terminationConfiguration?: TerminationConfiguration; + evaluationConfiguration: EvaluationConfiguration; + trialComponent?: TrialComponent; + identityConfiguration?: IdentityConfigurationUnion; +} + +/** + * Label class definition + */ +export interface LabelClass { + /** + * Display name of the label class. + */ + displayName?: string; + /** + * Dictionary of subclasses of the label class. + */ + subclasses?: { [propertyName: string]: LabelClass }; +} + +/** + * Label category definition + */ +export interface LabelCategory { + /** + * Display name of the label category. + */ + displayName?: string; + /** + * Indicates whether it is allowed to select multiple classes in this category. + */ + allowMultiSelect?: boolean; + /** + * Dictionary of label classes in this category. + */ + classes?: { [propertyName: string]: LabelClass }; +} + +/** + * Instructions for labeling job + */ +export interface LabelingJobInstructions { + /** + * The link to a page with detailed labeling instructions for labelers. + */ + uri?: string; +} + +/** + * Labeling dataset configuration definition + */ +export interface LabelingDatasetConfiguration { + /** + * Name of the data asset to perform labeling. + */ + assetName?: string; + /** + * Indicates whether to enable incremental dataset refresh. + */ + incrementalDatasetRefreshEnabled?: boolean; + /** + * AML dataset version. + */ + datasetVersion?: string; +} + +/** + * Labeling MLAssist configuration definition + */ +export interface MLAssistConfiguration { + /** + * AML compute binding used in inferencing. + */ + inferencingComputeBinding?: ComputeBinding; + /** + * AML compute binding used in training. + */ + trainingComputeBinding?: ComputeBinding; + /** + * Indicates whether MLAssist feature is enabled. + */ + mlAssistEnabled?: boolean; +} + +/** + * Contains the possible cases for LabelingJobMediaProperties. + */ +export type LabelingJobMediaPropertiesUnion = LabelingJobMediaProperties | LabelingJobImageProperties | LabelingJobTextProperties; + +/** + * Properties of a labeling job + */ +export interface LabelingJobMediaProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "LabelingJobMediaProperties"; +} + +/** + * Properties of a labeling job for image data + */ +export interface LabelingJobImageProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "Image"; + /** + * Annotation type of image labeling job. Possible values include: 'Classification', + * 'BoundingBox', 'InstanceSegmentation' + */ + annotationType?: ImageAnnotationType; +} + +/** + * Properties of a labeling job for text data + */ +export interface LabelingJobTextProperties { + /** + * Polymorphic Discriminator + */ + mediaType: "Text"; + /** + * Annotation type of text labeling job. Possible values include: 'Classification' + */ + annotationType?: TextAnnotationType; +} + +/** + * Progress metrics definition + */ +export interface ProgressMetrics { + /** + * The total datapoint count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalDatapointCount?: number; + /** + * The completed datapoint count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly completedDatapointCount?: number; + /** + * The skipped datapoint count. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skippedDatapointCount?: number; + /** + * The time of last successful incremental dataset refresh in UTC. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly incrementalDatasetLastRefreshTime?: Date; +} + +/** + * Active message associated with project + */ +export interface StatusMessage { + /** + * Severity level of message. Possible values include: 'Error', 'Information', 'Warning' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly level?: StatusMessageLevel; + /** + * Service-defined message code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * A human-readable representation of the message code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface JobBaseResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + properties: JobBaseUnion; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface LabelingJobResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: JobProvisioningState; + /** + * Dictionary of endpoint URIs, keyed by enumerated job endpoints. + * For local jobs, a job endpoint will have a value of FileStreamObject. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interactionEndpoints?: JobBaseInteractionEndpoints; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * Polymorphic Discriminator + */ + jobType: string; + /** + * Label categories of the job. + */ + labelCategories?: { [propertyName: string]: LabelCategory }; + /** + * Labeling instructions of the job. + */ + jobInstructions?: LabelingJobInstructions; + /** + * Configuration of dataset used in the job. + */ + datasetConfiguration?: LabelingDatasetConfiguration; + /** + * Configuration of MLAssist feature in the job. + */ + mlAssistConfiguration?: MLAssistConfiguration; + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + /** + * Internal id of the job(Previously called project). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly projectId?: string; + /** + * Status of the job. Possible values include: 'NotStarted', 'Starting', 'Provisioning', + * 'Preparing', 'Queued', 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', + * 'Canceled', 'NotResponding', 'Paused' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: JobStatus; + /** + * Progress metrics of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly progressMetrics?: ProgressMetrics; + /** + * Status messages of the job. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statusMessages?: StatusMessage[]; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Contains the possible cases for ExportSummary. + */ +export type ExportSummaryUnion = ExportSummary | CocoExportSummary | CsvExportSummary | DatasetExportSummary; + +/** + * An interface representing ExportSummary. + */ +export interface ExportSummary { + /** + * Polymorphic Discriminator + */ + format: "ExportSummary"; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; +} + +/** + * An interface representing CocoExportSummary. + */ +export interface CocoExportSummary { + /** + * Polymorphic Discriminator + */ + format: "Coco"; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The output path where the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotPath?: string; + /** + * The container name to which the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerName?: string; +} + +/** + * An interface representing CsvExportSummary. + */ +export interface CsvExportSummary { + /** + * Polymorphic Discriminator + */ + format: "CSV"; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The output path where the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snapshotPath?: string; + /** + * The container name to which the labels will be exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerName?: string; +} + +/** + * An interface representing DatasetExportSummary. + */ +export interface DatasetExportSummary { + /** + * Polymorphic Discriminator + */ + format: "Dataset"; + /** + * Name and identifier of the job containing exported labels. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labelingJobId?: string; + /** + * The total number of labeled datapoints exported. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly exportedRowCount?: number; + /** + * The time when the export was requested. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The time when the export was completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The unique name of the labeled data asset. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly labeledAssetName?: string; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ModelContainerResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Latest model versions for each stage. Key is the model stage, value is the model version ARM + * ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly latestVersions?: { [propertyName: string]: string }; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Azure Resource Manager resource envelope. + */ +export interface ModelVersionResource extends BaseResource { + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Model asset stage. + */ + stage?: string; + /** + * Dictionary mapping model flavors to their properties. + */ + flavors?: { [propertyName: string]: { [propertyName: string]: string } }; + /** + * The asset datastoreId + */ + datastoreId?: string; + /** + * DEPRECATED - use Microsoft.MachineLearning.ManagementFrontEnd.Contracts.Assets.Asset.Path + * instead + */ + assetPath?: AssetPath; + /** + * The path of the file/directory. + */ + path?: string; + /** + * If the name version are system generated (anonymous registration) or user generated. Possible + * values include: 'User', 'System' + */ + generatedBy?: AssetGenerator; + /** + * The asset description text. + */ + description?: string; + /** + * Tag dictionary. Tags can be added, removed, and updated. + */ + tags?: { [propertyName: string]: string }; + /** + * The asset property dictionary. + */ + properties?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing OnlineDeploymentScaleSettings. + */ +export interface OnlineDeploymentScaleSettings { + minimum?: number; + maximum?: number; + instanceCount?: number; + /** + * Possible values include: 'Automatic', 'Manual', 'None' + */ + scaleType?: ScaleTypeMode; +} + +/** + * Contains the possible cases for DeploymentConfigurationBase. + */ +export type DeploymentConfigurationBaseUnion = DeploymentConfigurationBase | AksDeploymentConfiguration | ManagedDeploymentConfiguration; + +/** + * An interface representing DeploymentConfigurationBase. + */ +export interface DeploymentConfigurationBase { + /** + * Polymorphic Discriminator + */ + computeType: "DeploymentConfigurationBase"; + appInsightsEnabled?: boolean; + maxConcurrentRequestsPerInstance?: number; + maxQueueWaitMs?: number; + scoringTimeoutMs?: number; + livenessProbeRequirements?: LivenessProbeRequirements; +} + +/** + * An interface representing AksDeploymentConfiguration. + */ +export interface AksDeploymentConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + appInsightsEnabled?: boolean; + maxConcurrentRequestsPerInstance?: number; + maxQueueWaitMs?: number; + scoringTimeoutMs?: number; + livenessProbeRequirements?: LivenessProbeRequirements; + containerResourceRequirements?: ContainerResourceRequirements; + /** + * The Model data collection properties. + */ + modelDataCollection?: ModelDataCollection; +} + +/** + * An interface representing ManagedDeploymentConfiguration. + */ +export interface ManagedDeploymentConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "Managed"; + appInsightsEnabled?: boolean; + maxConcurrentRequestsPerInstance?: number; + maxQueueWaitMs?: number; + scoringTimeoutMs?: number; + livenessProbeRequirements?: LivenessProbeRequirements; + instanceType?: string; + /** + * Possible values include: 'Linux', 'Windows' + */ + osType?: OSTypes; + readinessProbeRequirements?: LivenessProbeRequirements; +} + +/** + * Contains the possible cases for AssetReferenceBase. + */ +export type AssetReferenceBaseUnion = AssetReferenceBase | IdAssetReference | DataPathAssetReference | OutputPathAssetReference; + +/** + * An interface representing AssetReferenceBase. + */ +export interface AssetReferenceBase { + /** + * Polymorphic Discriminator + */ + referenceType: "AssetReferenceBase"; +} + +/** + * An interface representing IdAssetReference. + */ +export interface IdAssetReference { + /** + * Polymorphic Discriminator + */ + referenceType: "Id"; + assetId: string; +} + +/** + * An interface representing DataPathAssetReference. + */ +export interface DataPathAssetReference { + /** + * Polymorphic Discriminator + */ + referenceType: "DataPath"; + path?: string; + datastoreId?: string; +} + +/** + * An interface representing OutputPathAssetReference. + */ +export interface OutputPathAssetReference { + /** + * Polymorphic Discriminator + */ + referenceType: "OutputPath"; + path?: string; + jobId?: string; +} + +/** + * An interface representing OnlineDeploymentTrackedResource. + */ +export interface OnlineDeploymentTrackedResource extends BaseResource { + tags?: { [propertyName: string]: string }; + location: string; + kind?: string; + identity?: ResourceIdentity; + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + scaleSettings?: OnlineDeploymentScaleSettings; + deploymentConfiguration: DeploymentConfigurationBaseUnion; + /** + * Provisioning state for the endpoint deployment. Possible values include: 'Creating', + * 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DeploymentProvisioningState; + /** + * Description of the endpoint deployment. + */ + description?: string; + /** + * Property dictionary. Properties can be added, but not removed or altered. + */ + properties?: { [propertyName: string]: string }; + modelReference: AssetReferenceBaseUnion; + /** + * Code configuration for the endpoint deployment. + */ + codeConfiguration?: CodeConfiguration; + /** + * Environment specification for the endpoint deployment. + */ + environmentId?: string; + /** + * Environment variables configuration for the deployment. + */ + environmentVariables?: { [propertyName: string]: string }; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Mutable online deployment configuration + */ +export interface PartialOnlineDeployment { + scaleSettings?: OnlineDeploymentScaleSettings; + deploymentConfiguration?: DeploymentConfigurationBaseUnion; +} + +/** + * An interface representing PartialOnlineDeploymentPartialTrackedResource. + */ +export interface PartialOnlineDeploymentPartialTrackedResource { + tags?: { [propertyName: string]: string }; + location?: string; + kind?: string; + identity?: ResourceIdentity; + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Additional attributes of the entity. + */ + properties?: PartialOnlineDeployment; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing DeploymentLogsRequest. + */ +export interface DeploymentLogsRequest { + /** + * The type of container to retrieve logs from. Possible values include: 'StorageInitializer', + * 'InferenceServer' + */ + containerType?: ContainerType; + /** + * The maximum number of lines to tail. + */ + tail?: number; +} + +/** + * An interface representing DeploymentLogs. + */ +export interface DeploymentLogs { + content?: string; +} + +/** + * Contains the possible cases for ComputeConfiguration. + */ +export type ComputeConfigurationUnion = ComputeConfiguration | AksComputeConfiguration | ManagedComputeConfiguration | AzureMLComputeConfiguration; + +/** + * An interface representing ComputeConfiguration. + */ +export interface ComputeConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "ComputeConfiguration"; +} + +/** + * An interface representing AksComputeConfiguration. + */ +export interface AksComputeConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "AKS"; + namespace?: string; + computeName: string; +} + +/** + * An interface representing ManagedComputeConfiguration. + */ +export interface ManagedComputeConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "Managed"; +} + +/** + * An interface representing AzureMLComputeConfiguration. + */ +export interface AzureMLComputeConfiguration { + /** + * Polymorphic Discriminator + */ + computeType: "AzureMLCompute"; +} + +/** + * An interface representing OnlineEndpointTrackedResource. + */ +export interface OnlineEndpointTrackedResource extends BaseResource { + tags?: { [propertyName: string]: string }; + location: string; + kind?: string; + identity?: ResourceIdentity; + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * State of endpoint provisioning. Possible values include: 'Creating', 'Deleting', 'Succeeded', + * 'Failed', 'Updating', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: EndpointProvisioningState; + /** + * Description of the inference endpoint. + */ + description?: string; + /** + * Property dictionary. Properties can be added, but not removed or altered. + */ + properties?: { [propertyName: string]: string }; + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + trafficRules?: { [propertyName: string]: number }; + computeConfiguration: ComputeConfigurationUnion; + /** + * Endpoint URI + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endpoint?: string; + /** + * Endpoint Swagger URI + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly swaggerEndpoint?: string; + /** + * Inference endpoint authentication mode type. Possible values include: 'AMLToken', 'Key', + * 'AADToken' + */ + authMode: EndpointAuthModeType; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Mutable online endpoint configuration + */ +export interface PartialOnlineEndpoint { + /** + * Traffic rules on how the traffic will be routed across deployments. + */ + trafficRules?: { [propertyName: string]: number }; +} + +/** + * An interface representing PartialOnlineEndpointPartialTrackedResource. + */ +export interface PartialOnlineEndpointPartialTrackedResource { + tags?: { [propertyName: string]: string }; + location?: string; + kind?: string; + identity?: ResourceIdentity; + /** + * The resource URL of the entity (not URL encoded). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource entity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The resource provider and type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Additional attributes of the entity. + */ + properties?: PartialOnlineEndpoint; + /** + * System data associated with resource provider + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An interface representing RegenerateEndpointKeysRequest. + */ +export interface RegenerateEndpointKeysRequest { + /** + * Specification for which type of key to generate. Primary or Secondary. Possible values + * include: 'Primary', 'Secondary' + */ + keyType: KeyType; + /** + * The value the key is set to. + */ + keyValue?: string; +} + +/** + * An interface representing EndpointAuthKeys. + */ +export interface EndpointAuthKeys { + /** + * The primary key. + */ + primaryKey?: string; + /** + * The secondary key. + */ + secondaryKey?: string; +} + +/** + * Service Token + */ +export interface EndpointAuthToken { + /** + * Access token. + */ + accessToken?: string; + /** + * Access token type. + */ + tokenType?: string; + /** + * Access token expiry time (UTC). + */ + expiryTimeUtc?: number; + /** + * Refresh access token after time (UTC). + */ + refreshAfterTimeUtc?: number; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningServiceListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * The Model Id. + */ + modelId?: string; + /** + * The Model name. + */ + modelName?: string; + /** + * The object tag. + */ + tag?: string; + /** + * A set of tags with which to filter the returned services. It is a comma separated string of + * tags key or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned services. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * runId for model associated with service. + */ + runId?: string; + /** + * Set to True to include Model details. + */ + expand?: boolean; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc'. Default value: 'UpdatedAtDesc'. + */ + orderby?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningServiceGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Set to True to include Model details. Default value: false. + */ + expand?: boolean; +} + +/** + * Optional Parameters. + */ +export interface MachineLearningServiceListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * The Model Id. + */ + modelId?: string; + /** + * The Model name. + */ + modelName?: string; + /** + * The object tag. + */ + tag?: string; + /** + * A set of tags with which to filter the returned services. It is a comma separated string of + * tags key or tags key=value Example: tagKey1,tagKey2,tagKey3=value3 . + */ + tags?: string; + /** + * A set of properties with which to filter the returned services. It is a comma separated string + * of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . + */ + properties?: string; + /** + * runId for model associated with service. + */ + runId?: string; + /** + * Set to True to include Model details. + */ + expand?: boolean; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc'. Default value: 'UpdatedAtDesc'. + */ + orderby?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Target of the workspace connection. + */ + target?: string; + /** + * Category of the workspace connection. + */ + category?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface CodeVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ComponentContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ComponentContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ComponentVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ComponentVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DataContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DataContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DatastoresListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Maximum number of results to return. Default value: 30. + */ + 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. Default value: false. + */ + orderByAsc?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DatastoresListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Maximum number of results to return. Default value: 30. + */ + 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. Default value: false. + */ + orderByAsc?: boolean; +} + +/** + * Optional Parameters. + */ +export interface DataVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DataVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentSpecificationVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface EnvironmentSpecificationVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface JobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Type of job to be returned. + */ + jobType?: string; + /** + * Tags for job to be returned. + */ + tags?: string; + /** + * Jobs returned will have this tag key. + */ + tag?: string; +} + +/** + * Optional Parameters. + */ +export interface JobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Type of job to be returned. + */ + jobType?: string; + /** + * Tags for job to be returned. + */ + tags?: string; + /** + * Jobs returned will have this tag key. + */ + tag?: string; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Boolean value to indicate whether to include JobInstructions in response. + */ + includeJobInstructions?: boolean; + /** + * Boolean value to indicate Whether to include LabelCategories in response. + */ + includeLabelCategories?: boolean; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Number of labeling jobs to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface LabelingJobsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Number of labeling jobs to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Maximum number of results to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelContainersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Maximum number of results to return. + */ + count?: number; +} + +/** + * Optional Parameters. + */ +export interface ModelVersionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface ModelVersionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token for pagination. + */ + skiptoken?: string; + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Maximum number of records to return. + */ + top?: number; + /** + * 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; +} + +/** + * Optional Parameters. + */ +export interface OnlineDeploymentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface OnlineDeploymentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Ordering of list. + */ + orderBy?: string; + /** + * Top of list. + */ + top?: number; + /** + * Continuation token for pagination. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface OnlineEndpointsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the endpoint. + */ + name?: string; + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * EndpointComputeType to be filtered by. Possible values include: 'Managed', 'AKS', + * 'AzureMLCompute' + */ + computeType?: EndpointComputeType; + /** + * Continuation token for pagination. + */ + skiptoken?: 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; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc' + */ + orderBy?: OrderString; +} + +/** + * Optional Parameters. + */ +export interface OnlineEndpointsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Name of the endpoint. + */ + name?: string; + /** + * Number of endpoints to be retrieved in a page of results. + */ + count?: number; + /** + * EndpointComputeType to be filtered by. Possible values include: 'Managed', 'AKS', + * 'AzureMLCompute' + */ + computeType?: EndpointComputeType; + /** + * Continuation token for pagination. + */ + skiptoken?: 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; + /** + * The option to order the response. Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', + * 'UpdatedAtDesc', 'UpdatedAtAsc' + */ + orderBy?: OrderString; +} + +/** + * An interface representing AzureMachineLearningWorkspacesOptions. + */ +export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface MachineLearningComputeCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface MachineLearningComputeDeleteHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; + /** + * URI to poll for asynchronous operation result. + */ + location: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface MachineLearningServiceCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for Delete operation. + */ +export interface JobsDeleteHeaders { + /** + * URI to poll for asynchronous operation result. + */ + location: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface LabelingJobsCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for Resume operation. + */ +export interface LabelingJobsResumeHeaders { + /** + * URI to poll for asynchronous operation result. + */ + location: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for ExportLabels operation. + */ +export interface LabelingJobsExportLabelsHeaders { + /** + * URI to poll for asynchronous operation result. + */ + location: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for Delete operation. + */ +export interface OnlineDeploymentsDeleteHeaders { + /** + * URI to poll for asynchronous operation result. + */ + location: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for Update operation. + */ +export interface OnlineDeploymentsUpdateHeaders { + /** + * URI to poll for asynchronous operation result. + */ + locationHeader: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for Delete operation. + */ +export interface OnlineEndpointsDeleteHeaders { + /** + * URI to poll for asynchronous operation result. + */ + location: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface OnlineEndpointsCreateOrUpdateHeaders { + /** + * URI to poll for asynchronous operation status. + */ + azureAsyncOperation: string; +} + +/** + * Defines headers for Update operation. + */ +export interface OnlineEndpointsUpdateHeaders { + /** + * URI to poll for asynchronous operation result. + */ + locationHeader: string; + /** + * Duration the client should wait between requests, in seconds. + */ + retryAfter: number; +} + +/** + * Defines headers for 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; +} + +/** + * @interface + * An array of operations supported by the resource provider. + * @extends Array + */ +export interface OperationListResult extends Array { +} + +/** + * @interface + * The result of a request to list machine learning workspaces. + * @extends Array + */ +export interface WorkspaceListResult extends Array { + /** + * The URI that can be used to request the next list of machine learning workspaces. + */ + nextLink?: string; +} + +/** + * @interface + * The List Aml user feature operation response. + * @extends Array + */ +export interface ListAmlUserFeatureResult extends Array { + /** + * The URI to fetch the next page of AML user features information. Call ListNext() with this to + * fetch the next page of AML user features information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The List Usages operation response. + * @extends Array + */ +export interface ListUsagesResult extends Array { + /** + * 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; +} + +/** + * @interface + * The List WorkspaceQuotasByVMFamily operation response. + * @extends Array + */ +export interface ListWorkspaceQuotas extends Array { + /** + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() + * with this to fetch the next page of Workspace Quota information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. + * @extends Array + */ +export interface PaginatedComputeResourcesList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ + nextLink?: string; +} + +/** + * @interface + * Compute node information related to a AmlCompute. + * @extends Array + */ +export interface AmlComputeNodesInformation extends Array { + /** + * Polymorphic Discriminator + */ + computeType: "AmlCompute"; + /** + * The continuation token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; + /** + * The collection of returned AmlCompute nodes details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nodes?: AmlComputeNodeInformation[]; +} + +/** + * @interface + * List of skus with features + * @extends Array + */ +export interface SkuListResult extends Array { + /** + * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the + * next page of Workspace Skus + */ + nextLink?: string; +} + +/** + * @interface + * Paginated list of Machine Learning service objects wrapped in ARM resource envelope. + * @extends Array + */ +export interface PaginatedServiceList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Paginated list of Workspace connection objects. + * @extends Array + */ +export interface PaginatedWorkspaceConnectionsList extends Array { + /** + * A continuation link (absolute URI) to the next page of results in the list. + */ + nextLink?: string; +} + +/** + * @interface + * A paginated list of CodeContainer entities. + * @extends Array + */ +export interface CodeContainerResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of CodeVersion entities. + * @extends Array + */ +export interface CodeVersionResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of ComponentContainer entities. + * @extends Array + */ +export interface ComponentContainerResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of ComponentVersion entities. + * @extends Array + */ +export interface ComponentVersionResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of DataContainer entities. + * @extends Array + */ +export interface DataContainerResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of DatastoreProperties entities. + * @extends Array + */ +export interface DatastorePropertiesResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of DataVersion entities. + * @extends Array + */ +export interface DataVersionResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of EnvironmentContainer entities. + * @extends Array + */ +export interface EnvironmentContainerResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of EnvironmentSpecificationVersion entities. + * @extends Array + */ +export interface EnvironmentSpecificationVersionResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of JobBase entities. + * @extends Array + */ +export interface JobBaseResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of LabelingJob entities. + * @extends Array + */ +export interface LabelingJobResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of ModelContainer entities. + * @extends Array + */ +export interface ModelContainerResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of ModelVersion entities. + * @extends Array + */ +export interface ModelVersionResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of OnlineDeployment entities. + * @extends Array + */ +export interface OnlineDeploymentTrackedResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * @interface + * A paginated list of OnlineEndpoint entities. + * @extends Array + */ +export interface OnlineEndpointTrackedResourceArmPaginatedResult extends Array { + nextLink?: string; +} + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for EncryptionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EncryptionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' + * @readonly + * @enum {string} + */ +export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; + +/** + * Defines values for UsageUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type UsageUnit = 'Count'; + +/** + * Defines values for VMPriceOSType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type VMPriceOSType = 'Linux' | 'Windows'; + +/** + * Defines values for VMTier. + * Possible values include: 'Standard', 'LowPriority', 'Spot' + * @readonly + * @enum {string} + */ +export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; + +/** + * Defines values for QuotaUnit. + * Possible values include: 'Count' + * @readonly + * @enum {string} + */ +export type QuotaUnit = 'Count'; + +/** + * Defines values for Status. + * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', + * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', + * 'OperationNotEnabledForRegion' + * @readonly + * @enum {string} + */ +export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'SystemAssigned,UserAssigned', 'UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'SystemAssigned,UserAssigned' | 'UserAssigned' | 'None'; + +/** + * Defines values for OsType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type OsType = 'Linux' | 'Windows'; + +/** + * Defines values for VmPriority. + * Possible values include: 'Dedicated', 'LowPriority' + * @readonly + * @enum {string} + */ +export type VmPriority = 'Dedicated' | 'LowPriority'; + +/** + * Defines values for RemoteLoginPortPublicAccess. + * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' + * @readonly + * @enum {string} + */ +export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; + +/** + * Defines values for AllocationState. + * Possible values include: 'Steady', 'Resizing' + * @readonly + * @enum {string} + */ +export type AllocationState = 'Steady' | 'Resizing'; + +/** + * Defines values for ApplicationSharingPolicy. + * Possible values include: 'Personal', 'Shared' + * @readonly + * @enum {string} + */ +export type ApplicationSharingPolicy = 'Personal' | 'Shared'; + +/** + * Defines values for SshPublicAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SshPublicAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for ComputeInstanceState. + * Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting', + * 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', + * 'UserSetupFailed', 'Unknown', 'Unusable' + * @readonly + * @enum {string} + */ +export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; + +/** + * Defines values for ComputeInstanceAuthorizationType. + * Possible values include: 'personal' + * @readonly + * @enum {string} + */ +export type ComputeInstanceAuthorizationType = 'personal'; + +/** + * Defines values for OperationName. + * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' + * @readonly + * @enum {string} + */ +export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; + +/** + * Defines values for OperationStatus. + * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', + * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' + * @readonly + * @enum {string} + */ +export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; + +/** + * Defines values for NodeState. + * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' + * @readonly + * @enum {string} + */ +export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; + +/** + * Defines values for ComputeType. + * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', + * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' + * @readonly + * @enum {string} + */ +export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; + +/** + * Defines values for ReasonCode. + * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' + * @readonly + * @enum {string} + */ +export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; + +/** + * Defines values for LinkedServiceLinkType. + * Possible values include: 'Synapse' + * @readonly + * @enum {string} + */ +export type LinkedServiceLinkType = 'Synapse'; + +/** + * Defines values for WebServiceState. + * Possible values include: 'Transitioning', 'Healthy', 'Unhealthy', 'Failed', 'Unschedulable' + * @readonly + * @enum {string} + */ +export type WebServiceState = 'Transitioning' | 'Healthy' | 'Unhealthy' | 'Failed' | 'Unschedulable'; + +/** + * Defines values for DeploymentType. + * Possible values include: 'GRPCRealtimeEndpoint', 'HttpRealtimeEndpoint', 'Batch' + * @readonly + * @enum {string} + */ +export type DeploymentType = 'GRPCRealtimeEndpoint' | 'HttpRealtimeEndpoint' | 'Batch'; + +/** + * Defines values for VariantType. + * Possible values include: 'Control', 'Treatment' + * @readonly + * @enum {string} + */ +export type VariantType = 'Control' | 'Treatment'; + +/** + * Defines values for ResourceIdentityAssignment. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityAssignment = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for AssetGenerator. + * Possible values include: 'User', 'System' + * @readonly + * @enum {string} + */ +export type AssetGenerator = 'User' | 'System'; + +/** + * Defines values for ComponentType. + * Possible values include: 'CommandComponent' + * @readonly + * @enum {string} + */ +export type ComponentType = 'CommandComponent'; + +/** + * Defines values for ComponentInputType. + * Possible values include: 'Generic', 'RangedNumber', 'Enum' + * @readonly + * @enum {string} + */ +export type ComponentInputType = 'Generic' | 'RangedNumber' | 'Enum'; + +/** + * Defines values for ContentsType. + * Possible values include: 'AzureBlob', 'AzureDataLake', 'AzureDataLakeGen2', 'AzureFile', + * 'AzureMySql', 'AzurePostgreSql', 'AzureSqlDatabase', 'GlusterFs' + * @readonly + * @enum {string} + */ +export type ContentsType = 'AzureBlob' | 'AzureDataLake' | 'AzureDataLakeGen2' | 'AzureFile' | 'AzureMySql' | 'AzurePostgreSql' | 'AzureSqlDatabase' | 'GlusterFs'; + +/** + * Defines values for CredentialsType. + * Possible values include: 'AccountKey', 'Certificate', 'None', 'Sas', 'ServicePrincipal', + * 'SqlAdmin' + * @readonly + * @enum {string} + */ +export type CredentialsType = 'AccountKey' | 'Certificate' | 'None' | 'Sas' | 'ServicePrincipal' | 'SqlAdmin'; + +/** + * Defines values for OriginType. + * Possible values include: 'Synapse' + * @readonly + * @enum {string} + */ +export type OriginType = 'Synapse'; + +/** + * Defines values for DatasetType. + * Possible values include: 'Simple', 'Dataflow' + * @readonly + * @enum {string} + */ +export type DatasetType = 'Simple' | 'Dataflow'; + +/** + * Defines values for EnvironmentSpecificationType. + * Possible values include: 'Curated', 'UserCreated' + * @readonly + * @enum {string} + */ +export type EnvironmentSpecificationType = 'Curated' | 'UserCreated'; + +/** + * Defines values for DockerSpecificationType. + * Possible values include: 'Build', 'Image' + * @readonly + * @enum {string} + */ +export type DockerSpecificationType = 'Build' | 'Image'; + +/** + * Defines values for OperatingSystemType. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type OperatingSystemType = 'Linux' | 'Windows'; + +/** + * Defines values for JobType. + * Possible values include: 'Command', 'Sweep', 'Labeling', 'Pipeline', 'Data', 'AutoML' + * @readonly + * @enum {string} + */ +export type JobType = 'Command' | 'Sweep' | 'Labeling' | 'Pipeline' | 'Data' | 'AutoML'; + +/** + * Defines values for JobStatus. + * Possible values include: 'NotStarted', 'Starting', 'Provisioning', 'Preparing', 'Queued', + * 'Running', 'Finalizing', 'CancelRequested', 'Completed', 'Failed', 'Canceled', 'NotResponding', + * 'Paused' + * @readonly + * @enum {string} + */ +export type JobStatus = 'NotStarted' | 'Starting' | 'Provisioning' | 'Preparing' | 'Queued' | 'Running' | 'Finalizing' | 'CancelRequested' | 'Completed' | 'Failed' | 'Canceled' | 'NotResponding' | 'Paused'; + +/** + * Defines values for OptimizationMetric. + * Possible values include: 'AUC_weighted', 'Accuracy', 'Norm_macro_recall', + * 'Average_precision_score_weighted', 'Precision_score_weighted', 'Spearman_correlation', + * 'Normalized_root_mean_squared_error', 'R2_score', 'Normalized_mean_absolute_error', + * 'Normalized_root_mean_squared_log_error' + * @readonly + * @enum {string} + */ +export type OptimizationMetric = 'AUC_weighted' | 'Accuracy' | 'Norm_macro_recall' | 'Average_precision_score_weighted' | 'Precision_score_weighted' | 'Spearman_correlation' | 'Normalized_root_mean_squared_error' | 'R2_score' | 'Normalized_mean_absolute_error' | 'Normalized_root_mean_squared_log_error'; + +/** + * Defines values for TaskType. + * Possible values include: 'Classification', 'Regression', 'Forecasting' + * @readonly + * @enum {string} + */ +export type TaskType = 'Classification' | 'Regression' | 'Forecasting'; + +/** + * Defines values for JobProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'InProgress' + * @readonly + * @enum {string} + */ +export type JobProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'InProgress'; + +/** + * Defines values for DataBindingMode. + * Possible values include: 'Mount', 'Download', 'Upload' + * @readonly + * @enum {string} + */ +export type DataBindingMode = 'Mount' | 'Download' | 'Upload'; + +/** + * Defines values for DistributionType. + * Possible values include: 'PyTorch', 'TensorFlow', 'Mpi' + * @readonly + * @enum {string} + */ +export type DistributionType = 'PyTorch' | 'TensorFlow' | 'Mpi'; + +/** + * Defines values for IdentityType. + * Possible values include: 'Managed', 'ServicePrincipal', 'AMLToken' + * @readonly + * @enum {string} + */ +export type IdentityType = 'Managed' | 'ServicePrincipal' | 'AMLToken'; + +/** + * Defines values for PipelineType. + * Possible values include: 'AzureML' + * @readonly + * @enum {string} + */ +export type PipelineType = 'AzureML'; + +/** + * Defines values for ParameterSamplingType. + * Possible values include: 'Grid', 'Random', 'Bayesian' + * @readonly + * @enum {string} + */ +export type ParameterSamplingType = 'Grid' | 'Random' | 'Bayesian'; + +/** + * Defines values for EarlyTerminationPolicyType. + * Possible values include: 'Bandit', 'MedianStopping', 'TruncationSelection' + * @readonly + * @enum {string} + */ +export type EarlyTerminationPolicyType = 'Bandit' | 'MedianStopping' | 'TruncationSelection'; + +/** + * Defines values for PrimaryMetricGoal. + * Possible values include: 'Minimize', 'Maximize' + * @readonly + * @enum {string} + */ +export type PrimaryMetricGoal = 'Minimize' | 'Maximize'; + +/** + * Defines values for MediaType. + * Possible values include: 'Image', 'Text' + * @readonly + * @enum {string} + */ +export type MediaType = 'Image' | 'Text'; + +/** + * Defines values for ImageAnnotationType. + * Possible values include: 'Classification', 'BoundingBox', 'InstanceSegmentation' + * @readonly + * @enum {string} + */ +export type ImageAnnotationType = 'Classification' | 'BoundingBox' | 'InstanceSegmentation'; + +/** + * Defines values for TextAnnotationType. + * Possible values include: 'Classification' + * @readonly + * @enum {string} + */ +export type TextAnnotationType = 'Classification'; + +/** + * Defines values for StatusMessageLevel. + * Possible values include: 'Error', 'Information', 'Warning' + * @readonly + * @enum {string} + */ +export type StatusMessageLevel = 'Error' | 'Information' | 'Warning'; + +/** + * Defines values for ExportFormatType. + * Possible values include: 'Dataset', 'Coco', 'CSV' + * @readonly + * @enum {string} + */ +export type ExportFormatType = 'Dataset' | 'Coco' | 'CSV'; + +/** + * Defines values for ScaleTypeMode. + * Possible values include: 'Automatic', 'Manual', 'None' + * @readonly + * @enum {string} + */ +export type ScaleTypeMode = 'Automatic' | 'Manual' | 'None'; + +/** + * Defines values for EndpointComputeType. + * Possible values include: 'Managed', 'AKS', 'AzureMLCompute' + * @readonly + * @enum {string} + */ +export type EndpointComputeType = 'Managed' | 'AKS' | 'AzureMLCompute'; + +/** + * Defines values for OSTypes. + * Possible values include: 'Linux', 'Windows' + * @readonly + * @enum {string} + */ +export type OSTypes = 'Linux' | 'Windows'; + +/** + * Defines values for DeploymentProvisioningState. + * Possible values include: 'Creating', 'Deleting', 'Scaling', 'Updating', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type DeploymentProvisioningState = 'Creating' | 'Deleting' | 'Scaling' | 'Updating' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for ReferenceType. + * Possible values include: 'Id', 'DataPath', 'OutputPath' + * @readonly + * @enum {string} + */ +export type ReferenceType = 'Id' | 'DataPath' | 'OutputPath'; + +/** + * Defines values for ContainerType. + * Possible values include: 'StorageInitializer', 'InferenceServer' + * @readonly + * @enum {string} + */ +export type ContainerType = 'StorageInitializer' | 'InferenceServer'; + +/** + * Defines values for OrderString. + * Possible values include: 'CreatedAtDesc', 'CreatedAtAsc', 'UpdatedAtDesc', 'UpdatedAtAsc' + * @readonly + * @enum {string} + */ +export type OrderString = 'CreatedAtDesc' | 'CreatedAtAsc' | 'UpdatedAtDesc' | 'UpdatedAtAsc'; + +/** + * Defines values for EndpointProvisioningState. + * Possible values include: 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Updating', 'Canceled' + * @readonly + * @enum {string} + */ +export type EndpointProvisioningState = 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Updating' | 'Canceled'; + +/** + * Defines values for EndpointAuthModeType. + * Possible values include: 'AMLToken', 'Key', 'AADToken' + * @readonly + * @enum {string} + */ +export type EndpointAuthModeType = 'AMLToken' | 'Key' | 'AADToken'; + +/** + * Defines values for KeyType. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type KeyType = 'Primary' | 'Secondary'; + +/** + * Defines values for UnderlyingResourceAction. + * Possible values include: 'Delete', 'Detach' + * @readonly + * @enum {string} + */ +export type UnderlyingResourceAction = 'Delete' | 'Detach'; + +/** + * Defines values for Status1. + * Possible values include: 'Disabled', 'Enabled', 'Auto' + * @readonly + * @enum {string} + */ +export type Status1 = 'Disabled' | 'Enabled' | 'Auto'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WorkspacesGetResponse = Workspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WorkspacesCreateOrUpdateResponse = Workspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WorkspacesUpdateResponse = Workspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceKeysResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Workspace; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListAmlUserFeatureResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListAmlUserFeatureResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type UsagesListResponse = ListUsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListUsagesResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type UsagesListNextResponse = ListUsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListUsagesResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualMachineSizeListResult; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UpdateWorkspaceQuotasResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type QuotasListResponse = ListWorkspaceQuotas & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type QuotasListNextResponse = ListWorkspaceQuotas & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListWorkspaceQuotas; + }; +}; + +/** + * Contains response data for the listByWorkspace operation. + */ +export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedComputeResourcesList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type MachineLearningComputeGetResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type MachineLearningComputeUpdateResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningComputeDeleteHeaders; + }; +}; + +/** + * Contains response data for the listNodes operation. + */ +export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AmlComputeNodesInformation; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeSecretsUnion; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComputeResource; + }; +}; + +/** + * Contains response data for the listByWorkspaceNext operation. + */ +export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedComputeResourcesList; + }; +}; + +/** + * Contains response data for the listNodesNext operation. + */ +export type MachineLearningComputeListNodesNextResponse = AmlComputeNodesInformation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AmlComputeNodesInformation; + }; +}; + +/** + * Contains response data for the listSkus operation. + */ +export type ListSkusResponse = SkuListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuListResult; + }; +}; + +/** + * Contains response data for the listSkusNext operation. + */ +export type ListSkusNextResponse = SkuListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the put operation. + */ +export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the listByWorkspace operation. + */ +export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LinkedServicesListResponse = LinkedServiceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LinkedServiceList; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type LinkedServicesCreateResponse = LinkedServiceResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LinkedServiceResponse; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LinkedServicesGetResponse = LinkedServiceResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LinkedServiceResponse; + }; +}; + +/** + * Contains response data for the listByWorkspace operation. + */ +export type MachineLearningServiceListByWorkspaceResponse = PaginatedServiceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedServiceList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type MachineLearningServiceGetResponse = ServiceResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type MachineLearningServiceCreateOrUpdateResponse = ServiceResource & MachineLearningServiceCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MachineLearningServiceCreateOrUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServiceResource; + }; +}; + +/** + * Contains response data for the listByWorkspaceNext operation. + */ +export type MachineLearningServiceListByWorkspaceNextResponse = PaginatedServiceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedServiceList; + }; +}; + +/** + * Contains response data for the prepare operation. + */ +export type NotebooksPrepareResponse = NotebookResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookResourceInfo; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type NotebooksListKeysResponse = ListNotebookKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListNotebookKeysResult; + }; +}; + +/** + * Contains response data for the beginPrepare operation. + */ +export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotebookResourceInfo; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PaginatedWorkspaceConnectionsList; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceConnection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkspaceConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CodeContainersCreateOrUpdateResponse = CodeContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CodeContainersGetResponse = CodeContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CodeVersionsGetResponse = CodeVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CodeVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ComponentContainersCreateOrUpdateResponse = ComponentContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentContainerResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComponentContainersGetResponse = ComponentContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentContainerResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ComponentVersionsCreateOrUpdateResponse = ComponentVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentVersionResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComponentVersionsGetResponse = ComponentVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentVersionResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComponentVersionResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DataContainersCreateOrUpdateResponse = DataContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataContainersGetResponse = DataContainerResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataContainerResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatastoresListResponse = DatastorePropertiesResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatastoresGetResponse = DatastorePropertiesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatastoresCreateOrUpdateResponse = DatastorePropertiesResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResource; + }; +}; + +/** + * Contains response data for the listSecrets operation. + */ +export type DatastoresListSecretsResponse = DatastoreCredentials & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastoreCredentials; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DatastoresListNextResponse = DatastorePropertiesResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatastorePropertiesResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DataVersionsCreateOrUpdateResponse = DataVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataVersionsGetResponse = DataVersionResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResource; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DataVersionsListResponse = DataVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResourceArmPaginatedResult; + }; +}; /** - * Defines values for Status1. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Status1 = 'Disabled' | 'Enabled'; +export type DataVersionsListNextResponse = DataVersionResourceArmPaginatedResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataVersionResourceArmPaginatedResult; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type OperationsListResponse = OperationListResult & { +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainerResource & { /** * The underlying HTTP response. */ @@ -2604,14 +10212,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: EnvironmentContainerResource; }; }; /** * Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace & { +export type EnvironmentContainersGetResponse = EnvironmentContainerResource & { /** * The underlying HTTP response. */ @@ -2624,14 +10232,14 @@ export type WorkspacesGetResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentContainerResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2644,14 +10252,14 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentContainerResourceArmPaginatedResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type WorkspacesUpdateResponse = Workspace & { +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2664,14 +10272,14 @@ export type WorkspacesUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentContainerResourceArmPaginatedResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { +export type EnvironmentSpecificationVersionsCreateOrUpdateResponse = EnvironmentSpecificationVersionResource & { /** * The underlying HTTP response. */ @@ -2684,14 +10292,14 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: EnvironmentSpecificationVersionResource; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the get operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { +export type EnvironmentSpecificationVersionsGetResponse = EnvironmentSpecificationVersionResource & { /** * The underlying HTTP response. */ @@ -2704,14 +10312,14 @@ export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceKeysResult; + parsedBody: EnvironmentSpecificationVersionResource; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { +export type EnvironmentSpecificationVersionsListResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2724,14 +10332,14 @@ export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: EnvironmentSpecificationVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { +export type EnvironmentSpecificationVersionsListNextResponse = EnvironmentSpecificationVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2744,14 +10352,14 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { /** * The response body as parsed JSON or XML */ - parsedBody: Workspace; + parsedBody: EnvironmentSpecificationVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { +export type JobsCreateOrUpdateResponse = JobBaseResource & { /** * The underlying HTTP response. */ @@ -2764,14 +10372,14 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: JobBaseResource; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { +export type JobsGetResponse = JobBaseResource & { /** * The underlying HTTP response. */ @@ -2784,14 +10392,29 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceListResult; + parsedBody: JobBaseResource; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type JobsDeleteResponse = JobsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: JobsDeleteHeaders; }; }; /** * Contains response data for the list operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { +export type JobsListResponse = JobBaseResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2804,14 +10427,14 @@ export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: JobBaseResourceArmPaginatedResult; }; }; /** * Contains response data for the listNext operation. */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2824,18 +10447,23 @@ export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListAmlUserFeatureResult; + parsedBody: JobBaseResourceArmPaginatedResult; }; }; /** - * Contains response data for the prepare operation. + * Contains response data for the createOrUpdate operation. */ -export type NotebooksPrepareResponse = NotebookResourceInfo & { +export type LabelingJobsCreateOrUpdateResponse = LabelingJobResource & LabelingJobsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -2844,14 +10472,14 @@ export type NotebooksPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: LabelingJobResource; }; }; /** - * Contains response data for the beginPrepare operation. + * Contains response data for the get operation. */ -export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { +export type LabelingJobsGetResponse = LabelingJobResource & { /** * The underlying HTTP response. */ @@ -2864,14 +10492,14 @@ export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookResourceInfo; + parsedBody: LabelingJobResource; }; }; /** * Contains response data for the list operation. */ -export type UsagesListResponse = ListUsagesResult & { +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2884,14 +10512,54 @@ export type UsagesListResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: LabelingJobResourceArmPaginatedResult; + }; +}; + +/** + * Contains response data for the resume operation. + */ +export type LabelingJobsResumeResponse = LabelingJobsResumeHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsResumeHeaders; + }; +}; + +/** + * Contains response data for the exportLabels operation. + */ +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion & LabelingJobsExportLabelsHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LabelingJobsExportLabelsHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExportSummaryUnion; }; }; /** * Contains response data for the listNext operation. */ -export type UsagesListNextResponse = ListUsagesResult & { +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2904,14 +10572,14 @@ export type UsagesListNextResponse = ListUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ListUsagesResult; + parsedBody: LabelingJobResourceArmPaginatedResult; }; }; /** * Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2924,14 +10592,14 @@ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualMachineSizeListResult; + parsedBody: ModelContainerResourceArmPaginatedResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { +export type ModelContainersCreateOrUpdateResponse = ModelContainerResource & { /** * The underlying HTTP response. */ @@ -2944,14 +10612,14 @@ export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UpdateWorkspaceQuotasResult; + parsedBody: ModelContainerResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type QuotasListResponse = ListWorkspaceQuotas & { +export type ModelContainersGetResponse = ModelContainerResource & { /** * The underlying HTTP response. */ @@ -2964,14 +10632,14 @@ export type QuotasListResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ModelContainerResource; }; }; /** * Contains response data for the listNext operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas & { +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -2984,14 +10652,14 @@ export type QuotasListNextResponse = ListWorkspaceQuotas & { /** * The response body as parsed JSON or XML */ - parsedBody: ListWorkspaceQuotas; + parsedBody: ModelContainerResourceArmPaginatedResult; }; }; /** * Contains response data for the list operation. */ -export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3004,14 +10672,14 @@ export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedWorkspaceConnectionsList; + parsedBody: ModelVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the createOrUpdate operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { +export type ModelVersionsCreateOrUpdateResponse = ModelVersionResource & { /** * The underlying HTTP response. */ @@ -3024,14 +10692,14 @@ export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: ModelVersionResource; }; }; /** * Contains response data for the get operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { +export type ModelVersionsGetResponse = ModelVersionResource & { /** * The underlying HTTP response. */ @@ -3044,14 +10712,14 @@ export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceConnection; + parsedBody: ModelVersionResource; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listNext operation. */ -export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3064,14 +10732,14 @@ export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeReso /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: ModelVersionResourceArmPaginatedResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type MachineLearningComputeGetResponse = ComputeResource & { +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3084,14 +10752,14 @@ export type MachineLearningComputeGetResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineDeploymentTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the deleteMethod operation. */ -export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { +export type OnlineDeploymentsDeleteResponse = OnlineDeploymentsDeleteHeaders & { /** * The underlying HTTP response. */ @@ -3099,8 +10767,18 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac /** * The parsed HTTP response headers. */ - parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; + parsedHeaders: OnlineDeploymentsDeleteHeaders; + }; +}; +/** + * Contains response data for the get operation. + */ +export type OnlineDeploymentsGetResponse = OnlineDeploymentTrackedResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -3109,18 +10787,23 @@ export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & Mac /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type MachineLearningComputeUpdateResponse = ComputeResource & { +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeploymentTrackedResource & OnlineDeploymentsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineDeploymentsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -3129,14 +10812,14 @@ export type MachineLearningComputeUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the update operation. */ -export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { +export type OnlineDeploymentsUpdateResponse = OnlineDeploymentTrackedResource & OnlineDeploymentsUpdateHeaders & { /** * The underlying HTTP response. */ @@ -3144,14 +10827,24 @@ export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteH /** * The parsed HTTP response headers. */ - parsedHeaders: MachineLearningComputeDeleteHeaders; + parsedHeaders: OnlineDeploymentsUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OnlineDeploymentTrackedResource; }; }; /** - * Contains response data for the listNodes operation. + * Contains response data for the getLogs operation. */ -export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs & { /** * The underlying HTTP response. */ @@ -3164,14 +10857,14 @@ export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation /** * The response body as parsed JSON or XML */ - parsedBody: AmlComputeNodesInformation; + parsedBody: DeploymentLogs; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the listNext operation. */ -export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3184,14 +10877,14 @@ export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeSecretsUnion; + parsedBody: OnlineDeploymentTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the list operation. */ -export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3204,14 +10897,29 @@ export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: ComputeResource; + parsedBody: OnlineEndpointTrackedResourceArmPaginatedResult; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the deleteMethod operation. */ -export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { +export type OnlineEndpointsDeleteResponse = OnlineEndpointsDeleteHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsDeleteHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type OnlineEndpointsGetResponse = OnlineEndpointTrackedResource & { /** * The underlying HTTP response. */ @@ -3224,18 +10932,23 @@ export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedCompute /** * The response body as parsed JSON or XML */ - parsedBody: PaginatedComputeResourcesList; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the listSkus operation. + * Contains response data for the createOrUpdate operation. */ -export type ListSkusResponse = SkuListResult & { +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpointTrackedResource & OnlineEndpointsCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsCreateOrUpdateHeaders; + /** * The response body as text (string format) */ @@ -3244,18 +10957,23 @@ export type ListSkusResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the listSkusNext operation. + * Contains response data for the update operation. */ -export type ListSkusNextResponse = SkuListResult & { +export type OnlineEndpointsUpdateResponse = OnlineEndpointTrackedResource & OnlineEndpointsUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsUpdateHeaders; + /** * The response body as text (string format) */ @@ -3264,14 +10982,29 @@ export type ListSkusNextResponse = SkuListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SkuListResult; + parsedBody: OnlineEndpointTrackedResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the regenerateKeys operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type OnlineEndpointsRegenerateKeysResponse = OnlineEndpointsRegenerateKeysHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OnlineEndpointsRegenerateKeysHeaders; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys & { /** * The underlying HTTP response. */ @@ -3284,14 +11017,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: EndpointAuthKeys; }; }; /** - * Contains response data for the put operation. + * Contains response data for the getToken operation. */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken & { /** * The underlying HTTP response. */ @@ -3304,14 +11037,14 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: EndpointAuthToken; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listNext operation. */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult & { /** * The underlying HTTP response. */ @@ -3324,6 +11057,6 @@ export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceLis /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: OnlineEndpointTrackedResourceArmPaginatedResult; }; }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts new file mode 100644 index 000000000000..07d31d84090d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/jobsMappers.ts @@ -0,0 +1,231 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobBaseResourceArmPaginatedResult, + JobOutput, + JobsDeleteHeaders, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts new file mode 100644 index 000000000000..097b2d867f87 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/labelingJobsMappers.ts @@ -0,0 +1,237 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CocoExportSummary, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + CsvExportSummary, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetExportSummary, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + ExportSummary, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobResourceArmPaginatedResult, + LabelingJobsCreateOrUpdateHeaders, + LabelingJobsExportLabelsHeaders, + LabelingJobsResumeHeaders, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/linkedServicesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/linkedServicesMappers.ts new file mode 100644 index 000000000000..b2cc98fd6e69 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/linkedServicesMappers.ts @@ -0,0 +1,231 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceList, + LinkedServiceProps, + LinkedServiceRequest, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts index 456a73c75208..298009c7baad 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts @@ -8,17 +8,71 @@ export { discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, + AksComputeConfiguration, AksComputeSecrets, + AksDeploymentConfiguration, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeNodeInformation, AmlComputeNodesInformation, AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, BaseResource, + CertificateSection, ClusterUpdateParameters, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, Compute, + ComputeBinding, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -26,46 +80,161 @@ export { ComputeInstanceLastOperation, ComputeInstanceProperties, ComputeInstanceSshSettings, + ComputeJobBase, ComputeNodesInformation, ComputeResource, ComputeSecrets, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, Databricks, DatabricksComputeSecrets, DatabricksProperties, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, ErrorDetail, ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, MachineLearningComputeCreateOrUpdateHeaders, MachineLearningComputeDeleteHeaders, MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, PaginatedComputeResourcesList, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, Resource, ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, + SqlAdminSection, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSecrets, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts new file mode 100644 index 000000000000..86de6b599bcb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningServiceMappers.ts @@ -0,0 +1,248 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequest, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequest, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AuthKeys, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistry, + ContainerRegistryResponse, + ContainerResourceRequirements, + CreateEndpointVariantRequest, + CreateServiceRequest, + CreateServiceRequestEnvironmentImageRequest, + CreateServiceRequestKeys, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequest, + EnvironmentImageRequestEnvironment, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceCreateOrUpdateHeaders, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSection, + ModelDockerSectionBaseImageRegistry, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinition, + ModelEnvironmentDefinitionDocker, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionR, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + PaginatedServiceList, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackage, + RGitHubPackageResponse, + Route, + RSection, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts index 122cb25e5b8b..6f0e01492e2d 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -69,79 +69,6 @@ export const Operation: msRest.CompositeMapper = { } }; -export const NotebookListCredentialsResult: msRest.CompositeMapper = { - serializedName: "NotebookListCredentialsResult", - type: { - name: "Composite", - className: "NotebookListCredentialsResult", - modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - type: { - name: "String" - } - }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - type: { - name: "String" - } - } - } - } -}; - -export const NotebookPreparationError: msRest.CompositeMapper = { - serializedName: "NotebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError", - modelProperties: { - errorMessage: { - serializedName: "errorMessage", - type: { - name: "String" - } - }, - statusCode: { - serializedName: "statusCode", - type: { - name: "Number" - } - } - } - } -}; - -export const NotebookResourceInfo: msRest.CompositeMapper = { - serializedName: "NotebookResourceInfo", - type: { - name: "Composite", - className: "NotebookResourceInfo", - modelProperties: { - fqdn: { - serializedName: "fqdn", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - notebookPreparationError: { - serializedName: "notebookPreparationError", - type: { - name: "Composite", - className: "NotebookPreparationError" - } - } - } - } -}; - export const KeyVaultProperties: msRest.CompositeMapper = { serializedName: "KeyVaultProperties", type: { @@ -242,11 +169,11 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "Resource", modelProperties: { id: { readOnly: true, @@ -262,6 +189,19 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -269,6 +209,35 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { name: "String" } }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { @@ -334,68 +303,6 @@ export const SharedPrivateLinkResource: msRest.CompositeMapper = { } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - export const Workspace: msRest.CompositeMapper = { serializedName: "Workspace", type: { @@ -531,14 +438,6 @@ export const Workspace: msRest.CompositeMapper = { } } } - }, - notebookInfo: { - readOnly: true, - serializedName: "properties.notebookInfo", - type: { - name: "Composite", - className: "NotebookResourceInfo" - } } } } @@ -858,17 +757,6 @@ export const VirtualMachineSize: msRest.CompositeMapper = { name: "Composite", className: "EstimatedVMPrices" } - }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } @@ -925,6 +813,12 @@ export const QuotaBaseProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + location: { + serializedName: "location", + type: { + name: "String" + } } } } @@ -1062,6 +956,13 @@ export const ResourceQuota: msRest.CompositeMapper = { name: "String" } }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, type: { readOnly: true, serializedName: "type", @@ -1095,11 +996,11 @@ export const ResourceQuota: msRest.CompositeMapper = { } }; -export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "Identity_userAssignedIdentitiesValue", +export const UserAssignedIdentity: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentity", type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue", + className: "UserAssignedIdentity", modelProperties: { principalId: { readOnly: true, @@ -1108,6 +1009,13 @@ export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { name: "String" } }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, clientId: { readOnly: true, serializedName: "clientId", @@ -1140,14 +1048,13 @@ export const Identity: msRest.CompositeMapper = { } }, type: { - required: true, serializedName: "type", type: { name: "Enum", allowedValues: [ "SystemAssigned", - "UserAssigned", "SystemAssigned,UserAssigned", + "UserAssigned", "None" ] } @@ -1159,7 +1066,7 @@ export const Identity: msRest.CompositeMapper = { value: { type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" + className: "UserAssignedIdentity" } } } @@ -1279,13 +1186,6 @@ export const ListWorkspaceKeysResult: msRest.CompositeMapper = { name: "Composite", className: "RegistryListCredentialsResult" } - }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", - type: { - name: "Composite", - className: "NotebookListCredentialsResult" - } } } } @@ -1611,8 +1511,8 @@ export const AKSProperties: msRest.CompositeMapper = { name: "Number" } }, - agentVMSize: { - serializedName: "agentVMSize", + agentVmSize: { + serializedName: "agentVmSize", type: { name: "String" } @@ -1655,6 +1555,23 @@ export const AKS: msRest.CompositeMapper = { } }; +export const VirtualMachineImage: msRest.CompositeMapper = { + serializedName: "VirtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + export const ScaleSettings: msRest.CompositeMapper = { serializedName: "ScaleSettings", type: { @@ -1772,6 +1689,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "AmlComputeProperties", modelProperties: { + osType: { + serializedName: "osType", + defaultValue: 'Linux', + type: { + name: "String" + } + }, vmSize: { serializedName: "vmSize", type: { @@ -1784,6 +1708,19 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "String" } }, + virtualMachineImage: { + serializedName: "virtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage" + } + }, + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, scaleSettings: { serializedName: "scaleSettings", type: { @@ -1860,6 +1797,13 @@ export const AmlComputeProperties: msRest.CompositeMapper = { name: "Composite", className: "NodeStateCounts" } + }, + enableNodePublicIp: { + serializedName: "enableNodePublicIp", + defaultValue: true, + type: { + name: "Boolean" + } } } } @@ -1999,6 +1943,122 @@ export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { } }; +export const AssignedUser: msRest.CompositeMapper = { + serializedName: "AssignedUser", + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + required: true, + serializedName: "objectId", + type: { + name: "String" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: msRest.CompositeMapper = { + serializedName: "PersonalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const ScriptReference: msRest.CompositeMapper = { + serializedName: "ScriptReference", + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", + type: { + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptsToExecute: msRest.CompositeMapper = { + serializedName: "ScriptsToExecute", + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const SetupScripts: msRest.CompositeMapper = { + serializedName: "SetupScripts", + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + export const ComputeInstanceLastOperation: msRest.CompositeMapper = { serializedName: "ComputeInstanceLastOperation", type: { @@ -2109,6 +2169,27 @@ export const ComputeInstanceProperties: msRest.CompositeMapper = { name: "String" } }, + computeInstanceAuthorizationType: { + serializedName: "computeInstanceAuthorizationType", + defaultValue: 'personal', + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, lastOperation: { readOnly: true, serializedName: "lastOperation", @@ -2486,32 +2567,6 @@ export const AmlComputeNodeInformation: msRest.CompositeMapper = { } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", - type: { - name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", - modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { - readOnly: true, - serializedName: "nodes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation" - } - } - } - } - } - } -}; - export const ComputeSecrets: msRest.CompositeMapper = { serializedName: "ComputeSecrets", type: { @@ -2738,11 +2793,11 @@ export const Restriction: msRest.CompositeMapper = { } }; -export const SkuSettings: msRest.CompositeMapper = { - serializedName: "SkuSettings", +export const WorkspaceSku: msRest.CompositeMapper = { + serializedName: "WorkspaceSku", type: { name: "Composite", - className: "SkuSettings", + className: "WorkspaceSku", modelProperties: { locations: { readOnly: true, @@ -2819,36 +2874,6 @@ export const SkuSettings: msRest.CompositeMapper = { } }; -export const WorkspaceSku: msRest.CompositeMapper = { - serializedName: "WorkspaceSku", - type: { - name: "Composite", - className: "WorkspaceSku", - modelProperties: { - resourceType: { - readOnly: true, - serializedName: "resourceType", - type: { - name: "String" - } - }, - skus: { - readOnly: true, - serializedName: "skus", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuSettings" - } - } - } - } - } - } -}; - export const PrivateLinkResource: msRest.CompositeMapper = { serializedName: "PrivateLinkResource", type: { @@ -2912,11 +2937,49 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } }; -export const WorkspaceConnection: msRest.CompositeMapper = { - serializedName: "WorkspaceConnection", +export const LinkedServiceProps: msRest.CompositeMapper = { + serializedName: "LinkedServiceProps", type: { name: "Composite", - className: "WorkspaceConnection", + className: "LinkedServiceProps", + modelProperties: { + linkedServiceResourceId: { + required: true, + serializedName: "linkedServiceResourceId", + type: { + name: "String" + } + }, + linkType: { + serializedName: "linkType", + type: { + name: "Enum", + allowedValues: [ + "Synapse" + ] + } + }, + createdTime: { + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + modifiedTime: { + serializedName: "modifiedTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const LinkedServiceResponse: msRest.CompositeMapper = { + serializedName: "LinkedServiceResponse", + type: { + name: "Composite", + className: "LinkedServiceResponse", modelProperties: { id: { readOnly: true, @@ -2939,39 +3002,35 @@ export const WorkspaceConnection: msRest.CompositeMapper = { name: "String" } }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", + location: { + serializedName: "location", type: { name: "String" } }, - authType: { - serializedName: "properties.authType", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "Identity" } }, - value: { - serializedName: "properties.value", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "LinkedServiceProps" } } } } }; -export const WorkspaceConnectionDto: msRest.CompositeMapper = { - serializedName: "WorkspaceConnectionDto", +export const LinkedServiceRequest: msRest.CompositeMapper = { + serializedName: "LinkedServiceRequest", type: { name: "Composite", - className: "WorkspaceConnectionDto", + className: "LinkedServiceRequest", modelProperties: { name: { serializedName: "name", @@ -2979,74 +3038,7695 @@ export const WorkspaceConnectionDto: msRest.CompositeMapper = { name: "String" } }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", + location: { + serializedName: "location", type: { name: "String" } }, - authType: { - serializedName: "properties.authType", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "Identity" } }, - value: { - serializedName: "properties.value", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "LinkedServiceProps" } } } } }; -export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-createorupdate-headers", +export const LinkedServiceList: msRest.CompositeMapper = { + serializedName: "LinkedServiceList", type: { name: "Composite", - className: "MachineLearningComputeCreateOrUpdateHeaders", + className: "LinkedServiceList", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LinkedServiceResponse" + } + } } } } } }; -export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-delete-headers", +export const ServiceResponseBaseError: msRest.CompositeMapper = { + serializedName: "ServiceResponseBase_error", type: { name: "Composite", - className: "MachineLearningComputeDeleteHeaders", + className: "ServiceResponseBaseError", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } + ...ErrorResponse.type.modelProperties } } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const ServiceResponseBase: msRest.CompositeMapper = { + serializedName: "ServiceResponseBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "ServiceResponseBase", + className: "ServiceResponseBase", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ServiceResponseBaseError" + } + }, + deploymentType: { + serializedName: "deploymentType", + type: { + name: "String" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceResource: msRest.CompositeMapper = { + serializedName: "ServiceResource", + type: { + name: "Composite", + className: "ServiceResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServiceResponseBase" + } + } + } + } +}; + +export const ContainerResourceRequirements: msRest.CompositeMapper = { + serializedName: "ContainerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements", + modelProperties: { + cpu: { + serializedName: "cpu", + type: { + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Number" + } + }, + fpga: { + serializedName: "fpga", + type: { + name: "Number" + } + } + } + } +}; + +export const ModelDataCollection: msRest.CompositeMapper = { + serializedName: "ModelDataCollection", + type: { + name: "Composite", + className: "ModelDataCollection", + modelProperties: { + eventHubEnabled: { + serializedName: "eventHubEnabled", + type: { + name: "Boolean" + } + }, + storageEnabled: { + serializedName: "storageEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ACIServiceResponseDataCollection: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_dataCollection", + type: { + name: "Composite", + className: "ACIServiceResponseDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const DatasetReference: msRest.CompositeMapper = { + serializedName: "DatasetReference", + type: { + name: "Composite", + className: "DatasetReference", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const Model: msRest.CompositeMapper = { + serializedName: "Model", + type: { + name: "Composite", + className: "Model", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + framework: { + serializedName: "framework", + type: { + name: "String" + } + }, + frameworkVersion: { + serializedName: "frameworkVersion", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "Number" + } + }, + datasets: { + serializedName: "datasets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatasetReference" + } + } + } + }, + url: { + required: true, + serializedName: "url", + type: { + name: "String" + } + }, + mimeType: { + required: true, + serializedName: "mimeType", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + createdTime: { + serializedName: "createdTime", + type: { + name: "DateTime" + } + }, + modifiedTime: { + serializedName: "modifiedTime", + type: { + name: "DateTime" + } + }, + unpack: { + serializedName: "unpack", + type: { + name: "Boolean" + } + }, + parentModelId: { + serializedName: "parentModelId", + type: { + name: "String" + } + }, + runId: { + serializedName: "runId", + type: { + name: "String" + } + }, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + derivedModelIds: { + serializedName: "derivedModelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sampleInputData: { + serializedName: "sampleInputData", + type: { + name: "String" + } + }, + sampleOutputData: { + serializedName: "sampleOutputData", + type: { + name: "String" + } + }, + resourceRequirements: { + serializedName: "resourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + } + } + } +}; + +export const EnvironmentImageResponse: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse", + type: { + name: "Composite", + className: "EnvironmentImageResponse", + modelProperties: { + driverProgram: { + serializedName: "driverProgram", + type: { + name: "String" + } + }, + assets: { + serializedName: "assets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageAsset" + } + } + } + }, + modelIds: { + serializedName: "modelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironment" + } + }, + environmentReference: { + serializedName: "environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironmentReference" + } + } + } + } +}; + +export const ACIServiceResponseEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_environmentImageRequest", + type: { + name: "Composite", + className: "ACIServiceResponseEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageResponse.type.modelProperties + } + } +}; + +export const VnetConfiguration: msRest.CompositeMapper = { + serializedName: "VnetConfiguration", + type: { + name: "Composite", + className: "VnetConfiguration", + modelProperties: { + vnetName: { + serializedName: "vnetName", + type: { + name: "String" + } + }, + subnetName: { + serializedName: "subnetName", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceResponseVnetConfiguration: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceResponseVnetConfiguration", + modelProperties: { + ...VnetConfiguration.type.modelProperties + } + } +}; + +export const EncryptionProperties: msRest.CompositeMapper = { + serializedName: "EncryptionProperties", + type: { + name: "Composite", + className: "EncryptionProperties", + modelProperties: { + vaultBaseUrl: { + required: true, + serializedName: "vaultBaseUrl", + type: { + name: "String" + } + }, + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + required: true, + serializedName: "keyVersion", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceResponseEncryptionProperties: msRest.CompositeMapper = { + serializedName: "ACIServiceResponse_encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceResponseEncryptionProperties", + modelProperties: { + ...EncryptionProperties.type.modelProperties + } + } +}; + +export const ACIServiceResponse: msRest.CompositeMapper = { + serializedName: "ACI", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "ACIServiceResponse", + modelProperties: { + ...ServiceResponseBase.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + authEnabled: { + serializedName: "authEnabled", + type: { + name: "Boolean" + } + }, + sslEnabled: { + serializedName: "sslEnabled", + type: { + name: "Boolean" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "ACIServiceResponseDataCollection" + } + }, + sslCertificate: { + serializedName: "sslCertificate", + type: { + name: "String" + } + }, + sslKey: { + serializedName: "sslKey", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + publicIp: { + serializedName: "publicIp", + type: { + name: "String" + } + }, + publicFqdn: { + serializedName: "publicFqdn", + type: { + name: "String" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + modelConfigMap: { + readOnly: true, + serializedName: "modelConfigMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "ACIServiceResponseEnvironmentImageRequest" + } + }, + vnetConfiguration: { + serializedName: "vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceResponseVnetConfiguration" + } + }, + encryptionProperties: { + serializedName: "encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceResponseEncryptionProperties" + } + } + } + } +}; + +export const ImageAsset: msRest.CompositeMapper = { + serializedName: "ImageAsset", + type: { + name: "Composite", + className: "ImageAsset", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + mimeType: { + serializedName: "mimeType", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + unpack: { + serializedName: "unpack", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ModelEnvironmentDefinition: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition", + type: { + name: "Composite", + className: "ModelEnvironmentDefinition", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + python: { + serializedName: "python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionPython" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionDocker" + } + }, + spark: { + serializedName: "spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionSpark" + } + }, + r: { + serializedName: "r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionR" + } + }, + inferencingStackVersion: { + serializedName: "inferencingStackVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageRequestEnvironment: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest_environment", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironment", + modelProperties: { + ...ModelEnvironmentDefinition.type.modelProperties + } + } +}; + +export const EnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentReference", + type: { + name: "Composite", + className: "EnvironmentReference", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageRequestEnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest_environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironmentReference", + modelProperties: { + ...EnvironmentReference.type.modelProperties + } + } +}; + +export const EnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "EnvironmentImageRequest", + type: { + name: "Composite", + className: "EnvironmentImageRequest", + modelProperties: { + driverProgram: { + serializedName: "driverProgram", + type: { + name: "String" + } + }, + assets: { + serializedName: "assets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageAsset" + } + } + } + }, + modelIds: { + serializedName: "modelIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironment" + } + }, + environmentReference: { + serializedName: "environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageRequestEnvironmentReference" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponse: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponse", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + }, + python: { + serializedName: "python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponsePython" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + docker: { + serializedName: "docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseDocker" + } + }, + spark: { + serializedName: "spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseSpark" + } + }, + r: { + serializedName: "r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseR" + } + }, + inferencingStackVersion: { + serializedName: "inferencingStackVersion", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentImageResponseEnvironment: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse_environment", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironment", + modelProperties: { + ...ModelEnvironmentDefinitionResponse.type.modelProperties + } + } +}; + +export const EnvironmentImageResponseEnvironmentReference: msRest.CompositeMapper = { + serializedName: "EnvironmentImageResponse_environmentReference", + type: { + name: "Composite", + className: "EnvironmentImageResponseEnvironmentReference", + modelProperties: { + ...EnvironmentReference.type.modelProperties + } + } +}; + +export const ModelPythonSection: msRest.CompositeMapper = { + serializedName: "ModelPythonSection", + type: { + name: "Composite", + className: "ModelPythonSection", + modelProperties: { + interpreterPath: { + serializedName: "interpreterPath", + type: { + name: "String" + } + }, + userManagedDependencies: { + serializedName: "userManagedDependencies", + type: { + name: "Boolean" + } + }, + condaDependencies: { + serializedName: "condaDependencies", + type: { + name: "Object" + } + }, + baseCondaEnvironment: { + serializedName: "baseCondaEnvironment", + type: { + name: "String" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionPython: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionPython", + modelProperties: { + ...ModelPythonSection.type.modelProperties + } + } +}; + +export const ModelDockerSection: msRest.CompositeMapper = { + serializedName: "ModelDockerSection", + type: { + name: "Composite", + className: "ModelDockerSection", + modelProperties: { + baseImage: { + serializedName: "baseImage", + type: { + name: "String" + } + }, + baseDockerfile: { + serializedName: "baseDockerfile", + type: { + name: "String" + } + }, + baseImageRegistry: { + serializedName: "baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionBaseImageRegistry" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionDocker: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionDocker", + modelProperties: { + ...ModelDockerSection.type.modelProperties + } + } +}; + +export const ModelSparkSection: msRest.CompositeMapper = { + serializedName: "ModelSparkSection", + type: { + name: "Composite", + className: "ModelSparkSection", + modelProperties: { + repositories: { + serializedName: "repositories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + packages: { + serializedName: "packages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SparkMavenPackage" + } + } + } + }, + precachePackages: { + serializedName: "precachePackages", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionSpark: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionSpark", + modelProperties: { + ...ModelSparkSection.type.modelProperties + } + } +}; + +export const RSection: msRest.CompositeMapper = { + serializedName: "RSection", + type: { + name: "Composite", + className: "RSection", + modelProperties: { + rVersion: { + serializedName: "rVersion", + type: { + name: "String" + } + }, + userManaged: { + serializedName: "userManaged", + type: { + name: "Boolean" + } + }, + rscriptPath: { + serializedName: "rscriptPath", + type: { + name: "String" + } + }, + snapshotDate: { + serializedName: "snapshotDate", + type: { + name: "String" + } + }, + cranPackages: { + serializedName: "cranPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RCranPackage" + } + } + } + }, + gitHubPackages: { + serializedName: "gitHubPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RGitHubPackage" + } + } + } + }, + customUrlPackages: { + serializedName: "customUrlPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + bioConductorPackages: { + serializedName: "bioConductorPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModelEnvironmentDefinitionR: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinition_r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionR", + modelProperties: { + ...RSection.type.modelProperties + } + } +}; + +export const ModelEnvironmentDefinitionResponsePython: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_python", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponsePython", + modelProperties: { + ...ModelPythonSection.type.modelProperties + } + } +}; + +export const ModelDockerSectionResponse: msRest.CompositeMapper = { + serializedName: "ModelDockerSectionResponse", + type: { + name: "Composite", + className: "ModelDockerSectionResponse", + modelProperties: { + baseImage: { + serializedName: "baseImage", + type: { + name: "String" + } + }, + baseDockerfile: { + serializedName: "baseDockerfile", + type: { + name: "String" + } + }, + baseImageRegistry: { + serializedName: "baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionResponseBaseImageRegistry" + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponseDocker: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_docker", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseDocker", + modelProperties: { + ...ModelDockerSectionResponse.type.modelProperties + } + } +}; + +export const ModelEnvironmentDefinitionResponseSpark: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_spark", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseSpark", + modelProperties: { + ...ModelSparkSection.type.modelProperties + } + } +}; + +export const RSectionResponse: msRest.CompositeMapper = { + serializedName: "RSectionResponse", + type: { + name: "Composite", + className: "RSectionResponse", + modelProperties: { + rVersion: { + serializedName: "rVersion", + type: { + name: "String" + } + }, + userManaged: { + serializedName: "userManaged", + type: { + name: "Boolean" + } + }, + rscriptPath: { + serializedName: "rscriptPath", + type: { + name: "String" + } + }, + snapshotDate: { + serializedName: "snapshotDate", + type: { + name: "String" + } + }, + cranPackages: { + serializedName: "cranPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RCranPackage" + } + } + } + }, + gitHubPackages: { + serializedName: "gitHubPackages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RGitHubPackageResponse" + } + } + } + }, + customUrlPackages: { + serializedName: "customUrlPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + bioConductorPackages: { + serializedName: "bioConductorPackages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModelEnvironmentDefinitionResponseR: msRest.CompositeMapper = { + serializedName: "ModelEnvironmentDefinitionResponse_r", + type: { + name: "Composite", + className: "ModelEnvironmentDefinitionResponseR", + modelProperties: { + ...RSectionResponse.type.modelProperties + } + } +}; + +export const ContainerRegistry: msRest.CompositeMapper = { + serializedName: "ContainerRegistry", + type: { + name: "Composite", + className: "ContainerRegistry", + modelProperties: { + address: { + serializedName: "address", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistryResponse: msRest.CompositeMapper = { + serializedName: "ContainerRegistryResponse", + type: { + name: "Composite", + className: "ContainerRegistryResponse", + modelProperties: { + address: { + serializedName: "address", + type: { + name: "String" + } + } + } + } +}; + +export const ModelDockerSectionBaseImageRegistry: msRest.CompositeMapper = { + serializedName: "ModelDockerSection_baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionBaseImageRegistry", + modelProperties: { + ...ContainerRegistry.type.modelProperties + } + } +}; + +export const ModelDockerSectionResponseBaseImageRegistry: msRest.CompositeMapper = { + serializedName: "ModelDockerSectionResponse_baseImageRegistry", + type: { + name: "Composite", + className: "ModelDockerSectionResponseBaseImageRegistry", + modelProperties: { + ...ContainerRegistryResponse.type.modelProperties + } + } +}; + +export const SparkMavenPackage: msRest.CompositeMapper = { + serializedName: "SparkMavenPackage", + type: { + name: "Composite", + className: "SparkMavenPackage", + modelProperties: { + group: { + serializedName: "group", + type: { + name: "String" + } + }, + artifact: { + serializedName: "artifact", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const RCranPackage: msRest.CompositeMapper = { + serializedName: "RCranPackage", + type: { + name: "Composite", + className: "RCranPackage", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + } + } + } +}; + +export const RGitHubPackage: msRest.CompositeMapper = { + serializedName: "RGitHubPackage", + type: { + name: "Composite", + className: "RGitHubPackage", + modelProperties: { + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + authToken: { + serializedName: "authToken", + type: { + name: "String" + } + } + } + } +}; + +export const RGitHubPackageResponse: msRest.CompositeMapper = { + serializedName: "RGitHubPackageResponse", + type: { + name: "Composite", + className: "RGitHubPackageResponse", + modelProperties: { + repository: { + serializedName: "repository", + type: { + name: "String" + } + } + } + } +}; + +export const AKSVariantResponse: msRest.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "AKSVariantResponse", + modelProperties: { + ...ServiceResponseBase.type.modelProperties, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + trafficPercentile: { + serializedName: "trafficPercentile", + type: { + name: "Number" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaler: msRest.CompositeMapper = { + serializedName: "AutoScaler", + type: { + name: "Composite", + className: "AutoScaler", + modelProperties: { + autoscaleEnabled: { + serializedName: "autoscaleEnabled", + type: { + name: "Boolean" + } + }, + minReplicas: { + serializedName: "minReplicas", + type: { + name: "Number" + } + }, + maxReplicas: { + serializedName: "maxReplicas", + type: { + name: "Number" + } + }, + targetUtilization: { + serializedName: "targetUtilization", + type: { + name: "Number" + } + }, + refreshPeriodInSeconds: { + serializedName: "refreshPeriodInSeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const AKSReplicaStatusError: msRest.CompositeMapper = { + serializedName: "AKSReplicaStatus_error", + type: { + name: "Composite", + className: "AKSReplicaStatusError", + modelProperties: { + ...ErrorResponse.type.modelProperties + } + } +}; + +export const AKSReplicaStatus: msRest.CompositeMapper = { + serializedName: "AKSReplicaStatus", + type: { + name: "Composite", + className: "AKSReplicaStatus", + modelProperties: { + desiredReplicas: { + serializedName: "desiredReplicas", + type: { + name: "Number" + } + }, + updatedReplicas: { + serializedName: "updatedReplicas", + type: { + name: "Number" + } + }, + availableReplicas: { + serializedName: "availableReplicas", + type: { + name: "Number" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "AKSReplicaStatusError" + } + } + } + } +}; + +export const LivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "LivenessProbeRequirements", + type: { + name: "Composite", + className: "LivenessProbeRequirements", + modelProperties: { + failureThreshold: { + serializedName: "failureThreshold", + type: { + name: "Number" + } + }, + successThreshold: { + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeoutSeconds: { + serializedName: "timeoutSeconds", + type: { + name: "Number" + } + }, + periodSeconds: { + serializedName: "periodSeconds", + type: { + name: "Number" + } + }, + initialDelaySeconds: { + serializedName: "initialDelaySeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const AKSServiceResponseDataCollection: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_dataCollection", + type: { + name: "Composite", + className: "AKSServiceResponseDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const AKSServiceResponseAutoScaler: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_autoScaler", + type: { + name: "Composite", + className: "AKSServiceResponseAutoScaler", + modelProperties: { + ...AutoScaler.type.modelProperties + } + } +}; + +export const AKSServiceResponseDeploymentStatus: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_deploymentStatus", + type: { + name: "Composite", + className: "AKSServiceResponseDeploymentStatus", + modelProperties: { + ...AKSReplicaStatus.type.modelProperties + } + } +}; + +export const AKSServiceResponseLivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceResponseLivenessProbeRequirements", + modelProperties: { + ...LivenessProbeRequirements.type.modelProperties + } + } +}; + +export const AKSServiceResponseEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "AKSServiceResponse_environmentImageRequest", + type: { + name: "Composite", + className: "AKSServiceResponseEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageResponse.type.modelProperties + } + } +}; + +export const AKSServiceResponse: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: ServiceResponseBase.type.polymorphicDiscriminator, + uberParent: "ServiceResponseBase", + className: "AKSServiceResponse", + modelProperties: { + ...AKSVariantResponse.type.modelProperties, + modelsProperty: { + serializedName: "models", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Model" + } + } + } + }, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + maxConcurrentRequestsPerContainer: { + serializedName: "maxConcurrentRequestsPerContainer", + type: { + name: "Number" + } + }, + maxQueueWaitMs: { + serializedName: "maxQueueWaitMs", + type: { + name: "Number" + } + }, + computeName: { + serializedName: "computeName", + type: { + name: "String" + } + }, + namespace: { + serializedName: "namespace", + type: { + name: "String" + } + }, + numReplicas: { + serializedName: "numReplicas", + type: { + name: "Number" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "AKSServiceResponseDataCollection" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + autoScaler: { + serializedName: "autoScaler", + type: { + name: "Composite", + className: "AKSServiceResponseAutoScaler" + } + }, + scoringUri: { + readOnly: true, + serializedName: "scoringUri", + type: { + name: "String" + } + }, + deploymentStatus: { + readOnly: true, + serializedName: "deploymentStatus", + type: { + name: "Composite", + className: "AKSServiceResponseDeploymentStatus" + } + }, + scoringTimeoutMs: { + serializedName: "scoringTimeoutMs", + type: { + name: "Number" + } + }, + livenessProbeRequirements: { + serializedName: "livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceResponseLivenessProbeRequirements" + } + }, + authEnabled: { + serializedName: "authEnabled", + type: { + name: "Boolean" + } + }, + aadAuthEnabled: { + serializedName: "aadAuthEnabled", + type: { + name: "Boolean" + } + }, + swaggerUri: { + readOnly: true, + serializedName: "swaggerUri", + type: { + name: "String" + } + }, + modelConfigMap: { + readOnly: true, + serializedName: "modelConfigMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "AKSServiceResponseEnvironmentImageRequest" + } + } + } + } +}; + +export const AuthKeys: msRest.CompositeMapper = { + serializedName: "AuthKeys", + type: { + name: "Composite", + className: "AuthKeys", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + } + } + } +}; + +export const CreateServiceRequestKeys: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest_keys", + type: { + name: "Composite", + className: "CreateServiceRequestKeys", + modelProperties: { + ...AuthKeys.type.modelProperties + } + } +}; + +export const CreateServiceRequestEnvironmentImageRequest: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest_environmentImageRequest", + type: { + name: "Composite", + className: "CreateServiceRequestEnvironmentImageRequest", + modelProperties: { + ...EnvironmentImageRequest.type.modelProperties + } + } +}; + +export const CreateServiceRequest: msRest.CompositeMapper = { + serializedName: "CreateServiceRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "CreateServiceRequest", + className: "CreateServiceRequest", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + kvTags: { + serializedName: "kvTags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "CreateServiceRequestKeys" + } + }, + environmentImageRequest: { + serializedName: "environmentImageRequest", + type: { + name: "Composite", + className: "CreateServiceRequestEnvironmentImageRequest" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const ACIServiceCreateRequestDataCollection: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_dataCollection", + type: { + name: "Composite", + className: "ACIServiceCreateRequestDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequestVnetConfiguration: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceCreateRequestVnetConfiguration", + modelProperties: { + ...VnetConfiguration.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequestEncryptionProperties: msRest.CompositeMapper = { + serializedName: "ACIServiceCreateRequest_encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceCreateRequestEncryptionProperties", + modelProperties: { + ...EncryptionProperties.type.modelProperties + } + } +}; + +export const ACIServiceCreateRequest: msRest.CompositeMapper = { + serializedName: "ACI", + type: { + name: "Composite", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "ACIServiceCreateRequest", + modelProperties: { + ...CreateServiceRequest.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + authEnabled: { + serializedName: "authEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + sslEnabled: { + serializedName: "sslEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "ACIServiceCreateRequestDataCollection" + } + }, + sslCertificate: { + serializedName: "sslCertificate", + type: { + name: "String" + } + }, + sslKey: { + serializedName: "sslKey", + type: { + name: "String" + } + }, + cname: { + serializedName: "cname", + type: { + name: "String" + } + }, + dnsNameLabel: { + serializedName: "dnsNameLabel", + type: { + name: "String" + } + }, + vnetConfiguration: { + serializedName: "vnetConfiguration", + type: { + name: "Composite", + className: "ACIServiceCreateRequestVnetConfiguration" + } + }, + encryptionProperties: { + serializedName: "encryptionProperties", + type: { + name: "Composite", + className: "ACIServiceCreateRequestEncryptionProperties" + } + } + } + } +}; + +export const AKSServiceCreateRequestDataCollection: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_dataCollection", + type: { + name: "Composite", + className: "AKSServiceCreateRequestDataCollection", + modelProperties: { + ...ModelDataCollection.type.modelProperties + } + } +}; + +export const AKSServiceCreateRequestAutoScaler: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_autoScaler", + type: { + name: "Composite", + className: "AKSServiceCreateRequestAutoScaler", + modelProperties: { + ...AutoScaler.type.modelProperties + } + } +}; + +export const AKSServiceCreateRequestLivenessProbeRequirements: msRest.CompositeMapper = { + serializedName: "AKSServiceCreateRequest_livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceCreateRequestLivenessProbeRequirements", + modelProperties: { + ...LivenessProbeRequirements.type.modelProperties + } + } +}; + +export const CreateEndpointVariantRequest: msRest.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "CreateEndpointVariantRequest", + modelProperties: { + ...CreateServiceRequest.type.modelProperties, + isDefault: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + }, + trafficPercentile: { + serializedName: "trafficPercentile", + type: { + name: "Number" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AKSServiceCreateRequest: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: CreateServiceRequest.type.polymorphicDiscriminator, + uberParent: "CreateServiceRequest", + className: "AKSServiceCreateRequest", + modelProperties: { + ...CreateEndpointVariantRequest.type.modelProperties, + numReplicas: { + serializedName: "numReplicas", + type: { + name: "Number" + } + }, + dataCollection: { + serializedName: "dataCollection", + type: { + name: "Composite", + className: "AKSServiceCreateRequestDataCollection" + } + }, + computeName: { + serializedName: "computeName", + type: { + name: "String" + } + }, + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + autoScaler: { + serializedName: "autoScaler", + type: { + name: "Composite", + className: "AKSServiceCreateRequestAutoScaler" + } + }, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + maxConcurrentRequestsPerContainer: { + serializedName: "maxConcurrentRequestsPerContainer", + type: { + name: "Number" + } + }, + maxQueueWaitMs: { + serializedName: "maxQueueWaitMs", + type: { + name: "Number" + } + }, + namespace: { + serializedName: "namespace", + type: { + name: "String" + } + }, + scoringTimeoutMs: { + serializedName: "scoringTimeoutMs", + type: { + name: "Number" + } + }, + authEnabled: { + serializedName: "authEnabled", + type: { + name: "Boolean" + } + }, + livenessProbeRequirements: { + serializedName: "livenessProbeRequirements", + type: { + name: "Composite", + className: "AKSServiceCreateRequestLivenessProbeRequirements" + } + }, + aadAuthEnabled: { + serializedName: "aadAuthEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NotebookListCredentialsResult: msRest.CompositeMapper = { + serializedName: "NotebookListCredentialsResult", + type: { + name: "Composite", + className: "NotebookListCredentialsResult", + modelProperties: { + primaryAccessKey: { + serializedName: "primaryAccessKey", + type: { + name: "String" + } + }, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + type: { + name: "String" + } + } + } + } +}; + +export const NotebookPreparationError: msRest.CompositeMapper = { + serializedName: "NotebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "Number" + } + } + } + } +}; + +export const NotebookResourceInfo: msRest.CompositeMapper = { + serializedName: "NotebookResourceInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + notebookPreparationError: { + serializedName: "notebookPreparationError", + type: { + name: "Composite", + className: "NotebookPreparationError" + } + } + } + } +}; + +export const ListNotebookKeysResult: msRest.CompositeMapper = { + serializedName: "ListNotebookKeysResult", + type: { + name: "Composite", + className: "ListNotebookKeysResult", + modelProperties: { + primaryAccessKey: { + readOnly: true, + serializedName: "primaryAccessKey", + type: { + name: "String" + } + }, + secondaryAccessKey: { + readOnly: true, + serializedName: "secondaryAccessKey", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnection: msRest.CompositeMapper = { + serializedName: "WorkspaceConnection", + type: { + name: "Composite", + className: "WorkspaceConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", + type: { + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "String" + } + }, + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionDto: msRest.CompositeMapper = { + serializedName: "WorkspaceConnectionDto", + type: { + name: "Composite", + className: "WorkspaceConnectionDto", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", + type: { + name: "String" + } + }, + target: { + serializedName: "properties.target", + type: { + name: "String" + } + }, + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + } + } + } +}; + +export const UserAssignedIdentityMeta: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentityMeta", + type: { + name: "Composite", + className: "UserAssignedIdentityMeta", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceIdentity: msRest.CompositeMapper = { + serializedName: "ResourceIdentity", + type: { + name: "Composite", + className: "ResourceIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedIdentityMeta" + } + } + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CodeContainerResource: msRest.CompositeMapper = { + serializedName: "CodeContainerResource", + type: { + name: "Composite", + className: "CodeContainerResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const AssetPath: msRest.CompositeMapper = { + serializedName: "AssetPath", + type: { + name: "Composite", + className: "AssetPath", + modelProperties: { + path: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + isDirectory: { + serializedName: "isDirectory", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CodeVersionResource: msRest.CompositeMapper = { + serializedName: "CodeVersionResource", + type: { + name: "Composite", + className: "CodeVersionResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + datastoreId: { + serializedName: "properties.datastoreId", + type: { + name: "String" + } + }, + assetPath: { + serializedName: "properties.assetPath", + type: { + name: "Composite", + className: "AssetPath" + } + }, + path: { + serializedName: "properties.path", + type: { + name: "String" + } + }, + generatedBy: { + serializedName: "properties.generatedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ComponentContainerResource: msRest.CompositeMapper = { + serializedName: "ComponentContainerResource", + type: { + name: "Composite", + className: "ComponentContainerResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const CodeConfiguration: msRest.CompositeMapper = { + serializedName: "CodeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration", + modelProperties: { + codeArtifactId: { + serializedName: "codeArtifactId", + type: { + name: "String" + } + }, + command: { + required: true, + serializedName: "command", + constraints: { + MinLength: 1, + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const ComponentInput: msRest.CompositeMapper = { + serializedName: "ComponentInput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "componentInputType", + clientName: "componentInputType" + }, + uberParent: "ComponentInput", + className: "ComponentInput", + modelProperties: { + optional: { + serializedName: "optional", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + default: { + serializedName: "default", + type: { + name: "String" + } + }, + dataType: { + required: true, + serializedName: "dataType", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + componentInputType: { + required: true, + serializedName: "componentInputType", + type: { + name: "String" + } + } + } + } +}; + +export const ComponentInputRangedNumber: msRest.CompositeMapper = { + serializedName: "RangedNumber", + type: { + name: "Composite", + polymorphicDiscriminator: ComponentInput.type.polymorphicDiscriminator, + uberParent: "ComponentInput", + className: "ComponentInputRangedNumber", + modelProperties: { + ...ComponentInput.type.modelProperties, + min: { + serializedName: "min", + type: { + name: "String" + } + }, + max: { + serializedName: "max", + type: { + name: "String" + } + } + } + } +}; + +export const ComponentInputEnum: msRest.CompositeMapper = { + serializedName: "Enum", + type: { + name: "Composite", + polymorphicDiscriminator: ComponentInput.type.polymorphicDiscriminator, + uberParent: "ComponentInput", + className: "ComponentInputEnum", + modelProperties: { + ...ComponentInput.type.modelProperties, + enum: { + serializedName: "enum", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ComponentInputGeneric: msRest.CompositeMapper = { + serializedName: "Generic", + type: { + name: "Composite", + polymorphicDiscriminator: ComponentInput.type.polymorphicDiscriminator, + uberParent: "ComponentInput", + className: "ComponentInputGeneric", + modelProperties: { + ...ComponentInput.type.modelProperties + } + } +}; + +export const ComponentOutput: msRest.CompositeMapper = { + serializedName: "ComponentOutput", + type: { + name: "Composite", + className: "ComponentOutput", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + dataType: { + required: true, + serializedName: "dataType", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const Component: msRest.CompositeMapper = { + serializedName: "Component", + type: { + name: "Composite", + className: "Component", + modelProperties: { + componentType: { + serializedName: "componentType", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + isDeterministic: { + serializedName: "isDeterministic", + type: { + name: "Boolean" + } + }, + inputs: { + serializedName: "inputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ComponentInput" + } + } + } + }, + outputs: { + serializedName: "outputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ComponentOutput" + } + } + } + } + } + } +}; + +export const ComponentVersionResource: msRest.CompositeMapper = { + serializedName: "ComponentVersionResource", + type: { + name: "Composite", + className: "ComponentVersionResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + environmentId: { + serializedName: "properties.environmentId", + type: { + name: "String" + } + }, + codeConfiguration: { + required: true, + serializedName: "properties.codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + component: { + serializedName: "properties.component", + type: { + name: "Composite", + className: "Component" + } + }, + generatedBy: { + serializedName: "properties.generatedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataContainerResource: msRest.CompositeMapper = { + serializedName: "DataContainerResource", + type: { + name: "Composite", + className: "DataContainerResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const AccountKeySection: msRest.CompositeMapper = { + serializedName: "AccountKeySection", + type: { + name: "Composite", + className: "AccountKeySection", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateSection: msRest.CompositeMapper = { + serializedName: "CertificateSection", + type: { + name: "Composite", + className: "CertificateSection", + modelProperties: { + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + certificate: { + serializedName: "certificate", + type: { + name: "String" + } + }, + thumbprint: { + required: true, + serializedName: "thumbprint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const SasSection: msRest.CompositeMapper = { + serializedName: "SasSection", + type: { + name: "Composite", + className: "SasSection", + modelProperties: { + sasToken: { + serializedName: "sasToken", + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalSection: msRest.CompositeMapper = { + serializedName: "ServicePrincipalSection", + type: { + name: "Composite", + className: "ServicePrincipalSection", + modelProperties: { + authorityUrl: { + serializedName: "authorityUrl", + type: { + name: "String" + } + }, + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + tenantId: { + required: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const SqlAdminSection: msRest.CompositeMapper = { + serializedName: "SqlAdminSection", + type: { + name: "Composite", + className: "SqlAdminSection", + modelProperties: { + userId: { + required: true, + serializedName: "userId", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreCredentials: msRest.CompositeMapper = { + serializedName: "DatastoreCredentials", + type: { + name: "Composite", + className: "DatastoreCredentials", + modelProperties: { + datastoreCredentialsType: { + required: true, + serializedName: "datastoreCredentialsType", + type: { + name: "String" + } + }, + accountKey: { + serializedName: "accountKey", + type: { + name: "Composite", + className: "AccountKeySection" + } + }, + certificate: { + serializedName: "certificate", + type: { + name: "Composite", + className: "CertificateSection" + } + }, + sas: { + serializedName: "sas", + type: { + name: "Composite", + className: "SasSection" + } + }, + servicePrincipal: { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalSection" + } + }, + sqlAdmin: { + serializedName: "sqlAdmin", + type: { + name: "Composite", + className: "SqlAdminSection" + } + } + } + } +}; + +export const AzureDataLakeSection: msRest.CompositeMapper = { + serializedName: "AzureDataLakeSection", + type: { + name: "Composite", + className: "AzureDataLakeSection", + modelProperties: { + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + storeName: { + required: true, + serializedName: "storeName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureMySqlSection: msRest.CompositeMapper = { + serializedName: "AzureMySqlSection", + type: { + name: "Composite", + className: "AzureMySqlSection", + modelProperties: { + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + portNumber: { + required: true, + serializedName: "portNumber", + type: { + name: "Number" + } + }, + serverName: { + required: true, + serializedName: "serverName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzurePostgreSqlSection: msRest.CompositeMapper = { + serializedName: "AzurePostgreSqlSection", + type: { + name: "Composite", + className: "AzurePostgreSqlSection", + modelProperties: { + enableSSL: { + serializedName: "enableSSL", + type: { + name: "Boolean" + } + }, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + portNumber: { + required: true, + serializedName: "portNumber", + type: { + name: "Number" + } + }, + serverName: { + required: true, + serializedName: "serverName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureSqlDatabaseSection: msRest.CompositeMapper = { + serializedName: "AzureSqlDatabaseSection", + type: { + name: "Composite", + className: "AzureSqlDatabaseSection", + modelProperties: { + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + portNumber: { + required: true, + serializedName: "portNumber", + type: { + name: "Number" + } + }, + serverName: { + required: true, + serializedName: "serverName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const AzureStorageSection: msRest.CompositeMapper = { + serializedName: "AzureStorageSection", + type: { + name: "Composite", + className: "AzureStorageSection", + modelProperties: { + accountName: { + required: true, + serializedName: "accountName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + blobCacheTimeout: { + serializedName: "blobCacheTimeout", + type: { + name: "Number" + } + }, + containerName: { + required: true, + serializedName: "containerName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + endpoint: { + required: true, + serializedName: "endpoint", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "protocol", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const GlusterFsSection: msRest.CompositeMapper = { + serializedName: "GlusterFsSection", + type: { + name: "Composite", + className: "GlusterFsSection", + modelProperties: { + serverAddress: { + required: true, + serializedName: "serverAddress", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + volumeName: { + required: true, + serializedName: "volumeName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreContents: msRest.CompositeMapper = { + serializedName: "DatastoreContents", + type: { + name: "Composite", + className: "DatastoreContents", + modelProperties: { + datastoreContentsType: { + required: true, + serializedName: "datastoreContentsType", + type: { + name: "String" + } + }, + azureDataLake: { + serializedName: "azureDataLake", + type: { + name: "Composite", + className: "AzureDataLakeSection" + } + }, + azureMySql: { + serializedName: "azureMySql", + type: { + name: "Composite", + className: "AzureMySqlSection" + } + }, + azurePostgreSql: { + serializedName: "azurePostgreSql", + type: { + name: "Composite", + className: "AzurePostgreSqlSection" + } + }, + azureSqlDatabase: { + serializedName: "azureSqlDatabase", + type: { + name: "Composite", + className: "AzureSqlDatabaseSection" + } + }, + azureStorage: { + serializedName: "azureStorage", + type: { + name: "Composite", + className: "AzureStorageSection" + } + }, + glusterFs: { + serializedName: "glusterFs", + type: { + name: "Composite", + className: "GlusterFsSection" + } + } + } + } +}; + +export const LinkedInfo: msRest.CompositeMapper = { + serializedName: "LinkedInfo", + type: { + name: "Composite", + className: "LinkedInfo", + modelProperties: { + linkedId: { + serializedName: "linkedId", + type: { + name: "String" + } + }, + linkedResourceName: { + serializedName: "linkedResourceName", + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + } + } + } +}; + +export const DatastorePropertiesResource: msRest.CompositeMapper = { + serializedName: "DatastorePropertiesResource", + type: { + name: "Composite", + className: "DatastorePropertiesResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + contents: { + required: true, + serializedName: "properties.contents", + type: { + name: "Composite", + className: "DatastoreContents" + } + }, + hasBeenValidated: { + readOnly: true, + serializedName: "properties.hasBeenValidated", + type: { + name: "Boolean" + } + }, + isDefault: { + serializedName: "properties.isDefault", + type: { + name: "Boolean" + } + }, + linkedInfo: { + serializedName: "properties.linkedInfo", + type: { + name: "Composite", + className: "LinkedInfo" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataVersionResource: msRest.CompositeMapper = { + serializedName: "DataVersionResource", + type: { + name: "Composite", + className: "DataVersionResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + datasetType: { + serializedName: "properties.datasetType", + type: { + name: "String" + } + }, + datastoreId: { + serializedName: "properties.datastoreId", + type: { + name: "String" + } + }, + assetPath: { + serializedName: "properties.assetPath", + type: { + name: "Composite", + className: "AssetPath" + } + }, + path: { + serializedName: "properties.path", + type: { + name: "String" + } + }, + generatedBy: { + serializedName: "properties.generatedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EnvironmentContainerResource: msRest.CompositeMapper = { + serializedName: "EnvironmentContainerResource", + type: { + name: "Composite", + className: "EnvironmentContainerResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DockerImagePlatform: msRest.CompositeMapper = { + serializedName: "DockerImagePlatform", + type: { + name: "Composite", + className: "DockerImagePlatform", + modelProperties: { + operatingSystemType: { + serializedName: "operatingSystemType", + type: { + name: "String" + } + } + } + } +}; + +export const DockerSpecification: msRest.CompositeMapper = { + serializedName: "DockerSpecification", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "dockerSpecificationType", + clientName: "dockerSpecificationType" + }, + uberParent: "DockerSpecification", + className: "DockerSpecification", + modelProperties: { + platform: { + serializedName: "platform", + type: { + name: "Composite", + className: "DockerImagePlatform" + } + }, + dockerSpecificationType: { + required: true, + serializedName: "dockerSpecificationType", + type: { + name: "String" + } + } + } + } +}; + +export const DockerImage: msRest.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + uberParent: "DockerSpecification", + className: "DockerImage", + modelProperties: { + ...DockerSpecification.type.modelProperties, + dockerImageUri: { + required: true, + serializedName: "dockerImageUri", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const DockerBuild: msRest.CompositeMapper = { + serializedName: "Build", + type: { + name: "Composite", + polymorphicDiscriminator: DockerSpecification.type.polymorphicDiscriminator, + uberParent: "DockerSpecification", + className: "DockerBuild", + modelProperties: { + ...DockerSpecification.type.modelProperties, + dockerfile: { + required: true, + serializedName: "dockerfile", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + context: { + serializedName: "context", + type: { + name: "String" + } + } + } + } +}; + +export const Route: msRest.CompositeMapper = { + serializedName: "Route", + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + required: true, + serializedName: "path", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + port: { + required: true, + serializedName: "port", + type: { + name: "Number" + } + } + } + } +}; + +export const InferenceContainerProperties: msRest.CompositeMapper = { + serializedName: "InferenceContainerProperties", + 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 EnvironmentSpecificationVersionResource: msRest.CompositeMapper = { + serializedName: "EnvironmentSpecificationVersionResource", + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + environmentSpecificationType: { + readOnly: true, + serializedName: "properties.environmentSpecificationType", + type: { + name: "String" + } + }, + docker: { + serializedName: "properties.docker", + type: { + name: "Composite", + className: "DockerSpecification" + } + }, + condaFile: { + serializedName: "properties.condaFile", + type: { + name: "String" + } + }, + inferenceContainerProperties: { + serializedName: "properties.inferenceContainerProperties", + type: { + name: "Composite", + className: "InferenceContainerProperties" + } + }, + generatedBy: { + serializedName: "properties.generatedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const GeneralSettings: msRest.CompositeMapper = { + serializedName: "GeneralSettings", + type: { + name: "Composite", + className: "GeneralSettings", + modelProperties: { + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + enableModelExplainability: { + serializedName: "enableModelExplainability", + type: { + name: "Boolean" + } + }, + taskType: { + serializedName: "taskType", + type: { + name: "String" + } + } + } + } +}; + +export const ExperimentLimits: msRest.CompositeMapper = { + serializedName: "ExperimentLimits", + type: { + name: "Composite", + className: "ExperimentLimits", + modelProperties: { + maxTrials: { + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + experimentTimeoutInMinutes: { + serializedName: "experimentTimeoutInMinutes", + type: { + name: "Number" + } + }, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxCoresPerTrial: { + serializedName: "maxCoresPerTrial", + type: { + name: "Number" + } + } + } + } +}; + +export const TrainingDataSettings: msRest.CompositeMapper = { + serializedName: "TrainingDataSettings", + type: { + name: "Composite", + className: "TrainingDataSettings", + modelProperties: { + datasetArmId: { + serializedName: "datasetArmId", + type: { + name: "String" + } + }, + targetColumnName: { + serializedName: "targetColumnName", + type: { + name: "String" + } + }, + weightColumnName: { + serializedName: "weightColumnName", + type: { + name: "String" + } + } + } + } +}; + +export const ValidationDataSettings: msRest.CompositeMapper = { + serializedName: "ValidationDataSettings", + type: { + name: "Composite", + className: "ValidationDataSettings", + modelProperties: { + datasetArmId: { + serializedName: "datasetArmId", + type: { + name: "String" + } + }, + nCrossValidations: { + serializedName: "nCrossValidations", + type: { + name: "Number" + } + }, + validationSize: { + serializedName: "validationSize", + type: { + name: "Number" + } + } + } + } +}; + +export const DataSettings: msRest.CompositeMapper = { + serializedName: "DataSettings", + type: { + name: "Composite", + className: "DataSettings", + modelProperties: { + trainingData: { + serializedName: "trainingData", + type: { + name: "Composite", + className: "TrainingDataSettings" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "ValidationDataSettings" + } + } + } + } +}; + +export const FeaturizationSettings: msRest.CompositeMapper = { + serializedName: "FeaturizationSettings", + type: { + name: "Composite", + className: "FeaturizationSettings", + modelProperties: { + featurizationConfig: { + serializedName: "featurizationConfig", + type: { + name: "String" + } + }, + enableDnnFeaturization: { + serializedName: "enableDnnFeaturization", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ForecastingSettings: msRest.CompositeMapper = { + serializedName: "ForecastingSettings", + type: { + name: "Composite", + className: "ForecastingSettings", + modelProperties: { + forecastingCountryOrRegion: { + serializedName: "forecastingCountryOrRegion", + type: { + name: "String" + } + }, + timeColumnName: { + serializedName: "timeColumnName", + type: { + name: "String" + } + }, + targetLags: { + serializedName: "targetLags", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", + type: { + name: "Number" + } + }, + forecastHorizon: { + serializedName: "forecastHorizon", + type: { + name: "Number" + } + }, + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enableDnnTraining: { + serializedName: "enableDnnTraining", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TrainingSettings: msRest.CompositeMapper = { + serializedName: "TrainingSettings", + type: { + name: "Composite", + className: "TrainingSettings", + modelProperties: { + trialTimeoutInMinutes: { + serializedName: "trialTimeoutInMinutes", + type: { + name: "Number" + } + }, + blockListModels: { + serializedName: "blockListModels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowListModels: { + serializedName: "allowListModels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + experimentExitScore: { + serializedName: "experimentExitScore", + type: { + name: "Number" + } + }, + enableEarlyTermination: { + serializedName: "enableEarlyTermination", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ComputeBinding: msRest.CompositeMapper = { + serializedName: "ComputeBinding", + type: { + name: "Composite", + className: "ComputeBinding", + modelProperties: { + computeId: { + serializedName: "computeId", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + isLocal: { + serializedName: "isLocal", + type: { + name: "Boolean" + } + } + } + } +}; + +export const JobOutput: msRest.CompositeMapper = { + serializedName: "JobOutput", + type: { + name: "Composite", + className: "JobOutput", + modelProperties: { + datastoreId: { + readOnly: true, + serializedName: "datastoreId", + type: { + name: "String" + } + }, + path: { + readOnly: true, + serializedName: "path", + type: { + name: "String" + } + } + } + } +}; + +export const JobBaseInteractionEndpoints: msRest.CompositeMapper = { + serializedName: "JobBase_interactionEndpoints", + type: { + name: "Composite", + className: "JobBaseInteractionEndpoints", + modelProperties: { + tracking: { + serializedName: "Tracking", + type: { + name: "String" + } + }, + studio: { + serializedName: "Studio", + type: { + name: "String" + } + }, + grafana: { + serializedName: "Grafana", + type: { + name: "String" + } + }, + tensorboard: { + serializedName: "Tensorboard", + type: { + name: "String" + } + }, + local: { + serializedName: "Local", + type: { + name: "String" + } + } + } + } +}; + +export const JobBase: msRest.CompositeMapper = { + serializedName: "JobBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + uberParent: "JobBase", + className: "JobBase", + modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + interactionEndpoints: { + readOnly: true, + serializedName: "interactionEndpoints", + type: { + name: "Composite", + className: "JobBaseInteractionEndpoints" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + jobType: { + required: true, + serializedName: "jobType", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeJobBase: msRest.CompositeMapper = { + serializedName: "ComputeJobBase", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "ComputeJobBase", + modelProperties: { + ...JobBase.type.modelProperties, + experimentName: { + serializedName: "experimentName", + type: { + name: "String" + } + }, + computeBinding: { + required: true, + serializedName: "computeBinding", + type: { + name: "Composite", + className: "ComputeBinding" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Composite", + className: "JobOutput" + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoMLJob: msRest.CompositeMapper = { + serializedName: "AutoML", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "AutoMLJob", + modelProperties: { + ...ComputeJobBase.type.modelProperties, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + generalSettings: { + serializedName: "generalSettings", + type: { + name: "Composite", + className: "GeneralSettings" + } + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "ExperimentLimits" + } + }, + dataSettings: { + serializedName: "dataSettings", + type: { + name: "Composite", + className: "DataSettings" + } + }, + featurizationSettings: { + serializedName: "featurizationSettings", + type: { + name: "Composite", + className: "FeaturizationSettings" + } + }, + forecastingSettings: { + serializedName: "forecastingSettings", + type: { + name: "Composite", + className: "ForecastingSettings" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "TrainingSettings" + } + } + } + } +}; + +export const DataBinding: msRest.CompositeMapper = { + serializedName: "DataBinding", + type: { + name: "Composite", + className: "DataBinding", + modelProperties: { + sourceDataReference: { + serializedName: "sourceDataReference", + type: { + name: "String" + } + }, + localReference: { + serializedName: "localReference", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + } + } + } +}; + +export const DistributionConfiguration: msRest.CompositeMapper = { + serializedName: "DistributionConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + uberParent: "DistributionConfiguration", + className: "DistributionConfiguration", + modelProperties: { + distributionType: { + required: true, + serializedName: "distributionType", + type: { + name: "String" + } + } + } + } +}; + +export const TensorFlow: msRest.CompositeMapper = { + serializedName: "TensorFlow", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "TensorFlow", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + workerCount: { + serializedName: "workerCount", + type: { + name: "Number" + } + }, + parameterServerCount: { + serializedName: "parameterServerCount", + type: { + name: "Number" + } + } + } + } +}; + +export const Mpi: msRest.CompositeMapper = { + serializedName: "Mpi", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "Mpi", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + type: { + name: "Number" + } + } + } + } +}; + +export const PyTorch: msRest.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + polymorphicDiscriminator: DistributionConfiguration.type.polymorphicDiscriminator, + uberParent: "DistributionConfiguration", + className: "PyTorch", + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCount: { + serializedName: "processCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IdentityConfiguration: msRest.CompositeMapper = { + serializedName: "IdentityConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "identityType", + clientName: "identityType" + }, + uberParent: "IdentityConfiguration", + className: "IdentityConfiguration", + modelProperties: { + identityType: { + required: true, + serializedName: "identityType", + type: { + name: "String" + } + } + } + } +}; + +export const AmlTokenConfiguration: msRest.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + polymorphicDiscriminator: IdentityConfiguration.type.polymorphicDiscriminator, + uberParent: "IdentityConfiguration", + className: "AmlTokenConfiguration", + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const ManagedIdentityConfiguration: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: IdentityConfiguration.type.polymorphicDiscriminator, + uberParent: "IdentityConfiguration", + className: "ManagedIdentityConfiguration", + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + type: { + name: "Uuid" + } + }, + msiResourceId: { + serializedName: "msiResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalConfiguration: msRest.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + polymorphicDiscriminator: IdentityConfiguration.type.polymorphicDiscriminator, + uberParent: "IdentityConfiguration", + className: "ServicePrincipalConfiguration", + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + secret: { + required: true, + serializedName: "secret", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const CommandJob: msRest.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "CommandJob", + modelProperties: { + ...ComputeJobBase.type.modelProperties, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + maxRunDurationSeconds: { + serializedName: "maxRunDurationSeconds", + type: { + name: "Number" + } + }, + codeConfiguration: { + required: true, + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + dataBindings: { + serializedName: "dataBindings", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DataBinding" + } + } + } + }, + distributionConfiguration: { + serializedName: "distributionConfiguration", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + identityConfiguration: { + serializedName: "identityConfiguration", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + parameters: { + readOnly: true, + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const InputData: msRest.CompositeMapper = { + serializedName: "InputData", + type: { + name: "Composite", + className: "InputData", + modelProperties: { + datasetId: { + serializedName: "datasetId", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ComponentJobInput: msRest.CompositeMapper = { + serializedName: "ComponentJobInput", + type: { + name: "Composite", + className: "ComponentJobInput", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Composite", + className: "InputData" + } + }, + inputBinding: { + serializedName: "inputBinding", + type: { + name: "String" + } + } + } + } +}; + +export const OutputData: msRest.CompositeMapper = { + serializedName: "OutputData", + type: { + name: "Composite", + className: "OutputData", + modelProperties: { + datasetName: { + serializedName: "datasetName", + type: { + name: "String" + } + }, + datastore: { + serializedName: "datastore", + type: { + name: "String" + } + }, + datapath: { + serializedName: "datapath", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + } + } + } +}; + +export const ComponentJobOutput: msRest.CompositeMapper = { + serializedName: "ComponentJobOutput", + type: { + name: "Composite", + className: "ComponentJobOutput", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Composite", + className: "OutputData" + } + }, + outputBinding: { + serializedName: "outputBinding", + type: { + name: "String" + } + } + } + } +}; + +export const ComponentJob: msRest.CompositeMapper = { + serializedName: "ComponentJob", + type: { + name: "Composite", + className: "ComponentJob", + modelProperties: { + computeBinding: { + serializedName: "computeBinding", + type: { + name: "Composite", + className: "ComputeBinding" + } + }, + componentId: { + serializedName: "componentId", + type: { + name: "String" + } + }, + inputs: { + serializedName: "inputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ComponentJobInput" + } + } + } + }, + outputs: { + serializedName: "outputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ComponentJobOutput" + } + } + } + } + } + } +}; + +export const PipelineInput: msRest.CompositeMapper = { + serializedName: "PipelineInput", + type: { + name: "Composite", + className: "PipelineInput", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Composite", + className: "InputData" + } + } + } + } +}; + +export const PipelineOutput: msRest.CompositeMapper = { + serializedName: "PipelineOutput", + type: { + name: "Composite", + className: "PipelineOutput", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Composite", + className: "OutputData" + } + } + } + } +}; + +export const PipelineModel: msRest.CompositeMapper = { + serializedName: "Pipeline", + type: { + name: "Composite", + className: "PipelineModel", + modelProperties: { + continueRunOnStepFailure: { + serializedName: "continueRunOnStepFailure", + type: { + name: "Boolean" + } + }, + defaultDatastoreName: { + serializedName: "defaultDatastoreName", + type: { + name: "String" + } + }, + componentJobs: { + serializedName: "componentJobs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ComponentJob" + } + } + } + }, + inputs: { + serializedName: "inputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "PipelineInput" + } + } + } + }, + outputs: { + serializedName: "outputs", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "PipelineOutput" + } + } + } + } + } + } +}; + +export const PipelineJob: msRest.CompositeMapper = { + serializedName: "Pipeline", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "PipelineJob", + modelProperties: { + ...ComputeJobBase.type.modelProperties, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + pipelineType: { + serializedName: "pipelineType", + type: { + name: "String" + } + }, + pipelineProperty: { + serializedName: "pipeline", + type: { + name: "Composite", + className: "PipelineModel" + } + } + } + } +}; + +export const ParameterSamplingConfiguration: msRest.CompositeMapper = { + serializedName: "ParameterSamplingConfiguration", + type: { + name: "Composite", + className: "ParameterSamplingConfiguration", + modelProperties: { + parameterSpace: { + required: true, + serializedName: "parameterSpace", + type: { + name: "Object" + } + }, + samplingType: { + required: true, + serializedName: "samplingType", + type: { + name: "String" + } + } + } + } +}; + +export const EarlyTerminationPolicyConfiguration: msRest.CompositeMapper = { + serializedName: "EarlyTerminationPolicyConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, + uberParent: "EarlyTerminationPolicyConfiguration", + className: "EarlyTerminationPolicyConfiguration", + modelProperties: { + evaluationInterval: { + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + delayEvaluation: { + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + policyType: { + required: true, + serializedName: "policyType", + type: { + name: "String" + } + } + } + } +}; + +export const BanditPolicyConfiguration: msRest.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicyConfiguration.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicyConfiguration", + className: "BanditPolicyConfiguration", + modelProperties: { + ...EarlyTerminationPolicyConfiguration.type.modelProperties, + slackFactor: { + serializedName: "slackFactor", + type: { + name: "Number" + } + }, + slackAmount: { + serializedName: "slackAmount", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicyConfiguration: msRest.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicyConfiguration.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicyConfiguration", + className: "MedianStoppingPolicyConfiguration", + modelProperties: { + ...EarlyTerminationPolicyConfiguration.type.modelProperties + } + } +}; + +export const TruncationSelectionPolicyConfiguration: msRest.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + polymorphicDiscriminator: EarlyTerminationPolicyConfiguration.type.polymorphicDiscriminator, + uberParent: "EarlyTerminationPolicyConfiguration", + className: "TruncationSelectionPolicyConfiguration", + modelProperties: { + ...EarlyTerminationPolicyConfiguration.type.modelProperties, + truncationPercentage: { + serializedName: "truncationPercentage", + type: { + name: "Number" + } + }, + excludeFinishedJobs: { + serializedName: "excludeFinishedJobs", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TerminationConfiguration: msRest.CompositeMapper = { + serializedName: "TerminationConfiguration", + type: { + name: "Composite", + className: "TerminationConfiguration", + modelProperties: { + maxTotalRuns: { + serializedName: "maxTotalRuns", + type: { + name: "Number" + } + }, + maxConcurrentRuns: { + serializedName: "maxConcurrentRuns", + type: { + name: "Number" + } + }, + maxDurationMinutes: { + serializedName: "maxDurationMinutes", + type: { + name: "Number" + } + }, + earlyTerminationPolicyConfiguration: { + serializedName: "earlyTerminationPolicyConfiguration", + type: { + name: "Composite", + className: "EarlyTerminationPolicyConfiguration" + } + } + } + } +}; + +export const EvaluationConfiguration: msRest.CompositeMapper = { + serializedName: "EvaluationConfiguration", + type: { + name: "Composite", + className: "EvaluationConfiguration", + modelProperties: { + primaryMetricName: { + required: true, + serializedName: "primaryMetricName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + primaryMetricGoal: { + required: true, + serializedName: "primaryMetricGoal", + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: msRest.CompositeMapper = { + serializedName: "TrialComponent", + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + environmentId: { + serializedName: "environmentId", + type: { + name: "String" + } + }, + dataBindings: { + serializedName: "dataBindings", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DataBinding" + } + } + } + }, + environmentVariables: { + serializedName: "environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + distributionConfiguration: { + serializedName: "distributionConfiguration", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + } + } + } +}; + +export const SweepJob: msRest.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + polymorphicDiscriminator: JobBase.type.polymorphicDiscriminator, + uberParent: "JobBase", + className: "SweepJob", + modelProperties: { + ...ComputeJobBase.type.modelProperties, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + parameterSamplingConfiguration: { + required: true, + serializedName: "parameterSamplingConfiguration", + type: { + name: "Composite", + className: "ParameterSamplingConfiguration" + } + }, + terminationConfiguration: { + serializedName: "terminationConfiguration", + type: { + name: "Composite", + className: "TerminationConfiguration" + } + }, + evaluationConfiguration: { + required: true, + serializedName: "evaluationConfiguration", + type: { + name: "Composite", + className: "EvaluationConfiguration" + } + }, + trialComponent: { + serializedName: "trialComponent", + type: { + name: "Composite", + className: "TrialComponent" + } + }, + identityConfiguration: { + serializedName: "identityConfiguration", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + } + } + } +}; + +export const LabelClass: msRest.CompositeMapper = { + serializedName: "LabelClass", + type: { + name: "Composite", + className: "LabelClass", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + subclasses: { + serializedName: "subclasses", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "LabelClass" + } + } + } + } + } + } +}; + +export const LabelCategory: msRest.CompositeMapper = { + serializedName: "LabelCategory", + type: { + name: "Composite", + className: "LabelCategory", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + allowMultiSelect: { + serializedName: "allowMultiSelect", + type: { + name: "Boolean" + } + }, + classes: { + serializedName: "classes", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "LabelClass" + } + } + } + } + } + } +}; + +export const LabelingJobInstructions: msRest.CompositeMapper = { + serializedName: "LabelingJobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions", + modelProperties: { + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingDatasetConfiguration: msRest.CompositeMapper = { + serializedName: "LabelingDatasetConfiguration", + type: { + name: "Composite", + className: "LabelingDatasetConfiguration", + modelProperties: { + assetName: { + serializedName: "assetName", + type: { + name: "String" + } + }, + incrementalDatasetRefreshEnabled: { + serializedName: "incrementalDatasetRefreshEnabled", + type: { + name: "Boolean" + } + }, + datasetVersion: { + serializedName: "datasetVersion", + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfiguration: msRest.CompositeMapper = { + serializedName: "MLAssistConfiguration", + type: { + name: "Composite", + className: "MLAssistConfiguration", + modelProperties: { + inferencingComputeBinding: { + serializedName: "inferencingComputeBinding", + type: { + name: "Composite", + className: "ComputeBinding" + } + }, + trainingComputeBinding: { + serializedName: "trainingComputeBinding", + type: { + name: "Composite", + className: "ComputeBinding" + } + }, + mlAssistEnabled: { + serializedName: "mlAssistEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const LabelingJobMediaProperties: msRest.CompositeMapper = { + serializedName: "LabelingJobMediaProperties", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobMediaProperties", + modelProperties: { + mediaType: { + required: true, + serializedName: "mediaType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobImageProperties: msRest.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + polymorphicDiscriminator: LabelingJobMediaProperties.type.polymorphicDiscriminator, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobImageProperties", + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobTextProperties: msRest.CompositeMapper = { + serializedName: "Text", + type: { + name: "Composite", + polymorphicDiscriminator: LabelingJobMediaProperties.type.polymorphicDiscriminator, + uberParent: "LabelingJobMediaProperties", + className: "LabelingJobTextProperties", + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const ProgressMetrics: msRest.CompositeMapper = { + serializedName: "ProgressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics", + modelProperties: { + totalDatapointCount: { + readOnly: true, + serializedName: "totalDatapointCount", + type: { + name: "Number" + } + }, + completedDatapointCount: { + readOnly: true, + serializedName: "completedDatapointCount", + type: { + name: "Number" + } + }, + skippedDatapointCount: { + readOnly: true, + serializedName: "skippedDatapointCount", + type: { + name: "Number" + } + }, + incrementalDatasetLastRefreshTime: { + readOnly: true, + serializedName: "incrementalDatasetLastRefreshTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const StatusMessage: msRest.CompositeMapper = { + serializedName: "StatusMessage", + type: { + name: "Composite", + className: "StatusMessage", + modelProperties: { + level: { + readOnly: true, + serializedName: "level", + type: { + name: "String" + } + }, + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const JobBaseResource: msRest.CompositeMapper = { + serializedName: "JobBaseResource", + type: { + name: "Composite", + className: "JobBaseResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + required: true, + serializedName: "properties", + type: { + name: "Composite", + className: "JobBase" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const LabelingJobResource: msRest.CompositeMapper = { + serializedName: "LabelingJobResource", + type: { + name: "Composite", + className: "LabelingJobResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + interactionEndpoints: { + readOnly: true, + serializedName: "properties.interactionEndpoints", + type: { + name: "Composite", + className: "JobBaseInteractionEndpoints" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + jobType: { + required: true, + serializedName: "properties.jobType", + type: { + name: "String" + } + }, + labelCategories: { + serializedName: "properties.labelCategories", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "LabelCategory" + } + } + } + }, + jobInstructions: { + serializedName: "properties.jobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions" + } + }, + datasetConfiguration: { + serializedName: "properties.datasetConfiguration", + type: { + name: "Composite", + className: "LabelingDatasetConfiguration" + } + }, + mlAssistConfiguration: { + serializedName: "properties.mlAssistConfiguration", + type: { + name: "Composite", + className: "MLAssistConfiguration" + } + }, + labelingJobMediaProperties: { + serializedName: "properties.labelingJobMediaProperties", + type: { + name: "Composite", + className: "LabelingJobMediaProperties" + } + }, + projectId: { + readOnly: true, + serializedName: "properties.projectId", + type: { + name: "Uuid" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + progressMetrics: { + readOnly: true, + serializedName: "properties.progressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics" + } + }, + statusMessages: { + readOnly: true, + serializedName: "properties.statusMessages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ExportSummary: msRest.CompositeMapper = { + serializedName: "ExportSummary", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "format", + clientName: "format" + }, + uberParent: "ExportSummary", + className: "ExportSummary", + modelProperties: { + labelingJobId: { + readOnly: true, + serializedName: "labelingJobId", + type: { + name: "String" + } + }, + exportedRowCount: { + readOnly: true, + serializedName: "exportedRowCount", + type: { + name: "Number" + } + }, + startTimeUtc: { + readOnly: true, + serializedName: "startTimeUtc", + type: { + name: "DateTime" + } + }, + endTimeUtc: { + readOnly: true, + serializedName: "endTimeUtc", + type: { + name: "DateTime" + } + }, + format: { + required: true, + serializedName: "format", + type: { + name: "String" + } + } + } + } +}; + +export const CocoExportSummary: msRest.CompositeMapper = { + serializedName: "Coco", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "CocoExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + snapshotPath: { + readOnly: true, + serializedName: "snapshotPath", + type: { + name: "String" + } + }, + containerName: { + readOnly: true, + serializedName: "containerName", + type: { + name: "String" + } + } + } + } +}; + +export const CsvExportSummary: msRest.CompositeMapper = { + serializedName: "CSV", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "CsvExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + snapshotPath: { + readOnly: true, + serializedName: "snapshotPath", + type: { + name: "String" + } + }, + containerName: { + readOnly: true, + serializedName: "containerName", + type: { + name: "String" + } + } + } + } +}; + +export const DatasetExportSummary: msRest.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + uberParent: "ExportSummary", + className: "DatasetExportSummary", + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + readOnly: true, + serializedName: "labeledAssetName", + type: { + name: "String" + } + } + } + } +}; + +export const ModelContainerResource: msRest.CompositeMapper = { + serializedName: "ModelContainerResource", + type: { + name: "Composite", + className: "ModelContainerResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + latestVersions: { + readOnly: true, + serializedName: "properties.latestVersions", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ModelVersionResource: msRest.CompositeMapper = { + serializedName: "ModelVersionResource", + type: { + name: "Composite", + className: "ModelVersionResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + stage: { + serializedName: "properties.stage", + type: { + name: "String" + } + }, + flavors: { + serializedName: "properties.flavors", + type: { + name: "Dictionary", + value: { + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + }, + datastoreId: { + serializedName: "properties.datastoreId", + type: { + name: "String" + } + }, + assetPath: { + serializedName: "properties.assetPath", + type: { + name: "Composite", + className: "AssetPath" + } + }, + path: { + serializedName: "properties.path", + type: { + name: "String" + } + }, + generatedBy: { + serializedName: "properties.generatedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const OnlineDeploymentScaleSettings: msRest.CompositeMapper = { + serializedName: "OnlineDeploymentScaleSettings", + type: { + name: "Composite", + className: "OnlineDeploymentScaleSettings", + modelProperties: { + minimum: { + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + serializedName: "maximum", + type: { + name: "Number" + } + }, + instanceCount: { + serializedName: "instanceCount", + type: { + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentConfigurationBase: msRest.CompositeMapper = { + serializedName: "DeploymentConfigurationBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "DeploymentConfigurationBase", + className: "DeploymentConfigurationBase", + modelProperties: { + appInsightsEnabled: { + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + maxConcurrentRequestsPerInstance: { + serializedName: "maxConcurrentRequestsPerInstance", + type: { + name: "Number" + } + }, + maxQueueWaitMs: { + serializedName: "maxQueueWaitMs", + type: { + name: "Number" + } + }, + scoringTimeoutMs: { + serializedName: "scoringTimeoutMs", + type: { + name: "Number" + } + }, + livenessProbeRequirements: { + serializedName: "livenessProbeRequirements", + type: { + name: "Composite", + className: "LivenessProbeRequirements" + } + }, + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const AksDeploymentConfiguration: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: DeploymentConfigurationBase.type.polymorphicDiscriminator, + uberParent: "DeploymentConfigurationBase", + className: "AksDeploymentConfiguration", + modelProperties: { + ...DeploymentConfigurationBase.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", + type: { + name: "Composite", + className: "ContainerResourceRequirements" + } + }, + modelDataCollection: { + serializedName: "modelDataCollection", + type: { + name: "Composite", + className: "ModelDataCollection" + } + } + } + } +}; + +export const ManagedDeploymentConfiguration: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: DeploymentConfigurationBase.type.polymorphicDiscriminator, + uberParent: "DeploymentConfigurationBase", + className: "ManagedDeploymentConfiguration", + modelProperties: { + ...DeploymentConfigurationBase.type.modelProperties, + instanceType: { + serializedName: "instanceType", + type: { + name: "String" + } + }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, + readinessProbeRequirements: { + serializedName: "readinessProbeRequirements", + type: { + name: "Composite", + className: "LivenessProbeRequirements" + } + } + } + } +}; + +export const AssetReferenceBase: msRest.CompositeMapper = { + serializedName: "AssetReferenceBase", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "referenceType", + clientName: "referenceType" + }, + uberParent: "AssetReferenceBase", + className: "AssetReferenceBase", + modelProperties: { + referenceType: { + required: true, + serializedName: "referenceType", + type: { + name: "String" + } + } + } + } +}; + +export const IdAssetReference: msRest.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "IdAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + required: true, + serializedName: "assetId", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const DataPathAssetReference: msRest.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "DataPathAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + path: { + serializedName: "path", + type: { + name: "String" + } + }, + datastoreId: { + serializedName: "datastoreId", + type: { + name: "String" + } + } + } + } +}; + +export const OutputPathAssetReference: msRest.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + uberParent: "AssetReferenceBase", + className: "OutputPathAssetReference", + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + path: { + serializedName: "path", + type: { + name: "String" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineDeploymentTrackedResource: msRest.CompositeMapper = { + serializedName: "OnlineDeploymentTrackedResource", + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + scaleSettings: { + serializedName: "properties.scaleSettings", + type: { + name: "Composite", + className: "OnlineDeploymentScaleSettings" + } + }, + deploymentConfiguration: { + required: true, + serializedName: "properties.deploymentConfiguration", + type: { + name: "Composite", + className: "DeploymentConfigurationBase" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + modelReference: { + required: true, + serializedName: "properties.modelReference", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + codeConfiguration: { + serializedName: "properties.codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + environmentId: { + serializedName: "properties.environmentId", + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "properties.environmentVariables", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PartialOnlineDeployment: msRest.CompositeMapper = { + serializedName: "PartialOnlineDeployment", + type: { + name: "Composite", + className: "PartialOnlineDeployment", + modelProperties: { + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineDeploymentScaleSettings" + } + }, + deploymentConfiguration: { + serializedName: "deploymentConfiguration", + type: { + name: "Composite", + className: "DeploymentConfigurationBase" + } + } + } + } +}; + +export const PartialOnlineDeploymentPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialOnlineDeploymentPartialTrackedResource", + type: { + name: "Composite", + className: "PartialOnlineDeploymentPartialTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineDeployment" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DeploymentLogsRequest: msRest.CompositeMapper = { + serializedName: "DeploymentLogsRequest", + type: { + name: "Composite", + className: "DeploymentLogsRequest", + modelProperties: { + containerType: { + serializedName: "containerType", + type: { + name: "String" + } + }, + tail: { + serializedName: "tail", + type: { + name: "Number" + } + } + } + } +}; + +export const DeploymentLogs: msRest.CompositeMapper = { + serializedName: "DeploymentLogs", + type: { + name: "Composite", + className: "DeploymentLogs", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeConfiguration: msRest.CompositeMapper = { + serializedName: "ComputeConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + uberParent: "ComputeConfiguration", + className: "ComputeConfiguration", + modelProperties: { + computeType: { + required: true, + serializedName: "computeType", + type: { + name: "String" + } + } + } + } +}; + +export const AksComputeConfiguration: msRest.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + polymorphicDiscriminator: ComputeConfiguration.type.polymorphicDiscriminator, + uberParent: "ComputeConfiguration", + className: "AksComputeConfiguration", + modelProperties: { + ...ComputeConfiguration.type.modelProperties, + namespace: { + serializedName: "namespace", + type: { + name: "String" + } + }, + computeName: { + required: true, + serializedName: "computeName", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedComputeConfiguration: msRest.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + polymorphicDiscriminator: ComputeConfiguration.type.polymorphicDiscriminator, + uberParent: "ComputeConfiguration", + className: "ManagedComputeConfiguration", + modelProperties: { + ...ComputeConfiguration.type.modelProperties + } + } +}; + +export const AzureMLComputeConfiguration: msRest.CompositeMapper = { + serializedName: "AzureMLCompute", + type: { + name: "Composite", + polymorphicDiscriminator: ComputeConfiguration.type.polymorphicDiscriminator, + uberParent: "ComputeConfiguration", + className: "AzureMLComputeConfiguration", + modelProperties: { + ...ComputeConfiguration.type.modelProperties + } + } +}; + +export const OnlineEndpointTrackedResource: msRest.CompositeMapper = { + serializedName: "OnlineEndpointTrackedResource", + type: { + name: "Composite", + className: "OnlineEndpointTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + constraints: { + Pattern: /[a-zA-Z0-9_]/ + }, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + trafficRules: { + serializedName: "properties.trafficRules", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + }, + computeConfiguration: { + required: true, + serializedName: "properties.computeConfiguration", + type: { + name: "Composite", + className: "ComputeConfiguration" + } + }, + endpoint: { + readOnly: true, + serializedName: "properties.endpoint", + type: { + name: "String" + } + }, + swaggerEndpoint: { + readOnly: true, + serializedName: "properties.swaggerEndpoint", + type: { + name: "String" + } + }, + authMode: { + required: true, + serializedName: "properties.authMode", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PartialOnlineEndpoint: msRest.CompositeMapper = { + serializedName: "PartialOnlineEndpoint", + type: { + name: "Composite", + className: "PartialOnlineEndpoint", + modelProperties: { + trafficRules: { + serializedName: "trafficRules", + type: { + name: "Dictionary", + value: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const PartialOnlineEndpointPartialTrackedResource: msRest.CompositeMapper = { + serializedName: "PartialOnlineEndpointPartialTrackedResource", + type: { + name: "Composite", + className: "PartialOnlineEndpointPartialTrackedResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialOnlineEndpoint" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const RegenerateEndpointKeysRequest: msRest.CompositeMapper = { + serializedName: "RegenerateEndpointKeysRequest", + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + type: { + name: "String" + } + }, + keyValue: { + serializedName: "keyValue", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthKeys: msRest.CompositeMapper = { + serializedName: "EndpointAuthKeys", + type: { + name: "Composite", + className: "EndpointAuthKeys", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointAuthToken: msRest.CompositeMapper = { + serializedName: "EndpointAuthToken", + type: { + name: "Composite", + className: "EndpointAuthToken", + modelProperties: { + accessToken: { + serializedName: "accessToken", + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + type: { + name: "String" + } + }, + expiryTimeUtc: { + serializedName: "expiryTimeUtc", + type: { + name: "Number" + } + }, + refreshAfterTimeUtc: { + serializedName: "refreshAfterTimeUtc", + type: { + name: "Number" + } + } + } + } +}; + +export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "machinelearningcompute-createorupdate-headers", + type: { + name: "Composite", + className: "MachineLearningComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { + serializedName: "machinelearningcompute-delete-headers", + type: { + name: "Composite", + className: "MachineLearningComputeDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const MachineLearningServiceCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "machinelearningservice-createorupdate-headers", + type: { + name: "Composite", + className: "MachineLearningServiceCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const JobsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "jobs-delete-headers", + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const LabelingJobsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-createorupdate-headers", + type: { + name: "Composite", + className: "LabelingJobsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobsResumeHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-resume-headers", + type: { + name: "Composite", + className: "LabelingJobsResumeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const LabelingJobsExportLabelsHeaders: msRest.CompositeMapper = { + serializedName: "labelingjobs-exportlabels-headers", + type: { + name: "Composite", + className: "LabelingJobsExportLabelsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-delete-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineDeploymentsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-createorupdate-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineDeploymentsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlinedeployments-update-headers", + type: { + name: "Composite", + className: "OnlineDeploymentsUpdateHeaders", + modelProperties: { + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsDeleteHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-delete-headers", + type: { + name: "Composite", + className: "OnlineEndpointsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-createorupdate-headers", + type: { + name: "Composite", + className: "OnlineEndpointsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointsUpdateHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-update-headers", + type: { + name: "Composite", + className: "OnlineEndpointsUpdateHeaders", + modelProperties: { + locationHeader: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OnlineEndpointsRegenerateKeysHeaders: msRest.CompositeMapper = { + serializedName: "onlineendpoints-regeneratekeys-headers", + type: { + name: "Composite", + className: "OnlineEndpointsRegenerateKeysHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", className: "OperationListResult", @@ -3058,7 +10738,259 @@ export const OperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "Operation" + } + } + } + } + } + } +}; + +export const WorkspaceListResult: msRest.CompositeMapper = { + serializedName: "WorkspaceListResult", + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListAmlUserFeatureResult: msRest.CompositeMapper = { + serializedName: "ListAmlUserFeatureResult", + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListUsagesResult: msRest.CompositeMapper = { + serializedName: "ListUsagesResult", + type: { + name: "Composite", + className: "ListUsagesResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListWorkspaceQuotas: msRest.CompositeMapper = { + serializedName: "ListWorkspaceQuotas", + type: { + name: "Composite", + className: "ListWorkspaceQuotas", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: msRest.CompositeMapper = { + serializedName: "PaginatedComputeResourcesList", + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AmlComputeNodesInformation: msRest.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, + uberParent: "ComputeNodesInformation", + className: "AmlComputeNodesInformation", + modelProperties: { + ...ComputeNodesInformation.type.modelProperties, + nodes: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } + } + } + } + } +}; + +export const SkuListResult: msRest.CompositeMapper = { + serializedName: "SkuListResult", + type: { + name: "Composite", + className: "SkuListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedServiceList: msRest.CompositeMapper = { + serializedName: "PaginatedServiceList", + type: { + name: "Composite", + className: "PaginatedServiceList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { + serializedName: "PaginatedWorkspaceConnectionsList", + type: { + name: "Composite", + className: "PaginatedWorkspaceConnectionsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnection" } } } @@ -3067,11 +10999,11 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const WorkspaceListResult: msRest.CompositeMapper = { - serializedName: "WorkspaceListResult", +export const CodeContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "CodeContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "WorkspaceListResult", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { value: { serializedName: "", @@ -3080,7 +11012,7 @@ export const WorkspaceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" + className: "CodeContainerResource" } } } @@ -3095,27 +11027,25 @@ export const WorkspaceListResult: msRest.CompositeMapper = { } }; -export const ListAmlUserFeatureResult: msRest.CompositeMapper = { - serializedName: "ListAmlUserFeatureResult", +export const CodeVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "CodeVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature" + className: "CodeVersionResource" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -3125,27 +11055,25 @@ export const ListAmlUserFeatureResult: msRest.CompositeMapper = { } }; -export const ListUsagesResult: msRest.CompositeMapper = { - serializedName: "ListUsagesResult", +export const ComponentContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ComponentContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "ListUsagesResult", + className: "ComponentContainerResourceArmPaginatedResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "ComponentContainerResource" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -3155,27 +11083,25 @@ export const ListUsagesResult: msRest.CompositeMapper = { } }; -export const ListWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "ListWorkspaceQuotas", +export const ComponentVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ComponentVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "ComponentVersionResourceArmPaginatedResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceQuota" + className: "ComponentVersionResource" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -3185,11 +11111,11 @@ export const ListWorkspaceQuotas: msRest.CompositeMapper = { } }; -export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { - serializedName: "PaginatedWorkspaceConnectionsList", +export const DataContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DataContainerResourceArmPaginatedResult", type: { name: "Composite", - className: "PaginatedWorkspaceConnectionsList", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { value: { serializedName: "", @@ -3198,20 +11124,26 @@ export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkspaceConnection" + className: "DataContainerResource" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PaginatedComputeResourcesList: msRest.CompositeMapper = { - serializedName: "PaginatedComputeResourcesList", +export const DatastorePropertiesResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DatastorePropertiesResourceArmPaginatedResult", type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "DatastorePropertiesResourceArmPaginatedResult", modelProperties: { value: { serializedName: "", @@ -3220,7 +11152,7 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeResource" + className: "DatastorePropertiesResource" } } } @@ -3235,11 +11167,11 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { } }; -export const SkuListResult: msRest.CompositeMapper = { - serializedName: "SkuListResult", +export const DataVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "DataVersionResourceArmPaginatedResult", type: { name: "Composite", - className: "SkuListResult", + className: "DataVersionResourceArmPaginatedResult", modelProperties: { value: { serializedName: "", @@ -3248,7 +11180,231 @@ export const SkuListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "WorkspaceSku" + className: "DataVersionResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "EnvironmentContainerResourceArmPaginatedResult", + type: { + name: "Composite", + className: "EnvironmentContainerResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentContainerResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentSpecificationVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "EnvironmentSpecificationVersionResourceArmPaginatedResult", + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentSpecificationVersionResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const JobBaseResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "JobBaseResourceArmPaginatedResult", + type: { + name: "Composite", + className: "JobBaseResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBaseResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "LabelingJobResourceArmPaginatedResult", + type: { + name: "Composite", + className: "LabelingJobResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LabelingJobResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ModelContainerResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ModelContainerResourceArmPaginatedResult", + type: { + name: "Composite", + className: "ModelContainerResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelContainerResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "ModelVersionResourceArmPaginatedResult", + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersionResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineDeploymentTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "OnlineDeploymentTrackedResourceArmPaginatedResult", + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineDeploymentTrackedResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointTrackedResourceArmPaginatedResult: msRest.CompositeMapper = { + serializedName: "OnlineEndpointTrackedResourceArmPaginatedResult", + type: { + name: "Composite", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineEndpointTrackedResource" } } } @@ -3274,10 +11430,60 @@ export const discriminators = { 'Compute.Databricks' : Databricks, 'Compute.DataLakeAnalytics' : DataLakeAnalytics, 'ComputeNodesInformation' : ComputeNodesInformation, - 'ComputeNodesInformation.AmlCompute' : AmlComputeNodesInformation, 'ComputeSecrets' : ComputeSecrets, 'ComputeSecrets.AKS' : AksComputeSecrets, 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets, - 'ComputeSecrets.Databricks' : DatabricksComputeSecrets + 'ComputeSecrets.Databricks' : DatabricksComputeSecrets, + 'ServiceResponseBase' : ServiceResponseBase, + 'ServiceResponseBase.ACI' : ACIServiceResponse, + 'ServiceResponseBase.Custom' : AKSVariantResponse, + 'ServiceResponseBase.AKS' : AKSServiceResponse, + 'CreateServiceRequest' : CreateServiceRequest, + 'CreateServiceRequest.ACI' : ACIServiceCreateRequest, + 'CreateServiceRequest.AKS' : AKSServiceCreateRequest, + 'CreateServiceRequest.Custom' : CreateEndpointVariantRequest, + 'ComponentInput' : ComponentInput, + 'ComponentInput.RangedNumber' : ComponentInputRangedNumber, + 'ComponentInput.Enum' : ComponentInputEnum, + 'ComponentInput.Generic' : ComponentInputGeneric, + 'DockerSpecification' : DockerSpecification, + 'DockerSpecification.Image' : DockerImage, + 'DockerSpecification.Build' : DockerBuild, + 'JobBase' : JobBase, + 'JobBase.ComputeJobBase' : ComputeJobBase, + 'JobBase.AutoML' : AutoMLJob, + 'DistributionConfiguration' : DistributionConfiguration, + 'DistributionConfiguration.TensorFlow' : TensorFlow, + 'DistributionConfiguration.Mpi' : Mpi, + 'DistributionConfiguration.PyTorch' : PyTorch, + 'IdentityConfiguration' : IdentityConfiguration, + 'IdentityConfiguration.AMLToken' : AmlTokenConfiguration, + 'IdentityConfiguration.Managed' : ManagedIdentityConfiguration, + 'IdentityConfiguration.ServicePrincipal' : ServicePrincipalConfiguration, + 'JobBase.Command' : CommandJob, + 'JobBase.Pipeline' : PipelineJob, + 'EarlyTerminationPolicyConfiguration' : EarlyTerminationPolicyConfiguration, + 'EarlyTerminationPolicyConfiguration.Bandit' : BanditPolicyConfiguration, + 'EarlyTerminationPolicyConfiguration.MedianStopping' : MedianStoppingPolicyConfiguration, + 'EarlyTerminationPolicyConfiguration.TruncationSelection' : TruncationSelectionPolicyConfiguration, + 'JobBase.Sweep' : SweepJob, + 'LabelingJobMediaProperties' : LabelingJobMediaProperties, + 'LabelingJobMediaProperties.Image' : LabelingJobImageProperties, + 'LabelingJobMediaProperties.Text' : LabelingJobTextProperties, + 'ExportSummary' : ExportSummary, + 'ExportSummary.Coco' : CocoExportSummary, + 'ExportSummary.CSV' : CsvExportSummary, + 'ExportSummary.Dataset' : DatasetExportSummary, + 'DeploymentConfigurationBase' : DeploymentConfigurationBase, + 'DeploymentConfigurationBase.AKS' : AksDeploymentConfiguration, + 'DeploymentConfigurationBase.Managed' : ManagedDeploymentConfiguration, + 'AssetReferenceBase' : AssetReferenceBase, + 'AssetReferenceBase.Id' : IdAssetReference, + 'AssetReferenceBase.DataPath' : DataPathAssetReference, + 'AssetReferenceBase.OutputPath' : OutputPathAssetReference, + 'ComputeConfiguration' : ComputeConfiguration, + 'ComputeConfiguration.AKS' : AksComputeConfiguration, + 'ComputeConfiguration.Managed' : ManagedComputeConfiguration, + 'ComputeConfiguration.AzureMLCompute' : AzureMLComputeConfiguration }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts new file mode 100644 index 000000000000..746a26eaf6dd --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelContainersMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelContainerResourceArmPaginatedResult, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts new file mode 100644 index 000000000000..f49dc5c3191d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/modelVersionsMappers.ts @@ -0,0 +1,230 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + ModelVersionResourceArmPaginatedResult, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts index 3088316919ec..84f764ba1779 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts @@ -8,9 +8,12 @@ export { discriminators, + AKSReplicaStatusError, ErrorDetail, ErrorResponse, + ListNotebookKeysResult, MachineLearningServiceError, NotebookPreparationError, - NotebookResourceInfo + NotebookResourceInfo, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts new file mode 100644 index 000000000000..71e89bd3a309 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineDeploymentsMappers.ts @@ -0,0 +1,237 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DeploymentLogs, + DeploymentLogsRequest, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentsCreateOrUpdateHeaders, + OnlineDeploymentsDeleteHeaders, + OnlineDeploymentsUpdateHeaders, + OnlineDeploymentTrackedResource, + OnlineDeploymentTrackedResourceArmPaginatedResult, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PartialOnlineDeployment, + PartialOnlineDeploymentPartialTrackedResource, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts new file mode 100644 index 000000000000..851a3a51de50 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/onlineEndpointsMappers.ts @@ -0,0 +1,239 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, + AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, + AksNetworkingConfiguration, + AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, + AmlCompute, + AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, + BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, + Compute, + ComputeBinding, + ComputeConfiguration, + ComputeInstance, + ComputeInstanceApplication, + ComputeInstanceConnectivityEndpoints, + ComputeInstanceCreatedBy, + ComputeInstanceLastOperation, + ComputeInstanceProperties, + ComputeInstanceSshSettings, + ComputeJobBase, + ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, + Databricks, + DatabricksProperties, + DataContainerResource, + DataFactory, + DataLakeAnalytics, + DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, + EncryptionProperty, + EndpointAuthKeys, + EndpointAuthToken, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, + ErrorDetail, + ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, + HDInsight, + HDInsightProperties, + IdAssetReference, + Identity, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, + KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, + MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, + NodeStateCounts, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointsCreateOrUpdateHeaders, + OnlineEndpointsDeleteHeaders, + OnlineEndpointsRegenerateKeysHeaders, + OnlineEndpointsUpdateHeaders, + OnlineEndpointTrackedResource, + OnlineEndpointTrackedResourceArmPaginatedResult, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PartialOnlineEndpoint, + PartialOnlineEndpointPartialTrackedResource, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, + RegenerateEndpointKeysRequest, + Resource, + ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, + ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, + SharedPrivateLinkResource, + Sku, + SparkMavenPackage, + SqlAdminSection, + SslConfiguration, + StatusMessage, + SweepJob, + SystemData, + SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, + UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, + VirtualMachine, + VirtualMachineImage, + VirtualMachineProperties, + VirtualMachineSshCredentials, + VnetConfiguration, + Workspace, + WorkspaceConnection +} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts index ac101ae5f270..3a5e869b5068 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts @@ -8,10 +8,12 @@ export { discriminators, + AKSReplicaStatusError, ErrorDetail, ErrorResponse, MachineLearningServiceError, Operation, OperationDisplay, - OperationListResult + OperationListResult, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 4f5b252b51c1..a55b4601fa92 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -57,7 +57,7 @@ export const computeType: msRest.OperationQueryParameter = { "computeType" ], mapper: { - serializedName: "compute-type", + serializedName: "computeType", type: { name: "String" } @@ -73,6 +73,195 @@ export const connectionName: msRest.OperationURLParameter = { } } }; +export const count0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "count" + ], + mapper: { + serializedName: "count", + defaultValue: 30, + type: { + name: "Number" + } + } +}; +export const count1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "count" + ], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; +export const deploymentName0: msRest.OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + required: true, + serializedName: "deploymentName", + type: { + name: "String" + } + } +}; +export const deploymentName1: msRest.OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + required: true, + serializedName: "deploymentName", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const description: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "description" + ], + mapper: { + serializedName: "description", + type: { + name: "String" + } + } +}; +export const endpointName0: msRest.OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + required: true, + serializedName: "endpointName", + type: { + name: "String" + } + } +}; +export const endpointName1: msRest.OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + required: true, + serializedName: "endpointName", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const expand0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expand" + ], + mapper: { + serializedName: "expand", + type: { + name: "Boolean" + } + } +}; +export const expand1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expand" + ], + mapper: { + serializedName: "expand", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const id0: msRest.OperationURLParameter = { + parameterPath: "id", + mapper: { + required: true, + serializedName: "id", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const id1: msRest.OperationURLParameter = { + parameterPath: "id", + mapper: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } +}; +export const includeJobInstructions: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeJobInstructions" + ], + mapper: { + serializedName: "includeJobInstructions", + type: { + name: "Boolean" + } + } +}; +export const includeLabelCategories: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeLabelCategories" + ], + mapper: { + serializedName: "includeLabelCategories", + type: { + name: "Boolean" + } + } +}; +export const isDefault: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "isDefault" + ], + mapper: { + serializedName: "isDefault", + type: { + name: "Boolean" + } + } +}; +export const jobType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "jobType" + ], + mapper: { + serializedName: "jobType", + type: { + name: "String" + } + } +}; +export const linkName: msRest.OperationURLParameter = { + parameterPath: "linkName", + mapper: { + required: true, + serializedName: "linkName", + type: { + name: "String" + } + } +}; export const location: msRest.OperationURLParameter = { parameterPath: "location", mapper: { @@ -86,6 +275,83 @@ export const location: msRest.OperationURLParameter = { } } }; +export const modelId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "modelId" + ], + mapper: { + serializedName: "modelId", + type: { + name: "String" + } + } +}; +export const modelName: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "modelName" + ], + mapper: { + serializedName: "modelName", + type: { + name: "String" + } + } +}; +export const name0: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + constraints: { + Pattern: /^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,254}$/ + }, + type: { + name: "String" + } + } +}; +export const name1: msRest.OperationURLParameter = { + parameterPath: "name", + mapper: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } +}; +export const name2: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "name" + ], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } +}; +export const names: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "names" + ], + mapper: { + serializedName: "names", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Csv +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -97,6 +363,68 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const offset: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "offset" + ], + mapper: { + serializedName: "offset", + type: { + name: "Number" + } + } +}; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "orderby", + defaultValue: 'UpdatedAtDesc', + type: { + name: "String" + } + } +}; +export const orderBy0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderBy" + ], + mapper: { + serializedName: "$orderBy", + type: { + name: "String" + } + } +}; +export const orderBy1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderBy" + ], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; +export const orderByAsc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderByAsc" + ], + mapper: { + serializedName: "orderByAsc", + defaultValue: false, + type: { + name: "Boolean" + } + } +}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -107,15 +435,15 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const recommended: msRest.OperationQueryParameter = { +export const properties: msRest.OperationQueryParameter = { parameterPath: [ "options", - "recommended" + "properties" ], mapper: { - serializedName: "recommended", + serializedName: "properties", type: { - name: "Boolean" + name: "String" } } }; @@ -129,6 +457,40 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const runId: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "runId" + ], + mapper: { + serializedName: "runId", + type: { + name: "String" + } + } +}; +export const searchText: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "searchText" + ], + mapper: { + serializedName: "searchText", + type: { + name: "String" + } + } +}; +export const serviceName: msRest.OperationURLParameter = { + parameterPath: "serviceName", + mapper: { + required: true, + serializedName: "serviceName", + type: { + name: "String" + } + } +}; export const skiptoken: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -151,6 +513,30 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const tag: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tag" + ], + mapper: { + serializedName: "tag", + type: { + name: "String" + } + } +}; +export const tags: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tags" + ], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; export const target: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -163,6 +549,18 @@ export const target: msRest.OperationQueryParameter = { } } }; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; export const underlyingResourceAction: msRest.OperationQueryParameter = { parameterPath: "underlyingResourceAction", mapper: { @@ -173,6 +571,28 @@ export const underlyingResourceAction: msRest.OperationQueryParameter = { } } }; +export const version0: msRest.OperationURLParameter = { + parameterPath: "version", + mapper: { + required: true, + serializedName: "version", + type: { + name: "String" + } + } +}; +export const version1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "version" + ], + mapper: { + serializedName: "version", + type: { + name: "String" + } + } +}; export const workspaceName: msRest.OperationURLParameter = { parameterPath: "workspaceName", mapper: { diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts index e21b80f26ac8..ebb06e483422 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts @@ -8,13 +8,67 @@ export { discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, Compute, + ComputeBinding, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -22,39 +76,154 @@ export { ComputeInstanceLastOperation, ComputeInstanceProperties, ComputeInstanceSshSettings, + ComputeJobBase, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, Databricks, DatabricksProperties, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, ErrorDetail, ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, Resource, ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, + SqlAdminSection, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts index 07a5f2631978..a6f2f638e55f 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts @@ -8,14 +8,68 @@ export { discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, BaseResource, + CertificateSection, CloudError, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, Compute, + ComputeBinding, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -23,40 +77,155 @@ export { ComputeInstanceLastOperation, ComputeInstanceProperties, ComputeInstanceSshSettings, + ComputeJobBase, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, Databricks, DatabricksProperties, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, ErrorDetail, ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, Resource, ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, + SqlAdminSection, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts index aa49de236b1e..d671d5668301 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts @@ -8,6 +8,7 @@ export { discriminators, + AKSReplicaStatusError, CloudError, ErrorDetail, ErrorResponse, @@ -17,6 +18,7 @@ export { QuotaUpdateParameters, ResourceName, ResourceQuota, + ServiceResponseBaseError, UpdateWorkspaceQuotas, UpdateWorkspaceQuotasResult } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts index 448b8d85198f..4b32389afbdc 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts @@ -8,13 +8,67 @@ export { discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, Compute, + ComputeBinding, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -22,40 +76,155 @@ export { ComputeInstanceLastOperation, ComputeInstanceProperties, ComputeInstanceSshSettings, + ComputeJobBase, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, Databricks, DatabricksProperties, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, ErrorDetail, ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, + LivenessProbeRequirements, MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, PaginatedWorkspaceConnectionsList, + ParameterSamplingConfiguration, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, Resource, ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, + SqlAdminSection, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection, WorkspaceConnectionDto diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts index 5115670bfab0..9f3780ce1728 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts @@ -8,9 +8,11 @@ export { discriminators, + AKSReplicaStatusError, AmlUserFeature, ErrorDetail, ErrorResponse, ListAmlUserFeatureResult, - MachineLearningServiceError + MachineLearningServiceError, + ServiceResponseBaseError } from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts index d8e1137cd946..17f99674f396 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts @@ -8,13 +8,67 @@ export { discriminators, + AccountKeySection, + ACIServiceCreateRequestDataCollection, + ACIServiceCreateRequestEncryptionProperties, + ACIServiceCreateRequestVnetConfiguration, + ACIServiceResponse, + ACIServiceResponseDataCollection, + ACIServiceResponseEncryptionProperties, + ACIServiceResponseEnvironmentImageRequest, + ACIServiceResponseVnetConfiguration, AKS, + AksComputeConfiguration, + AksDeploymentConfiguration, AksNetworkingConfiguration, AKSProperties, + AKSReplicaStatus, + AKSReplicaStatusError, + AKSServiceCreateRequestAutoScaler, + AKSServiceCreateRequestDataCollection, + AKSServiceCreateRequestLivenessProbeRequirements, + AKSServiceResponse, + AKSServiceResponseAutoScaler, + AKSServiceResponseDataCollection, + AKSServiceResponseDeploymentStatus, + AKSServiceResponseEnvironmentImageRequest, + AKSServiceResponseLivenessProbeRequirements, + AKSVariantResponse, AmlCompute, AmlComputeProperties, + AmlTokenConfiguration, + AssetPath, + AssetReferenceBase, + AssignedUser, + AutoMLJob, + AutoScaler, + AzureDataLakeSection, + AzureMLComputeConfiguration, + AzureMySqlSection, + AzurePostgreSqlSection, + AzureSqlDatabaseSection, + AzureStorageSection, + BanditPolicyConfiguration, BaseResource, + CertificateSection, + CodeConfiguration, + CodeContainerResource, + CodeVersionResource, + CommandJob, + Component, + ComponentContainerResource, + ComponentInput, + ComponentInputEnum, + ComponentInputGeneric, + ComponentInputRangedNumber, + ComponentJob, + ComponentJobInput, + ComponentJobOutput, + ComponentOutput, + ComponentVersionResource, Compute, + ComputeBinding, + ComputeConfiguration, ComputeInstance, ComputeInstanceApplication, ComputeInstanceConnectivityEndpoints, @@ -22,43 +76,157 @@ export { ComputeInstanceLastOperation, ComputeInstanceProperties, ComputeInstanceSshSettings, + ComputeJobBase, ComputeResource, + ContainerRegistryResponse, + ContainerResourceRequirements, + DataBinding, Databricks, DatabricksProperties, + DataContainerResource, DataFactory, DataLakeAnalytics, DataLakeAnalyticsProperties, + DataPathAssetReference, + DatasetReference, + DataSettings, + DatastoreContents, + DatastoreCredentials, + DatastorePropertiesResource, + DataVersionResource, + DeploymentConfigurationBase, + DistributionConfiguration, + DockerBuild, + DockerImage, + DockerImagePlatform, + DockerSpecification, + EarlyTerminationPolicyConfiguration, + EncryptionProperties, EncryptionProperty, + EnvironmentContainerResource, + EnvironmentImageRequestEnvironmentReference, + EnvironmentImageResponse, + EnvironmentImageResponseEnvironment, + EnvironmentImageResponseEnvironmentReference, + EnvironmentReference, + EnvironmentSpecificationVersionResource, ErrorDetail, ErrorResponse, + EvaluationConfiguration, + ExperimentLimits, + FeaturizationSettings, + ForecastingSettings, + GeneralSettings, + GlusterFsSection, HDInsight, HDInsightProperties, + IdAssetReference, Identity, - IdentityUserAssignedIdentitiesValue, + IdentityConfiguration, + ImageAsset, + InferenceContainerProperties, + InputData, + JobBase, + JobBaseInteractionEndpoints, + JobBaseResource, + JobOutput, KeyVaultProperties, + LabelCategory, + LabelClass, + LabelingDatasetConfiguration, + LabelingJobImageProperties, + LabelingJobInstructions, + LabelingJobMediaProperties, + LabelingJobResource, + LabelingJobTextProperties, + LinkedInfo, + LinkedServiceProps, + LinkedServiceResponse, ListWorkspaceKeysResult, + LivenessProbeRequirements, MachineLearningServiceError, + ManagedComputeConfiguration, + ManagedDeploymentConfiguration, + ManagedIdentityConfiguration, + MedianStoppingPolicyConfiguration, + MLAssistConfiguration, + Model, + ModelContainerResource, + ModelDataCollection, + ModelDockerSectionResponse, + ModelDockerSectionResponseBaseImageRegistry, + ModelEnvironmentDefinitionPython, + ModelEnvironmentDefinitionResponse, + ModelEnvironmentDefinitionResponseDocker, + ModelEnvironmentDefinitionResponsePython, + ModelEnvironmentDefinitionResponseR, + ModelEnvironmentDefinitionResponseSpark, + ModelEnvironmentDefinitionSpark, + ModelPythonSection, + ModelSparkSection, + ModelVersionResource, + Mpi, NodeStateCounts, - NotebookListCredentialsResult, - NotebookPreparationError, - NotebookResourceInfo, + OnlineDeploymentScaleSettings, + OnlineDeploymentTrackedResource, + OnlineEndpointTrackedResource, + OutputData, + OutputPathAssetReference, + ParameterSamplingConfiguration, Password, + PersonalComputeInstanceSettings, + PipelineInput, + PipelineJob, + PipelineModel, + PipelineOutput, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProgressMetrics, + PyTorch, + RCranPackage, RegistryListCredentialsResult, Resource, ResourceId, + ResourceIdentity, + RGitHubPackageResponse, + Route, + RSectionResponse, + SasSection, ScaleSettings, + ScriptReference, + ScriptsToExecute, + ServicePrincipalConfiguration, + ServicePrincipalSection, + ServiceResource, + ServiceResponseBase, + ServiceResponseBaseError, + SetupScripts, SharedPrivateLinkResource, Sku, + SparkMavenPackage, + SqlAdminSection, SslConfiguration, + StatusMessage, + SweepJob, + SystemData, SystemService, + TensorFlow, + TerminationConfiguration, + TrainingDataSettings, + TrainingSettings, + TrialComponent, + TruncationSelectionPolicyConfiguration, UserAccountCredentials, + UserAssignedIdentity, + UserAssignedIdentityMeta, + ValidationDataSettings, VirtualMachine, + VirtualMachineImage, VirtualMachineProperties, VirtualMachineSshCredentials, + VnetConfiguration, Workspace, WorkspaceConnection, WorkspaceListResult, diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts new file mode 100644 index 000000000000..a71aefccd0ba --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeContainers.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/codeContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a CodeContainers. */ +export class CodeContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a CodeContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.CodeContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List containers. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.CodeContainersListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.CodeContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.CodeContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.CodeContainersListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.CodeContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CodeContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CodeContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + 201: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts new file mode 100644 index 000000000000..7268c2c0915a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/codeVersions.ts @@ -0,0 +1,363 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/codeVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a CodeVersions. */ +export class CodeVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a CodeVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.CodeVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List versions. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.CodeVersionsListOptionalParams): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.CodeVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.CodeVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.CodeVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.CodeVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.CodeVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.CodeVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + 201: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentContainers.ts new file mode 100644 index 000000000000..765e2d48b766 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentContainers.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/componentContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ComponentContainers. */ +export class ComponentContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ComponentContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentContainerResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List containers. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.ComponentContainersListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.ComponentContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.ComponentContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ComponentContainersListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ComponentContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ComponentContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ComponentContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResource + }, + 201: { + bodyMapper: Mappers.ComponentContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentVersions.ts new file mode 100644 index 000000000000..e45da855d232 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/componentVersions.ts @@ -0,0 +1,363 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/componentVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ComponentVersions. */ +export class ComponentVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ComponentVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentVersionResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ComponentVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List versions. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ComponentVersionsListOptionalParams): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.ComponentVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ComponentVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ComponentVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ComponentVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ComponentVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ComponentVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResource + }, + 201: { + bodyMapper: Mappers.ComponentVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts new file mode 100644 index 000000000000..e8038d5ed80b --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataContainers.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a DataContainers. */ +export class DataContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a DataContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DataContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List containers. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.DataContainersListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.DataContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.DataContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DataContainersListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.DataContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DataContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + 201: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts new file mode 100644 index 000000000000..f05af81237fb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/dataVersions.ts @@ -0,0 +1,363 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a DataVersions. */ +export class DataVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a DataVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.DataVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List versions. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.DataVersionsListOptionalParams): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.DataVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.DataVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DataVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.DataVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DataVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + 201: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts new file mode 100644 index 000000000000..95fe0fd66908 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/datastores.ts @@ -0,0 +1,413 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/datastoresMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Datastores. */ +export class Datastores { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Datastores. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary List datastores. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.DatastoresListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.DatastoresListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.DatastoresListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete datastore. + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Get datastore. + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update datastore. + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Datastore entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Datastore entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, callback: msRest.ServiceCallback): void; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Datastore entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.DatastorePropertiesResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get datastore secrets. + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Datastore name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + + /** + * @summary List datastores. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DatastoresListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.DatastoresListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DatastoresListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count0, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DatastorePropertiesResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + 201: { + bodyMapper: Mappers.DatastorePropertiesResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreCredentials + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count0, + Parameters.isDefault, + Parameters.names, + Parameters.searchText, + Parameters.orderBy1, + Parameters.orderByAsc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastorePropertiesResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts new file mode 100644 index 000000000000..0b32270aeb49 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentContainers.ts @@ -0,0 +1,339 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/environmentContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a EnvironmentContainers. */ +export class EnvironmentContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a EnvironmentContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Create or update container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List containers. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentContainersListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.EnvironmentContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.EnvironmentContainersListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.EnvironmentContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.EnvironmentContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.EnvironmentContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + 201: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts new file mode 100644 index 000000000000..3f9ab98c06fe --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/environmentSpecificationVersions.ts @@ -0,0 +1,363 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/environmentSpecificationVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a EnvironmentSpecificationVersions. */ +export class EnvironmentSpecificationVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a EnvironmentSpecificationVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Creates or updates an EnvironmentSpecificationVersion. + * @param name Name of EnvironmentSpecificationVersion. + * @param version Version of EnvironmentSpecificationVersion. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Definition of EnvironmentSpecificationVersion. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Name of EnvironmentSpecificationVersion. + * @param version Version of EnvironmentSpecificationVersion. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Definition of EnvironmentSpecificationVersion. + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, callback: msRest.ServiceCallback): void; + /** + * @param name Name of EnvironmentSpecificationVersion. + * @param version Version of EnvironmentSpecificationVersion. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Definition of EnvironmentSpecificationVersion. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.EnvironmentSpecificationVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List versions. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentSpecificationVersionsListOptionalParams): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.EnvironmentSpecificationVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.EnvironmentSpecificationVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.EnvironmentSpecificationVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.EnvironmentSpecificationVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.EnvironmentSpecificationVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.EnvironmentSpecificationVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + 201: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EnvironmentSpecificationVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index 3ddc3bba43e8..9a3b3766f272 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -10,11 +10,28 @@ export * from "./operations"; export * from "./workspaces"; export * from "./workspaceFeatures"; -export * from "./notebooks"; export * from "./usages"; export * from "./virtualMachineSizes"; export * from "./quotas"; -export * from "./workspaceConnections"; export * from "./machineLearningCompute"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./linkedServices"; +export * from "./machineLearningService"; +export * from "./notebooks"; +export * from "./workspaceConnections"; +export * from "./codeContainers"; +export * from "./codeVersions"; +export * from "./componentContainers"; +export * from "./componentVersions"; +export * from "./dataContainers"; +export * from "./datastores"; +export * from "./dataVersions"; +export * from "./environmentContainers"; +export * from "./environmentSpecificationVersions"; +export * from "./jobs"; +export * from "./labelingJobs"; +export * from "./modelContainers"; +export * from "./modelVersions"; +export * from "./onlineDeployments"; +export * from "./onlineEndpoints"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts new file mode 100644 index 000000000000..013d24eff5e9 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/jobs.ts @@ -0,0 +1,411 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/jobsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a Jobs. */ +export class Jobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a Jobs. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Creates and executes a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Job definition object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Job definition object. + * @param callback The callback + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Job definition object. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.JobBaseResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a Job by name/id. + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(id,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Lists Jobs in the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.JobsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.JobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.JobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Cancels a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + cancel(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancel(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + cancelOperationSpec, + callback); + } + + /** + * @summary Deletes a Job. + * @param id The name and identifier for the Job. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Lists Jobs in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.JobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.JobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.JobBaseResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + 201: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.jobType, + Parameters.tags, + Parameters.tag + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const cancelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}/cancel", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.JobsDeleteHeaders + }, + 202: { + headersMapper: Mappers.JobsDeleteHeaders + }, + 204: { + headersMapper: Mappers.JobsDeleteHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.JobsDeleteHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.jobType, + Parameters.tags, + Parameters.tag + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts new file mode 100644 index 000000000000..738b8ae364ec --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/labelingJobs.ts @@ -0,0 +1,540 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/labelingJobsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a LabelingJobs. */ +export class LabelingJobs { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a LabelingJobs. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary Creates or updates a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.LabelingJobResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(id,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Gets a labeling job by name/id. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(id: string, resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsGetOptionalParams): Promise; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(id: string, resourceGroupName: string, workspaceName: string, options: Models.LabelingJobsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(id: string, resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Lists labeling jobs in the workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.LabelingJobsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.LabelingJobsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Pause a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + pause(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + pause(id: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + pause(id: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + pause(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + pauseOperationSpec, + callback); + } + + /** + * @summary Resume a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + resume(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResume(id,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Export labels from a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param [options] The optional parameters + * @returns Promise + */ + exportLabels(id: string, resourceGroupName: string, workspaceName: string, body: Models.ExportSummaryUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginExportLabels(id,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Creates or updates a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body LabelingJob definition object. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(id: string, resourceGroupName: string, workspaceName: string, body: Models.LabelingJobResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Resume a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginResume(id: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + options + }, + beginResumeOperationSpec, + options); + } + + /** + * @summary Export labels from a labeling job. + * @param id The name and identifier for the LabelingJob. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The export summary. + * @param [options] The optional parameters + * @returns Promise + */ + beginExportLabels(id: string, resourceGroupName: string, workspaceName: string, body: Models.ExportSummaryUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + id, + resourceGroupName, + workspaceName, + body, + options + }, + beginExportLabelsOperationSpec, + options); + } + + /** + * @summary Lists labeling jobs in the workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.LabelingJobsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.LabelingJobsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.LabelingJobsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.includeJobInstructions, + Parameters.includeLabelCategories + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const pauseOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + urlParameters: [ + Parameters.id0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.LabelingJobResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResource, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.LabelingJobResource, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.LabelingJobsCreateOrUpdateHeaders + } + }, + serializer +}; + +const beginResumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.LabelingJobsResumeHeaders + }, + 202: { + headersMapper: Mappers.LabelingJobsResumeHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.LabelingJobsResumeHeaders + } + }, + serializer +}; + +const beginExportLabelsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + urlParameters: [ + Parameters.id1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ExportSummary, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ExportSummary, + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + }, + 202: { + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.LabelingJobsExportLabelsHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/linkedServices.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/linkedServices.ts new file mode 100644 index 000000000000..e82a91c2a7c0 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/linkedServices.ts @@ -0,0 +1,282 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/linkedServicesMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a LinkedServices. */ +export class LinkedServices { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a LinkedServices. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * List all linked services under an AML workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Add a new linked service. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param parameters The object for creating or updating a linked service + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, workspaceName: string, linkName: string, parameters: Models.LinkedServiceRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param parameters The object for creating or updating a linked service + * @param callback The callback + */ + create(resourceGroupName: string, workspaceName: string, linkName: string, parameters: Models.LinkedServiceRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param parameters The object for creating or updating a linked service + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, workspaceName: string, linkName: string, parameters: Models.LinkedServiceRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, workspaceName: string, linkName: string, parameters: Models.LinkedServiceRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + linkName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Get the detail of a linked service. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, linkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, linkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, linkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, linkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + linkName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a linked service. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, linkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, linkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param linkName Friendly name of the linked workspace + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, linkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, linkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + linkName, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedServices", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedServices/{linkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.linkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.LinkedServiceRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceResponse + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedServices/{linkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.linkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LinkedServiceResponse + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedServices/{linkName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.linkName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts index 1fc94951a321..cf4af91a3c3e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts @@ -418,6 +418,34 @@ export class MachineLearningCompute { listByWorkspaceNextOperationSpec, callback) as Promise; } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNodesNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNodesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNodesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNodesNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -725,3 +753,27 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listNodesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts new file mode 100644 index 000000000000..ecca23f63c6f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningService.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/machineLearningServiceMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a MachineLearningService. */ +export class MachineLearningService { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a MachineLearningService. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * Gets services in specified workspace. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningServiceListByWorkspaceOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options: Models.MachineLearningServiceListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningServiceListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listByWorkspaceOperationSpec, + callback) as Promise; + } + + /** + * Get a Service by name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, serviceName: string, options?: Models.MachineLearningServiceGetOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, serviceName: string, options: Models.MachineLearningServiceGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, serviceName: string, options?: Models.MachineLearningServiceGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a specific Service.. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + serviceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Creates or updates service. This call will update a service if it exists. This is a + * nonrecoverable operation. If your intent is to create a new service, do a GET first to verify + * that it does not exist yet. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param properties The payload that is used to create or update the Service. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, serviceName: string, properties: Models.CreateServiceRequestUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,workspaceName,serviceName,properties,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Creates or updates service. This call will update a service if it exists. This is a + * nonrecoverable operation. If your intent is to create a new service, do a GET first to verify + * that it does not exist yet. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param serviceName Name of the Azure Machine Learning service. + * @param properties The payload that is used to create or update the Service. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, serviceName: string, properties: Models.CreateServiceRequestUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + serviceName, + properties, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets services in specified workspace. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningServiceListByWorkspaceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkspaceNext(nextPageLink: string, options: Models.MachineLearningServiceListByWorkspaceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningServiceListByWorkspaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByWorkspaceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByWorkspaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.modelId, + Parameters.modelName, + Parameters.tag, + Parameters.tags, + Parameters.properties, + Parameters.runId, + Parameters.expand0, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PaginatedServiceList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServiceResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/services/{serviceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "properties", + mapper: { + ...Mappers.CreateServiceRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServiceResource, + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + }, + 201: { + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.MachineLearningServiceCreateOrUpdateHeaders + } + }, + serializer +}; + +const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.modelId, + Parameters.modelName, + Parameters.tag, + Parameters.tags, + Parameters.properties, + Parameters.runId, + Parameters.expand0, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PaginatedServiceList + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts new file mode 100644 index 000000000000..1e9f2c47f5ef --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelContainers.ts @@ -0,0 +1,341 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/modelContainersMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ModelContainers. */ +export class ModelContainers { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ModelContainers. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary List model containers. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.ModelContainersListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.ModelContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.ModelContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Container entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, resourceGroupName: string, workspaceName: string, body: Models.ModelContainerResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete container. + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List model containers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ModelContainersListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ModelContainersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ModelContainersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ModelContainerResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + 201: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.count1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts new file mode 100644 index 000000000000..603d96547887 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/modelVersions.ts @@ -0,0 +1,373 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/modelVersionsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a ModelVersions. */ +export class ModelVersions { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a ModelVersions. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary List model versions. + * @param name Model name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ModelVersionsListOptionalParams): Promise; + /** + * @param name Model name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Model name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(name: string, resourceGroupName: string, workspaceName: string, options: Models.ModelVersionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(name: string, resourceGroupName: string, workspaceName: string, options?: Models.ModelVersionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Version entity to create or update. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(name: string, version: string, resourceGroupName: string, workspaceName: string, body: Models.ModelVersionResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + body, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Get version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete version. + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param name Container name. + * @param version Version identifier. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(name: string, version: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + name, + version, + resourceGroupName, + workspaceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary List model versions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ModelVersionsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ModelVersionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ModelVersionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", + urlParameters: [ + Parameters.name1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.orderBy0, + Parameters.top, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags, + Parameters.properties + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name0, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ModelVersionResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + 201: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", + urlParameters: [ + Parameters.name1, + Parameters.version0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skiptoken, + Parameters.orderBy0, + Parameters.top, + Parameters.version1, + Parameters.description, + Parameters.offset, + Parameters.tags, + Parameters.properties + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts index b399aaaf57f3..1927c34654fc 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts @@ -37,6 +37,37 @@ export class Notebooks { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + listKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + listKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + /** * @param resourceGroupName Name of the resource group in which workspace is located. * @param workspaceName Name of Azure Machine Learning workspace. @@ -57,6 +88,31 @@ export class Notebooks { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + const beginPrepareOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts new file mode 100644 index 000000000000..56890bf098ec --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineDeployments.ts @@ -0,0 +1,522 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/onlineDeploymentsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a OnlineDeployments. */ +export class OnlineDeployments { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a OnlineDeployments. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary List Inference Endpoint Deployments. + * @param endpointName Inference endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.OnlineDeploymentsListOptionalParams): Promise; + /** + * @param endpointName Inference endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Inference endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(endpointName: string, resourceGroupName: string, workspaceName: string, options: Models.OnlineDeploymentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(endpointName: string, resourceGroupName: string, workspaceName: string, options?: Models.OnlineDeploymentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete Inference Endpoint Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(endpointName,deploymentName,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Get Inference Deployment Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update Inference Endpoint Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineDeploymentTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(endpointName,deploymentName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Update Online Deployment. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(endpointName,deploymentName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Polls an Endpoint operation. + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The request containing parameters for retrieving logs. + * @param [options] The optional parameters + * @returns Promise + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The request containing parameters for retrieving logs. + * @param callback The callback + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Inference endpoint name. + * @param deploymentName The name and identifier for the endpoint. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body The request containing parameters for retrieving logs. + * @param options The optional parameters + * @param callback The callback + */ + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getLogs(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.DeploymentLogsRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + getLogsOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete Inference Endpoint Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Create or update Inference Endpoint Deployment. + * @param endpointName Inference endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Inference Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineDeploymentTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Update Online Deployment. + * @param endpointName Online Endpoint name. + * @param deploymentName Inference Endpoint Deployment name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(endpointName: string, deploymentName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineDeploymentPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + deploymentName, + resourceGroupName, + workspaceName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * @summary List Inference Endpoint Deployments. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.OnlineDeploymentsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.OnlineDeploymentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OnlineDeploymentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getLogsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/getLogs", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DeploymentLogsRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeploymentLogs + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.deploymentName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + 202: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + 204: { + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineDeploymentsDeleteHeaders + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.OnlineDeploymentTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineDeploymentsCreateOrUpdateHeaders + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.deploymentName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialOnlineDeploymentPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResource, + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + }, + 202: { + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineDeploymentsUpdateHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.orderBy0, + Parameters.top, + Parameters.skiptoken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineDeploymentTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts new file mode 100644 index 000000000000..30e855a0cf7e --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/onlineEndpoints.ts @@ -0,0 +1,627 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/onlineEndpointsMappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; + +/** Class representing a OnlineEndpoints. */ +export class OnlineEndpoints { + private readonly client: AzureMachineLearningWorkspacesContext; + + /** + * Create a OnlineEndpoints. + * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + */ + constructor(client: AzureMachineLearningWorkspacesContext) { + this.client = client; + } + + /** + * @summary List Online Endpoints. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, workspaceName: string, options?: Models.OnlineEndpointsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, workspaceName: string, options: Models.OnlineEndpointsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, workspaceName: string, options?: Models.OnlineEndpointsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(endpointName,resourceGroupName,workspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Get Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + get(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineEndpointTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Update Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKeys(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.RegenerateEndpointKeysRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRegenerateKeys(endpointName,resourceGroupName,workspaceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + + /** + * @summary Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param callback The callback + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The optional parameters + * @param callback The callback + */ + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getToken(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + getTokenOperationSpec, + callback) as Promise; + } + + /** + * @summary Delete Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(endpointName: string, resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Create or update Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.OnlineEndpointTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Update Online Endpoint. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body Online Endpoint entity to apply during operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.PartialOnlineEndpointPartialTrackedResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * @summary Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param endpointName Online Endpoint name. + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param body RegenerateKeys request . + * @param [options] The optional parameters + * @returns Promise + */ + beginRegenerateKeys(endpointName: string, resourceGroupName: string, workspaceName: string, body: Models.RegenerateEndpointKeysRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + endpointName, + resourceGroupName, + workspaceName, + body, + options + }, + beginRegenerateKeysOperationSpec, + options); + } + + /** + * @summary List Online Endpoints. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.OnlineEndpointsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.OnlineEndpointsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.OnlineEndpointsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.name2, + Parameters.count1, + Parameters.computeType, + Parameters.skiptoken, + Parameters.tags, + Parameters.properties, + Parameters.orderBy1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const getTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/token", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthToken + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + 204: { + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineEndpointsDeleteHeaders + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName1, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.OnlineEndpointTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineEndpointsCreateOrUpdateHeaders + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.PartialOnlineEndpointPartialTrackedResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResource, + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineEndpointsUpdateHeaders + } + }, + serializer +}; + +const beginRegenerateKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/regenerateKeys", + urlParameters: [ + Parameters.endpointName0, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.RegenerateEndpointKeysRequest, + required: true + } + }, + responses: { + 200: { + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + }, + 202: { + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError, + headersMapper: Mappers.OnlineEndpointsRegenerateKeysHeaders + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.name2, + Parameters.count1, + Parameters.computeType, + Parameters.skiptoken, + Parameters.tags, + Parameters.properties, + Parameters.orderBy1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnlineEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.MachineLearningServiceError + } + }, + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts index 187767656333..5f605a6c74ce 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -8,7 +8,6 @@ */ import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/privateEndpointConnectionsMappers"; import * as Parameters from "../models/parameters"; @@ -117,30 +116,34 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** - * Deletes the specified private endpoint connection associated with the workspace. * @param resourceGroupName Name of the resource group in which workspace is located. * @param workspaceName Name of Azure Machine Learning workspace. * @param privateEndpointConnectionName The name of the private endpoint connection associated with * the workspace - * @param [options] The optional parameters - * @returns Promise + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group in which workspace is located. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with + * the workspace + * @param options The optional parameters + * @param callback The callback */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteMethodOperationSpec, + callback); } } @@ -166,7 +169,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -199,13 +202,13 @@ const putOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { +const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ @@ -222,10 +225,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { ], responses: { 200: {}, - 202: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 9be626180c93..5a99cbbea522 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -31,7 +31,7 @@ export class VirtualMachineSizes { * @param [options] The optional parameters * @returns Promise */ - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; + list(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The location upon which virtual-machine-sizes is queried. * @param callback The callback @@ -42,8 +42,8 @@ export class VirtualMachineSizes { * @param options The optional parameters * @param callback The callback */ - list(location: string, options: Models.VirtualMachineSizesListOptionalParams, callback: msRest.ServiceCallback): void; - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -64,9 +64,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, - Parameters.computeType, - Parameters.recommended + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage