public class TagAssociationStub extends com.vmware.vapi.internal.bindings.Stub implements TagAssociation
TagAssociation
API service.
WARNING: Internal class, subject to change in future versions.
TagAssociationTypes.BatchResult, TagAssociationTypes.ObjectToTags, TagAssociationTypes.TagToObjects
Constructor and Description |
---|
TagAssociationStub(ApiProvider apiProvider,
StubConfigurationBase config) |
TagAssociationStub(ApiProvider apiProvider,
com.vmware.vapi.internal.bindings.TypeConverter typeConverter,
StubConfigurationBase config) |
Modifier and Type | Method and Description |
---|---|
void |
attach(java.lang.String tagId,
DynamicID objectId)
Attaches the given tag to the input object.
|
void |
attach(java.lang.String tagId,
DynamicID objectId,
AsyncCallback<java.lang.Void> asyncCallback)
Attaches the given tag to the input object.
|
void |
attach(java.lang.String tagId,
DynamicID objectId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Attaches the given tag to the input object.
|
void |
attach(java.lang.String tagId,
DynamicID objectId,
InvocationConfig invocationConfig)
Attaches the given tag to the input object.
|
TagAssociationTypes.BatchResult |
attachMultipleTagsToObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds)
Attaches the given tags to the input object.
|
void |
attachMultipleTagsToObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
Attaches the given tags to the input object.
|
void |
attachMultipleTagsToObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback,
InvocationConfig invocationConfig)
Attaches the given tags to the input object.
|
TagAssociationTypes.BatchResult |
attachMultipleTagsToObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
InvocationConfig invocationConfig)
Attaches the given tags to the input object.
|
TagAssociationTypes.BatchResult |
attachTagToMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds)
Attaches the given tag to the input objects.
|
void |
attachTagToMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
Attaches the given tag to the input objects.
|
void |
attachTagToMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback,
InvocationConfig invocationConfig)
Attaches the given tag to the input objects.
|
TagAssociationTypes.BatchResult |
attachTagToMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
InvocationConfig invocationConfig)
Attaches the given tag to the input objects.
|
void |
detach(java.lang.String tagId,
DynamicID objectId)
Detaches the tag from the given object.
|
void |
detach(java.lang.String tagId,
DynamicID objectId,
AsyncCallback<java.lang.Void> asyncCallback)
Detaches the tag from the given object.
|
void |
detach(java.lang.String tagId,
DynamicID objectId,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Detaches the tag from the given object.
|
void |
detach(java.lang.String tagId,
DynamicID objectId,
InvocationConfig invocationConfig)
Detaches the tag from the given object.
|
TagAssociationTypes.BatchResult |
detachMultipleTagsFromObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds)
Detaches the given tags from the input object.
|
void |
detachMultipleTagsFromObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
Detaches the given tags from the input object.
|
void |
detachMultipleTagsFromObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback,
InvocationConfig invocationConfig)
Detaches the given tags from the input object.
|
TagAssociationTypes.BatchResult |
detachMultipleTagsFromObject(DynamicID objectId,
java.util.List<java.lang.String> tagIds,
InvocationConfig invocationConfig)
Detaches the given tags from the input object.
|
TagAssociationTypes.BatchResult |
detachTagFromMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds)
Detaches the given tag from the input objects.
|
void |
detachTagFromMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
Detaches the given tag from the input objects.
|
void |
detachTagFromMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback,
InvocationConfig invocationConfig)
Detaches the given tag from the input objects.
|
TagAssociationTypes.BatchResult |
detachTagFromMultipleObjects(java.lang.String tagId,
java.util.List<DynamicID> objectIds,
InvocationConfig invocationConfig)
Detaches the given tag from the input objects.
|
java.util.List<java.lang.String> |
listAttachableTags(DynamicID objectId)
Fetches the
List of attachable tags for the given object,
omitting the tags that have already been attached. |
void |
listAttachableTags(DynamicID objectId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Fetches the
List of attachable tags for the given object,
omitting the tags that have already been attached. |
void |
listAttachableTags(DynamicID objectId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Fetches the
List of attachable tags for the given object,
omitting the tags that have already been attached. |
java.util.List<java.lang.String> |
listAttachableTags(DynamicID objectId,
InvocationConfig invocationConfig)
Fetches the
List of attachable tags for the given object,
omitting the tags that have already been attached. |
java.util.List<DynamicID> |
listAttachedObjects(java.lang.String tagId)
Fetches the
List of attached objects for the given tag. |
void |
listAttachedObjects(java.lang.String tagId,
AsyncCallback<java.util.List<DynamicID>> asyncCallback)
Fetches the
List of attached objects for the given tag. |
void |
listAttachedObjects(java.lang.String tagId,
AsyncCallback<java.util.List<DynamicID>> asyncCallback,
InvocationConfig invocationConfig)
Fetches the
List of attached objects for the given tag. |
java.util.List<DynamicID> |
listAttachedObjects(java.lang.String tagId,
InvocationConfig invocationConfig)
Fetches the
List of attached objects for the given tag. |
java.util.List<TagAssociationTypes.TagToObjects> |
listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds)
Fetches the
List of TagAssociationTypes.TagToObjects describing the input
tag identifiers and the objects they are attached to. |
void |
listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds,
AsyncCallback<java.util.List<TagAssociationTypes.TagToObjects>> asyncCallback)
Fetches the
List of TagAssociationTypes.TagToObjects describing the input
tag identifiers and the objects they are attached to. |
void |
listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds,
AsyncCallback<java.util.List<TagAssociationTypes.TagToObjects>> asyncCallback,
InvocationConfig invocationConfig)
Fetches the
List of TagAssociationTypes.TagToObjects describing the input
tag identifiers and the objects they are attached to. |
java.util.List<TagAssociationTypes.TagToObjects> |
listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds,
InvocationConfig invocationConfig)
Fetches the
List of TagAssociationTypes.TagToObjects describing the input
tag identifiers and the objects they are attached to. |
java.util.List<java.lang.String> |
listAttachedTags(DynamicID objectId)
Fetches the
List of tags attached to the given object. |
void |
listAttachedTags(DynamicID objectId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Fetches the
List of tags attached to the given object. |
void |
listAttachedTags(DynamicID objectId,
AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Fetches the
List of tags attached to the given object. |
java.util.List<java.lang.String> |
listAttachedTags(DynamicID objectId,
InvocationConfig invocationConfig)
Fetches the
List of tags attached to the given object. |
java.util.List<TagAssociationTypes.ObjectToTags> |
listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds)
Fetches the
List of TagAssociationTypes.ObjectToTags describing the input
object identifiers and the tags attached to each object. |
void |
listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds,
AsyncCallback<java.util.List<TagAssociationTypes.ObjectToTags>> asyncCallback)
Fetches the
List of TagAssociationTypes.ObjectToTags describing the input
object identifiers and the tags attached to each object. |
void |
listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds,
AsyncCallback<java.util.List<TagAssociationTypes.ObjectToTags>> asyncCallback,
InvocationConfig invocationConfig)
Fetches the
List of TagAssociationTypes.ObjectToTags describing the input
object identifiers and the tags attached to each object. |
java.util.List<TagAssociationTypes.ObjectToTags> |
listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds,
InvocationConfig invocationConfig)
Fetches the
List of TagAssociationTypes.ObjectToTags describing the input
object identifiers and the tags attached to each object. |
public TagAssociationStub(ApiProvider apiProvider, com.vmware.vapi.internal.bindings.TypeConverter typeConverter, StubConfigurationBase config)
public TagAssociationStub(ApiProvider apiProvider, StubConfigurationBase config)
public void attach(java.lang.String tagId, DynamicID objectId)
TagAssociation
CategoryModel.getCardinality()
) and
associability (CategoryModel.getAssociableTypes()
)
criteria in order to be eligible for attachment. If the tag is already attached
to the object, then this method is a no-op and an error will not be thrown. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on the object.
Synchronous method overload. Result of the invocation will be reported as a method return value.
attach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.public void attach(java.lang.String tagId, DynamicID objectId, InvocationConfig invocationConfig)
TagAssociation
CategoryModel.getCardinality()
) and
associability (CategoryModel.getAssociableTypes()
)
criteria in order to be eligible for attachment. If the tag is already attached
to the object, then this method is a no-op and an error will not be thrown. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on the object.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
attach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.invocationConfig
- Configuration for the method invocation.public void attach(java.lang.String tagId, DynamicID objectId, AsyncCallback<java.lang.Void> asyncCallback)
TagAssociation
CategoryModel.getCardinality()
) and
associability (CategoryModel.getAssociableTypes()
)
criteria in order to be eligible for attachment. If the tag is already attached
to the object, then this method is a no-op and an error will not be thrown. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on the object.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
InvalidArgument
- if the input tag is not eligible to be attached to this object or if the objectId
is not valid.
Unauthorized
- if you do not have the privilege to attach the tag or do not have the privilege
to read the object.
attach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void attach(java.lang.String tagId, DynamicID objectId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
CategoryModel.getCardinality()
) and
associability (CategoryModel.getAssociableTypes()
)
criteria in order to be eligible for attachment. If the tag is already attached
to the object, then this method is a no-op and an error will not be thrown. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on the object.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
InvalidArgument
- if the input tag is not eligible to be attached to this object or if the objectId
is not valid.
Unauthorized
- if you do not have the privilege to attach the tag or do not have the privilege
to read the object.
attach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public TagAssociationTypes.BatchResult attachMultipleTagsToObject(DynamicID objectId, java.util.List<java.lang.String> tagIds)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the read privilege on the object and the attach
tag privilege on each tag. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
attachMultipleTagsToObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.public TagAssociationTypes.BatchResult attachMultipleTagsToObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the read privilege on the object and the attach
tag privilege on each tag. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
attachMultipleTagsToObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.invocationConfig
- Configuration for the method invocation.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.public void attachMultipleTagsToObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the read privilege on the object and the attach
tag privilege on each tag. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
attachMultipleTagsToObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void attachMultipleTagsToObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the read privilege on the object and the attach
tag privilege on each tag. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
attachMultipleTagsToObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public TagAssociationTypes.BatchResult attachTagToMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
attachTagToMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.public TagAssociationTypes.BatchResult attachTagToMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
attachTagToMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.invocationConfig
- Configuration for the method invocation.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.public void attachTagToMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the attach tag privilege on the tag.
attachTagToMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void attachTagToMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
.
To invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing attachment failures.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the attach tag privilege on the tag.
attachTagToMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public void detach(java.lang.String tagId, DynamicID objectId)
TagAssociation
Synchronous method overload. Result of the invocation will be reported as a method return value.
detach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.public void detach(java.lang.String tagId, DynamicID objectId, InvocationConfig invocationConfig)
TagAssociation
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
detach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.invocationConfig
- Configuration for the method invocation.public void detach(java.lang.String tagId, DynamicID objectId, AsyncCallback<java.lang.Void> asyncCallback)
TagAssociation
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the privilege to detach the tag or do not have the privilege
to read the given object.
detach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void detach(java.lang.String tagId, DynamicID objectId, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the privilege to detach the tag or do not have the privilege
to read the given object.
detach
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public TagAssociationTypes.BatchResult detachMultipleTagsFromObject(DynamicID objectId, java.util.List<java.lang.String> tagIds)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the read privilege on the object and the attach tag
privilege each tag. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
detachMultipleTagsFromObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.public TagAssociationTypes.BatchResult detachMultipleTagsFromObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the read privilege on the object and the attach tag
privilege each tag. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
detachMultipleTagsFromObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.invocationConfig
- Configuration for the method invocation.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.public void detachMultipleTagsFromObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the read privilege on the object and the attach tag
privilege each tag. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
detachMultipleTagsFromObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void detachMultipleTagsFromObject(DynamicID objectId, java.util.List<java.lang.String> tagIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the read privilege on the object and the attach tag
privilege each tag. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
detachMultipleTagsFromObject
in interface TagAssociation
objectId
- The identifier of the input object.tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public TagAssociationTypes.BatchResult detachTagFromMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
detachTagFromMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.public TagAssociationTypes.BatchResult detachTagFromMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
detachTagFromMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.invocationConfig
- Configuration for the method invocation.List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.public void detachTagFromMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.
Operation Errors:
NotFound
- if the tag for the given tag does not exist in the system.
Unauthorized
- if you do not have the attach tag privilege on the tag.
detachTagFromMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void detachTagFromMultipleObjects(java.lang.String tagId, java.util.List<DynamicID> objectIds, AsyncCallback<TagAssociationTypes.BatchResult> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
TagAssociationTypes.BatchResult.getErrorMessages()
. To
invoke this method, you need the attach tag privilege on the tag and the read
privilege on each object. This method was added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The outcome of the batch method and the List
of error messages
(TagAssociationTypes.BatchResult.getErrorMessages()
)
describing detachment failures.
Operation Errors:
NotFound
- if the tag for the given tag does not exist in the system.
Unauthorized
- if you do not have the attach tag privilege on the tag.
detachTagFromMultipleObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<DynamicID> listAttachedObjects(java.lang.String tagId)
TagAssociation
List
of attached objects for the given tag. To
invoke this method, you need the read privilege on the input tag. Only those
objects for which you have the read privilege will be returned.
Synchronous method overload. Result of the invocation will be reported as a method return value.
listAttachedObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.List
of attached object identifiers.public java.util.List<DynamicID> listAttachedObjects(java.lang.String tagId, InvocationConfig invocationConfig)
TagAssociation
List
of attached objects for the given tag. To
invoke this method, you need the read privilege on the input tag. Only those
objects for which you have the read privilege will be returned.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
listAttachedObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.invocationConfig
- Configuration for the method invocation.List
of attached object identifiers.public void listAttachedObjects(java.lang.String tagId, AsyncCallback<java.util.List<DynamicID>> asyncCallback)
TagAssociation
List
of attached objects for the given tag. To
invoke this method, you need the read privilege on the input tag. Only those
objects for which you have the read privilege will be returned.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of attached object identifiers.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the privilege to read the tag.
listAttachedObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listAttachedObjects(java.lang.String tagId, AsyncCallback<java.util.List<DynamicID>> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
List
of attached objects for the given tag. To
invoke this method, you need the read privilege on the input tag. Only those
objects for which you have the read privilege will be returned.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of attached object identifiers.
Operation Errors:
NotFound
- if the tag for the given tagId
does not exist in the system.
Unauthorized
- if you do not have the privilege to read the tag.
listAttachedObjects
in interface TagAssociation
tagId
- The identifier of the input tag.
The parameter must be an identifier for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<TagAssociationTypes.TagToObjects> listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds)
TagAssociation
List
of TagAssociationTypes.TagToObjects
describing the input
tag identifiers and the objects they are attached to. To invoke this method, you
need the read privilege on each input tag. The TagAssociationTypes.TagToObjects.getObjectIds()
will only
contain those objects for which you have the read privilege. This method was
added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
listAttachedObjectsOnTags
in interface TagAssociation
tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.List
of the tag identifiers to all object identifiers that
each tag is attached to.public java.util.List<TagAssociationTypes.TagToObjects> listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds, InvocationConfig invocationConfig)
TagAssociation
List
of TagAssociationTypes.TagToObjects
describing the input
tag identifiers and the objects they are attached to. To invoke this method, you
need the read privilege on each input tag. The TagAssociationTypes.TagToObjects.getObjectIds()
will only
contain those objects for which you have the read privilege. This method was
added in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
listAttachedObjectsOnTags
in interface TagAssociation
tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.invocationConfig
- Configuration for the method invocation.List
of the tag identifiers to all object identifiers that
each tag is attached to.public void listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds, AsyncCallback<java.util.List<TagAssociationTypes.TagToObjects>> asyncCallback)
TagAssociation
List
of TagAssociationTypes.TagToObjects
describing the input
tag identifiers and the objects they are attached to. To invoke this method, you
need the read privilege on each input tag. The TagAssociationTypes.TagToObjects.getObjectIds()
will only
contain those objects for which you have the read privilege. This method was
added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of the tag identifiers to all object identifiers that
each tag is attached to.
listAttachedObjectsOnTags
in interface TagAssociation
tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listAttachedObjectsOnTags(java.util.List<java.lang.String> tagIds, AsyncCallback<java.util.List<TagAssociationTypes.TagToObjects>> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
List
of TagAssociationTypes.TagToObjects
describing the input
tag identifiers and the objects they are attached to. To invoke this method, you
need the read privilege on each input tag. The TagAssociationTypes.TagToObjects.getObjectIds()
will only
contain those objects for which you have the read privilege. This method was
added in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of the tag identifiers to all object identifiers that
each tag is attached to.
listAttachedObjectsOnTags
in interface TagAssociation
tagIds
- The identifiers of the input tags.
The parameter must contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<java.lang.String> listAttachedTags(DynamicID objectId)
TagAssociation
List
of tags attached to the given object. To
invoke this method, you need the read privilege on the input object. The List
will only contain those tags for which you have the read
privileges.
Synchronous method overload. Result of the invocation will be reported as a method return value.
listAttachedTags
in interface TagAssociation
objectId
- The identifier of the input object.List
of all tag identifiers that correspond to the tags
attached to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.public java.util.List<java.lang.String> listAttachedTags(DynamicID objectId, InvocationConfig invocationConfig)
TagAssociation
List
of tags attached to the given object. To
invoke this method, you need the read privilege on the input object. The List
will only contain those tags for which you have the read
privileges.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
listAttachedTags
in interface TagAssociation
objectId
- The identifier of the input object.invocationConfig
- Configuration for the method invocation.List
of all tag identifiers that correspond to the tags
attached to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.public void listAttachedTags(DynamicID objectId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
TagAssociation
List
of tags attached to the given object. To
invoke this method, you need the read privilege on the input object. The List
will only contain those tags for which you have the read
privileges.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of all tag identifiers that correspond to the tags
attached to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
listAttachedTags
in interface TagAssociation
objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listAttachedTags(DynamicID objectId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
List
of tags attached to the given object. To
invoke this method, you need the read privilege on the input object. The List
will only contain those tags for which you have the read
privileges.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of all tag identifiers that correspond to the tags
attached to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
listAttachedTags
in interface TagAssociation
objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<TagAssociationTypes.ObjectToTags> listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds)
TagAssociation
List
of TagAssociationTypes.ObjectToTags
describing the input
object identifiers and the tags attached to each object. To invoke this method,
you need the read privilege on each input object. The TagAssociationTypes.ObjectToTags.getTagIds()
will only
contain those tags for which you have the read privilege. This method was added
in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be reported as a method return value.
listAttachedTagsOnObjects
in interface TagAssociation
objectIds
- The identifiers of the input objects.List
of the object identifiers to all tag identifiers that
are attached to that object.public java.util.List<TagAssociationTypes.ObjectToTags> listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds, InvocationConfig invocationConfig)
TagAssociation
List
of TagAssociationTypes.ObjectToTags
describing the input
object identifiers and the tags attached to each object. To invoke this method,
you need the read privilege on each input object. The TagAssociationTypes.ObjectToTags.getTagIds()
will only
contain those tags for which you have the read privilege. This method was added
in vSphere API 6.5.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
listAttachedTagsOnObjects
in interface TagAssociation
objectIds
- The identifiers of the input objects.invocationConfig
- Configuration for the method invocation.List
of the object identifiers to all tag identifiers that
are attached to that object.public void listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds, AsyncCallback<java.util.List<TagAssociationTypes.ObjectToTags>> asyncCallback)
TagAssociation
List
of TagAssociationTypes.ObjectToTags
describing the input
object identifiers and the tags attached to each object. To invoke this method,
you need the read privilege on each input object. The TagAssociationTypes.ObjectToTags.getTagIds()
will only
contain those tags for which you have the read privilege. This method was added
in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of the object identifiers to all tag identifiers that
are attached to that object.
listAttachedTagsOnObjects
in interface TagAssociation
objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listAttachedTagsOnObjects(java.util.List<DynamicID> objectIds, AsyncCallback<java.util.List<TagAssociationTypes.ObjectToTags>> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
List
of TagAssociationTypes.ObjectToTags
describing the input
object identifiers and the tags attached to each object. To invoke this method,
you need the read privilege on each input object. The TagAssociationTypes.ObjectToTags.getTagIds()
will only
contain those tags for which you have the read privilege. This method was added
in vSphere API 6.5.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of the object identifiers to all tag identifiers that
are attached to that object.
listAttachedTagsOnObjects
in interface TagAssociation
objectIds
- The identifiers of the input objects.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.public java.util.List<java.lang.String> listAttachableTags(DynamicID objectId)
TagAssociation
List
of attachable tags for the given object,
omitting the tags that have already been attached. Criteria for attachability is
calculated based on tagging cardinality (CategoryModel.getCardinality()
) and associability (CategoryModel.getAssociableTypes()
) constructs. To invoke
this method, you need the read privilege on the input object. The List
will only contain those tags for which you have read privileges.
Synchronous method overload. Result of the invocation will be reported as a method return value.
listAttachableTags
in interface TagAssociation
objectId
- The identifier of the input object.List
of tag identifiers that are eligible to be attached
to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.public java.util.List<java.lang.String> listAttachableTags(DynamicID objectId, InvocationConfig invocationConfig)
TagAssociation
List
of attachable tags for the given object,
omitting the tags that have already been attached. Criteria for attachability is
calculated based on tagging cardinality (CategoryModel.getCardinality()
) and associability (CategoryModel.getAssociableTypes()
) constructs. To invoke
this method, you need the read privilege on the input object. The List
will only contain those tags for which you have read privileges.
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
listAttachableTags
in interface TagAssociation
objectId
- The identifier of the input object.invocationConfig
- Configuration for the method invocation.List
of tag identifiers that are eligible to be attached
to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.public void listAttachableTags(DynamicID objectId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
TagAssociation
List
of attachable tags for the given object,
omitting the tags that have already been attached. Criteria for attachability is
calculated based on tagging cardinality (CategoryModel.getCardinality()
) and associability (CategoryModel.getAssociableTypes()
) constructs. To invoke
this method, you need the read privilege on the input object. The List
will only contain those tags for which you have read privileges.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
The List
of tag identifiers that are eligible to be attached
to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
listAttachableTags
in interface TagAssociation
objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.public void listAttachableTags(DynamicID objectId, AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
TagAssociation
List
of attachable tags for the given object,
omitting the tags that have already been attached. Criteria for attachability is
calculated based on tagging cardinality (CategoryModel.getCardinality()
) and associability (CategoryModel.getAssociableTypes()
) constructs. To invoke
this method, you need the read privilege on the input object. The List
will only contain those tags for which you have read privileges.
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
The List
of tag identifiers that are eligible to be attached
to the given object.
The return value will contain identifiers for the resource type: com.vmware.cis.tagging.Tag
.
Operation Errors:
Unauthorized
- if you do not have the privilege to read the object.
listAttachableTags
in interface TagAssociation
objectId
- The identifier of the input object.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.