Interface ApiVersions
public interface ApiVersions
Resource collection API of ApiVersions.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ApiVersion resource.void
delete
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Deletes specified API version.void
deleteById
(String id) Deletes specified API version.com.azure.core.http.rest.Response
<Void> deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes specified API version.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Deletes specified API version.get
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Returns details of the API version.Returns details of the API version.com.azure.core.http.rest.Response
<ApiVersion> getByIdWithResponse
(String id, com.azure.core.util.Context context) Returns details of the API version.com.azure.core.http.rest.Response
<ApiVersion> getWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Returns details of the API version.void
head
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Checks if specified API version exists.com.azure.core.http.rest.Response
<Void> headWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Checks if specified API version exists.com.azure.core.http.rest.PagedIterable
<ApiVersion> Returns a collection of API versions.com.azure.core.http.rest.PagedIterable
<ApiVersion> list
(String resourceGroupName, String serviceName, String workspaceName, String apiName, String filter, com.azure.core.util.Context context) Returns a collection of API versions.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ApiVersion> list(String resourceGroupName, String serviceName, String workspaceName, String apiName) Returns a collection of API versions.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.- Returns:
- the response of a ApiVersion list operation 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<ApiVersion> list(String resourceGroupName, String serviceName, String workspaceName, String apiName, String filter, com.azure.core.util.Context context) Returns a collection of API versions.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.filter
- OData filter parameter.context
- The context to associate with this operation.- Returns:
- the response of a ApiVersion list operation 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.
-
getWithResponse
com.azure.core.http.rest.Response<ApiVersion> getWithResponse(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Returns details of the API version.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API version.context
- The context to associate with this operation.- Returns:
- aPI version entity.
- 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
ApiVersion get(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Returns details of the API version.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API version.- Returns:
- aPI version entity.
- 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 serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Deletes specified API version.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API version.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
void delete(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Deletes specified API version.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API 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.
-
headWithResponse
com.azure.core.http.rest.Response<Void> headWithResponse(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName, com.azure.core.util.Context context) Checks if specified API version exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API version.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.
-
head
void head(String resourceGroupName, String serviceName, String workspaceName, String apiName, String versionName) Checks if specified API version exists.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.serviceName
- The name of Azure API Center service.workspaceName
- The name of the workspace.apiName
- The name of the API.versionName
- The name of the API 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.
-
getById
Returns details of the API version.- Parameters:
id
- the resource ID.- Returns:
- aPI version entity.
- 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<ApiVersion> getByIdWithResponse(String id, com.azure.core.util.Context context) Returns details of the API version.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- aPI version entity.
- 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
Deletes specified API 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) Deletes specified API 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 ApiVersion resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ApiVersion definition.
-