Interface CodeVersion
public interface CodeVersion
An immutable client-side representation of CodeVersion.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the CodeVersion definition.static interfaceThe CodeVersion definition stages.static interfaceThe template for CodeVersion update.static interfaceThe CodeVersion update stages. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a storage location and credential for the client to upload a code asset to.com.azure.core.http.rest.Response<PendingUploadResponseDto>createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body, com.azure.core.util.Context context) Generate a storage location and credential for the client to upload a code asset to.id()Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner object.name()Gets the name property: The name of the resource.Gets the properties property: [Required] Additional attributes of the entity.voidpublish(DestinationAsset body) Publish version asset into registry.voidpublish(DestinationAsset body, com.azure.core.util.Context context) Publish version asset into registry.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.com.azure.core.management.SystemDataGets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.type()Gets the type property: The type of the resource.update()Begins update for the CodeVersion resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
properties
CodeVersionProperties properties()Gets the properties property: [Required] Additional attributes of the entity.- Returns:
- the properties value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
CodeVersionInner innerModel()Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner object.- Returns:
- the inner object.
-
update
CodeVersion.Update update()Begins update for the CodeVersion resource.- Returns:
- the stage of resource update.
-
refresh
CodeVersion refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
publish
Publish version asset into registry.- Parameters:
body- Destination registry info.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
publish
Publish version asset into registry.- Parameters:
body- Destination registry info.context- The context to associate with this operation.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrGetStartPendingUploadWithResponse
com.azure.core.http.rest.Response<PendingUploadResponseDto> createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body, com.azure.core.util.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. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrGetStartPendingUpload
Generate a storage location and credential for the client to upload a code asset to.- Parameters:
body- Pending upload request object.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-