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.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +11 -1
  3. data/Gemfile.lock +39 -36
  4. data/README.md +14 -7
  5. data/Rakefile +8 -0
  6. data/docs/CisTaggingTagAssociationBatchResult.md +1 -1
  7. data/docs/CisTaskInfo.md +1 -1
  8. data/docs/CisTasksGetSpec.md +2 -2
  9. data/docs/CisTasksListResultValue.md +1 -1
  10. data/docs/FilterSpecTargets.md +1 -1
  11. data/docs/SessionApi.md +26 -6
  12. data/docs/TaggingCategoryApi.md +104 -39
  13. data/docs/TaggingTagApi.md +118 -44
  14. data/docs/TaggingTagAssociationApi.md +145 -64
  15. data/docs/TasksApi.md +40 -17
  16. data/lib/vsphere-automation-cis/api/session_api.rb +10 -12
  17. data/lib/vsphere-automation-cis/api/tagging_category_api.rb +79 -70
  18. data/lib/vsphere-automation-cis/api/tagging_tag_api.rb +96 -76
  19. data/lib/vsphere-automation-cis/api/tagging_tag_association_api.rb +140 -120
  20. data/lib/vsphere-automation-cis/api/tasks_api.rb +33 -24
  21. data/lib/vsphere-automation-cis/api_client.rb +9 -5
  22. data/lib/vsphere-automation-cis/api_error.rb +4 -6
  23. data/lib/vsphere-automation-cis/configuration.rb +18 -6
  24. data/lib/vsphere-automation-cis/models/cis_session_create_result.rb +4 -6
  25. data/lib/vsphere-automation-cis/models/cis_session_info.rb +4 -6
  26. data/lib/vsphere-automation-cis/models/cis_session_result.rb +4 -6
  27. data/lib/vsphere-automation-cis/models/cis_tagging_category_add_to_used_by.rb +4 -6
  28. data/lib/vsphere-automation-cis/models/cis_tagging_category_create.rb +4 -6
  29. data/lib/vsphere-automation-cis/models/cis_tagging_category_create_result.rb +4 -6
  30. data/lib/vsphere-automation-cis/models/cis_tagging_category_create_spec.rb +4 -6
  31. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_result.rb +4 -6
  32. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories.rb +4 -6
  33. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result.rb +4 -6
  34. data/lib/vsphere-automation-cis/models/cis_tagging_category_model.rb +4 -6
  35. data/lib/vsphere-automation-cis/models/cis_tagging_category_model_cardinality.rb +6 -8
  36. data/lib/vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by.rb +4 -6
  37. data/lib/vsphere-automation-cis/models/cis_tagging_category_result.rb +4 -6
  38. data/lib/vsphere-automation-cis/models/cis_tagging_category_update.rb +4 -6
  39. data/lib/vsphere-automation-cis/models/cis_tagging_category_update_spec.rb +4 -6
  40. data/lib/vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by.rb +4 -6
  41. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach.rb +4 -6
  42. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object.rb +4 -6
  43. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result.rb +4 -6
  44. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects.rb +4 -6
  45. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result.rb +4 -6
  46. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_batch_result.rb +5 -7
  47. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach.rb +4 -6
  48. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object.rb +4 -6
  49. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result.rb +4 -6
  50. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects.rb +4 -6
  51. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result.rb +4 -6
  52. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags.rb +4 -6
  53. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result.rb +4 -6
  54. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags.rb +4 -6
  55. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result.rb +4 -6
  56. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result.rb +4 -6
  57. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags.rb +4 -6
  58. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects.rb +4 -6
  59. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result.rb +4 -6
  60. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result.rb +4 -6
  61. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags.rb +4 -6
  62. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects.rb +4 -6
  63. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create.rb +4 -6
  64. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_result.rb +4 -6
  65. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_spec.rb +4 -6
  66. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_result.rb +4 -6
  67. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result.rb +4 -6
  68. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags.rb +4 -6
  69. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result.rb +4 -6
  70. data/lib/vsphere-automation-cis/models/cis_tagging_tag_model.rb +4 -6
  71. data/lib/vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by.rb +4 -6
  72. data/lib/vsphere-automation-cis/models/cis_tagging_tag_result.rb +4 -6
  73. data/lib/vsphere-automation-cis/models/cis_tagging_tag_update.rb +4 -6
  74. data/lib/vsphere-automation-cis/models/cis_tagging_tag_update_spec.rb +4 -6
  75. data/lib/vsphere-automation-cis/models/cis_task_info.rb +5 -7
  76. data/lib/vsphere-automation-cis/models/cis_task_progress.rb +4 -6
  77. data/lib/vsphere-automation-cis/models/cis_task_status.rb +9 -11
  78. data/lib/vsphere-automation-cis/models/cis_tasks_filter_spec.rb +4 -6
  79. data/lib/vsphere-automation-cis/models/cis_tasks_get_spec.rb +6 -8
  80. data/lib/vsphere-automation-cis/models/cis_tasks_list_result.rb +4 -6
  81. data/lib/vsphere-automation-cis/models/cis_tasks_list_result_value.rb +17 -19
  82. data/lib/vsphere-automation-cis/models/cis_tasks_result.rb +4 -6
  83. data/lib/vsphere-automation-cis/models/filter_spec_targets.rb +23 -25
  84. data/lib/vsphere-automation-cis/models/vapi_std_dynamic_id.rb +4 -6
  85. data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists.rb +4 -6
  86. data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists_error.rb +4 -6
  87. data/lib/vsphere-automation-cis/models/vapi_std_errors_error.rb +4 -6
  88. data/lib/vsphere-automation-cis/models/vapi_std_errors_error_error.rb +4 -6
  89. data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument.rb +4 -6
  90. data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error.rb +4 -6
  91. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
  92. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
  93. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found.rb +4 -6
  94. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found_error.rb +4 -6
  95. data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible.rb +4 -6
  96. data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
  97. data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable.rb +4 -6
  98. data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error.rb +4 -6
  99. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated.rb +4 -6
  100. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error.rb +4 -6
  101. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized.rb +4 -6
  102. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized_error.rb +4 -6
  103. data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported.rb +4 -6
  104. data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported_error.rb +4 -6
  105. data/lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb +4 -6
  106. data/lib/vsphere-automation-cis/version.rb +5 -7
  107. data/lib/vsphere-automation-cis.rb +7 -9
  108. data/pkg/vsphere-automation-cis-0.2.0.gem +0 -0
  109. data/spec/api/session_api_spec.rb +4 -6
  110. data/spec/api/tagging_category_api_spec.rb +10 -11
  111. data/spec/api/tagging_tag_api_spec.rb +11 -11
  112. data/spec/api/tagging_tag_association_api_spec.rb +16 -16
  113. data/spec/api/tasks_api_spec.rb +9 -10
  114. data/spec/api_client_spec.rb +4 -6
  115. data/spec/configuration_spec.rb +4 -6
  116. data/spec/models/cis_session_create_result_spec.rb +4 -6
  117. data/spec/models/cis_session_info_spec.rb +4 -6
  118. data/spec/models/cis_session_result_spec.rb +4 -6
  119. data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +4 -6
  120. data/spec/models/cis_tagging_category_create_result_spec.rb +4 -6
  121. data/spec/models/cis_tagging_category_create_spec.rb +4 -6
  122. data/spec/models/cis_tagging_category_create_spec_spec.rb +4 -6
  123. data/spec/models/cis_tagging_category_list_result_spec.rb +4 -6
  124. data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +4 -6
  125. data/spec/models/cis_tagging_category_list_used_categories_spec.rb +4 -6
  126. data/spec/models/cis_tagging_category_model_cardinality_spec.rb +4 -6
  127. data/spec/models/cis_tagging_category_model_spec.rb +4 -6
  128. data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +4 -6
  129. data/spec/models/cis_tagging_category_result_spec.rb +4 -6
  130. data/spec/models/cis_tagging_category_update_spec.rb +4 -6
  131. data/spec/models/cis_tagging_category_update_spec_spec.rb +4 -6
  132. data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +4 -6
  133. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +4 -6
  134. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +4 -6
  135. data/spec/models/cis_tagging_tag_association_attach_spec.rb +4 -6
  136. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +4 -6
  137. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +4 -6
  138. data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +4 -6
  139. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +4 -6
  140. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +4 -6
  141. data/spec/models/cis_tagging_tag_association_detach_spec.rb +4 -6
  142. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +4 -6
  143. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +4 -6
  144. data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +4 -6
  145. data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +4 -6
  146. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +4 -6
  147. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +4 -6
  148. data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +4 -6
  149. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +4 -6
  150. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +4 -6
  151. data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +4 -6
  152. data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +4 -6
  153. data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +4 -6
  154. data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +4 -6
  155. data/spec/models/cis_tagging_tag_create_result_spec.rb +4 -6
  156. data/spec/models/cis_tagging_tag_create_spec.rb +4 -6
  157. data/spec/models/cis_tagging_tag_create_spec_spec.rb +4 -6
  158. data/spec/models/cis_tagging_tag_list_result_spec.rb +4 -6
  159. data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +4 -6
  160. data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +4 -6
  161. data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +4 -6
  162. data/spec/models/cis_tagging_tag_model_spec.rb +4 -6
  163. data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +4 -6
  164. data/spec/models/cis_tagging_tag_result_spec.rb +4 -6
  165. data/spec/models/cis_tagging_tag_update_spec.rb +4 -6
  166. data/spec/models/cis_tagging_tag_update_spec_spec.rb +4 -6
  167. data/spec/models/cis_task_info_spec.rb +4 -6
  168. data/spec/models/cis_task_progress_spec.rb +4 -6
  169. data/spec/models/cis_task_status_spec.rb +4 -6
  170. data/spec/models/cis_tasks_filter_spec_spec.rb +4 -6
  171. data/spec/models/cis_tasks_get_spec_spec.rb +4 -6
  172. data/spec/models/cis_tasks_list_result_spec.rb +4 -6
  173. data/spec/models/cis_tasks_list_result_value_spec.rb +6 -8
  174. data/spec/models/cis_tasks_result_spec.rb +4 -6
  175. data/spec/models/filter_spec_targets_spec.rb +6 -8
  176. data/spec/models/vapi_std_dynamic_id_spec.rb +4 -6
  177. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +4 -6
  178. data/spec/models/vapi_std_errors_already_exists_spec.rb +4 -6
  179. data/spec/models/vapi_std_errors_error_error_spec.rb +4 -6
  180. data/spec/models/vapi_std_errors_error_spec.rb +4 -6
  181. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
  182. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
  183. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
  184. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
  185. data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
  186. data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
  187. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
  188. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
  189. data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +4 -6
  190. data/spec/models/vapi_std_errors_service_unavailable_spec.rb +4 -6
  191. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +4 -6
  192. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +4 -6
  193. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
  194. data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
  195. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
  196. data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
  197. data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
  198. data/spec/spec_helper.rb +4 -6
  199. data/vsphere-automation-cis.gemspec +11 -14
  200. metadata +18 -32
@@ -1,12 +1,10 @@
1
- =begin
2
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
-
4
- # cis
1
+ # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
+ # SPDX-License-Identifier: MIT
5
3
 
6
- # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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 cis_tagging_tag_add_to_used_by
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, cis_tagging_tag_add_to_used_by, opts = {})
27
- add_to_used_by_with_http_info(tag_id, cis_tagging_tag_add_to_used_by, opts)
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 cis_tagging_tag_add_to_used_by
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, cis_tagging_tag_add_to_used_by, opts = {})
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 'cis_tagging_tag_add_to_used_by' is set
46
- if @api_client.config.client_side_validation && cis_tagging_tag_add_to_used_by.nil?
47
- fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_add_to_used_by' when calling TaggingTagApi.add_to_used_by"
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}?~action=add-to-used-by'.sub('{' + 'tag_id' + '}', tag_id.to_s)
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(cis_tagging_tag_add_to_used_by)
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 cis_tagging_tag_create
89
+ # @param request_body
81
90
  # @param [Hash] opts the optional parameters
82
91
  # @return [CisTaggingTagCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
83
- def create(cis_tagging_tag_create, opts = {})
84
- data, _status_code, _headers = create_with_http_info(cis_tagging_tag_create, opts)
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 cis_tagging_tag_create
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(cis_tagging_tag_create, opts = {})
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 'cis_tagging_tag_create' is set
98
- if @api_client.config.client_side_validation && cis_tagging_tag_create.nil?
99
- fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_create' when calling TaggingTagApi.create"
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(cis_tagging_tag_create)
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&#x3D;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&#x3D;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}?~action=list-tags-for-category'.sub('{' + 'category_id' + '}', category_id.to_s)
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 cis_tagging_tag_list_used_tags
365
+ # @param request_body
346
366
  # @param [Hash] opts the optional parameters
347
367
  # @return [CisTaggingTagListUsedTagsResult|]
348
- def list_used_tags(cis_tagging_tag_list_used_tags, opts = {})
349
- data, _status_code, _headers = list_used_tags_with_http_info(cis_tagging_tag_list_used_tags, opts)
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 cis_tagging_tag_list_used_tags
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(cis_tagging_tag_list_used_tags, opts = {})
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 'cis_tagging_tag_list_used_tags' is set
363
- if @api_client.config.client_side_validation && cis_tagging_tag_list_used_tags.nil?
364
- fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_list_used_tags' when calling TaggingTagApi.list_used_tags"
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(cis_tagging_tag_list_used_tags)
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 cis_tagging_tag_remove_from_used_by
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, cis_tagging_tag_remove_from_used_by, opts = {})
405
- remove_from_used_by_with_http_info(tag_id, cis_tagging_tag_remove_from_used_by, opts)
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 cis_tagging_tag_remove_from_used_by
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, cis_tagging_tag_remove_from_used_by, opts = {})
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 'cis_tagging_tag_remove_from_used_by' is set
424
- if @api_client.config.client_side_validation && cis_tagging_tag_remove_from_used_by.nil?
425
- fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_remove_from_used_by' when calling TaggingTagApi.remove_from_used_by"
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(cis_tagging_tag_remove_from_used_by)
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 cis_tagging_tag_update
529
+ # @param request_body
510
530
  # @param [Hash] opts the optional parameters
511
531
  # @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
512
- def update(tag_id, cis_tagging_tag_update, opts = {})
513
- update_with_http_info(tag_id, cis_tagging_tag_update, opts)
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 cis_tagging_tag_update
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, cis_tagging_tag_update, opts = {})
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 'cis_tagging_tag_update' is set
532
- if @api_client.config.client_side_validation && cis_tagging_tag_update.nil?
533
- fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_update' when calling TaggingTagApi.update"
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(cis_tagging_tag_update)
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,