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,188 @@
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 'date'
12
+
13
+ module VSphereAutomation
14
+ module CIS
15
+ class CisTaggingCategoryCreateResult
16
+ attr_accessor :value
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'value' => :'value'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'value' => :'String'
29
+ }
30
+ end
31
+
32
+ # Initializes the object
33
+ # @param [Hash] attributes Model attributes in the form of hash
34
+ def initialize(attributes = {})
35
+ return unless attributes.is_a?(Hash)
36
+
37
+ # convert string to symbol for hash key
38
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
39
+
40
+ if attributes.has_key?(:'value')
41
+ self.value = attributes[:'value']
42
+ end
43
+ end
44
+
45
+ # Show invalid properties with the reasons. Usually used together with valid?
46
+ # @return Array for valid properties with the reasons
47
+ def list_invalid_properties
48
+ invalid_properties = Array.new
49
+ if @value.nil?
50
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
51
+ end
52
+
53
+ invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ return false if @value.nil?
60
+ true
61
+ end
62
+
63
+ # Checks equality by comparing each attribute.
64
+ # @param [Object] Object to be compared
65
+ def ==(o)
66
+ return true if self.equal?(o)
67
+ self.class == o.class &&
68
+ value == o.value
69
+ end
70
+
71
+ # @see the `==` method
72
+ # @param [Object] Object to be compared
73
+ def eql?(o)
74
+ self == o
75
+ end
76
+
77
+ # Calculates hash code according to all attributes.
78
+ # @return [Fixnum] Hash code
79
+ def hash
80
+ [value].hash
81
+ end
82
+
83
+ # Builds the object from hash
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ # @return [Object] Returns the model itself
86
+ def build_from_hash(attributes)
87
+ return nil unless attributes.is_a?(Hash)
88
+ self.class.openapi_types.each_pair do |key, type|
89
+ if type =~ /\AArray<(.*)>/i
90
+ # check to ensure the input is an array given that the the attribute
91
+ # is documented as an array but the input is not
92
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
93
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
+ end
95
+ elsif !attributes[self.class.attribute_map[key]].nil?
96
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
97
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
98
+ end
99
+
100
+ self
101
+ end
102
+
103
+ # Deserializes the data based on type
104
+ # @param string type Data type
105
+ # @param string value Value to be deserialized
106
+ # @return [Object] Deserialized data
107
+ def _deserialize(type, value)
108
+ case type.to_sym
109
+ when :DateTime
110
+ DateTime.parse(value)
111
+ when :Date
112
+ Date.parse(value)
113
+ when :String
114
+ value.to_s
115
+ when :Integer
116
+ value.to_i
117
+ when :Float
118
+ value.to_f
119
+ when :BOOLEAN
120
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
121
+ true
122
+ else
123
+ false
124
+ end
125
+ when :Object
126
+ # generic object (usually a Hash), return directly
127
+ value
128
+ when /\AArray<(?<inner_type>.+)>\z/
129
+ inner_type = Regexp.last_match[:inner_type]
130
+ value.map { |v| _deserialize(inner_type, v) }
131
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
132
+ k_type = Regexp.last_match[:k_type]
133
+ v_type = Regexp.last_match[:v_type]
134
+ {}.tap do |hash|
135
+ value.each do |k, v|
136
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
137
+ end
138
+ end
139
+ else # model
140
+ temp_model = VSphereAutomation::CIS.const_get(type).new
141
+ temp_model.build_from_hash(value)
142
+ end
143
+ end
144
+
145
+ # Returns the string representation of the object
146
+ # @return [String] String presentation of the object
147
+ def to_s
148
+ to_hash.to_s
149
+ end
150
+
151
+ # to_body is an alias to to_hash (backward compatibility)
152
+ # @return [Hash] Returns the object in the form of hash
153
+ def to_body
154
+ to_hash
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ next if value.nil?
164
+ hash[param] = _to_hash(value)
165
+ end
166
+ hash
167
+ end
168
+
169
+ # Outputs non-array value in the form of hash
170
+ # For object, use to_hash. Otherwise, just return the value
171
+ # @param [Object] value Any valid value
172
+ # @return [Hash] Returns the value in the form of hash
173
+ def _to_hash(value)
174
+ if value.is_a?(Array)
175
+ value.compact.map { |v| _to_hash(v) }
176
+ elsif value.is_a?(Hash)
177
+ {}.tap do |hash|
178
+ value.each { |k, v| hash[k] = _to_hash(v) }
179
+ end
180
+ elsif value.respond_to? :to_hash
181
+ value.to_hash
182
+ else
183
+ value
184
+ end
185
+ end
186
+ end
187
+ end
188
+ end
@@ -0,0 +1,245 @@
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 'date'
12
+
13
+ module VSphereAutomation
14
+ module CIS
15
+ class CisTaggingCategoryCreateSpec
16
+ # The display name of the category.
17
+ attr_accessor :name
18
+
19
+ # The description of the category.
20
+ attr_accessor :description
21
+
22
+ attr_accessor :cardinality
23
+
24
+ # Object types to which this category's tags can be attached.
25
+ attr_accessor :associable_types
26
+
27
+ # The identifier of the category. If specified, the category will be created with this identifier. This has to be of the category ManagedObject Id format urn:vmomi:InventoryServiceCategory:<id>:GLOBAL The <id> cannot contain special character ':'
28
+ attr_accessor :category_id
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'name' => :'name',
34
+ :'description' => :'description',
35
+ :'cardinality' => :'cardinality',
36
+ :'associable_types' => :'associable_types',
37
+ :'category_id' => :'category_id'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'name' => :'String',
45
+ :'description' => :'String',
46
+ :'cardinality' => :'CisTaggingCategoryModelCardinality',
47
+ :'associable_types' => :'Array<String>',
48
+ :'category_id' => :'String'
49
+ }
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ return unless attributes.is_a?(Hash)
56
+
57
+ # convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
59
+
60
+ if attributes.has_key?(:'name')
61
+ self.name = attributes[:'name']
62
+ end
63
+
64
+ if attributes.has_key?(:'description')
65
+ self.description = attributes[:'description']
66
+ end
67
+
68
+ if attributes.has_key?(:'cardinality')
69
+ self.cardinality = attributes[:'cardinality']
70
+ end
71
+
72
+ if attributes.has_key?(:'associable_types')
73
+ if (value = attributes[:'associable_types']).is_a?(Array)
74
+ self.associable_types = value
75
+ end
76
+ end
77
+
78
+ if attributes.has_key?(:'category_id')
79
+ self.category_id = attributes[:'category_id']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = Array.new
87
+ if @name.nil?
88
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
89
+ end
90
+
91
+ if @description.nil?
92
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
93
+ end
94
+
95
+ if @cardinality.nil?
96
+ invalid_properties.push('invalid value for "cardinality", cardinality cannot be nil.')
97
+ end
98
+
99
+ if @associable_types.nil?
100
+ invalid_properties.push('invalid value for "associable_types", associable_types cannot be nil.')
101
+ end
102
+
103
+ invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ return false if @name.nil?
110
+ return false if @description.nil?
111
+ return false if @cardinality.nil?
112
+ return false if @associable_types.nil?
113
+ true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ name == o.name &&
122
+ description == o.description &&
123
+ cardinality == o.cardinality &&
124
+ associable_types == o.associable_types &&
125
+ category_id == o.category_id
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Fixnum] Hash code
136
+ def hash
137
+ [name, description, cardinality, associable_types, category_id].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ self.class.openapi_types.each_pair do |key, type|
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
+ end
152
+ elsif !attributes[self.class.attribute_map[key]].nil?
153
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
155
+ end
156
+
157
+ self
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def _deserialize(type, value)
165
+ case type.to_sym
166
+ when :DateTime
167
+ DateTime.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :BOOLEAN
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ temp_model = VSphereAutomation::CIS.const_get(type).new
198
+ temp_model.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ next if value.nil?
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map { |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+ end
244
+ end
245
+ end
@@ -0,0 +1,190 @@
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 'date'
12
+
13
+ module VSphereAutomation
14
+ module CIS
15
+ class CisTaggingCategoryListResult
16
+ attr_accessor :value
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'value' => :'value'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'value' => :'Array<String>'
29
+ }
30
+ end
31
+
32
+ # Initializes the object
33
+ # @param [Hash] attributes Model attributes in the form of hash
34
+ def initialize(attributes = {})
35
+ return unless attributes.is_a?(Hash)
36
+
37
+ # convert string to symbol for hash key
38
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
39
+
40
+ if attributes.has_key?(:'value')
41
+ if (value = attributes[:'value']).is_a?(Array)
42
+ self.value = value
43
+ end
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ if @value.nil?
52
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
53
+ end
54
+
55
+ invalid_properties
56
+ end
57
+
58
+ # Check to see if the all the properties in the model are valid
59
+ # @return true if the model is valid
60
+ def valid?
61
+ return false if @value.nil?
62
+ true
63
+ end
64
+
65
+ # Checks equality by comparing each attribute.
66
+ # @param [Object] Object to be compared
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ value == o.value
71
+ end
72
+
73
+ # @see the `==` method
74
+ # @param [Object] Object to be compared
75
+ def eql?(o)
76
+ self == o
77
+ end
78
+
79
+ # Calculates hash code according to all attributes.
80
+ # @return [Fixnum] Hash code
81
+ def hash
82
+ [value].hash
83
+ end
84
+
85
+ # Builds the object from hash
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ # @return [Object] Returns the model itself
88
+ def build_from_hash(attributes)
89
+ return nil unless attributes.is_a?(Hash)
90
+ self.class.openapi_types.each_pair do |key, type|
91
+ if type =~ /\AArray<(.*)>/i
92
+ # check to ensure the input is an array given that the the attribute
93
+ # is documented as an array but the input is not
94
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
95
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
96
+ end
97
+ elsif !attributes[self.class.attribute_map[key]].nil?
98
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
99
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
100
+ end
101
+
102
+ self
103
+ end
104
+
105
+ # Deserializes the data based on type
106
+ # @param string type Data type
107
+ # @param string value Value to be deserialized
108
+ # @return [Object] Deserialized data
109
+ def _deserialize(type, value)
110
+ case type.to_sym
111
+ when :DateTime
112
+ DateTime.parse(value)
113
+ when :Date
114
+ Date.parse(value)
115
+ when :String
116
+ value.to_s
117
+ when :Integer
118
+ value.to_i
119
+ when :Float
120
+ value.to_f
121
+ when :BOOLEAN
122
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
123
+ true
124
+ else
125
+ false
126
+ end
127
+ when :Object
128
+ # generic object (usually a Hash), return directly
129
+ value
130
+ when /\AArray<(?<inner_type>.+)>\z/
131
+ inner_type = Regexp.last_match[:inner_type]
132
+ value.map { |v| _deserialize(inner_type, v) }
133
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
134
+ k_type = Regexp.last_match[:k_type]
135
+ v_type = Regexp.last_match[:v_type]
136
+ {}.tap do |hash|
137
+ value.each do |k, v|
138
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
139
+ end
140
+ end
141
+ else # model
142
+ temp_model = VSphereAutomation::CIS.const_get(type).new
143
+ temp_model.build_from_hash(value)
144
+ end
145
+ end
146
+
147
+ # Returns the string representation of the object
148
+ # @return [String] String presentation of the object
149
+ def to_s
150
+ to_hash.to_s
151
+ end
152
+
153
+ # to_body is an alias to to_hash (backward compatibility)
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_body
156
+ to_hash
157
+ end
158
+
159
+ # Returns the object in the form of hash
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_hash
162
+ hash = {}
163
+ self.class.attribute_map.each_pair do |attr, param|
164
+ value = self.send(attr)
165
+ next if value.nil?
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ # Outputs non-array value in the form of hash
172
+ # For object, use to_hash. Otherwise, just return the value
173
+ # @param [Object] value Any valid value
174
+ # @return [Hash] Returns the value in the form of hash
175
+ def _to_hash(value)
176
+ if value.is_a?(Array)
177
+ value.compact.map { |v| _to_hash(v) }
178
+ elsif value.is_a?(Hash)
179
+ {}.tap do |hash|
180
+ value.each { |k, v| hash[k] = _to_hash(v) }
181
+ end
182
+ elsif value.respond_to? :to_hash
183
+ value.to_hash
184
+ else
185
+ value
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end