Partager via


CodeVersions interface

Interface representing a CodeVersions.

Methods

beginPublish(string, string, string, string, DestinationAsset, CodeVersionsPublishOptionalParams)

Publish version asset into registry.

beginPublishAndWait(string, string, string, string, DestinationAsset, CodeVersionsPublishOptionalParams)

Publish version asset into registry.

createOrGetStartPendingUpload(string, string, string, string, PendingUploadRequestDto, CodeVersionsCreateOrGetStartPendingUploadOptionalParams)

Generate a storage location and credential for the client to upload a code asset to.

createOrUpdate(string, string, string, string, CodeVersion, CodeVersionsCreateOrUpdateOptionalParams)

Create or update version.

delete(string, string, string, string, CodeVersionsDeleteOptionalParams)

Delete version.

get(string, string, string, string, CodeVersionsGetOptionalParams)

Get version.

list(string, string, string, CodeVersionsListOptionalParams)

List versions.

Method Details

beginPublish(string, string, string, string, DestinationAsset, CodeVersionsPublishOptionalParams)

Publish version asset into registry.

function beginPublish(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: CodeVersionsPublishOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name.

version

string

Version identifier.

body
DestinationAsset

Destination registry info

options
CodeVersionsPublishOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginPublishAndWait(string, string, string, string, DestinationAsset, CodeVersionsPublishOptionalParams)

Publish version asset into registry.

function beginPublishAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: DestinationAsset, options?: CodeVersionsPublishOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name.

version

string

Version identifier.

body
DestinationAsset

Destination registry info

options
CodeVersionsPublishOptionalParams

The options parameters.

Returns

Promise<void>

createOrGetStartPendingUpload(string, string, string, string, PendingUploadRequestDto, CodeVersionsCreateOrGetStartPendingUploadOptionalParams)

Generate a storage location and credential for the client to upload a code asset to.

function createOrGetStartPendingUpload(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PendingUploadRequestDto, options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams): Promise<PendingUploadResponseDto>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name. This is case-sensitive.

version

string

Version identifier. This is case-sensitive.

body
PendingUploadRequestDto

Pending upload request object

Returns

createOrUpdate(string, string, string, string, CodeVersion, CodeVersionsCreateOrUpdateOptionalParams)

Create or update version.

function createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams): Promise<CodeVersion>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name. This is case-sensitive.

version

string

Version identifier. This is case-sensitive.

body
CodeVersion

Version entity to create or update.

options
CodeVersionsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<CodeVersion>

delete(string, string, string, string, CodeVersionsDeleteOptionalParams)

Delete version.

function delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name. This is case-sensitive.

version

string

Version identifier. This is case-sensitive.

options
CodeVersionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, string, CodeVersionsGetOptionalParams)

Get version.

function get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsGetOptionalParams): Promise<CodeVersion>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name. This is case-sensitive.

version

string

Version identifier. This is case-sensitive.

options
CodeVersionsGetOptionalParams

The options parameters.

Returns

Promise<CodeVersion>

list(string, string, string, CodeVersionsListOptionalParams)

List versions.

function list(resourceGroupName: string, workspaceName: string, name: string, options?: CodeVersionsListOptionalParams): PagedAsyncIterableIterator<CodeVersion, CodeVersion[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

workspaceName

string

Name of Azure Machine Learning workspace.

name

string

Container name. This is case-sensitive.

options
CodeVersionsListOptionalParams

The options parameters.

Returns