vsphere-automation-cis 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +11 -1
- data/Gemfile.lock +39 -36
- data/README.md +14 -7
- data/Rakefile +8 -0
- data/docs/CisTaggingTagAssociationBatchResult.md +1 -1
- data/docs/CisTaskInfo.md +1 -1
- data/docs/CisTasksGetSpec.md +2 -2
- data/docs/CisTasksListResultValue.md +1 -1
- data/docs/FilterSpecTargets.md +1 -1
- data/docs/SessionApi.md +26 -6
- data/docs/TaggingCategoryApi.md +104 -39
- data/docs/TaggingTagApi.md +118 -44
- data/docs/TaggingTagAssociationApi.md +145 -64
- data/docs/TasksApi.md +40 -17
- data/lib/vsphere-automation-cis/api/session_api.rb +10 -12
- data/lib/vsphere-automation-cis/api/tagging_category_api.rb +79 -70
- data/lib/vsphere-automation-cis/api/tagging_tag_api.rb +96 -76
- data/lib/vsphere-automation-cis/api/tagging_tag_association_api.rb +140 -120
- data/lib/vsphere-automation-cis/api/tasks_api.rb +33 -24
- data/lib/vsphere-automation-cis/api_client.rb +9 -5
- data/lib/vsphere-automation-cis/api_error.rb +4 -6
- data/lib/vsphere-automation-cis/configuration.rb +18 -6
- data/lib/vsphere-automation-cis/models/cis_session_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_session_info.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_session_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_add_to_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model_cardinality.rb +6 -8
- data/lib/vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_batch_result.rb +5 -7
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_model.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_task_info.rb +5 -7
- data/lib/vsphere-automation-cis/models/cis_task_progress.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_task_status.rb +9 -11
- data/lib/vsphere-automation-cis/models/cis_tasks_filter_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tasks_get_spec.rb +6 -8
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result_value.rb +17 -19
- data/lib/vsphere-automation-cis/models/cis_tasks_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/filter_spec_targets.rb +23 -25
- data/lib/vsphere-automation-cis/models/vapi_std_dynamic_id.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb +4 -6
- data/lib/vsphere-automation-cis/version.rb +5 -7
- data/lib/vsphere-automation-cis.rb +7 -9
- data/pkg/vsphere-automation-cis-0.2.0.gem +0 -0
- data/spec/api/session_api_spec.rb +4 -6
- data/spec/api/tagging_category_api_spec.rb +10 -11
- data/spec/api/tagging_tag_api_spec.rb +11 -11
- data/spec/api/tagging_tag_association_api_spec.rb +16 -16
- data/spec/api/tasks_api_spec.rb +9 -10
- data/spec/api_client_spec.rb +4 -6
- data/spec/configuration_spec.rb +4 -6
- data/spec/models/cis_session_create_result_spec.rb +4 -6
- data/spec/models/cis_session_info_spec.rb +4 -6
- data/spec/models/cis_session_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_used_categories_spec.rb +4 -6
- data/spec/models/cis_tagging_category_model_cardinality_spec.rb +4 -6
- data/spec/models/cis_tagging_category_model_spec.rb +4 -6
- data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_category_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_update_spec.rb +4 -6
- data/spec/models/cis_tagging_category_update_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_model_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_update_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_update_spec_spec.rb +4 -6
- data/spec/models/cis_task_info_spec.rb +4 -6
- data/spec/models/cis_task_progress_spec.rb +4 -6
- data/spec/models/cis_task_status_spec.rb +4 -6
- data/spec/models/cis_tasks_filter_spec_spec.rb +4 -6
- data/spec/models/cis_tasks_get_spec_spec.rb +4 -6
- data/spec/models/cis_tasks_list_result_spec.rb +4 -6
- data/spec/models/cis_tasks_list_result_value_spec.rb +6 -8
- data/spec/models/cis_tasks_result_spec.rb +4 -6
- data/spec/models/filter_spec_targets_spec.rb +6 -8
- data/spec/models/vapi_std_dynamic_id_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
- data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
- data/spec/spec_helper.rb +4 -6
- data/vsphere-automation-cis.gemspec +11 -14
- metadata +18 -32
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# cis
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# cis - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -20,21 +18,21 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Attaches the given tag to the input object. The tag needs to meet the cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
22
20
|
# @param tag_id The identifier of the input tag.
|
23
|
-
# @param
|
21
|
+
# @param request_body
|
24
22
|
# @param [Hash] opts the optional parameters
|
25
23
|
# @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
26
|
-
def attach(tag_id,
|
27
|
-
attach_with_http_info(tag_id,
|
24
|
+
def attach(tag_id, request_body, opts = {})
|
25
|
+
attach_with_http_info(tag_id, request_body, opts)
|
28
26
|
nil
|
29
27
|
end
|
30
28
|
|
31
29
|
# Attaches the given tag to the input object. The tag needs to meet the cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
32
30
|
# @api private
|
33
31
|
# @param tag_id The identifier of the input tag.
|
34
|
-
# @param
|
32
|
+
# @param request_body
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
-
def attach_with_http_info(tag_id,
|
35
|
+
def attach_with_http_info(tag_id, request_body, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach ...'
|
40
38
|
end
|
@@ -42,9 +40,9 @@ module VSphereAutomation
|
|
42
40
|
if @api_client.config.client_side_validation && tag_id.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach"
|
44
42
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'request_body' is set
|
44
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach"
|
48
46
|
end
|
49
47
|
# resource path
|
50
48
|
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
@@ -55,7 +53,7 @@ module VSphereAutomation
|
|
55
53
|
# header parameters
|
56
54
|
header_params = {}
|
57
55
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
57
|
# HTTP header 'Content-Type'
|
60
58
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
59
|
|
@@ -63,8 +61,8 @@ module VSphereAutomation
|
|
63
61
|
form_params = {}
|
64
62
|
|
65
63
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
64
|
+
post_body = @api_client.object_to_http_body(request_body)
|
65
|
+
auth_names = ['api_key']
|
68
66
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
67
|
:header_params => header_params,
|
70
68
|
:query_params => query_params,
|
@@ -77,26 +75,26 @@ module VSphereAutomation
|
|
77
75
|
return data, status_code, headers
|
78
76
|
end
|
79
77
|
# Attaches the given tags to the input object. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege on each tag.
|
80
|
-
# @param
|
78
|
+
# @param request_body
|
81
79
|
# @param [Hash] opts the optional parameters
|
82
80
|
# @return [CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|]
|
83
|
-
def attach_multiple_tags_to_object(
|
84
|
-
data, _status_code, _headers = attach_multiple_tags_to_object_with_http_info(
|
81
|
+
def attach_multiple_tags_to_object(request_body, opts = {})
|
82
|
+
data, _status_code, _headers = attach_multiple_tags_to_object_with_http_info(request_body, opts)
|
85
83
|
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# Attaches the given tags to the input object. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege on each tag.
|
89
87
|
# @api private
|
90
|
-
# @param
|
88
|
+
# @param request_body
|
91
89
|
# @param [Hash] opts the optional parameters
|
92
90
|
# @return [Array<(CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
93
|
-
def attach_multiple_tags_to_object_with_http_info(
|
91
|
+
def attach_multiple_tags_to_object_with_http_info(request_body, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
93
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_multiple_tags_to_object ...'
|
96
94
|
end
|
97
|
-
# verify the required parameter '
|
98
|
-
if @api_client.config.client_side_validation &&
|
99
|
-
fail ArgumentError, "Missing the required parameter '
|
95
|
+
# verify the required parameter 'request_body' is set
|
96
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach_multiple_tags_to_object"
|
100
98
|
end
|
101
99
|
# resource path
|
102
100
|
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=attach-multiple-tags-to-object'
|
@@ -107,7 +105,7 @@ module VSphereAutomation
|
|
107
105
|
# header parameters
|
108
106
|
header_params = {}
|
109
107
|
# HTTP header 'Accept' (if needed)
|
110
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
111
109
|
# HTTP header 'Content-Type'
|
112
110
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
113
111
|
|
@@ -115,8 +113,8 @@ module VSphereAutomation
|
|
115
113
|
form_params = {}
|
116
114
|
|
117
115
|
# http body (model)
|
118
|
-
post_body = @api_client.object_to_http_body(
|
119
|
-
auth_names = []
|
116
|
+
post_body = @api_client.object_to_http_body(request_body)
|
117
|
+
auth_names = ['api_key']
|
120
118
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
121
119
|
:header_params => header_params,
|
122
120
|
:query_params => query_params,
|
@@ -134,21 +132,23 @@ module VSphereAutomation
|
|
134
132
|
end
|
135
133
|
# Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
136
134
|
# @param tag_id The identifier of the input tag.
|
137
|
-
# @param
|
135
|
+
# @param action ~action=attach-tag-to-multiple-objects
|
136
|
+
# @param request_body
|
138
137
|
# @param [Hash] opts the optional parameters
|
139
138
|
# @return [CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
140
|
-
def attach_tag_to_multiple_objects(tag_id,
|
141
|
-
data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id,
|
139
|
+
def attach_tag_to_multiple_objects(tag_id, action, request_body, opts = {})
|
140
|
+
data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id, action, request_body, opts)
|
142
141
|
data
|
143
142
|
end
|
144
143
|
|
145
144
|
# Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
146
145
|
# @api private
|
147
146
|
# @param tag_id The identifier of the input tag.
|
148
|
-
# @param
|
147
|
+
# @param action ~action=attach-tag-to-multiple-objects
|
148
|
+
# @param request_body
|
149
149
|
# @param [Hash] opts the optional parameters
|
150
150
|
# @return [Array<(CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
151
|
-
def attach_tag_to_multiple_objects_with_http_info(tag_id,
|
151
|
+
def attach_tag_to_multiple_objects_with_http_info(tag_id, action, request_body, opts = {})
|
152
152
|
if @api_client.config.debugging
|
153
153
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_tag_to_multiple_objects ...'
|
154
154
|
end
|
@@ -156,20 +156,29 @@ module VSphereAutomation
|
|
156
156
|
if @api_client.config.client_side_validation && tag_id.nil?
|
157
157
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
|
158
158
|
end
|
159
|
-
# verify the required parameter '
|
160
|
-
if @api_client.config.client_side_validation &&
|
161
|
-
fail ArgumentError, "Missing the required parameter '
|
159
|
+
# verify the required parameter 'action' is set
|
160
|
+
if @api_client.config.client_side_validation && action.nil?
|
161
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
|
162
|
+
end
|
163
|
+
# verify enum value
|
164
|
+
if @api_client.config.client_side_validation && !['attach-tag-to-multiple-objects'].include?(action)
|
165
|
+
fail ArgumentError, "invalid value for 'action', must be one of attach-tag-to-multiple-objects"
|
166
|
+
end
|
167
|
+
# verify the required parameter 'request_body' is set
|
168
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
169
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
|
162
170
|
end
|
163
171
|
# resource path
|
164
|
-
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}
|
172
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
165
173
|
|
166
174
|
# query parameters
|
167
175
|
query_params = {}
|
176
|
+
query_params[:'~action'] = action
|
168
177
|
|
169
178
|
# header parameters
|
170
179
|
header_params = {}
|
171
180
|
# HTTP header 'Accept' (if needed)
|
172
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
182
|
# HTTP header 'Content-Type'
|
174
183
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
175
184
|
|
@@ -177,8 +186,8 @@ module VSphereAutomation
|
|
177
186
|
form_params = {}
|
178
187
|
|
179
188
|
# http body (model)
|
180
|
-
post_body = @api_client.object_to_http_body(
|
181
|
-
auth_names = []
|
189
|
+
post_body = @api_client.object_to_http_body(request_body)
|
190
|
+
auth_names = ['api_key']
|
182
191
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
183
192
|
:header_params => header_params,
|
184
193
|
:query_params => query_params,
|
@@ -197,21 +206,21 @@ module VSphereAutomation
|
|
197
206
|
end
|
198
207
|
# Detaches the tag from the given object. If the tag is already removed from the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
199
208
|
# @param tag_id The identifier of the input tag.
|
200
|
-
# @param
|
209
|
+
# @param request_body
|
201
210
|
# @param [Hash] opts the optional parameters
|
202
211
|
# @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
203
|
-
def detach(tag_id,
|
204
|
-
detach_with_http_info(tag_id,
|
212
|
+
def detach(tag_id, request_body, opts = {})
|
213
|
+
detach_with_http_info(tag_id, request_body, opts)
|
205
214
|
nil
|
206
215
|
end
|
207
216
|
|
208
217
|
# Detaches the tag from the given object. If the tag is already removed from the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
209
218
|
# @api private
|
210
219
|
# @param tag_id The identifier of the input tag.
|
211
|
-
# @param
|
220
|
+
# @param request_body
|
212
221
|
# @param [Hash] opts the optional parameters
|
213
222
|
# @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
214
|
-
def detach_with_http_info(tag_id,
|
223
|
+
def detach_with_http_info(tag_id, request_body, opts = {})
|
215
224
|
if @api_client.config.debugging
|
216
225
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach ...'
|
217
226
|
end
|
@@ -219,9 +228,9 @@ module VSphereAutomation
|
|
219
228
|
if @api_client.config.client_side_validation && tag_id.nil?
|
220
229
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach"
|
221
230
|
end
|
222
|
-
# verify the required parameter '
|
223
|
-
if @api_client.config.client_side_validation &&
|
224
|
-
fail ArgumentError, "Missing the required parameter '
|
231
|
+
# verify the required parameter 'request_body' is set
|
232
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach"
|
225
234
|
end
|
226
235
|
# resource path
|
227
236
|
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
@@ -232,7 +241,7 @@ module VSphereAutomation
|
|
232
241
|
# header parameters
|
233
242
|
header_params = {}
|
234
243
|
# HTTP header 'Accept' (if needed)
|
235
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
236
245
|
# HTTP header 'Content-Type'
|
237
246
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
238
247
|
|
@@ -240,8 +249,8 @@ module VSphereAutomation
|
|
240
249
|
form_params = {}
|
241
250
|
|
242
251
|
# http body (model)
|
243
|
-
post_body = @api_client.object_to_http_body(
|
244
|
-
auth_names = []
|
252
|
+
post_body = @api_client.object_to_http_body(request_body)
|
253
|
+
auth_names = ['api_key']
|
245
254
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
246
255
|
:header_params => header_params,
|
247
256
|
:query_params => query_params,
|
@@ -254,26 +263,26 @@ module VSphereAutomation
|
|
254
263
|
return data, status_code, headers
|
255
264
|
end
|
256
265
|
# Detaches the given tags from the input object. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege each tag.
|
257
|
-
# @param
|
266
|
+
# @param request_body
|
258
267
|
# @param [Hash] opts the optional parameters
|
259
268
|
# @return [CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|]
|
260
|
-
def detach_multiple_tags_from_object(
|
261
|
-
data, _status_code, _headers = detach_multiple_tags_from_object_with_http_info(
|
269
|
+
def detach_multiple_tags_from_object(request_body, opts = {})
|
270
|
+
data, _status_code, _headers = detach_multiple_tags_from_object_with_http_info(request_body, opts)
|
262
271
|
data
|
263
272
|
end
|
264
273
|
|
265
274
|
# Detaches the given tags from the input object. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege each tag.
|
266
275
|
# @api private
|
267
|
-
# @param
|
276
|
+
# @param request_body
|
268
277
|
# @param [Hash] opts the optional parameters
|
269
278
|
# @return [Array<(CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
270
|
-
def detach_multiple_tags_from_object_with_http_info(
|
279
|
+
def detach_multiple_tags_from_object_with_http_info(request_body, opts = {})
|
271
280
|
if @api_client.config.debugging
|
272
281
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_multiple_tags_from_object ...'
|
273
282
|
end
|
274
|
-
# verify the required parameter '
|
275
|
-
if @api_client.config.client_side_validation &&
|
276
|
-
fail ArgumentError, "Missing the required parameter '
|
283
|
+
# verify the required parameter 'request_body' is set
|
284
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
285
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach_multiple_tags_from_object"
|
277
286
|
end
|
278
287
|
# resource path
|
279
288
|
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=detach-multiple-tags-from-object'
|
@@ -284,7 +293,7 @@ module VSphereAutomation
|
|
284
293
|
# header parameters
|
285
294
|
header_params = {}
|
286
295
|
# HTTP header 'Accept' (if needed)
|
287
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
288
297
|
# HTTP header 'Content-Type'
|
289
298
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
290
299
|
|
@@ -292,8 +301,8 @@ module VSphereAutomation
|
|
292
301
|
form_params = {}
|
293
302
|
|
294
303
|
# http body (model)
|
295
|
-
post_body = @api_client.object_to_http_body(
|
296
|
-
auth_names = []
|
304
|
+
post_body = @api_client.object_to_http_body(request_body)
|
305
|
+
auth_names = ['api_key']
|
297
306
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
298
307
|
:header_params => header_params,
|
299
308
|
:query_params => query_params,
|
@@ -311,21 +320,21 @@ module VSphereAutomation
|
|
311
320
|
end
|
312
321
|
# Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
313
322
|
# @param tag_id The identifier of the input tag.
|
314
|
-
# @param
|
323
|
+
# @param request_body
|
315
324
|
# @param [Hash] opts the optional parameters
|
316
325
|
# @return [CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
317
|
-
def detach_tag_from_multiple_objects(tag_id,
|
318
|
-
data, _status_code, _headers = detach_tag_from_multiple_objects_with_http_info(tag_id,
|
326
|
+
def detach_tag_from_multiple_objects(tag_id, request_body, opts = {})
|
327
|
+
data, _status_code, _headers = detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts)
|
319
328
|
data
|
320
329
|
end
|
321
330
|
|
322
331
|
# Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
323
332
|
# @api private
|
324
333
|
# @param tag_id The identifier of the input tag.
|
325
|
-
# @param
|
334
|
+
# @param request_body
|
326
335
|
# @param [Hash] opts the optional parameters
|
327
336
|
# @return [Array<(CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
328
|
-
def detach_tag_from_multiple_objects_with_http_info(tag_id,
|
337
|
+
def detach_tag_from_multiple_objects_with_http_info(tag_id, request_body, opts = {})
|
329
338
|
if @api_client.config.debugging
|
330
339
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_tag_from_multiple_objects ...'
|
331
340
|
end
|
@@ -333,9 +342,9 @@ module VSphereAutomation
|
|
333
342
|
if @api_client.config.client_side_validation && tag_id.nil?
|
334
343
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects"
|
335
344
|
end
|
336
|
-
# verify the required parameter '
|
337
|
-
if @api_client.config.client_side_validation &&
|
338
|
-
fail ArgumentError, "Missing the required parameter '
|
345
|
+
# verify the required parameter 'request_body' is set
|
346
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
347
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects"
|
339
348
|
end
|
340
349
|
# resource path
|
341
350
|
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)
|
@@ -346,7 +355,7 @@ module VSphereAutomation
|
|
346
355
|
# header parameters
|
347
356
|
header_params = {}
|
348
357
|
# HTTP header 'Accept' (if needed)
|
349
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
358
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
350
359
|
# HTTP header 'Content-Type'
|
351
360
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
352
361
|
|
@@ -354,8 +363,8 @@ module VSphereAutomation
|
|
354
363
|
form_params = {}
|
355
364
|
|
356
365
|
# http body (model)
|
357
|
-
post_body = @api_client.object_to_http_body(
|
358
|
-
auth_names = []
|
366
|
+
post_body = @api_client.object_to_http_body(request_body)
|
367
|
+
auth_names = ['api_key']
|
359
368
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
360
369
|
:header_params => header_params,
|
361
370
|
:query_params => query_params,
|
@@ -373,26 +382,26 @@ module VSphereAutomation
|
|
373
382
|
return data, status_code, headers
|
374
383
|
end
|
375
384
|
# Fetches the {@term 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 ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) constructs. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have read privileges.
|
376
|
-
# @param
|
385
|
+
# @param request_body
|
377
386
|
# @param [Hash] opts the optional parameters
|
378
387
|
# @return [CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|]
|
379
|
-
def list_attachable_tags(
|
380
|
-
data, _status_code, _headers = list_attachable_tags_with_http_info(
|
388
|
+
def list_attachable_tags(request_body, opts = {})
|
389
|
+
data, _status_code, _headers = list_attachable_tags_with_http_info(request_body, opts)
|
381
390
|
data
|
382
391
|
end
|
383
392
|
|
384
393
|
# Fetches the {@term 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 ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) constructs. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have read privileges.
|
385
394
|
# @api private
|
386
|
-
# @param
|
395
|
+
# @param request_body
|
387
396
|
# @param [Hash] opts the optional parameters
|
388
397
|
# @return [Array<(CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
389
|
-
def list_attachable_tags_with_http_info(
|
398
|
+
def list_attachable_tags_with_http_info(request_body, opts = {})
|
390
399
|
if @api_client.config.debugging
|
391
400
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attachable_tags ...'
|
392
401
|
end
|
393
|
-
# verify the required parameter '
|
394
|
-
if @api_client.config.client_side_validation &&
|
395
|
-
fail ArgumentError, "Missing the required parameter '
|
402
|
+
# verify the required parameter 'request_body' is set
|
403
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
404
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attachable_tags"
|
396
405
|
end
|
397
406
|
# resource path
|
398
407
|
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attachable-tags'
|
@@ -403,7 +412,7 @@ module VSphereAutomation
|
|
403
412
|
# header parameters
|
404
413
|
header_params = {}
|
405
414
|
# HTTP header 'Accept' (if needed)
|
406
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
415
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
416
|
# HTTP header 'Content-Type'
|
408
417
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
409
418
|
|
@@ -411,8 +420,8 @@ module VSphereAutomation
|
|
411
420
|
form_params = {}
|
412
421
|
|
413
422
|
# http body (model)
|
414
|
-
post_body = @api_client.object_to_http_body(
|
415
|
-
auth_names = []
|
423
|
+
post_body = @api_client.object_to_http_body(request_body)
|
424
|
+
auth_names = ['api_key']
|
416
425
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
417
426
|
:header_params => header_params,
|
418
427
|
:query_params => query_params,
|
@@ -459,14 +468,14 @@ module VSphereAutomation
|
|
459
468
|
# header parameters
|
460
469
|
header_params = {}
|
461
470
|
# HTTP header 'Accept' (if needed)
|
462
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
463
472
|
|
464
473
|
# form parameters
|
465
474
|
form_params = {}
|
466
475
|
|
467
476
|
# http body (model)
|
468
477
|
post_body = nil
|
469
|
-
auth_names = []
|
478
|
+
auth_names = ['api_key']
|
470
479
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
471
480
|
:header_params => header_params,
|
472
481
|
:query_params => query_params,
|
@@ -484,26 +493,26 @@ module VSphereAutomation
|
|
484
493
|
return data, status_code, headers
|
485
494
|
end
|
486
495
|
# Fetches the {@term list} of {@link TagToObjects} describing the input tag identifiers and the objects they are attached to. To invoke this {@term operation}, you need the read privilege on each input tag. The {@link TagToObjects#objectIds} will only contain those objects for which you have the read privilege.
|
487
|
-
# @param
|
496
|
+
# @param request_body
|
488
497
|
# @param [Hash] opts the optional parameters
|
489
498
|
# @return [CisTaggingTagAssociationListAttachedObjectsOnTagsResult|]
|
490
|
-
def list_attached_objects_on_tags(
|
491
|
-
data, _status_code, _headers = list_attached_objects_on_tags_with_http_info(
|
499
|
+
def list_attached_objects_on_tags(request_body, opts = {})
|
500
|
+
data, _status_code, _headers = list_attached_objects_on_tags_with_http_info(request_body, opts)
|
492
501
|
data
|
493
502
|
end
|
494
503
|
|
495
504
|
# Fetches the {@term list} of {@link TagToObjects} describing the input tag identifiers and the objects they are attached to. To invoke this {@term operation}, you need the read privilege on each input tag. The {@link TagToObjects#objectIds} will only contain those objects for which you have the read privilege.
|
496
505
|
# @api private
|
497
|
-
# @param
|
506
|
+
# @param request_body
|
498
507
|
# @param [Hash] opts the optional parameters
|
499
508
|
# @return [Array<(CisTaggingTagAssociationListAttachedObjectsOnTagsResult|, Fixnum, Hash)>] data, response status code and response headers
|
500
|
-
def list_attached_objects_on_tags_with_http_info(
|
509
|
+
def list_attached_objects_on_tags_with_http_info(request_body, opts = {})
|
501
510
|
if @api_client.config.debugging
|
502
511
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_objects_on_tags ...'
|
503
512
|
end
|
504
|
-
# verify the required parameter '
|
505
|
-
if @api_client.config.client_side_validation &&
|
506
|
-
fail ArgumentError, "Missing the required parameter '
|
513
|
+
# verify the required parameter 'request_body' is set
|
514
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
515
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_objects_on_tags"
|
507
516
|
end
|
508
517
|
# resource path
|
509
518
|
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags'
|
@@ -514,7 +523,7 @@ module VSphereAutomation
|
|
514
523
|
# header parameters
|
515
524
|
header_params = {}
|
516
525
|
# HTTP header 'Accept' (if needed)
|
517
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
526
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
518
527
|
# HTTP header 'Content-Type'
|
519
528
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
520
529
|
|
@@ -522,8 +531,8 @@ module VSphereAutomation
|
|
522
531
|
form_params = {}
|
523
532
|
|
524
533
|
# http body (model)
|
525
|
-
post_body = @api_client.object_to_http_body(
|
526
|
-
auth_names = []
|
534
|
+
post_body = @api_client.object_to_http_body(request_body)
|
535
|
+
auth_names = ['api_key']
|
527
536
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
528
537
|
:header_params => header_params,
|
529
538
|
:query_params => query_params,
|
@@ -539,26 +548,26 @@ module VSphereAutomation
|
|
539
548
|
return data, status_code, headers
|
540
549
|
end
|
541
550
|
# Fetches the {@term list} of tags attached to the given object. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have the read privileges.
|
542
|
-
# @param
|
551
|
+
# @param request_body
|
543
552
|
# @param [Hash] opts the optional parameters
|
544
553
|
# @return [CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|]
|
545
|
-
def list_attached_tags(
|
546
|
-
data, _status_code, _headers = list_attached_tags_with_http_info(
|
554
|
+
def list_attached_tags(request_body, opts = {})
|
555
|
+
data, _status_code, _headers = list_attached_tags_with_http_info(request_body, opts)
|
547
556
|
data
|
548
557
|
end
|
549
558
|
|
550
559
|
# Fetches the {@term list} of tags attached to the given object. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have the read privileges.
|
551
560
|
# @api private
|
552
|
-
# @param
|
561
|
+
# @param request_body
|
553
562
|
# @param [Hash] opts the optional parameters
|
554
563
|
# @return [Array<(CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
555
|
-
def list_attached_tags_with_http_info(
|
564
|
+
def list_attached_tags_with_http_info(request_body, opts = {})
|
556
565
|
if @api_client.config.debugging
|
557
566
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags ...'
|
558
567
|
end
|
559
|
-
# verify the required parameter '
|
560
|
-
if @api_client.config.client_side_validation &&
|
561
|
-
fail ArgumentError, "Missing the required parameter '
|
568
|
+
# verify the required parameter 'request_body' is set
|
569
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
570
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_tags"
|
562
571
|
end
|
563
572
|
# resource path
|
564
573
|
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags'
|
@@ -569,7 +578,7 @@ module VSphereAutomation
|
|
569
578
|
# header parameters
|
570
579
|
header_params = {}
|
571
580
|
# HTTP header 'Accept' (if needed)
|
572
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
581
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
573
582
|
# HTTP header 'Content-Type'
|
574
583
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
575
584
|
|
@@ -577,8 +586,8 @@ module VSphereAutomation
|
|
577
586
|
form_params = {}
|
578
587
|
|
579
588
|
# http body (model)
|
580
|
-
post_body = @api_client.object_to_http_body(
|
581
|
-
auth_names = []
|
589
|
+
post_body = @api_client.object_to_http_body(request_body)
|
590
|
+
auth_names = ['api_key']
|
582
591
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
583
592
|
:header_params => header_params,
|
584
593
|
:query_params => query_params,
|
@@ -595,37 +604,48 @@ module VSphereAutomation
|
|
595
604
|
return data, status_code, headers
|
596
605
|
end
|
597
606
|
# Fetches the {@term list} of {@link ObjectToTags} describing the input object identifiers and the tags attached to each object. To invoke this {@term operation}, you need the read privilege on each input object. The {@link ObjectToTags#tagIds} will only contain those tags for which you have the read privilege.
|
598
|
-
# @param
|
607
|
+
# @param action ~action=list-attached-tags-on-objects
|
608
|
+
# @param request_body
|
599
609
|
# @param [Hash] opts the optional parameters
|
600
610
|
# @return [CisTaggingTagAssociationListAttachedTagsOnObjectsResult|]
|
601
|
-
def list_attached_tags_on_objects(
|
602
|
-
data, _status_code, _headers = list_attached_tags_on_objects_with_http_info(
|
611
|
+
def list_attached_tags_on_objects(action, request_body, opts = {})
|
612
|
+
data, _status_code, _headers = list_attached_tags_on_objects_with_http_info(action, request_body, opts)
|
603
613
|
data
|
604
614
|
end
|
605
615
|
|
606
616
|
# Fetches the {@term list} of {@link ObjectToTags} describing the input object identifiers and the tags attached to each object. To invoke this {@term operation}, you need the read privilege on each input object. The {@link ObjectToTags#tagIds} will only contain those tags for which you have the read privilege.
|
607
617
|
# @api private
|
608
|
-
# @param
|
618
|
+
# @param action ~action=list-attached-tags-on-objects
|
619
|
+
# @param request_body
|
609
620
|
# @param [Hash] opts the optional parameters
|
610
621
|
# @return [Array<(CisTaggingTagAssociationListAttachedTagsOnObjectsResult|, Fixnum, Hash)>] data, response status code and response headers
|
611
|
-
def list_attached_tags_on_objects_with_http_info(
|
622
|
+
def list_attached_tags_on_objects_with_http_info(action, request_body, opts = {})
|
612
623
|
if @api_client.config.debugging
|
613
624
|
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags_on_objects ...'
|
614
625
|
end
|
615
|
-
# verify the required parameter '
|
616
|
-
if @api_client.config.client_side_validation &&
|
617
|
-
fail ArgumentError, "Missing the required parameter '
|
626
|
+
# verify the required parameter 'action' is set
|
627
|
+
if @api_client.config.client_side_validation && action.nil?
|
628
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagAssociationApi.list_attached_tags_on_objects"
|
629
|
+
end
|
630
|
+
# verify enum value
|
631
|
+
if @api_client.config.client_side_validation && !['list-attached-tags-on-objects'].include?(action)
|
632
|
+
fail ArgumentError, "invalid value for 'action', must be one of list-attached-tags-on-objects"
|
633
|
+
end
|
634
|
+
# verify the required parameter 'request_body' is set
|
635
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
636
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_tags_on_objects"
|
618
637
|
end
|
619
638
|
# resource path
|
620
|
-
local_var_path = '/com/vmware/cis/tagging/tag-association
|
639
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association'
|
621
640
|
|
622
641
|
# query parameters
|
623
642
|
query_params = {}
|
643
|
+
query_params[:'~action'] = action
|
624
644
|
|
625
645
|
# header parameters
|
626
646
|
header_params = {}
|
627
647
|
# HTTP header 'Accept' (if needed)
|
628
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
648
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
629
649
|
# HTTP header 'Content-Type'
|
630
650
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
631
651
|
|
@@ -633,8 +653,8 @@ module VSphereAutomation
|
|
633
653
|
form_params = {}
|
634
654
|
|
635
655
|
# http body (model)
|
636
|
-
post_body = @api_client.object_to_http_body(
|
637
|
-
auth_names = []
|
656
|
+
post_body = @api_client.object_to_http_body(request_body)
|
657
|
+
auth_names = ['api_key']
|
638
658
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
639
659
|
:header_params => header_params,
|
640
660
|
:query_params => query_params,
|