Interface CodeVersions
public interface CodeVersions
Resource collection API of CodeVersions.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrGetStartPendingUpload(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.com.azure.core.http.rest.Response<PendingUploadResponseDto>createOrGetStartPendingUploadWithResponse(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body, com.azure.core.util.Context context) Generate a storage location and credential for the client to upload a code asset to.Begins definition for a new CodeVersion resource.voidDelete version.voiddeleteById(String id) Delete version.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete version.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String workspaceName, String name, String version, com.azure.core.util.Context context) Delete version.Get version.Get version.com.azure.core.http.rest.Response<CodeVersion>getByIdWithResponse(String id, com.azure.core.util.Context context) Get version.com.azure.core.http.rest.Response<CodeVersion>getWithResponse(String resourceGroupName, String workspaceName, String name, String version, com.azure.core.util.Context context) Get version.com.azure.core.http.rest.PagedIterable<CodeVersion>List versions.com.azure.core.http.rest.PagedIterable<CodeVersion>list(String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip, String hash, String hashVersion, com.azure.core.util.Context context) List versions.voidpublish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body) Publish version asset into registry.voidpublish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body, com.azure.core.util.Context context) Publish version asset into registry.
-
Method Details
-
list
com.azure.core.http.rest.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. - 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.
-
list
com.azure.core.http.rest.PagedIterable<CodeVersion> list(String resourceGroupName, String workspaceName, String name, String orderBy, Integer top, String skip, String hash, String hashVersion, com.azure.core.util.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. - 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String name, String version, com.azure.core.util.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:
- 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.
-
delete
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.- 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.
-
getWithResponse
com.azure.core.http.rest.Response<CodeVersion> getWithResponse(String resourceGroupName, String workspaceName, String name, String version, com.azure.core.util.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. - 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.
-
get
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.
- 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
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.- 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
void publish(String resourceGroupName, String workspaceName, String name, String version, DestinationAsset body, com.azure.core.util.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.- 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(String resourceGroupName, String workspaceName, String name, String version, PendingUploadRequestDto body, com.azure.core.util.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. - 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
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.
- 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.
-
getById
Get version.- Parameters:
id- the resource ID.- Returns:
- version 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<CodeVersion> getByIdWithResponse(String id, com.azure.core.util.Context context) Get version.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- version 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.
-
deleteById
Delete version.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete version.- Parameters:
id- the resource ID.context- The context to associate with this operation.- 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.
-
define
Begins definition for a new CodeVersion resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new CodeVersion definition.
-