Interface TokensClient
public interface TokensClient
An instance of this class provides access to all the operations defined in TokensClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginCreate(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginCreate(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters, com.azure.core.util.Context context) Creates a token for a container registry with the specified parameters.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginCreateAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.beginDelete(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.beginDelete(String resourceGroupName, String registryName, String tokenName, com.azure.core.util.Context context) Deletes a token from a container registry.beginDeleteAsync(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginUpdate(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginUpdate(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters, com.azure.core.util.Context context) Updates a token with the specified parameters.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TokenInner>, TokenInner> beginUpdateAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.create(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.create(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters, com.azure.core.util.Context context) Creates a token for a container registry with the specified parameters.createAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.voidDeletes a token from a container registry.voiddelete(String resourceGroupName, String registryName, String tokenName, com.azure.core.util.Context context) Deletes a token from a container registry.deleteAsync(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.Gets the properties of the specified token.Gets the properties of the specified token.com.azure.core.http.rest.Response<TokenInner> getWithResponse(String resourceGroupName, String registryName, String tokenName, com.azure.core.util.Context context) Gets the properties of the specified token.Mono<com.azure.core.http.rest.Response<TokenInner>> getWithResponseAsync(String resourceGroupName, String registryName, String tokenName) Gets the properties of the specified token.com.azure.core.http.rest.PagedIterable<TokenInner> Lists all the tokens for the specified container registry.com.azure.core.http.rest.PagedIterable<TokenInner> Lists all the tokens for the specified container registry.com.azure.core.http.rest.PagedFlux<TokenInner> Lists all the tokens for the specified container registry.update(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.update(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters, com.azure.core.util.Context context) Updates a token with the specified parameters.updateAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<TokenInner> listAsync(String resourceGroupName, String registryName) Lists all the tokens for the specified container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.- Returns:
- the result of a request to list tokens for a container registry as paginated response with
PagedFlux. - 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<TokenInner> list(String resourceGroupName, String registryName) Lists all the tokens for the specified container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.- Returns:
- the result of a request to list tokens for a container registry 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<TokenInner> list(String resourceGroupName, String registryName, com.azure.core.util.Context context) Lists all the tokens for the specified container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.context- The context to associate with this operation.- Returns:
- the result of a request to list tokens for a container registry 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<TokenInner>> getWithResponseAsync(String resourceGroupName, String registryName, String tokenName) Gets the properties of the specified token.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the properties of the specified token along with
Responseon successful completion ofMono. - 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.
-
getAsync
Gets the properties of the specified token.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the properties of the specified token on successful completion of
Mono. - 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<TokenInner> getWithResponse(String resourceGroupName, String registryName, String tokenName, com.azure.core.util.Context context) Gets the properties of the specified token.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.context- The context to associate with this operation.- Returns:
- the properties of the specified token 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
Gets the properties of the specified token.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the properties of the specified token.
- 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.
-
createWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.- Returns:
- an object that represents a token for a container registry along with
Responseon successful completion ofMono. - 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.
-
beginCreateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginCreateAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.- Returns:
- the
PollerFluxfor polling of an object that represents a token for a container registry. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginCreate(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.- Returns:
- the
SyncPollerfor polling of an object that represents a token for a container registry. - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginCreate(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters, com.azure.core.util.Context context) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an object that represents a token for a container registry. - 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.
-
createAsync
Mono<TokenInner> createAsync(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.- Returns:
- an object that represents a token for a container registry on successful completion of
Mono. - 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.
-
create
TokenInner create(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.- Returns:
- an object that represents a token for a container registry.
- 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.
-
create
TokenInner create(String resourceGroupName, String registryName, String tokenName, TokenInner tokenCreateParameters, com.azure.core.util.Context context) Creates a token for a container registry with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenCreateParameters- The parameters for creating a token.context- The context to associate with this operation.- Returns:
- an object that represents a token for a container registry.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the
PollerFluxfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String registryName, String tokenName) Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String registryName, String tokenName, com.azure.core.util.Context context) Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of long-running 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.
-
deleteAsync
Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- Returns:
- A
Monothat completes when a successful response is received. - 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 a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.- 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 registryName, String tokenName, com.azure.core.util.Context context) Deletes a token from a container registry.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.- Returns:
- an object that represents a token for a container registry along with
Responseon successful completion ofMono. - 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.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginUpdateAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.- Returns:
- the
PollerFluxfor polling of an object that represents a token for a container registry. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginUpdate(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.- Returns:
- the
SyncPollerfor polling of an object that represents a token for a container registry. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TokenInner>,TokenInner> beginUpdate(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters, com.azure.core.util.Context context) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of an object that represents a token for a container registry. - 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.
-
updateAsync
Mono<TokenInner> updateAsync(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.- Returns:
- an object that represents a token for a container registry on successful completion of
Mono. - 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.
-
update
TokenInner update(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.- Returns:
- an object that represents a token for a container registry.
- 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.
-
update
TokenInner update(String resourceGroupName, String registryName, String tokenName, TokenUpdateParameters tokenUpdateParameters, com.azure.core.util.Context context) Updates a token with the specified parameters.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.registryName- The name of the container registry.tokenName- The name of the token.tokenUpdateParameters- The parameters for updating a token.context- The context to associate with this operation.- Returns:
- an object that represents a token for a container registry.
- 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.
-