CodeVersions Interface

public interface CodeVersions

Resource collection API of CodeVersions.

Method Summary

Modifier and Type Method and Description
abstract PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body)

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

abstract Response<PendingUploadResponseDto> createOrGetStartPendingUploadWithResponse(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body, Context context)

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

abstract Blank define(String name)

Begins definition for a new CodeVersion resource.

abstract void delete(String resourceGroupName, String workspaceName, String name, String version)

Delete version.

abstract void deleteById(String id)

Delete version.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete version.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String name, String version, Context context)

Delete version.

abstract CodeVersion get(String resourceGroupName, String workspaceName, String name, String version)

Get version.

abstract CodeVersion getById(String id)

Get version.

abstract Response<CodeVersion> getByIdWithResponse(String id, Context context)

Get version.

abstract Response<CodeVersion> getWithResponse(String resourceGroupName, String workspaceName, String name, String version, Context context)

Get version.

abstract PagedIterable<CodeVersion> list(String resourceGroupName, String workspaceName, String name)

List versions.

abstract PagedIterable<CodeVersion> list(String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip, String hash, String hashVersion, Context context)

List versions.

abstract void publish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body)

Publish version asset into registry.

abstract void publish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body, Context context)

Publish version asset into registry.

Method Details

createOrGetStartPendingUpload

public abstract PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.
body - Pending upload request object.

Returns:

the response.

createOrGetStartPendingUploadWithResponse

public abstract Response<PendingUploadResponseDto> createOrGetStartPendingUploadWithResponse(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body, Context context)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.
body - Pending upload request object.
context - The context to associate with this operation.

Returns:

the response body along with Response<T>.

define

public abstract CodeVersion.DefinitionStages.Blank define(String name)

Begins definition for a new CodeVersion resource.

Parameters:

name - resource name.

Returns:

the first stage of the new CodeVersion definition.

delete

public abstract void delete(String resourceGroupName, String workspaceName, String name, String version)

Delete version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.

deleteById

public abstract void deleteById(String id)

Delete version.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete version.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String name, String version, Context context)

Delete version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.
context - The context to associate with this operation.

Returns:

get

public abstract CodeVersion get(String resourceGroupName, String workspaceName, String name, String version)

Get version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.

Returns:

version.

getById

public abstract CodeVersion getById(String id)

Get version.

Parameters:

id - the resource ID.

Returns:

version along with Response<T>.

getByIdWithResponse

public abstract Response<CodeVersion> getByIdWithResponse(String id, Context context)

Get version.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

version along with Response<T>.

getWithResponse

public abstract Response<CodeVersion> getWithResponse(String resourceGroupName, String workspaceName, String name, String version, Context context)

Get version.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
version - Version identifier. This is case-sensitive.
context - The context to associate with this operation.

Returns:

version along with Response<T>.

list

public abstract PagedIterable<CodeVersion> list(String resourceGroupName, String workspaceName, String name)

List versions.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.

Returns:

a paginated list of CodeVersion entities as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<CodeVersion> list(String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip, String hash, String hashVersion, Context context)

List versions.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name. This is case-sensitive.
orderBy - Ordering of list.
top - Maximum number of records to return.
skip - Continuation token for pagination.
hash - If specified, return CodeVersion assets with specified content hash value, regardless of name.
hashVersion - Hash algorithm version when listing by hash.
context - The context to associate with this operation.

Returns:

a paginated list of CodeVersion entities as paginated response with PagedIterable<T>.

publish

public abstract void publish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body)

Publish version asset into registry.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name.
version - Version identifier.
body - Destination registry info.

publish

public abstract void publish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body, Context context)

Publish version asset into registry.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
workspaceName - Name of Azure Machine Learning workspace.
name - Container name.
version - Version identifier.
body - Destination registry info.
context - The context to associate with this operation.

Applies to