vsphere-automation-cis 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (277) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +81 -0
  4. data/README.md +173 -0
  5. data/Rakefile +10 -0
  6. data/docs/CisSessionCreateResult.md +8 -0
  7. data/docs/CisSessionInfo.md +10 -0
  8. data/docs/CisSessionResult.md +8 -0
  9. data/docs/CisTaggingCategoryAddToUsedBy.md +8 -0
  10. data/docs/CisTaggingCategoryCreate.md +8 -0
  11. data/docs/CisTaggingCategoryCreateResult.md +8 -0
  12. data/docs/CisTaggingCategoryCreateSpec.md +12 -0
  13. data/docs/CisTaggingCategoryListResult.md +8 -0
  14. data/docs/CisTaggingCategoryListUsedCategories.md +8 -0
  15. data/docs/CisTaggingCategoryListUsedCategoriesResult.md +8 -0
  16. data/docs/CisTaggingCategoryModel.md +13 -0
  17. data/docs/CisTaggingCategoryModelCardinality.md +7 -0
  18. data/docs/CisTaggingCategoryRemoveFromUsedBy.md +8 -0
  19. data/docs/CisTaggingCategoryResult.md +8 -0
  20. data/docs/CisTaggingCategoryUpdate.md +8 -0
  21. data/docs/CisTaggingCategoryUpdateSpec.md +11 -0
  22. data/docs/CisTaggingTagAddToUsedBy.md +8 -0
  23. data/docs/CisTaggingTagAssociationAttach.md +8 -0
  24. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObject.md +9 -0
  25. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObjectResult.md +8 -0
  26. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjects.md +8 -0
  27. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjectsResult.md +8 -0
  28. data/docs/CisTaggingTagAssociationBatchResult.md +9 -0
  29. data/docs/CisTaggingTagAssociationDetach.md +8 -0
  30. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObject.md +9 -0
  31. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObjectResult.md +8 -0
  32. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjects.md +8 -0
  33. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjectsResult.md +8 -0
  34. data/docs/CisTaggingTagAssociationListAttachableTags.md +8 -0
  35. data/docs/CisTaggingTagAssociationListAttachableTagsResult.md +8 -0
  36. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTags.md +8 -0
  37. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTagsResult.md +8 -0
  38. data/docs/CisTaggingTagAssociationListAttachedObjectsResult.md +8 -0
  39. data/docs/CisTaggingTagAssociationListAttachedTags.md +8 -0
  40. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjects.md +8 -0
  41. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjectsResult.md +8 -0
  42. data/docs/CisTaggingTagAssociationListAttachedTagsResult.md +8 -0
  43. data/docs/CisTaggingTagAssociationObjectToTags.md +9 -0
  44. data/docs/CisTaggingTagAssociationTagToObjects.md +9 -0
  45. data/docs/CisTaggingTagCreate.md +8 -0
  46. data/docs/CisTaggingTagCreateResult.md +8 -0
  47. data/docs/CisTaggingTagCreateSpec.md +11 -0
  48. data/docs/CisTaggingTagListResult.md +8 -0
  49. data/docs/CisTaggingTagListTagsForCategoryResult.md +8 -0
  50. data/docs/CisTaggingTagListUsedTags.md +8 -0
  51. data/docs/CisTaggingTagListUsedTagsResult.md +8 -0
  52. data/docs/CisTaggingTagModel.md +12 -0
  53. data/docs/CisTaggingTagRemoveFromUsedBy.md +8 -0
  54. data/docs/CisTaggingTagResult.md +8 -0
  55. data/docs/CisTaggingTagUpdate.md +8 -0
  56. data/docs/CisTaggingTagUpdateSpec.md +9 -0
  57. data/docs/CisTaskInfo.md +19 -0
  58. data/docs/CisTaskProgress.md +10 -0
  59. data/docs/CisTaskStatus.md +7 -0
  60. data/docs/CisTasksFilterSpec.md +12 -0
  61. data/docs/CisTasksGetSpec.md +9 -0
  62. data/docs/CisTasksListResult.md +8 -0
  63. data/docs/CisTasksListResultValue.md +9 -0
  64. data/docs/CisTasksResult.md +8 -0
  65. data/docs/FilterSpecTargets.md +9 -0
  66. data/docs/SessionApi.md +131 -0
  67. data/docs/TaggingCategoryApi.md +401 -0
  68. data/docs/TaggingTagApi.md +445 -0
  69. data/docs/TaggingTagAssociationApi.md +498 -0
  70. data/docs/TasksApi.md +159 -0
  71. data/docs/VapiStdDynamicID.md +9 -0
  72. data/docs/VapiStdErrorsAlreadyExists.md +9 -0
  73. data/docs/VapiStdErrorsAlreadyExistsError.md +9 -0
  74. data/docs/VapiStdErrorsError.md +9 -0
  75. data/docs/VapiStdErrorsErrorError.md +9 -0
  76. data/docs/VapiStdErrorsInvalidArgument.md +9 -0
  77. data/docs/VapiStdErrorsInvalidArgumentError.md +9 -0
  78. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +9 -0
  79. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +9 -0
  80. data/docs/VapiStdErrorsNotFound.md +9 -0
  81. data/docs/VapiStdErrorsNotFoundError.md +9 -0
  82. data/docs/VapiStdErrorsResourceInaccessible.md +9 -0
  83. data/docs/VapiStdErrorsResourceInaccessibleError.md +9 -0
  84. data/docs/VapiStdErrorsServiceUnavailable.md +9 -0
  85. data/docs/VapiStdErrorsServiceUnavailableError.md +9 -0
  86. data/docs/VapiStdErrorsUnauthenticated.md +9 -0
  87. data/docs/VapiStdErrorsUnauthenticatedError.md +9 -0
  88. data/docs/VapiStdErrorsUnauthorized.md +9 -0
  89. data/docs/VapiStdErrorsUnauthorizedError.md +9 -0
  90. data/docs/VapiStdErrorsUnsupported.md +9 -0
  91. data/docs/VapiStdErrorsUnsupportedError.md +9 -0
  92. data/docs/VapiStdLocalizableMessage.md +10 -0
  93. data/git_push.sh +55 -0
  94. data/lib/vsphere-automation-cis.rb +124 -0
  95. data/lib/vsphere-automation-cis/api/session_api.rb +172 -0
  96. data/lib/vsphere-automation-cis/api/tagging_category_api.rb +511 -0
  97. data/lib/vsphere-automation-cis/api/tagging_tag_api.rb +567 -0
  98. data/lib/vsphere-automation-cis/api/tagging_tag_association_api.rb +654 -0
  99. data/lib/vsphere-automation-cis/api/tasks_api.rb +212 -0
  100. data/lib/vsphere-automation-cis/api_client.rb +386 -0
  101. data/lib/vsphere-automation-cis/api_error.rb +36 -0
  102. data/lib/vsphere-automation-cis/configuration.rb +200 -0
  103. data/lib/vsphere-automation-cis/models/cis_session_create_result.rb +188 -0
  104. data/lib/vsphere-automation-cis/models/cis_session_info.rb +219 -0
  105. data/lib/vsphere-automation-cis/models/cis_session_result.rb +188 -0
  106. data/lib/vsphere-automation-cis/models/cis_tagging_category_add_to_used_by.rb +189 -0
  107. data/lib/vsphere-automation-cis/models/cis_tagging_category_create.rb +188 -0
  108. data/lib/vsphere-automation-cis/models/cis_tagging_category_create_result.rb +188 -0
  109. data/lib/vsphere-automation-cis/models/cis_tagging_category_create_spec.rb +245 -0
  110. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_result.rb +190 -0
  111. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories.rb +189 -0
  112. data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result.rb +190 -0
  113. data/lib/vsphere-automation-cis/models/cis_tagging_category_model.rb +267 -0
  114. data/lib/vsphere-automation-cis/models/cis_tagging_category_model_cardinality.rb +30 -0
  115. data/lib/vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by.rb +189 -0
  116. data/lib/vsphere-automation-cis/models/cis_tagging_category_result.rb +188 -0
  117. data/lib/vsphere-automation-cis/models/cis_tagging_category_update.rb +188 -0
  118. data/lib/vsphere-automation-cis/models/cis_tagging_category_update_spec.rb +215 -0
  119. data/lib/vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by.rb +189 -0
  120. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach.rb +188 -0
  121. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object.rb +205 -0
  122. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result.rb +188 -0
  123. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects.rb +191 -0
  124. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result.rb +188 -0
  125. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_batch_result.rb +206 -0
  126. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach.rb +188 -0
  127. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object.rb +205 -0
  128. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result.rb +188 -0
  129. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects.rb +191 -0
  130. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result.rb +188 -0
  131. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags.rb +188 -0
  132. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result.rb +190 -0
  133. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags.rb +191 -0
  134. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result.rb +190 -0
  135. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result.rb +190 -0
  136. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags.rb +188 -0
  137. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects.rb +191 -0
  138. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result.rb +190 -0
  139. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result.rb +190 -0
  140. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags.rb +205 -0
  141. data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects.rb +206 -0
  142. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create.rb +188 -0
  143. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_result.rb +188 -0
  144. data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_spec.rb +229 -0
  145. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_result.rb +190 -0
  146. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result.rb +190 -0
  147. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags.rb +189 -0
  148. data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result.rb +190 -0
  149. data/lib/vsphere-automation-cis/models/cis_tagging_tag_model.rb +251 -0
  150. data/lib/vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by.rb +189 -0
  151. data/lib/vsphere-automation-cis/models/cis_tagging_tag_result.rb +188 -0
  152. data/lib/vsphere-automation-cis/models/cis_tagging_tag_update.rb +188 -0
  153. data/lib/vsphere-automation-cis/models/cis_tagging_tag_update_spec.rb +194 -0
  154. data/lib/vsphere-automation-cis/models/cis_task_info.rb +315 -0
  155. data/lib/vsphere-automation-cis/models/cis_task_progress.rb +218 -0
  156. data/lib/vsphere-automation-cis/models/cis_task_status.rb +33 -0
  157. data/lib/vsphere-automation-cis/models/cis_tasks_filter_spec.rb +234 -0
  158. data/lib/vsphere-automation-cis/models/cis_tasks_get_spec.rb +194 -0
  159. data/lib/vsphere-automation-cis/models/cis_tasks_list_result.rb +190 -0
  160. data/lib/vsphere-automation-cis/models/cis_tasks_list_result_value.rb +192 -0
  161. data/lib/vsphere-automation-cis/models/cis_tasks_result.rb +188 -0
  162. data/lib/vsphere-automation-cis/models/filter_spec_targets.rb +204 -0
  163. data/lib/vsphere-automation-cis/models/vapi_std_dynamic_id.rb +204 -0
  164. data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists.rb +201 -0
  165. data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists_error.rb +192 -0
  166. data/lib/vsphere-automation-cis/models/vapi_std_errors_error.rb +201 -0
  167. data/lib/vsphere-automation-cis/models/vapi_std_errors_error_error.rb +192 -0
  168. data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument.rb +201 -0
  169. data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error.rb +192 -0
  170. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state.rb +201 -0
  171. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error.rb +192 -0
  172. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found.rb +201 -0
  173. data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found_error.rb +192 -0
  174. data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible.rb +201 -0
  175. data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error.rb +192 -0
  176. data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable.rb +201 -0
  177. data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error.rb +192 -0
  178. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated.rb +201 -0
  179. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error.rb +192 -0
  180. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized.rb +201 -0
  181. data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized_error.rb +192 -0
  182. data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported.rb +201 -0
  183. data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported_error.rb +192 -0
  184. data/lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb +221 -0
  185. data/lib/vsphere-automation-cis/version.rb +15 -0
  186. data/spec/api/session_api_spec.rb +64 -0
  187. data/spec/api/tagging_category_api_spec.rb +134 -0
  188. data/spec/api/tagging_tag_api_spec.rb +145 -0
  189. data/spec/api/tagging_tag_association_api_spec.rb +158 -0
  190. data/spec/api/tasks_api_spec.rb +74 -0
  191. data/spec/api_client_spec.rb +224 -0
  192. data/spec/configuration_spec.rb +40 -0
  193. data/spec/models/cis_session_create_result_spec.rb +39 -0
  194. data/spec/models/cis_session_info_spec.rb +51 -0
  195. data/spec/models/cis_session_result_spec.rb +39 -0
  196. data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +39 -0
  197. data/spec/models/cis_tagging_category_create_result_spec.rb +39 -0
  198. data/spec/models/cis_tagging_category_create_spec.rb +39 -0
  199. data/spec/models/cis_tagging_category_create_spec_spec.rb +63 -0
  200. data/spec/models/cis_tagging_category_list_result_spec.rb +39 -0
  201. data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +39 -0
  202. data/spec/models/cis_tagging_category_list_used_categories_spec.rb +39 -0
  203. data/spec/models/cis_tagging_category_model_cardinality_spec.rb +33 -0
  204. data/spec/models/cis_tagging_category_model_spec.rb +69 -0
  205. data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +39 -0
  206. data/spec/models/cis_tagging_category_result_spec.rb +39 -0
  207. data/spec/models/cis_tagging_category_update_spec.rb +39 -0
  208. data/spec/models/cis_tagging_category_update_spec_spec.rb +57 -0
  209. data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +39 -0
  210. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +39 -0
  211. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +45 -0
  212. data/spec/models/cis_tagging_tag_association_attach_spec.rb +39 -0
  213. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +39 -0
  214. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +39 -0
  215. data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +45 -0
  216. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +39 -0
  217. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +45 -0
  218. data/spec/models/cis_tagging_tag_association_detach_spec.rb +39 -0
  219. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +39 -0
  220. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +39 -0
  221. data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +39 -0
  222. data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +39 -0
  223. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +39 -0
  224. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +39 -0
  225. data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +39 -0
  226. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +39 -0
  227. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +39 -0
  228. data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +39 -0
  229. data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +39 -0
  230. data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +45 -0
  231. data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +45 -0
  232. data/spec/models/cis_tagging_tag_create_result_spec.rb +39 -0
  233. data/spec/models/cis_tagging_tag_create_spec.rb +39 -0
  234. data/spec/models/cis_tagging_tag_create_spec_spec.rb +57 -0
  235. data/spec/models/cis_tagging_tag_list_result_spec.rb +39 -0
  236. data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +39 -0
  237. data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +39 -0
  238. data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +39 -0
  239. data/spec/models/cis_tagging_tag_model_spec.rb +63 -0
  240. data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +39 -0
  241. data/spec/models/cis_tagging_tag_result_spec.rb +39 -0
  242. data/spec/models/cis_tagging_tag_update_spec.rb +39 -0
  243. data/spec/models/cis_tagging_tag_update_spec_spec.rb +45 -0
  244. data/spec/models/cis_task_info_spec.rb +105 -0
  245. data/spec/models/cis_task_progress_spec.rb +51 -0
  246. data/spec/models/cis_task_status_spec.rb +33 -0
  247. data/spec/models/cis_tasks_filter_spec_spec.rb +63 -0
  248. data/spec/models/cis_tasks_get_spec_spec.rb +45 -0
  249. data/spec/models/cis_tasks_list_result_spec.rb +39 -0
  250. data/spec/models/cis_tasks_list_result_value_spec.rb +45 -0
  251. data/spec/models/cis_tasks_result_spec.rb +39 -0
  252. data/spec/models/filter_spec_targets_spec.rb +45 -0
  253. data/spec/models/vapi_std_dynamic_id_spec.rb +45 -0
  254. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +45 -0
  255. data/spec/models/vapi_std_errors_already_exists_spec.rb +45 -0
  256. data/spec/models/vapi_std_errors_error_error_spec.rb +45 -0
  257. data/spec/models/vapi_std_errors_error_spec.rb +45 -0
  258. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +45 -0
  259. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +45 -0
  260. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +45 -0
  261. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +45 -0
  262. data/spec/models/vapi_std_errors_not_found_error_spec.rb +45 -0
  263. data/spec/models/vapi_std_errors_not_found_spec.rb +45 -0
  264. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +45 -0
  265. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +45 -0
  266. data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +45 -0
  267. data/spec/models/vapi_std_errors_service_unavailable_spec.rb +45 -0
  268. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +45 -0
  269. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +45 -0
  270. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +45 -0
  271. data/spec/models/vapi_std_errors_unauthorized_spec.rb +45 -0
  272. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +45 -0
  273. data/spec/models/vapi_std_errors_unsupported_spec.rb +45 -0
  274. data/spec/models/vapi_std_localizable_message_spec.rb +51 -0
  275. data/spec/spec_helper.rb +109 -0
  276. data/vsphere-automation-cis.gemspec +43 -0
  277. metadata +535 -0
@@ -0,0 +1,124 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # cis
5
+
6
+ # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+
9
+ =end
10
+
11
+ # Common files
12
+ require 'vsphere-automation-cis/api_client'
13
+ require 'vsphere-automation-cis/api_error'
14
+ require 'vsphere-automation-cis/version'
15
+ require 'vsphere-automation-cis/configuration'
16
+
17
+ # Models
18
+ require 'vsphere-automation-cis/models/cis_session_create_result'
19
+ require 'vsphere-automation-cis/models/cis_session_info'
20
+ require 'vsphere-automation-cis/models/cis_session_result'
21
+ require 'vsphere-automation-cis/models/cis_tagging_category_add_to_used_by'
22
+ require 'vsphere-automation-cis/models/cis_tagging_category_create'
23
+ require 'vsphere-automation-cis/models/cis_tagging_category_create_result'
24
+ require 'vsphere-automation-cis/models/cis_tagging_category_create_spec'
25
+ require 'vsphere-automation-cis/models/cis_tagging_category_list_result'
26
+ require 'vsphere-automation-cis/models/cis_tagging_category_list_used_categories'
27
+ require 'vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result'
28
+ require 'vsphere-automation-cis/models/cis_tagging_category_model'
29
+ require 'vsphere-automation-cis/models/cis_tagging_category_model_cardinality'
30
+ require 'vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by'
31
+ require 'vsphere-automation-cis/models/cis_tagging_category_result'
32
+ require 'vsphere-automation-cis/models/cis_tagging_category_update'
33
+ require 'vsphere-automation-cis/models/cis_tagging_category_update_spec'
34
+ require 'vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by'
35
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_attach'
36
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object'
37
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result'
38
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects'
39
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result'
40
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_batch_result'
41
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_detach'
42
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object'
43
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result'
44
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects'
45
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result'
46
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags'
47
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result'
48
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags'
49
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result'
50
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result'
51
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags'
52
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects'
53
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result'
54
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result'
55
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags'
56
+ require 'vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects'
57
+ require 'vsphere-automation-cis/models/cis_tagging_tag_create'
58
+ require 'vsphere-automation-cis/models/cis_tagging_tag_create_result'
59
+ require 'vsphere-automation-cis/models/cis_tagging_tag_create_spec'
60
+ require 'vsphere-automation-cis/models/cis_tagging_tag_list_result'
61
+ require 'vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result'
62
+ require 'vsphere-automation-cis/models/cis_tagging_tag_list_used_tags'
63
+ require 'vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result'
64
+ require 'vsphere-automation-cis/models/cis_tagging_tag_model'
65
+ require 'vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by'
66
+ require 'vsphere-automation-cis/models/cis_tagging_tag_result'
67
+ require 'vsphere-automation-cis/models/cis_tagging_tag_update'
68
+ require 'vsphere-automation-cis/models/cis_tagging_tag_update_spec'
69
+ require 'vsphere-automation-cis/models/cis_task_info'
70
+ require 'vsphere-automation-cis/models/cis_task_progress'
71
+ require 'vsphere-automation-cis/models/cis_task_status'
72
+ require 'vsphere-automation-cis/models/cis_tasks_filter_spec'
73
+ require 'vsphere-automation-cis/models/cis_tasks_get_spec'
74
+ require 'vsphere-automation-cis/models/cis_tasks_list_result'
75
+ require 'vsphere-automation-cis/models/cis_tasks_list_result_value'
76
+ require 'vsphere-automation-cis/models/cis_tasks_result'
77
+ require 'vsphere-automation-cis/models/filter_spec_targets'
78
+ require 'vsphere-automation-cis/models/vapi_std_dynamic_id'
79
+ require 'vsphere-automation-cis/models/vapi_std_errors_already_exists'
80
+ require 'vsphere-automation-cis/models/vapi_std_errors_already_exists_error'
81
+ require 'vsphere-automation-cis/models/vapi_std_errors_error'
82
+ require 'vsphere-automation-cis/models/vapi_std_errors_error_error'
83
+ require 'vsphere-automation-cis/models/vapi_std_errors_invalid_argument'
84
+ require 'vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error'
85
+ require 'vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state'
86
+ require 'vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error'
87
+ require 'vsphere-automation-cis/models/vapi_std_errors_not_found'
88
+ require 'vsphere-automation-cis/models/vapi_std_errors_not_found_error'
89
+ require 'vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible'
90
+ require 'vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error'
91
+ require 'vsphere-automation-cis/models/vapi_std_errors_service_unavailable'
92
+ require 'vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error'
93
+ require 'vsphere-automation-cis/models/vapi_std_errors_unauthenticated'
94
+ require 'vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error'
95
+ require 'vsphere-automation-cis/models/vapi_std_errors_unauthorized'
96
+ require 'vsphere-automation-cis/models/vapi_std_errors_unauthorized_error'
97
+ require 'vsphere-automation-cis/models/vapi_std_errors_unsupported'
98
+ require 'vsphere-automation-cis/models/vapi_std_errors_unsupported_error'
99
+ require 'vsphere-automation-cis/models/vapi_std_localizable_message'
100
+
101
+ # APIs
102
+ require 'vsphere-automation-cis/api/session_api'
103
+ require 'vsphere-automation-cis/api/tagging_category_api'
104
+ require 'vsphere-automation-cis/api/tagging_tag_api'
105
+ require 'vsphere-automation-cis/api/tagging_tag_association_api'
106
+ require 'vsphere-automation-cis/api/tasks_api'
107
+
108
+ module VSphereAutomation
109
+ class << self
110
+ # Customize default settings for the SDK using block.
111
+ # VSphereAutomation.configure do |config|
112
+ # config.username = "xxx"
113
+ # config.password = "xxx"
114
+ # end
115
+ # If no block given, return the default Configuration object.
116
+ def configure
117
+ if block_given?
118
+ yield(Configuration.default)
119
+ else
120
+ Configuration.default
121
+ end
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,172 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # cis
5
+
6
+ # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+
9
+ =end
10
+
11
+ require 'uri'
12
+
13
+ module VSphereAutomation
14
+ module CIS
15
+ class SessionApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Creates a session with the API. This is the equivalent of login. This operation exchanges user credentials supplied in the security context for a session identifier that is to be used for authenticating subsequent calls. To authenticate subsequent calls clients are expected to include the session key.
22
+ # @param vmware_use_header_authn Custom header to protect against CSRF attacks in browser based clients
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [CisSessionCreateResult|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|]
25
+ def create(vmware_use_header_authn, opts = {})
26
+ data, _status_code, _headers = create_with_http_info(vmware_use_header_authn, opts)
27
+ data
28
+ end
29
+
30
+ # Creates a session with the API. This is the equivalent of login. This operation exchanges user credentials supplied in the security context for a session identifier that is to be used for authenticating subsequent calls. To authenticate subsequent calls clients are expected to include the session key.
31
+ # @api private
32
+ # @param vmware_use_header_authn Custom header to protect against CSRF attacks in browser based clients
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(CisSessionCreateResult|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|, Fixnum, Hash)>] data, response status code and response headers
35
+ def create_with_http_info(vmware_use_header_authn, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: SessionApi.create ...'
38
+ end
39
+ # verify the required parameter 'vmware_use_header_authn' is set
40
+ if @api_client.config.client_side_validation && vmware_use_header_authn.nil?
41
+ fail ArgumentError, "Missing the required parameter 'vmware_use_header_authn' when calling SessionApi.create"
42
+ end
43
+ # resource path
44
+ local_var_path = '/com/vmware/cis/session'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
53
+ header_params[:'vmware-use-header-authn'] = vmware_use_header_authn
54
+
55
+ # form parameters
56
+ form_params = {}
57
+
58
+ # http body (model)
59
+ post_body = nil
60
+ auth_names = []
61
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
62
+ :header_params => header_params,
63
+ :query_params => query_params,
64
+ :form_params => form_params,
65
+ :body => post_body,
66
+ :auth_names => auth_names,
67
+ :return_type => {
68
+ '200' => 'CIS::CisSessionCreateResult',
69
+ '401' => 'CIS::VapiStdErrorsUnauthenticatedError',
70
+ '503' => 'CIS::VapiStdErrorsServiceUnavailableError',
71
+ })
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: SessionApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ # Terminates the validity of a session token. This is the equivalent of log out. A session identifier is expected as part of the request.
78
+ # @param [Hash] opts the optional parameters
79
+ # @return [|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|nil]
80
+ def delete(opts = {})
81
+ delete_with_http_info(opts)
82
+ nil
83
+ end
84
+
85
+ # Terminates the validity of a session token. This is the equivalent of log out. A session identifier is expected as part of the request.
86
+ # @api private
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Array<(|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|nil, Fixnum, Hash)>] nil, response status code and response headers
89
+ def delete_with_http_info(opts = {})
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug 'Calling API: SessionApi.delete ...'
92
+ end
93
+ # resource path
94
+ local_var_path = '/com/vmware/cis/session'
95
+
96
+ # query parameters
97
+ query_params = {}
98
+
99
+ # header parameters
100
+ header_params = {}
101
+ # HTTP header 'Accept' (if needed)
102
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
103
+
104
+ # form parameters
105
+ form_params = {}
106
+
107
+ # http body (model)
108
+ post_body = nil
109
+ auth_names = []
110
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names)
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug "API called: SessionApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
118
+ end
119
+ return data, status_code, headers
120
+ end
121
+ # Returns information about the current session. This operation expects a valid session identifier to be supplied. A side effect of invoking this operation may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other operation in the API will also update the session's last accessed time. This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
122
+ # @param [Hash] opts the optional parameters
123
+ # @return [CisSessionResult|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|]
124
+ def get(opts = {})
125
+ data, _status_code, _headers = get_with_http_info(opts)
126
+ data
127
+ end
128
+
129
+ # Returns information about the current session. This operation expects a valid session identifier to be supplied. A side effect of invoking this operation may be a change to the session&#39;s last accessed time to the current time if this is supported by the session implementation. Invoking any other operation in the API will also update the session&#39;s last accessed time. This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
130
+ # @api private
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [Array<(CisSessionResult|VapiStdErrorsUnauthenticatedError|VapiStdErrorsServiceUnavailableError|, Fixnum, Hash)>] data, response status code and response headers
133
+ def get_with_http_info(opts = {})
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug 'Calling API: SessionApi.get ...'
136
+ end
137
+ # resource path
138
+ local_var_path = '/com/vmware/cis/session?~action=get'
139
+
140
+ # query parameters
141
+ query_params = {}
142
+
143
+ # header parameters
144
+ header_params = {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
147
+
148
+ # form parameters
149
+ form_params = {}
150
+
151
+ # http body (model)
152
+ post_body = nil
153
+ auth_names = []
154
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => {
161
+ '200' => 'CIS::CisSessionResult',
162
+ '401' => 'CIS::VapiStdErrorsUnauthenticatedError',
163
+ '503' => 'CIS::VapiStdErrorsServiceUnavailableError',
164
+ })
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug "API called: SessionApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ return data, status_code, headers
169
+ end
170
+ end
171
+ end
172
+ end
@@ -0,0 +1,511 @@
1
+ =begin
2
+ # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
3
+
4
+ # cis
5
+
6
+ # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+
9
+ =end
10
+
11
+ require 'uri'
12
+
13
+ module VSphereAutomation
14
+ module CIS
15
+ class TaggingCategoryApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default)
19
+ @api_client = api_client
20
+ end
21
+ # Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscribers {@term set} for the specified category. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes an idempotent no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
22
+ # @param category_id The identifier of the input category.
23
+ # @param cis_tagging_category_add_to_used_by
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
26
+ def add_to_used_by(category_id, cis_tagging_category_add_to_used_by, opts = {})
27
+ add_to_used_by_with_http_info(category_id, cis_tagging_category_add_to_used_by, opts)
28
+ nil
29
+ end
30
+
31
+ # Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscribers {@term set} for the specified category. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes an idempotent no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
32
+ # @api private
33
+ # @param category_id The identifier of the input category.
34
+ # @param cis_tagging_category_add_to_used_by
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
37
+ def add_to_used_by_with_http_info(category_id, cis_tagging_category_add_to_used_by, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.add_to_used_by ...'
40
+ end
41
+ # verify the required parameter 'category_id' is set
42
+ if @api_client.config.client_side_validation && category_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.add_to_used_by"
44
+ end
45
+ # verify the required parameter 'cis_tagging_category_add_to_used_by' is set
46
+ if @api_client.config.client_side_validation && cis_tagging_category_add_to_used_by.nil?
47
+ fail ArgumentError, "Missing the required parameter 'cis_tagging_category_add_to_used_by' when calling TaggingCategoryApi.add_to_used_by"
48
+ end
49
+ # resource path
50
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}?~action=add-to-used-by'.sub('{' + 'category_id' + '}', category_id.to_s)
51
+
52
+ # query parameters
53
+ query_params = {}
54
+
55
+ # header parameters
56
+ header_params = {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = {}
64
+
65
+ # http body (model)
66
+ post_body = @api_client.object_to_http_body(cis_tagging_category_add_to_used_by)
67
+ auth_names = []
68
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names)
74
+ if @api_client.config.debugging
75
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#add_to_used_by\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
76
+ end
77
+ return data, status_code, headers
78
+ end
79
+ # Creates a category. To invoke this {@term operation}, you need the create category privilege.
80
+ # @param cis_tagging_category_create
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [CisTaggingCategoryCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|]
83
+ def create(cis_tagging_category_create, opts = {})
84
+ data, _status_code, _headers = create_with_http_info(cis_tagging_category_create, opts)
85
+ data
86
+ end
87
+
88
+ # Creates a category. To invoke this {@term operation}, you need the create category privilege.
89
+ # @api private
90
+ # @param cis_tagging_category_create
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Array<(CisTaggingCategoryCreateResult|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
93
+ def create_with_http_info(cis_tagging_category_create, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.create ...'
96
+ end
97
+ # verify the required parameter 'cis_tagging_category_create' is set
98
+ if @api_client.config.client_side_validation && cis_tagging_category_create.nil?
99
+ fail ArgumentError, "Missing the required parameter 'cis_tagging_category_create' when calling TaggingCategoryApi.create"
100
+ end
101
+ # resource path
102
+ local_var_path = '/com/vmware/cis/tagging/category'
103
+
104
+ # query parameters
105
+ query_params = {}
106
+
107
+ # header parameters
108
+ header_params = {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
111
+ # HTTP header 'Content-Type'
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
113
+
114
+ # form parameters
115
+ form_params = {}
116
+
117
+ # http body (model)
118
+ post_body = @api_client.object_to_http_body(cis_tagging_category_create)
119
+ auth_names = []
120
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => {
127
+ '200' => 'CIS::CisTaggingCategoryCreateResult',
128
+ '400' => 'CIS::VapiStdErrorsInvalidArgumentError',
129
+ '403' => 'CIS::VapiStdErrorsUnauthorizedError',
130
+ })
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ end
134
+ return data, status_code, headers
135
+ end
136
+ # Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
137
+ # @param category_id The identifier of category to be deleted.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
140
+ def delete(category_id, opts = {})
141
+ delete_with_http_info(category_id, opts)
142
+ nil
143
+ end
144
+
145
+ # Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
146
+ # @api private
147
+ # @param category_id The identifier of category to be deleted.
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
150
+ def delete_with_http_info(category_id, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.delete ...'
153
+ end
154
+ # verify the required parameter 'category_id' is set
155
+ if @api_client.config.client_side_validation && category_id.nil?
156
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.delete"
157
+ end
158
+ # resource path
159
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
160
+
161
+ # query parameters
162
+ query_params = {}
163
+
164
+ # header parameters
165
+ header_params = {}
166
+ # HTTP header 'Accept' (if needed)
167
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
168
+
169
+ # form parameters
170
+ form_params = {}
171
+
172
+ # http body (model)
173
+ post_body = nil
174
+ auth_names = []
175
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
176
+ :header_params => header_params,
177
+ :query_params => query_params,
178
+ :form_params => form_params,
179
+ :body => post_body,
180
+ :auth_names => auth_names)
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ end
184
+ return data, status_code, headers
185
+ end
186
+ # Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
187
+ # @param category_id The identifier of the input category.
188
+ # @param [Hash] opts the optional parameters
189
+ # @return [CisTaggingCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
190
+ def get(category_id, opts = {})
191
+ data, _status_code, _headers = get_with_http_info(category_id, opts)
192
+ data
193
+ end
194
+
195
+ # Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
196
+ # @api private
197
+ # @param category_id The identifier of the input category.
198
+ # @param [Hash] opts the optional parameters
199
+ # @return [Array<(CisTaggingCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
200
+ def get_with_http_info(category_id, opts = {})
201
+ if @api_client.config.debugging
202
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.get ...'
203
+ end
204
+ # verify the required parameter 'category_id' is set
205
+ if @api_client.config.client_side_validation && category_id.nil?
206
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.get"
207
+ end
208
+ # resource path
209
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
210
+
211
+ # query parameters
212
+ query_params = {}
213
+
214
+ # header parameters
215
+ header_params = {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
218
+
219
+ # form parameters
220
+ form_params = {}
221
+
222
+ # http body (model)
223
+ post_body = nil
224
+ auth_names = []
225
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
226
+ :header_params => header_params,
227
+ :query_params => query_params,
228
+ :form_params => form_params,
229
+ :body => post_body,
230
+ :auth_names => auth_names,
231
+ :return_type => {
232
+ '200' => 'CIS::CisTaggingCategoryResult',
233
+ '403' => 'CIS::VapiStdErrorsUnauthorizedError',
234
+ '404' => 'CIS::VapiStdErrorsNotFoundError',
235
+ })
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ end
239
+ return data, status_code, headers
240
+ end
241
+ # Enumerates the categories in the system. To invoke this {@term operation}, you need the read privilege on the individual categories. The {@term list} will only contain those categories for which you have read privileges.
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [CisTaggingCategoryListResult|]
244
+ def list(opts = {})
245
+ data, _status_code, _headers = list_with_http_info(opts)
246
+ data
247
+ end
248
+
249
+ # Enumerates the categories in the system. To invoke this {@term operation}, you need the read privilege on the individual categories. The {@term list} will only contain those categories for which you have read privileges.
250
+ # @api private
251
+ # @param [Hash] opts the optional parameters
252
+ # @return [Array<(CisTaggingCategoryListResult|, Fixnum, Hash)>] data, response status code and response headers
253
+ def list_with_http_info(opts = {})
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.list ...'
256
+ end
257
+ # resource path
258
+ local_var_path = '/com/vmware/cis/tagging/category'
259
+
260
+ # query parameters
261
+ query_params = {}
262
+
263
+ # header parameters
264
+ header_params = {}
265
+ # HTTP header 'Accept' (if needed)
266
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
267
+
268
+ # form parameters
269
+ form_params = {}
270
+
271
+ # http body (model)
272
+ post_body = nil
273
+ auth_names = []
274
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
275
+ :header_params => header_params,
276
+ :query_params => query_params,
277
+ :form_params => form_params,
278
+ :body => post_body,
279
+ :auth_names => auth_names,
280
+ :return_type => {
281
+ '200' => 'CIS::CisTaggingCategoryListResult',
282
+ })
283
+ if @api_client.config.debugging
284
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
+ end
286
+ return data, status_code, headers
287
+ end
288
+ # Enumerates all categories for which the {@param.name usedByEntity} is part of the {@link CategoryModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual categories.
289
+ # @param cis_tagging_category_list_used_categories
290
+ # @param [Hash] opts the optional parameters
291
+ # @return [CisTaggingCategoryListUsedCategoriesResult|]
292
+ def list_used_categories(cis_tagging_category_list_used_categories, opts = {})
293
+ data, _status_code, _headers = list_used_categories_with_http_info(cis_tagging_category_list_used_categories, opts)
294
+ data
295
+ end
296
+
297
+ # Enumerates all categories for which the {@param.name usedByEntity} is part of the {@link CategoryModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual categories.
298
+ # @api private
299
+ # @param cis_tagging_category_list_used_categories
300
+ # @param [Hash] opts the optional parameters
301
+ # @return [Array<(CisTaggingCategoryListUsedCategoriesResult|, Fixnum, Hash)>] data, response status code and response headers
302
+ def list_used_categories_with_http_info(cis_tagging_category_list_used_categories, opts = {})
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.list_used_categories ...'
305
+ end
306
+ # verify the required parameter 'cis_tagging_category_list_used_categories' is set
307
+ if @api_client.config.client_side_validation && cis_tagging_category_list_used_categories.nil?
308
+ fail ArgumentError, "Missing the required parameter 'cis_tagging_category_list_used_categories' when calling TaggingCategoryApi.list_used_categories"
309
+ end
310
+ # resource path
311
+ local_var_path = '/com/vmware/cis/tagging/category?~action=list-used-categories'
312
+
313
+ # query parameters
314
+ query_params = {}
315
+
316
+ # header parameters
317
+ header_params = {}
318
+ # HTTP header 'Accept' (if needed)
319
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
320
+ # HTTP header 'Content-Type'
321
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
322
+
323
+ # form parameters
324
+ form_params = {}
325
+
326
+ # http body (model)
327
+ post_body = @api_client.object_to_http_body(cis_tagging_category_list_used_categories)
328
+ auth_names = []
329
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
330
+ :header_params => header_params,
331
+ :query_params => query_params,
332
+ :form_params => form_params,
333
+ :body => post_body,
334
+ :auth_names => auth_names,
335
+ :return_type => {
336
+ '200' => 'CIS::CisTaggingCategoryListUsedCategoriesResult',
337
+ })
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#list_used_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
340
+ end
341
+ return data, status_code, headers
342
+ end
343
+ # Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is not using this category, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
344
+ # @param category_id The identifier of the input category.
345
+ # @param cis_tagging_category_remove_from_used_by
346
+ # @param [Hash] opts the optional parameters
347
+ # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
348
+ def remove_from_used_by(category_id, cis_tagging_category_remove_from_used_by, opts = {})
349
+ remove_from_used_by_with_http_info(category_id, cis_tagging_category_remove_from_used_by, opts)
350
+ nil
351
+ end
352
+
353
+ # Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is not using this category, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
354
+ # @api private
355
+ # @param category_id The identifier of the input category.
356
+ # @param cis_tagging_category_remove_from_used_by
357
+ # @param [Hash] opts the optional parameters
358
+ # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
359
+ def remove_from_used_by_with_http_info(category_id, cis_tagging_category_remove_from_used_by, opts = {})
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.remove_from_used_by ...'
362
+ end
363
+ # verify the required parameter 'category_id' is set
364
+ if @api_client.config.client_side_validation && category_id.nil?
365
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.remove_from_used_by"
366
+ end
367
+ # verify the required parameter 'cis_tagging_category_remove_from_used_by' is set
368
+ if @api_client.config.client_side_validation && cis_tagging_category_remove_from_used_by.nil?
369
+ fail ArgumentError, "Missing the required parameter 'cis_tagging_category_remove_from_used_by' when calling TaggingCategoryApi.remove_from_used_by"
370
+ end
371
+ # resource path
372
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}?~action=remove-from-used-by'.sub('{' + 'category_id' + '}', category_id.to_s)
373
+
374
+ # query parameters
375
+ query_params = {}
376
+
377
+ # header parameters
378
+ header_params = {}
379
+ # HTTP header 'Accept' (if needed)
380
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
381
+ # HTTP header 'Content-Type'
382
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
383
+
384
+ # form parameters
385
+ form_params = {}
386
+
387
+ # http body (model)
388
+ post_body = @api_client.object_to_http_body(cis_tagging_category_remove_from_used_by)
389
+ auth_names = []
390
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
391
+ :header_params => header_params,
392
+ :query_params => query_params,
393
+ :form_params => form_params,
394
+ :body => post_body,
395
+ :auth_names => auth_names)
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#remove_from_used_by\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ end
399
+ return data, status_code, headers
400
+ end
401
+ # Revokes all propagating permissions on the given category. You should then attach a direct permission with tagging privileges on the given category. To invoke this {@term operation}, you need category related privileges (direct or propagating) on the concerned category.
402
+ # @param category_id The identifier of the input category.
403
+ # @param [Hash] opts the optional parameters
404
+ # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
405
+ def revoke_propagating_permissions(category_id, opts = {})
406
+ revoke_propagating_permissions_with_http_info(category_id, opts)
407
+ nil
408
+ end
409
+
410
+ # Revokes all propagating permissions on the given category. You should then attach a direct permission with tagging privileges on the given category. To invoke this {@term operation}, you need category related privileges (direct or propagating) on the concerned category.
411
+ # @api private
412
+ # @param category_id The identifier of the input category.
413
+ # @param [Hash] opts the optional parameters
414
+ # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
415
+ def revoke_propagating_permissions_with_http_info(category_id, opts = {})
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.revoke_propagating_permissions ...'
418
+ end
419
+ # verify the required parameter 'category_id' is set
420
+ if @api_client.config.client_side_validation && category_id.nil?
421
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.revoke_propagating_permissions"
422
+ end
423
+ # resource path
424
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}?~action=revoke-propagating-permissions'.sub('{' + 'category_id' + '}', category_id.to_s)
425
+
426
+ # query parameters
427
+ query_params = {}
428
+
429
+ # header parameters
430
+ header_params = {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
433
+
434
+ # form parameters
435
+ form_params = {}
436
+
437
+ # http body (model)
438
+ post_body = nil
439
+ auth_names = []
440
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
441
+ :header_params => header_params,
442
+ :query_params => query_params,
443
+ :form_params => form_params,
444
+ :body => post_body,
445
+ :auth_names => auth_names)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#revoke_propagating_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ return data, status_code, headers
450
+ end
451
+ # Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
452
+ # @param category_id The identifier of the category to be updated.
453
+ # @param cis_tagging_category_update
454
+ # @param [Hash] opts the optional parameters
455
+ # @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
456
+ def update(category_id, cis_tagging_category_update, opts = {})
457
+ update_with_http_info(category_id, cis_tagging_category_update, opts)
458
+ nil
459
+ end
460
+
461
+ # Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
462
+ # @api private
463
+ # @param category_id The identifier of the category to be updated.
464
+ # @param cis_tagging_category_update
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
467
+ def update_with_http_info(category_id, cis_tagging_category_update, opts = {})
468
+ if @api_client.config.debugging
469
+ @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.update ...'
470
+ end
471
+ # verify the required parameter 'category_id' is set
472
+ if @api_client.config.client_side_validation && category_id.nil?
473
+ fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.update"
474
+ end
475
+ # verify the required parameter 'cis_tagging_category_update' is set
476
+ if @api_client.config.client_side_validation && cis_tagging_category_update.nil?
477
+ fail ArgumentError, "Missing the required parameter 'cis_tagging_category_update' when calling TaggingCategoryApi.update"
478
+ end
479
+ # resource path
480
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
481
+
482
+ # query parameters
483
+ query_params = {}
484
+
485
+ # header parameters
486
+ header_params = {}
487
+ # HTTP header 'Accept' (if needed)
488
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
489
+ # HTTP header 'Content-Type'
490
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
491
+
492
+ # form parameters
493
+ form_params = {}
494
+
495
+ # http body (model)
496
+ post_body = @api_client.object_to_http_body(cis_tagging_category_update)
497
+ auth_names = []
498
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
499
+ :header_params => header_params,
500
+ :query_params => query_params,
501
+ :form_params => form_params,
502
+ :body => post_body,
503
+ :auth_names => auth_names)
504
+ if @api_client.config.debugging
505
+ @api_client.config.logger.debug "API called: TaggingCategoryApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
506
+ end
507
+ return data, status_code, headers
508
+ end
509
+ end
510
+ end
511
+ end