Interface Apis
public interface Apis
Resource collection API of Apis.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Api resource.void
Deletes specified API.void
deleteById
(String id) Deletes specified API.com.azure.core.http.rest.Response
<Void> deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes specified API.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, com.azure.core.util.Context context) Deletes specified API.Returns details of the API.Returns details of the API.com.azure.core.http.rest.Response
<Api> getByIdWithResponse
(String id, com.azure.core.util.Context context) Returns details of the API.com.azure.core.http.rest.Response
<Api> getWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, com.azure.core.util.Context context) Returns details of the API.void
Checks if specified API exists.com.azure.core.http.rest.Response
<Void> headWithResponse
(String resourceGroupName, String serviceName, String workspaceName, String apiName, com.azure.core.util.Context context) Checks if specified API exists.com.azure.core.http.rest.PagedIterable
<Api> Returns a collection of APIs.com.azure.core.http.rest.PagedIterable
<Api> list
(String resourceGroupName, String serviceName, String workspaceName, String filter, com.azure.core.util.Context context) Returns a collection of APIs.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Api> list(String resourceGroupName, String serviceName, String workspaceName) Returns a collection of APIs.- 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.- Returns:
- the response of a Api 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<Api> list(String resourceGroupName, String serviceName, String workspaceName, String filter, com.azure.core.util.Context context) Returns a collection of APIs.- 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.filter
- OData filter parameter.context
- The context to associate with this operation.- Returns:
- the response of a Api 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<Api> getWithResponse(String resourceGroupName, String serviceName, String workspaceName, String apiName, com.azure.core.util.Context context) Returns details of the API.- 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.context
- The context to associate with this operation.- Returns:
- aPI 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
Returns details of the API.- 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:
- aPI 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, com.azure.core.util.Context context) Deletes specified API.- 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.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
Deletes specified API.- 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.- 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, com.azure.core.util.Context context) Checks if specified API 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.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
Checks if specified API 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.- 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.- Parameters:
id
- the resource ID.- Returns:
- aPI 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<Api> getByIdWithResponse(String id, com.azure.core.util.Context context) Returns details of the API.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- aPI 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.- 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.- 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 Api resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Api definition.
-