public interface TagOperations
| Modifier and Type | Method and Description |
|---|---|
TagCreateResult |
createOrUpdate(String tagName)
Create a subscription resource tag.
|
Future<TagCreateResult> |
createOrUpdateAsync(String tagName)
Create a subscription resource tag.
|
TagCreateValueResult |
createOrUpdateValue(String tagName,
String tagValue)
Create a subscription resource tag value.
|
Future<TagCreateValueResult> |
createOrUpdateValueAsync(String tagName,
String tagValue)
Create a subscription resource tag value.
|
OperationResponse |
delete(String tagName)
Delete a subscription resource tag.
|
Future<OperationResponse> |
deleteAsync(String tagName)
Delete a subscription resource tag.
|
OperationResponse |
deleteValue(String tagName,
String tagValue)
Delete a subscription resource tag value.
|
Future<OperationResponse> |
deleteValueAsync(String tagName,
String tagValue)
Delete a subscription resource tag value.
|
TagsListResult |
list()
Get a list of subscription resource tags.
|
Future<TagsListResult> |
listAsync()
Get a list of subscription resource tags.
|
TagsListResult |
listNext(String nextLink)
Get a list of tags under a subscription.
|
Future<TagsListResult> |
listNextAsync(String nextLink)
Get a list of tags under a subscription.
|
TagCreateResult createOrUpdate(String tagName) throws IOException, ServiceException, URISyntaxException
tagName - Required. The name of the tag.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<TagCreateResult> createOrUpdateAsync(String tagName)
tagName - Required. The name of the tag.TagCreateValueResult createOrUpdateValue(String tagName, String tagValue) throws IOException, ServiceException
tagName - Required. The name of the tag.tagValue - Required. The value of the tag.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<TagCreateValueResult> createOrUpdateValueAsync(String tagName, String tagValue)
tagName - Required. The name of the tag.tagValue - Required. The value of the tag.OperationResponse delete(String tagName) throws InterruptedException, ExecutionException, IOException, ServiceException
tagName - Required. The name of the tag.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.ServiceException - Thrown if an unexpected response is found.Future<OperationResponse> deleteAsync(String tagName)
tagName - Required. The name of the tag.OperationResponse deleteValue(String tagName, String tagValue) throws IOException, ServiceException
tagName - Required. The name of the tag.tagValue - Required. The value of the tag.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<OperationResponse> deleteValueAsync(String tagName, String tagValue)
tagName - Required. The name of the tag.tagValue - Required. The value of the tag.TagsListResult list() throws IOException, ServiceException, URISyntaxException
IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<TagsListResult> listAsync()
TagsListResult listNext(String nextLink) throws IOException, ServiceException, URISyntaxException
nextLink - Required. NextLink from the previous successful call to
List operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<TagsListResult> listNextAsync(String nextLink)
nextLink - Required. NextLink from the previous successful call to
List operation./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/