CodeVersion Interface

public interface CodeVersion

An immutable client-side representation of CodeVersion.

Method Summary

Modifier and Type Method and Description
abstract PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body)

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

abstract Response<PendingUploadResponseDto> createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body, Context context)

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

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract CodeVersionInner innerModel()

Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner object.

abstract String name()

Gets the name property: The name of the resource.

abstract CodeVersionProperties properties()

Gets the properties property: [Required] Additional attributes of the entity.

abstract void publish(DestinationAsset body)

Publish version asset into registry.

abstract void publish(DestinationAsset body, Context context)

Publish version asset into registry.

abstract CodeVersion refresh()

Refreshes the resource to sync with Azure.

abstract CodeVersion refresh(Context context)

Refreshes the resource to sync with Azure.

abstract String resourceGroupName()

Gets the name of the resource group.

abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

abstract String type()

Gets the type property: The type of the resource.

abstract Update update()

Begins update for the CodeVersion resource.

Method Details

createOrGetStartPendingUpload

public abstract PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body)

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

Parameters:

body - Pending upload request object.

Returns:

the response.

createOrGetStartPendingUploadWithResponse

public abstract Response<PendingUploadResponseDto> createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body, Context context)

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

Parameters:

body - Pending upload request object.
context - The context to associate with this operation.

Returns:

the response body along with Response<T>.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract CodeVersionInner innerModel()

Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner object.

Returns:

the inner object.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

properties

public abstract CodeVersionProperties properties()

Gets the properties property: [Required] Additional attributes of the entity.

Returns:

the properties value.

publish

public abstract void publish(DestinationAsset body)

Publish version asset into registry.

Parameters:

body - Destination registry info.

publish

public abstract void publish(DestinationAsset body, Context context)

Publish version asset into registry.

Parameters:

body - Destination registry info.
context - The context to associate with this operation.

refresh

public abstract CodeVersion refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract CodeVersion refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

resourceGroupName

public abstract String resourceGroupName()

Gets the name of the resource group.

Returns:

the name of the resource group.

systemData

public abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

update

public abstract CodeVersion.Update update()

Begins update for the CodeVersion resource.

Returns:

the stage of resource update.

Applies to