Interface TagOperationsClient
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScope(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScope(String scope, TagsResourceInner parameters, com.azure.core.util.Context context) Creates or updates the entire set of tags on a resource or subscription.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScopeAsync(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.beginDeleteAtScope(String scope) Deletes the entire set of tags on a resource or subscription.beginDeleteAtScope(String scope, com.azure.core.util.Context context) Deletes the entire set of tags on a resource or subscription.beginDeleteAtScopeAsync(String scope) Deletes the entire set of tags on a resource or subscription.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScope(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScope(String scope, TagsPatchResource parameters, com.azure.core.util.Context context) Selectively updates the set of tags on a resource or subscription.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScopeAsync(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.createOrUpdate(String tagName) Creates a predefined tag name.createOrUpdateAsync(String tagName) Creates a predefined tag name.createOrUpdateAtScope(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.createOrUpdateAtScope(String scope, TagsResourceInner parameters, com.azure.core.util.Context context) Creates or updates the entire set of tags on a resource or subscription.createOrUpdateAtScopeAsync(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateAtScopeWithResponseAsync(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.createOrUpdateValue(String tagName, String tagValue) Creates a predefined value for a predefined tag name.createOrUpdateValueAsync(String tagName, String tagValue) Creates a predefined value for a predefined tag name.com.azure.core.http.rest.Response<TagValueInner>createOrUpdateValueWithResponse(String tagName, String tagValue, com.azure.core.util.Context context) Creates a predefined value for a predefined tag name.Mono<com.azure.core.http.rest.Response<TagValueInner>>createOrUpdateValueWithResponseAsync(String tagName, String tagValue) Creates a predefined value for a predefined tag name.com.azure.core.http.rest.Response<TagDetailsInner>createOrUpdateWithResponse(String tagName, com.azure.core.util.Context context) Creates a predefined tag name.Mono<com.azure.core.http.rest.Response<TagDetailsInner>>createOrUpdateWithResponseAsync(String tagName) Creates a predefined tag name.voidDeletes a predefined tag name.deleteAsync(String tagName) Deletes a predefined tag name.voiddeleteAtScope(String scope) Deletes the entire set of tags on a resource or subscription.voiddeleteAtScope(String scope, com.azure.core.util.Context context) Deletes the entire set of tags on a resource or subscription.deleteAtScopeAsync(String scope) Deletes the entire set of tags on a resource or subscription.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>Deletes the entire set of tags on a resource or subscription.voiddeleteValue(String tagName, String tagValue) Deletes a predefined tag value for a predefined tag name.deleteValueAsync(String tagName, String tagValue) Deletes a predefined tag value for a predefined tag name.com.azure.core.http.rest.Response<Void>deleteValueWithResponse(String tagName, String tagValue, com.azure.core.util.Context context) Deletes a predefined tag value for a predefined tag name.deleteValueWithResponseAsync(String tagName, String tagValue) Deletes a predefined tag value for a predefined tag name.com.azure.core.http.rest.Response<Void>deleteWithResponse(String tagName, com.azure.core.util.Context context) Deletes a predefined tag name.deleteWithResponseAsync(String tagName) Deletes a predefined tag name.getAtScope(String scope) Gets the entire set of tags on a resource or subscription.getAtScopeAsync(String scope) Gets the entire set of tags on a resource or subscription.com.azure.core.http.rest.Response<TagsResourceInner>getAtScopeWithResponse(String scope, com.azure.core.util.Context context) Gets the entire set of tags on a resource or subscription.Mono<com.azure.core.http.rest.Response<TagsResourceInner>>Gets the entire set of tags on a resource or subscription.com.azure.core.http.rest.PagedIterable<TagDetailsInner>list()Gets a summary of tag usage under the subscription.com.azure.core.http.rest.PagedIterable<TagDetailsInner>list(com.azure.core.util.Context context) Gets a summary of tag usage under the subscription.com.azure.core.http.rest.PagedFlux<TagDetailsInner>Gets a summary of tag usage under the subscription.updateAtScope(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.updateAtScope(String scope, TagsPatchResource parameters, com.azure.core.util.Context context) Selectively updates the set of tags on a resource or subscription.updateAtScopeAsync(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateAtScopeWithResponseAsync(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.
-
Method Details
-
deleteValueWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteValueWithResponseAsync(String tagName, String tagValue) Deletes a predefined tag value for a predefined tag name.This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to delete.- 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.
-
deleteValueAsync
Deletes a predefined tag value for a predefined tag name.This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to delete.- 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.
-
deleteValueWithResponse
com.azure.core.http.rest.Response<Void> deleteValueWithResponse(String tagName, String tagValue, com.azure.core.util.Context context) Deletes a predefined tag value for a predefined tag name.This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to delete.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.
-
deleteValue
Deletes a predefined tag value for a predefined tag name.This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to delete.- 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.
-
createOrUpdateValueWithResponseAsync
Mono<com.azure.core.http.rest.Response<TagValueInner>> createOrUpdateValueWithResponseAsync(String tagName, String tagValue) Creates a predefined value for a predefined tag name.This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to create.- Returns:
- tag information 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.
-
createOrUpdateValueAsync
Creates a predefined value for a predefined tag name.This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to create.- Returns:
- tag information 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.
-
createOrUpdateValueWithResponse
com.azure.core.http.rest.Response<TagValueInner> createOrUpdateValueWithResponse(String tagName, String tagValue, com.azure.core.util.Context context) Creates a predefined value for a predefined tag name.This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to create.context- The context to associate with this operation.- Returns:
- tag information 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.
-
createOrUpdateValue
Creates a predefined value for a predefined tag name.This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
- Parameters:
tagName- The name of the tag.tagValue- The value of the tag to create.- Returns:
- tag information.
- 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<TagDetailsInner>> createOrUpdateWithResponseAsync(String tagName) Creates a predefined tag name.This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
- Parameters:
tagName- The name of the tag to create.- Returns:
- tag details 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.
-
createOrUpdateAsync
Creates a predefined tag name.This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
- Parameters:
tagName- The name of the tag to create.- Returns:
- tag details 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<TagDetailsInner> createOrUpdateWithResponse(String tagName, com.azure.core.util.Context context) Creates a predefined tag name.This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
- Parameters:
tagName- The name of the tag to create.context- The context to associate with this operation.- Returns:
- tag details 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.
-
createOrUpdate
Creates a predefined tag name.This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: 'microsoft', 'azure', 'windows'.
- Parameters:
tagName- The name of the tag to create.- Returns:
- tag details.
- 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
Deletes a predefined tag name.This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.
- Parameters:
tagName- The name of the tag.- 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.
-
deleteAsync
Deletes a predefined tag name.This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.
- Parameters:
tagName- The name of the tag.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String tagName, com.azure.core.util.Context context) Deletes a predefined tag name.This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.
- Parameters:
tagName- The name of the tag.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 a predefined tag name.This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.
- Parameters:
tagName- The name of the tag.- 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<TagDetailsInner> listAsync()Gets a summary of tag usage under the subscription.This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.
- Returns:
- list of subscription tags as paginated response with
PagedFlux. - Throws:
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<TagDetailsInner> list()Gets a summary of tag usage under the subscription.This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.
- Returns:
- list of subscription tags as paginated response with
PagedIterable. - Throws:
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
Gets a summary of tag usage under the subscription.This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.
- Parameters:
context- The context to associate with this operation.- Returns:
- list of subscription tags 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.
-
createOrUpdateAtScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateAtScopeWithResponseAsync(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.- Returns:
- wrapper resource for tags API requests and responses 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.
-
beginCreateOrUpdateAtScopeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScopeAsync(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.- Returns:
- the
PollerFluxfor polling of wrapper resource for tags API requests and responses. - 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.
-
beginCreateOrUpdateAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScope(String scope, TagsResourceInner parameters) Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.- Returns:
- the
SyncPollerfor polling of wrapper resource for tags API requests and responses. - 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.
-
beginCreateOrUpdateAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginCreateOrUpdateAtScope(String scope, TagsResourceInner parameters, com.azure.core.util.Context context) Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of wrapper resource for tags API requests and responses. - 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.
-
createOrUpdateAtScopeAsync
Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.- Returns:
- wrapper resource for tags API requests and responses 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.
-
createOrUpdateAtScope
Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.- Returns:
- wrapper resource for tags API requests and responses.
- 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.
-
createOrUpdateAtScope
TagsResourceInner createOrUpdateAtScope(String scope, TagsResourceInner parameters, com.azure.core.util.Context context) Creates or updates the entire set of tags on a resource or subscription.This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags API requests and responses.context- The context to associate with this operation.- Returns:
- wrapper resource for tags API requests and responses.
- 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.
-
updateAtScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateAtScopeWithResponseAsync(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.- Returns:
- wrapper resource for tags API requests and responses 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.
-
beginUpdateAtScopeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScopeAsync(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.- Returns:
- the
PollerFluxfor polling of wrapper resource for tags API requests and responses. - 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.
-
beginUpdateAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScope(String scope, TagsPatchResource parameters) Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.- Returns:
- the
SyncPollerfor polling of wrapper resource for tags API requests and responses. - 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.
-
beginUpdateAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<TagsResourceInner>,TagsResourceInner> beginUpdateAtScope(String scope, TagsPatchResource parameters, com.azure.core.util.Context context) Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of wrapper resource for tags API requests and responses. - 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.
-
updateAtScopeAsync
Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.- Returns:
- wrapper resource for tags API requests and responses 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.
-
updateAtScope
Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.- Returns:
- wrapper resource for tags API requests and responses.
- 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.
-
updateAtScope
TagsResourceInner updateAtScope(String scope, TagsPatchResource parameters, com.azure.core.util.Context context) Selectively updates the set of tags on a resource or subscription.This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
- Parameters:
scope- The resource scope.parameters- Wrapper resource for tags patch API request only.context- The context to associate with this operation.- Returns:
- wrapper resource for tags API requests and responses.
- 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.
-
getAtScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<TagsResourceInner>> getAtScopeWithResponseAsync(String scope) Gets the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- Returns:
- the entire set of tags on a resource or subscription 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.
-
getAtScopeAsync
Gets the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- Returns:
- the entire set of tags on a resource or subscription 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.
-
getAtScopeWithResponse
com.azure.core.http.rest.Response<TagsResourceInner> getAtScopeWithResponse(String scope, com.azure.core.util.Context context) Gets the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.context- The context to associate with this operation.- Returns:
- the entire set of tags on a resource or subscription 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.
-
getAtScope
Gets the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- Returns:
- the entire set of tags on a resource or subscription.
- 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.
-
deleteAtScopeWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteAtScopeWithResponseAsync(String scope) Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- 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.
-
beginDeleteAtScopeAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAtScopeAsync(String scope) Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- 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.
-
beginDeleteAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAtScope(String scope) Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- 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.
-
beginDeleteAtScope
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAtScope(String scope, com.azure.core.util.Context context) Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.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.
-
deleteAtScopeAsync
Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- 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.
-
deleteAtScope
Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.- 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.
-
deleteAtScope
Deletes the entire set of tags on a resource or subscription.- Parameters:
scope- The resource scope.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.
-