com.azure.resourcemanager.machinelearning.models.RegistryModelVersions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-machinelearning Show documentation
Show all versions of azure-resourcemanager-machinelearning Show documentation
This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
/**
* Resource collection API of RegistryModelVersions.
*/
public interface RegistryModelVersions {
/**
* List versions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name. This is case-sensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a paginated list of ModelVersion entities as paginated response with {@link PagedIterable}.
*/
PagedIterable list(String resourceGroupName, String registryName, String modelName);
/**
* List versions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name. This is case-sensitive.
* @param skip Continuation token for pagination.
* @param orderBy Ordering of list.
* @param top Maximum number of records to return.
* @param version Version identifier.
* @param description Model description.
* @param tags Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2.
* @param properties Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2.
* @param listViewType View type for including/excluding (for example) archived entities.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a paginated list of ModelVersion entities as paginated response with {@link PagedIterable}.
*/
PagedIterable list(String resourceGroupName, String registryName, String modelName, String skip,
String orderBy, Integer top, String version, String description, String tags, String properties,
ListViewType listViewType, Context context);
/**
* Delete version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name.
* @param version Version identifier.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String registryName, String modelName, String version);
/**
* Delete version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name.
* @param version Version identifier.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String registryName, String modelName, String version, Context context);
/**
* Get version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name. This is case-sensitive.
* @param version Version identifier. This is case-sensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return version along with {@link Response}.
*/
Response getWithResponse(String resourceGroupName, String registryName, String modelName,
String version, Context context);
/**
* Get version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name. This is case-sensitive.
* @param version Version identifier. This is case-sensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return version.
*/
ModelVersion get(String resourceGroupName, String registryName, String modelName, String version);
/**
* Create or update version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name.
* @param version Version identifier.
* @param body Version entity to create or update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return azure Resource Manager resource envelope.
*/
ModelVersion createOrUpdate(String resourceGroupName, String registryName, String modelName, String version,
ModelVersionInner body);
/**
* Create or update version.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Container name.
* @param version Version identifier.
* @param body Version entity to create or update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return azure Resource Manager resource envelope.
*/
ModelVersion createOrUpdate(String resourceGroupName, String registryName, String modelName, String version,
ModelVersionInner body, Context context);
/**
* Generate a storage location and credential for the client to upload a model asset to.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Model name. This is case-sensitive.
* @param version Version identifier. This is case-sensitive.
* @param body Pending upload request object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
Response createOrGetStartPendingUploadWithResponse(String resourceGroupName,
String registryName, String modelName, String version, PendingUploadRequestDto body, Context context);
/**
* Generate a storage location and credential for the client to upload a model asset to.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param registryName Name of Azure Machine Learning registry. This is case-insensitive.
* @param modelName Model name. This is case-sensitive.
* @param version Version identifier. This is case-sensitive.
* @param body Pending upload request object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGroupName, String registryName,
String modelName, String version, PendingUploadRequestDto body);
}