Class: VSphereAutomation::CIS::TaggingTagAssociationApi
- Inherits:
-
Object
- Object
- VSphereAutomation::CIS::TaggingTagAssociationApi
- Defined in:
- lib/vsphere-automation-cis/api/tagging_tag_association_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#attach(tag_id, request_body, opts = {}) ⇒ |VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil
Attaches the given tag to the input object.
-
#attach_multiple_tags_to_object(request_body, opts = {}) ⇒ CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|
Attaches the given tags to the input object.
-
#attach_multiple_tags_to_object_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
private
Attaches the given tags to the input object.
-
#attach_tag_to_multiple_objects(tag_id, request_body, opts = {}) ⇒ CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Attaches the given tag to the input objects.
-
#attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
private
Attaches the given tag to the input objects.
-
#attach_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>
private
Attaches the given tag to the input object.
-
#detach(tag_id, request_body, opts = {}) ⇒ |VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil
Detaches the tag from the given object.
-
#detach_multiple_tags_from_object(request_body, opts = {}) ⇒ CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|
Detaches the given tags from the input object.
-
#detach_multiple_tags_from_object_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
private
Detaches the given tags from the input object.
-
#detach_tag_from_multiple_objects(tag_id, request_body, opts = {}) ⇒ CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Detaches the given tag from the input objects.
-
#detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
private
Detaches the given tag from the input objects.
-
#detach_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>
private
Detaches the tag from the given object.
-
#initialize(api_client = ApiClient.default) ⇒ TaggingTagAssociationApi
constructor
A new instance of TaggingTagAssociationApi.
-
#list_attachable_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|
Fetches the list of attachable tags for the given object, omitting the tags that have already been attached.
-
#list_attachable_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
private
Fetches the list of attachable tags for the given object, omitting the tags that have already been attached.
-
#list_attached_objects(tag_id, opts = {}) ⇒ CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Fetches the list of attached objects for the given tag.
-
#list_attached_objects_on_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedObjectsOnTagsResult|
Fetches the list of TagToObjects describing the input tag identifiers and the objects they are attached to.
-
#list_attached_objects_on_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedObjectsOnTagsResult|, Fixnum, Hash)>
private
Fetches the list of TagToObjects describing the input tag identifiers and the objects they are attached to.
-
#list_attached_objects_with_http_info(tag_id, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
private
Fetches the list of attached objects for the given tag.
-
#list_attached_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|
Fetches the list of tags attached to the given object.
-
#list_attached_tags_on_objects(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedTagsOnObjectsResult|
Fetches the list of ObjectToTags describing the input object identifiers and the tags attached to each object.
-
#list_attached_tags_on_objects_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedTagsOnObjectsResult|, Fixnum, Hash)>
private
Fetches the list of ObjectToTags describing the input object identifiers and the tags attached to each object.
-
#list_attached_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
private
Fetches the list of tags attached to the given object.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ TaggingTagAssociationApi
Returns a new instance of TaggingTagAssociationApi.
16 17 18 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#attach(tag_id, request_body, opts = {}) ⇒ |VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil
Attaches the given tag to the input object. The tag needs to meet the cardinality (CategoryModel#cardinality) and associability (CategoryModel#associableTypes) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this operation is a no-op and an error will not be thrown. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on the object.
24 25 26 27 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 24 def attach(tag_id, request_body, opts = {}) attach_with_http_info(tag_id, request_body, opts) nil end |
#attach_multiple_tags_to_object(request_body, opts = {}) ⇒ CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|
Attaches the given tags to the input object. If a tag is already attached to the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the read privilege on the object and the attach tag privilege on each tag.
81 82 83 84 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 81 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#attach_multiple_tags_to_object_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Attaches the given tags to the input object. If a tag is already attached to the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the read privilege on the object and the attach tag privilege on each tag.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 91 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_multiple_tags_to_object ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach_multiple_tags_to_object" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=attach-multiple-tags-to-object' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationAttachMultipleTagsToObjectResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach_multiple_tags_to_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#attach_tag_to_multiple_objects(tag_id, request_body, opts = {}) ⇒ CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on each object.
138 139 140 141 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 138 def attach_tag_to_multiple_objects(tag_id, request_body, opts = {}) data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts) data end |
#attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on each object.
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 149 def attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_tag_to_multiple_objects ...' end # verify the required parameter 'tag_id' is set if @api_client.config.client_side_validation && tag_id.nil? fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects" end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach-tag-to-multiple-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationAttachTagToMultipleObjectsResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', '404' => 'CIS::VapiStdErrorsNotFoundError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach_tag_to_multiple_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#attach_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Attaches the given tag to the input object. The tag needs to meet the cardinality (CategoryModel#cardinality) and associability (CategoryModel#associableTypes) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this operation is a no-op and an error will not be thrown. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on the object.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 35 def attach_with_http_info(tag_id, request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach ...' end # verify the required parameter 'tag_id' is set if @api_client.config.client_side_validation && tag_id.nil? fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach" end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach'.sub('{' + 'tag_id' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#detach(tag_id, request_body, opts = {}) ⇒ |VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil
Detaches the tag from the given object. If the tag is already removed from the object, then this operation is a no-op and an error will not be thrown. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on the object.
201 202 203 204 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 201 def detach(tag_id, request_body, opts = {}) detach_with_http_info(tag_id, request_body, opts) nil end |
#detach_multiple_tags_from_object(request_body, opts = {}) ⇒ CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|
Detaches the given tags from the input object. If a tag is already removed from the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the read privilege on the object and the attach tag privilege each tag.
258 259 260 261 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 258 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#detach_multiple_tags_from_object_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Detaches the given tags from the input object. If a tag is already removed from the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the read privilege on the object and the attach tag privilege each tag.
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 268 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_multiple_tags_from_object ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach_multiple_tags_from_object" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=detach-multiple-tags-from-object' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationDetachMultipleTagsFromObjectResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach_multiple_tags_from_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#detach_tag_from_multiple_objects(tag_id, request_body, opts = {}) ⇒ CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on each object.
315 316 317 318 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 315 def detach_tag_from_multiple_objects(tag_id, request_body, opts = {}) data, _status_code, _headers = detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts) data end |
#detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual operation is a no-op and an error will not be added to BatchResult#errorMessages. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on each object.
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 326 def detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_tag_from_multiple_objects ...' end # verify the required parameter 'tag_id' is set if @api_client.config.client_side_validation && tag_id.nil? fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects" end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach-tag-from-multiple-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationDetachTagFromMultipleObjectsResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', '404' => 'CIS::VapiStdErrorsNotFoundError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach_tag_from_multiple_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#detach_with_http_info(tag_id, request_body, opts = {}) ⇒ Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Detaches the tag from the given object. If the tag is already removed from the object, then this operation is a no-op and an error will not be thrown. To invoke this operation, you need the attach tag privilege on the tag and the read privilege on the object.
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 212 def detach_with_http_info(tag_id, request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach ...' end # verify the required parameter 'tag_id' is set if @api_client.config.client_side_validation && tag_id.nil? fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach" end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach'.sub('{' + 'tag_id' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_attachable_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|
Fetches the 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#cardinality) and associability (CategoryModel#associableTypes) constructs. To invoke this operation, you need the read privilege on the input object. The list will only contain those tags for which you have read privileges.
377 378 379 380 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 377 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#list_attachable_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the 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#cardinality) and associability (CategoryModel#associableTypes) constructs. To invoke this operation, you need the read privilege on the input object. The list will only contain those tags for which you have read privileges.
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 387 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attachable_tags ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attachable_tags" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attachable-tags' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationListAttachableTagsResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attachable_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_attached_objects(tag_id, opts = {}) ⇒ CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|
Fetches the list of attached objects for the given tag. To invoke this operation, you need the read privilege on the input tag. Only those objects for which you have the read privilege will be returned.
433 434 435 436 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 433 def list_attached_objects(tag_id, opts = {}) data, _status_code, _headers = list_attached_objects_with_http_info(tag_id, opts) data end |
#list_attached_objects_on_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedObjectsOnTagsResult|
Fetches the list of TagToObjects describing the input tag identifiers and the objects they are attached to. To invoke this operation, you need the read privilege on each input tag. The TagToObjects#objectIds will only contain those objects for which you have the read privilege.
488 489 490 491 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 488 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#list_attached_objects_on_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedObjectsOnTagsResult|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the list of TagToObjects describing the input tag identifiers and the objects they are attached to. To invoke this operation, you need the read privilege on each input tag. The TagToObjects#objectIds will only contain those objects for which you have the read privilege.
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 498 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_objects_on_tags ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_objects_on_tags" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationListAttachedObjectsOnTagsResult', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_objects_on_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_attached_objects_with_http_info(tag_id, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the list of attached objects for the given tag. To invoke this operation, you need the read privilege on the input tag. Only those objects for which you have the read privilege will be returned.
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 443 def list_attached_objects_with_http_info(tag_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_objects ...' end # verify the required parameter 'tag_id' is set if @api_client.config.client_side_validation && tag_id.nil? fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.list_attached_objects" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationListAttachedObjectsResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', '404' => 'CIS::VapiStdErrorsNotFoundError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_attached_tags(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|
Fetches the list of tags attached to the given object. To invoke this operation, you need the read privilege on the input object. The list will only contain those tags for which you have the read privileges.
543 544 545 546 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 543 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#list_attached_tags_on_objects(request_body, opts = {}) ⇒ CisTaggingTagAssociationListAttachedTagsOnObjectsResult|
Fetches the list of ObjectToTags describing the input object identifiers and the tags attached to each object. To invoke this operation, you need the read privilege on each input object. The ObjectToTags#tagIds will only contain those tags for which you have the read privilege.
599 600 601 602 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 599 def (request_body, opts = {}) data, _status_code, _headers = (request_body, opts) data end |
#list_attached_tags_on_objects_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedTagsOnObjectsResult|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the list of ObjectToTags describing the input object identifiers and the tags attached to each object. To invoke this operation, you need the read privilege on each input object. The ObjectToTags#tagIds will only contain those tags for which you have the read privilege.
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 609 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags_on_objects ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_tags_on_objects" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationListAttachedTagsOnObjectsResult', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_tags_on_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_attached_tags_with_http_info(request_body, opts = {}) ⇒ Array<(CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Fetches the list of tags attached to the given object. To invoke this operation, you need the read privilege on the input object. The list will only contain those tags for which you have the read privileges.
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/vsphere-automation-cis/api/tagging_tag_association_api.rb', line 553 def (request_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags ...' end # verify the required parameter 'request_body' is set if @api_client.config.client_side_validation && request_body.nil? fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_tags" end # resource path local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request_body) auth_names = ['api_key'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => { '200' => 'CIS::CisTaggingTagAssociationListAttachedTagsResult', '403' => 'CIS::VapiStdErrorsUnauthorizedError', }) if @api_client.config.debugging @api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |