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,23 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
|
22
20
|
# @param tag_id The identifier of the input tag.
|
23
|
-
# @param
|
21
|
+
# @param action ~action=add-to-used-by
|
22
|
+
# @param request_body
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
26
|
-
def add_to_used_by(tag_id,
|
27
|
-
add_to_used_by_with_http_info(tag_id,
|
25
|
+
def add_to_used_by(tag_id, action, request_body, opts = {})
|
26
|
+
add_to_used_by_with_http_info(tag_id, action, request_body, opts)
|
28
27
|
nil
|
29
28
|
end
|
30
29
|
|
31
30
|
# Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
|
32
31
|
# @api private
|
33
32
|
# @param tag_id The identifier of the input tag.
|
34
|
-
# @param
|
33
|
+
# @param action ~action=add-to-used-by
|
34
|
+
# @param request_body
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
-
def add_to_used_by_with_http_info(tag_id,
|
37
|
+
def add_to_used_by_with_http_info(tag_id, action, request_body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.add_to_used_by ...'
|
40
40
|
end
|
@@ -42,20 +42,29 @@ module VSphereAutomation
|
|
42
42
|
if @api_client.config.client_side_validation && tag_id.nil?
|
43
43
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagApi.add_to_used_by"
|
44
44
|
end
|
45
|
-
# verify the required parameter '
|
46
|
-
if @api_client.config.client_side_validation &&
|
47
|
-
fail ArgumentError, "Missing the required parameter '
|
45
|
+
# verify the required parameter 'action' is set
|
46
|
+
if @api_client.config.client_side_validation && action.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagApi.add_to_used_by"
|
48
|
+
end
|
49
|
+
# verify enum value
|
50
|
+
if @api_client.config.client_side_validation && !['add-to-used-by'].include?(action)
|
51
|
+
fail ArgumentError, "invalid value for 'action', must be one of add-to-used-by"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'request_body' is set
|
54
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.add_to_used_by"
|
48
56
|
end
|
49
57
|
# resource path
|
50
|
-
local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}
|
58
|
+
local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
51
59
|
|
52
60
|
# query parameters
|
53
61
|
query_params = {}
|
62
|
+
query_params[:'~action'] = action
|
54
63
|
|
55
64
|
# header parameters
|
56
65
|
header_params = {}
|
57
66
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
68
|
# HTTP header 'Content-Type'
|
60
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
70
|
|
@@ -63,8 +72,8 @@ module VSphereAutomation
|
|
63
72
|
form_params = {}
|
64
73
|
|
65
74
|
# http body (model)
|
66
|
-
post_body = @api_client.object_to_http_body(
|
67
|
-
auth_names = []
|
75
|
+
post_body = @api_client.object_to_http_body(request_body)
|
76
|
+
auth_names = ['api_key']
|
68
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
78
|
:header_params => header_params,
|
70
79
|
:query_params => query_params,
|
@@ -77,26 +86,26 @@ module VSphereAutomation
|
|
77
86
|
return data, status_code, headers
|
78
87
|
end
|
79
88
|
# Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
|
80
|
-
# @param
|
89
|
+
# @param request_body
|
81
90
|
# @param [Hash] opts the optional parameters
|
82
91
|
# @return [CisTaggingTagCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
83
|
-
def create(
|
84
|
-
data, _status_code, _headers = create_with_http_info(
|
92
|
+
def create(request_body, opts = {})
|
93
|
+
data, _status_code, _headers = create_with_http_info(request_body, opts)
|
85
94
|
data
|
86
95
|
end
|
87
96
|
|
88
97
|
# Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
|
89
98
|
# @api private
|
90
|
-
# @param
|
99
|
+
# @param request_body
|
91
100
|
# @param [Hash] opts the optional parameters
|
92
101
|
# @return [Array<(CisTaggingTagCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
93
|
-
def create_with_http_info(
|
102
|
+
def create_with_http_info(request_body, opts = {})
|
94
103
|
if @api_client.config.debugging
|
95
104
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.create ...'
|
96
105
|
end
|
97
|
-
# verify the required parameter '
|
98
|
-
if @api_client.config.client_side_validation &&
|
99
|
-
fail ArgumentError, "Missing the required parameter '
|
106
|
+
# verify the required parameter 'request_body' is set
|
107
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.create"
|
100
109
|
end
|
101
110
|
# resource path
|
102
111
|
local_var_path = '/com/vmware/cis/tagging/tag'
|
@@ -107,7 +116,7 @@ module VSphereAutomation
|
|
107
116
|
# header parameters
|
108
117
|
header_params = {}
|
109
118
|
# HTTP header 'Accept' (if needed)
|
110
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
111
120
|
# HTTP header 'Content-Type'
|
112
121
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
113
122
|
|
@@ -115,8 +124,8 @@ module VSphereAutomation
|
|
115
124
|
form_params = {}
|
116
125
|
|
117
126
|
# http body (model)
|
118
|
-
post_body = @api_client.object_to_http_body(
|
119
|
-
auth_names = []
|
127
|
+
post_body = @api_client.object_to_http_body(request_body)
|
128
|
+
auth_names = ['api_key']
|
120
129
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
121
130
|
:header_params => header_params,
|
122
131
|
:query_params => query_params,
|
@@ -165,14 +174,14 @@ module VSphereAutomation
|
|
165
174
|
# header parameters
|
166
175
|
header_params = {}
|
167
176
|
# HTTP header 'Accept' (if needed)
|
168
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
169
178
|
|
170
179
|
# form parameters
|
171
180
|
form_params = {}
|
172
181
|
|
173
182
|
# http body (model)
|
174
183
|
post_body = nil
|
175
|
-
auth_names = []
|
184
|
+
auth_names = ['api_key']
|
176
185
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
177
186
|
:header_params => header_params,
|
178
187
|
:query_params => query_params,
|
@@ -215,14 +224,14 @@ module VSphereAutomation
|
|
215
224
|
# header parameters
|
216
225
|
header_params = {}
|
217
226
|
# HTTP header 'Accept' (if needed)
|
218
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
227
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
219
228
|
|
220
229
|
# form parameters
|
221
230
|
form_params = {}
|
222
231
|
|
223
232
|
# http body (model)
|
224
233
|
post_body = nil
|
225
|
-
auth_names = []
|
234
|
+
auth_names = ['api_key']
|
226
235
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
227
236
|
:header_params => header_params,
|
228
237
|
:query_params => query_params,
|
@@ -264,14 +273,14 @@ module VSphereAutomation
|
|
264
273
|
# header parameters
|
265
274
|
header_params = {}
|
266
275
|
# HTTP header 'Accept' (if needed)
|
267
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
268
277
|
|
269
278
|
# form parameters
|
270
279
|
form_params = {}
|
271
280
|
|
272
281
|
# http body (model)
|
273
282
|
post_body = nil
|
274
|
-
auth_names = []
|
283
|
+
auth_names = ['api_key']
|
275
284
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
276
285
|
:header_params => header_params,
|
277
286
|
:query_params => query_params,
|
@@ -288,19 +297,21 @@ module VSphereAutomation
|
|
288
297
|
end
|
289
298
|
# Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
|
290
299
|
# @param category_id The identifier of the input category.
|
300
|
+
# @param action ~action=list-tags-for-category
|
291
301
|
# @param [Hash] opts the optional parameters
|
292
302
|
# @return [CisTaggingTagListTagsForCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
293
|
-
def list_tags_for_category(category_id, opts = {})
|
294
|
-
data, _status_code, _headers = list_tags_for_category_with_http_info(category_id, opts)
|
303
|
+
def list_tags_for_category(category_id, action, opts = {})
|
304
|
+
data, _status_code, _headers = list_tags_for_category_with_http_info(category_id, action, opts)
|
295
305
|
data
|
296
306
|
end
|
297
307
|
|
298
308
|
# Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
|
299
309
|
# @api private
|
300
310
|
# @param category_id The identifier of the input category.
|
311
|
+
# @param action ~action=list-tags-for-category
|
301
312
|
# @param [Hash] opts the optional parameters
|
302
313
|
# @return [Array<(CisTaggingTagListTagsForCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
303
|
-
def list_tags_for_category_with_http_info(category_id, opts = {})
|
314
|
+
def list_tags_for_category_with_http_info(category_id, action, opts = {})
|
304
315
|
if @api_client.config.debugging
|
305
316
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.list_tags_for_category ...'
|
306
317
|
end
|
@@ -308,23 +319,32 @@ module VSphereAutomation
|
|
308
319
|
if @api_client.config.client_side_validation && category_id.nil?
|
309
320
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingTagApi.list_tags_for_category"
|
310
321
|
end
|
322
|
+
# verify the required parameter 'action' is set
|
323
|
+
if @api_client.config.client_side_validation && action.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagApi.list_tags_for_category"
|
325
|
+
end
|
326
|
+
# verify enum value
|
327
|
+
if @api_client.config.client_side_validation && !['list-tags-for-category'].include?(action)
|
328
|
+
fail ArgumentError, "invalid value for 'action', must be one of list-tags-for-category"
|
329
|
+
end
|
311
330
|
# resource path
|
312
|
-
local_var_path = '/com/vmware/cis/tagging/tag/id:{category_id}
|
331
|
+
local_var_path = '/com/vmware/cis/tagging/tag/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
|
313
332
|
|
314
333
|
# query parameters
|
315
334
|
query_params = {}
|
335
|
+
query_params[:'~action'] = action
|
316
336
|
|
317
337
|
# header parameters
|
318
338
|
header_params = {}
|
319
339
|
# HTTP header 'Accept' (if needed)
|
320
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
321
341
|
|
322
342
|
# form parameters
|
323
343
|
form_params = {}
|
324
344
|
|
325
345
|
# http body (model)
|
326
346
|
post_body = nil
|
327
|
-
auth_names = []
|
347
|
+
auth_names = ['api_key']
|
328
348
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
329
349
|
:header_params => header_params,
|
330
350
|
:query_params => query_params,
|
@@ -342,26 +362,26 @@ module VSphereAutomation
|
|
342
362
|
return data, status_code, headers
|
343
363
|
end
|
344
364
|
# Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
|
345
|
-
# @param
|
365
|
+
# @param request_body
|
346
366
|
# @param [Hash] opts the optional parameters
|
347
367
|
# @return [CisTaggingTagListUsedTagsResult|]
|
348
|
-
def list_used_tags(
|
349
|
-
data, _status_code, _headers = list_used_tags_with_http_info(
|
368
|
+
def list_used_tags(request_body, opts = {})
|
369
|
+
data, _status_code, _headers = list_used_tags_with_http_info(request_body, opts)
|
350
370
|
data
|
351
371
|
end
|
352
372
|
|
353
373
|
# Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
|
354
374
|
# @api private
|
355
|
-
# @param
|
375
|
+
# @param request_body
|
356
376
|
# @param [Hash] opts the optional parameters
|
357
377
|
# @return [Array<(CisTaggingTagListUsedTagsResult|, Fixnum, Hash)>] data, response status code and response headers
|
358
|
-
def list_used_tags_with_http_info(
|
378
|
+
def list_used_tags_with_http_info(request_body, opts = {})
|
359
379
|
if @api_client.config.debugging
|
360
380
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.list_used_tags ...'
|
361
381
|
end
|
362
|
-
# verify the required parameter '
|
363
|
-
if @api_client.config.client_side_validation &&
|
364
|
-
fail ArgumentError, "Missing the required parameter '
|
382
|
+
# verify the required parameter 'request_body' is set
|
383
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
384
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.list_used_tags"
|
365
385
|
end
|
366
386
|
# resource path
|
367
387
|
local_var_path = '/com/vmware/cis/tagging/tag?~action=list-used-tags'
|
@@ -372,7 +392,7 @@ module VSphereAutomation
|
|
372
392
|
# header parameters
|
373
393
|
header_params = {}
|
374
394
|
# HTTP header 'Accept' (if needed)
|
375
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
376
396
|
# HTTP header 'Content-Type'
|
377
397
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
378
398
|
|
@@ -380,8 +400,8 @@ module VSphereAutomation
|
|
380
400
|
form_params = {}
|
381
401
|
|
382
402
|
# http body (model)
|
383
|
-
post_body = @api_client.object_to_http_body(
|
384
|
-
auth_names = []
|
403
|
+
post_body = @api_client.object_to_http_body(request_body)
|
404
|
+
auth_names = ['api_key']
|
385
405
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
386
406
|
:header_params => header_params,
|
387
407
|
:query_params => query_params,
|
@@ -398,21 +418,21 @@ module VSphereAutomation
|
|
398
418
|
end
|
399
419
|
# Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
|
400
420
|
# @param tag_id The identifier of the input tag.
|
401
|
-
# @param
|
421
|
+
# @param request_body
|
402
422
|
# @param [Hash] opts the optional parameters
|
403
423
|
# @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
404
|
-
def remove_from_used_by(tag_id,
|
405
|
-
remove_from_used_by_with_http_info(tag_id,
|
424
|
+
def remove_from_used_by(tag_id, request_body, opts = {})
|
425
|
+
remove_from_used_by_with_http_info(tag_id, request_body, opts)
|
406
426
|
nil
|
407
427
|
end
|
408
428
|
|
409
429
|
# Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
|
410
430
|
# @api private
|
411
431
|
# @param tag_id The identifier of the input tag.
|
412
|
-
# @param
|
432
|
+
# @param request_body
|
413
433
|
# @param [Hash] opts the optional parameters
|
414
434
|
# @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
415
|
-
def remove_from_used_by_with_http_info(tag_id,
|
435
|
+
def remove_from_used_by_with_http_info(tag_id, request_body, opts = {})
|
416
436
|
if @api_client.config.debugging
|
417
437
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.remove_from_used_by ...'
|
418
438
|
end
|
@@ -420,9 +440,9 @@ module VSphereAutomation
|
|
420
440
|
if @api_client.config.client_side_validation && tag_id.nil?
|
421
441
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagApi.remove_from_used_by"
|
422
442
|
end
|
423
|
-
# verify the required parameter '
|
424
|
-
if @api_client.config.client_side_validation &&
|
425
|
-
fail ArgumentError, "Missing the required parameter '
|
443
|
+
# verify the required parameter 'request_body' is set
|
444
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
445
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.remove_from_used_by"
|
426
446
|
end
|
427
447
|
# resource path
|
428
448
|
local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}?~action=remove-from-used-by'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
@@ -433,7 +453,7 @@ module VSphereAutomation
|
|
433
453
|
# header parameters
|
434
454
|
header_params = {}
|
435
455
|
# HTTP header 'Accept' (if needed)
|
436
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
437
457
|
# HTTP header 'Content-Type'
|
438
458
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
439
459
|
|
@@ -441,8 +461,8 @@ module VSphereAutomation
|
|
441
461
|
form_params = {}
|
442
462
|
|
443
463
|
# http body (model)
|
444
|
-
post_body = @api_client.object_to_http_body(
|
445
|
-
auth_names = []
|
464
|
+
post_body = @api_client.object_to_http_body(request_body)
|
465
|
+
auth_names = ['api_key']
|
446
466
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
447
467
|
:header_params => header_params,
|
448
468
|
:query_params => query_params,
|
@@ -485,14 +505,14 @@ module VSphereAutomation
|
|
485
505
|
# header parameters
|
486
506
|
header_params = {}
|
487
507
|
# HTTP header 'Accept' (if needed)
|
488
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
489
509
|
|
490
510
|
# form parameters
|
491
511
|
form_params = {}
|
492
512
|
|
493
513
|
# http body (model)
|
494
514
|
post_body = nil
|
495
|
-
auth_names = []
|
515
|
+
auth_names = ['api_key']
|
496
516
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
497
517
|
:header_params => header_params,
|
498
518
|
:query_params => query_params,
|
@@ -506,21 +526,21 @@ module VSphereAutomation
|
|
506
526
|
end
|
507
527
|
# Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
|
508
528
|
# @param tag_id The identifier of the input tag.
|
509
|
-
# @param
|
529
|
+
# @param request_body
|
510
530
|
# @param [Hash] opts the optional parameters
|
511
531
|
# @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
512
|
-
def update(tag_id,
|
513
|
-
update_with_http_info(tag_id,
|
532
|
+
def update(tag_id, request_body, opts = {})
|
533
|
+
update_with_http_info(tag_id, request_body, opts)
|
514
534
|
nil
|
515
535
|
end
|
516
536
|
|
517
537
|
# Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
|
518
538
|
# @api private
|
519
539
|
# @param tag_id The identifier of the input tag.
|
520
|
-
# @param
|
540
|
+
# @param request_body
|
521
541
|
# @param [Hash] opts the optional parameters
|
522
542
|
# @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
523
|
-
def update_with_http_info(tag_id,
|
543
|
+
def update_with_http_info(tag_id, request_body, opts = {})
|
524
544
|
if @api_client.config.debugging
|
525
545
|
@api_client.config.logger.debug 'Calling API: TaggingTagApi.update ...'
|
526
546
|
end
|
@@ -528,9 +548,9 @@ module VSphereAutomation
|
|
528
548
|
if @api_client.config.client_side_validation && tag_id.nil?
|
529
549
|
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagApi.update"
|
530
550
|
end
|
531
|
-
# verify the required parameter '
|
532
|
-
if @api_client.config.client_side_validation &&
|
533
|
-
fail ArgumentError, "Missing the required parameter '
|
551
|
+
# verify the required parameter 'request_body' is set
|
552
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
553
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.update"
|
534
554
|
end
|
535
555
|
# resource path
|
536
556
|
local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
@@ -541,7 +561,7 @@ module VSphereAutomation
|
|
541
561
|
# header parameters
|
542
562
|
header_params = {}
|
543
563
|
# HTTP header 'Accept' (if needed)
|
544
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
564
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
545
565
|
# HTTP header 'Content-Type'
|
546
566
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
547
567
|
|
@@ -549,8 +569,8 @@ module VSphereAutomation
|
|
549
569
|
form_params = {}
|
550
570
|
|
551
571
|
# http body (model)
|
552
|
-
post_body = @api_client.object_to_http_body(
|
553
|
-
auth_names = []
|
572
|
+
post_body = @api_client.object_to_http_body(request_body)
|
573
|
+
auth_names = ['api_key']
|
554
574
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
555
575
|
:header_params => header_params,
|
556
576
|
:query_params => query_params,
|