Interface Certificates
public interface Certificates
Resource collection API of Certificates.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Certificate resource.void
Deletes the specified Certificate.void
deleteById
(String id) Deletes the specified Certificate.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the specified Certificate.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String environmentName, String certificateName, com.azure.core.util.Context context) Deletes the specified Certificate.Get the specified Certificate.Get the specified Certificate.com.azure.core.http.rest.Response<Certificate>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get the specified Certificate.com.azure.core.http.rest.Response<Certificate>
getWithResponse
(String resourceGroupName, String environmentName, String certificateName, com.azure.core.util.Context context) Get the specified Certificate.com.azure.core.http.rest.PagedIterable<Certificate>
Get the Certificates in a given managed environment.com.azure.core.http.rest.PagedIterable<Certificate>
Get the Certificates in a given managed environment.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Certificate> list(String resourceGroupName, String environmentName) Get the Certificates in a given managed environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.- Returns:
- the Certificates in a given managed environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<Certificate> list(String resourceGroupName, String environmentName, com.azure.core.util.Context context) Get the Certificates in a given managed environment.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.context
- The context to associate with this operation.- Returns:
- the Certificates in a given managed environment as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<Certificate> getWithResponse(String resourceGroupName, String environmentName, String certificateName, com.azure.core.util.Context context) Get the specified Certificate.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.certificateName
- Name of the Certificate.context
- The context to associate with this operation.- Returns:
- the specified Certificate along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get the specified Certificate.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.certificateName
- Name of the Certificate.- Returns:
- the specified Certificate.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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 environmentName, String certificateName, com.azure.core.util.Context context) Deletes the specified Certificate.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.certificateName
- Name of the Certificate.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes the specified Certificate.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.environmentName
- Name of the Managed Environment.certificateName
- Name of the Certificate.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get the specified Certificate.- Parameters:
id
- the resource ID.- Returns:
- the specified Certificate along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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<Certificate> getByIdWithResponse(String id, com.azure.core.util.Context context) Get the specified Certificate.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified Certificate along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes the specified Certificate.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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 the specified Certificate.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.DefaultErrorResponseErrorException
- 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 Certificate resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Certificate definition.
-