vsphere-automation-cis 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -0
  3. data/lib/vsphere-automation-cis/version.rb +1 -1
  4. metadata +6 -286
  5. data/Gemfile +0 -13
  6. data/Gemfile.lock +0 -78
  7. data/README.md +0 -180
  8. data/Rakefile +0 -18
  9. data/docs/CisSessionCreateResult.md +0 -8
  10. data/docs/CisSessionInfo.md +0 -10
  11. data/docs/CisSessionResult.md +0 -8
  12. data/docs/CisTaggingCategoryAddToUsedBy.md +0 -8
  13. data/docs/CisTaggingCategoryCreate.md +0 -8
  14. data/docs/CisTaggingCategoryCreateResult.md +0 -8
  15. data/docs/CisTaggingCategoryCreateSpec.md +0 -12
  16. data/docs/CisTaggingCategoryListResult.md +0 -8
  17. data/docs/CisTaggingCategoryListUsedCategories.md +0 -8
  18. data/docs/CisTaggingCategoryListUsedCategoriesResult.md +0 -8
  19. data/docs/CisTaggingCategoryModel.md +0 -13
  20. data/docs/CisTaggingCategoryModelCardinality.md +0 -7
  21. data/docs/CisTaggingCategoryRemoveFromUsedBy.md +0 -8
  22. data/docs/CisTaggingCategoryResult.md +0 -8
  23. data/docs/CisTaggingCategoryUpdate.md +0 -8
  24. data/docs/CisTaggingCategoryUpdateSpec.md +0 -11
  25. data/docs/CisTaggingTagAddToUsedBy.md +0 -8
  26. data/docs/CisTaggingTagAssociationAttach.md +0 -8
  27. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObject.md +0 -9
  28. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObjectResult.md +0 -8
  29. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjects.md +0 -8
  30. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjectsResult.md +0 -8
  31. data/docs/CisTaggingTagAssociationBatchResult.md +0 -9
  32. data/docs/CisTaggingTagAssociationDetach.md +0 -8
  33. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObject.md +0 -9
  34. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObjectResult.md +0 -8
  35. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjects.md +0 -8
  36. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjectsResult.md +0 -8
  37. data/docs/CisTaggingTagAssociationListAttachableTags.md +0 -8
  38. data/docs/CisTaggingTagAssociationListAttachableTagsResult.md +0 -8
  39. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTags.md +0 -8
  40. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTagsResult.md +0 -8
  41. data/docs/CisTaggingTagAssociationListAttachedObjectsResult.md +0 -8
  42. data/docs/CisTaggingTagAssociationListAttachedTags.md +0 -8
  43. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjects.md +0 -8
  44. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjectsResult.md +0 -8
  45. data/docs/CisTaggingTagAssociationListAttachedTagsResult.md +0 -8
  46. data/docs/CisTaggingTagAssociationObjectToTags.md +0 -9
  47. data/docs/CisTaggingTagAssociationTagToObjects.md +0 -9
  48. data/docs/CisTaggingTagCreate.md +0 -8
  49. data/docs/CisTaggingTagCreateResult.md +0 -8
  50. data/docs/CisTaggingTagCreateSpec.md +0 -11
  51. data/docs/CisTaggingTagListResult.md +0 -8
  52. data/docs/CisTaggingTagListTagsForCategoryResult.md +0 -8
  53. data/docs/CisTaggingTagListUsedTags.md +0 -8
  54. data/docs/CisTaggingTagListUsedTagsResult.md +0 -8
  55. data/docs/CisTaggingTagModel.md +0 -12
  56. data/docs/CisTaggingTagRemoveFromUsedBy.md +0 -8
  57. data/docs/CisTaggingTagResult.md +0 -8
  58. data/docs/CisTaggingTagUpdate.md +0 -8
  59. data/docs/CisTaggingTagUpdateSpec.md +0 -9
  60. data/docs/CisTaskInfo.md +0 -19
  61. data/docs/CisTaskProgress.md +0 -10
  62. data/docs/CisTaskStatus.md +0 -7
  63. data/docs/CisTasksFilterSpec.md +0 -12
  64. data/docs/CisTasksGetSpec.md +0 -9
  65. data/docs/CisTasksListResult.md +0 -8
  66. data/docs/CisTasksListResultValue.md +0 -9
  67. data/docs/CisTasksResult.md +0 -8
  68. data/docs/FilterSpecTargets.md +0 -9
  69. data/docs/SessionApi.md +0 -151
  70. data/docs/TaggingCategoryApi.md +0 -464
  71. data/docs/TaggingTagApi.md +0 -515
  72. data/docs/TaggingTagAssociationApi.md +0 -575
  73. data/docs/TasksApi.md +0 -180
  74. data/docs/VapiStdDynamicID.md +0 -9
  75. data/docs/VapiStdErrorsAlreadyExists.md +0 -9
  76. data/docs/VapiStdErrorsAlreadyExistsError.md +0 -9
  77. data/docs/VapiStdErrorsError.md +0 -9
  78. data/docs/VapiStdErrorsErrorError.md +0 -9
  79. data/docs/VapiStdErrorsInvalidArgument.md +0 -9
  80. data/docs/VapiStdErrorsInvalidArgumentError.md +0 -9
  81. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +0 -9
  82. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +0 -9
  83. data/docs/VapiStdErrorsNotFound.md +0 -9
  84. data/docs/VapiStdErrorsNotFoundError.md +0 -9
  85. data/docs/VapiStdErrorsResourceInaccessible.md +0 -9
  86. data/docs/VapiStdErrorsResourceInaccessibleError.md +0 -9
  87. data/docs/VapiStdErrorsServiceUnavailable.md +0 -9
  88. data/docs/VapiStdErrorsServiceUnavailableError.md +0 -9
  89. data/docs/VapiStdErrorsUnauthenticated.md +0 -9
  90. data/docs/VapiStdErrorsUnauthenticatedError.md +0 -9
  91. data/docs/VapiStdErrorsUnauthorized.md +0 -9
  92. data/docs/VapiStdErrorsUnauthorizedError.md +0 -9
  93. data/docs/VapiStdErrorsUnsupported.md +0 -9
  94. data/docs/VapiStdErrorsUnsupportedError.md +0 -9
  95. data/docs/VapiStdLocalizableMessage.md +0 -10
  96. data/git_push.sh +0 -55
  97. data/lib/vsphere-automation-cis/api_client.rb +0 -260
  98. data/lib/vsphere-automation-cis/api_error.rb +0 -34
  99. data/lib/vsphere-automation-cis/configuration.rb +0 -212
  100. data/pkg/vsphere-automation-cis-0.4.1.gem +0 -0
  101. data/pkg/vsphere-automation-cis-0.4.2.gem +0 -0
  102. data/pkg/vsphere-automation-cis-0.4.3.gem +0 -0
  103. data/pkg/vsphere-automation-cis-0.4.4.gem +0 -0
  104. data/pkg/vsphere-automation-cis-0.4.5.gem +0 -0
  105. data/spec/api/session_api_spec.rb +0 -62
  106. data/spec/api/tagging_category_api_spec.rb +0 -132
  107. data/spec/api/tagging_tag_api_spec.rb +0 -143
  108. data/spec/api/tagging_tag_association_api_spec.rb +0 -156
  109. data/spec/api/tasks_api_spec.rb +0 -72
  110. data/spec/api_client_spec.rb +0 -248
  111. data/spec/configuration_spec.rb +0 -38
  112. data/spec/models/cis_session_create_result_spec.rb +0 -37
  113. data/spec/models/cis_session_info_spec.rb +0 -49
  114. data/spec/models/cis_session_result_spec.rb +0 -37
  115. data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +0 -37
  116. data/spec/models/cis_tagging_category_create_result_spec.rb +0 -37
  117. data/spec/models/cis_tagging_category_create_spec.rb +0 -37
  118. data/spec/models/cis_tagging_category_create_spec_spec.rb +0 -61
  119. data/spec/models/cis_tagging_category_list_result_spec.rb +0 -37
  120. data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +0 -37
  121. data/spec/models/cis_tagging_category_list_used_categories_spec.rb +0 -37
  122. data/spec/models/cis_tagging_category_model_cardinality_spec.rb +0 -31
  123. data/spec/models/cis_tagging_category_model_spec.rb +0 -67
  124. data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +0 -37
  125. data/spec/models/cis_tagging_category_result_spec.rb +0 -37
  126. data/spec/models/cis_tagging_category_update_spec.rb +0 -37
  127. data/spec/models/cis_tagging_category_update_spec_spec.rb +0 -55
  128. data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +0 -37
  129. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +0 -37
  130. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +0 -43
  131. data/spec/models/cis_tagging_tag_association_attach_spec.rb +0 -37
  132. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +0 -37
  133. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +0 -37
  134. data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +0 -43
  135. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +0 -37
  136. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +0 -43
  137. data/spec/models/cis_tagging_tag_association_detach_spec.rb +0 -37
  138. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +0 -37
  139. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +0 -37
  140. data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +0 -37
  141. data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +0 -37
  142. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +0 -37
  143. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +0 -37
  144. data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +0 -37
  145. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +0 -37
  146. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +0 -37
  147. data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +0 -37
  148. data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +0 -37
  149. data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +0 -43
  150. data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +0 -43
  151. data/spec/models/cis_tagging_tag_create_result_spec.rb +0 -37
  152. data/spec/models/cis_tagging_tag_create_spec.rb +0 -37
  153. data/spec/models/cis_tagging_tag_create_spec_spec.rb +0 -55
  154. data/spec/models/cis_tagging_tag_list_result_spec.rb +0 -37
  155. data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +0 -37
  156. data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +0 -37
  157. data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +0 -37
  158. data/spec/models/cis_tagging_tag_model_spec.rb +0 -61
  159. data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +0 -37
  160. data/spec/models/cis_tagging_tag_result_spec.rb +0 -37
  161. data/spec/models/cis_tagging_tag_update_spec.rb +0 -37
  162. data/spec/models/cis_tagging_tag_update_spec_spec.rb +0 -43
  163. data/spec/models/cis_task_info_spec.rb +0 -103
  164. data/spec/models/cis_task_progress_spec.rb +0 -49
  165. data/spec/models/cis_task_status_spec.rb +0 -31
  166. data/spec/models/cis_tasks_filter_spec_spec.rb +0 -61
  167. data/spec/models/cis_tasks_get_spec_spec.rb +0 -43
  168. data/spec/models/cis_tasks_list_result_spec.rb +0 -37
  169. data/spec/models/cis_tasks_list_result_value_spec.rb +0 -43
  170. data/spec/models/cis_tasks_result_spec.rb +0 -37
  171. data/spec/models/filter_spec_targets_spec.rb +0 -43
  172. data/spec/models/vapi_std_dynamic_id_spec.rb +0 -43
  173. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +0 -43
  174. data/spec/models/vapi_std_errors_already_exists_spec.rb +0 -43
  175. data/spec/models/vapi_std_errors_error_error_spec.rb +0 -43
  176. data/spec/models/vapi_std_errors_error_spec.rb +0 -43
  177. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +0 -43
  178. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +0 -43
  179. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +0 -43
  180. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +0 -43
  181. data/spec/models/vapi_std_errors_not_found_error_spec.rb +0 -43
  182. data/spec/models/vapi_std_errors_not_found_spec.rb +0 -43
  183. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +0 -43
  184. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +0 -43
  185. data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +0 -43
  186. data/spec/models/vapi_std_errors_service_unavailable_spec.rb +0 -43
  187. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +0 -43
  188. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +0 -43
  189. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +0 -43
  190. data/spec/models/vapi_std_errors_unauthorized_spec.rb +0 -43
  191. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +0 -43
  192. data/spec/models/vapi_std_errors_unsupported_spec.rb +0 -43
  193. data/spec/models/vapi_std_localizable_message_spec.rb +0 -49
  194. data/spec/spec_helper.rb +0 -110
  195. data/vsphere-automation-cis.gemspec +0 -39
@@ -1,464 +0,0 @@
1
- # VSphereAutomation::CIS::TaggingCategoryApi
2
-
3
- All URIs are relative to *https://<vcenter>/rest*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**add_to_used_by**](TaggingCategoryApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=add-to-used-by | 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.
8
- [**create**](TaggingCategoryApi.md#create) | **POST** /com/vmware/cis/tagging/category | Creates a category. To invoke this {@term operation}, you need the create category privilege.
9
- [**delete**](TaggingCategoryApi.md#delete) | **DELETE** /com/vmware/cis/tagging/category/id:{category_id} | Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
10
- [**get**](TaggingCategoryApi.md#get) | **GET** /com/vmware/cis/tagging/category/id:{category_id} | Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
11
- [**list**](TaggingCategoryApi.md#list) | **GET** /com/vmware/cis/tagging/category | 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.
12
- [**list_used_categories**](TaggingCategoryApi.md#list_used_categories) | **POST** /com/vmware/cis/tagging/category?~action=list-used-categories | 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.
13
- [**remove_from_used_by**](TaggingCategoryApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=remove-from-used-by | 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.
14
- [**revoke_propagating_permissions**](TaggingCategoryApi.md#revoke_propagating_permissions) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=revoke-propagating-permissions | 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.
15
- [**update**](TaggingCategoryApi.md#update) | **PATCH** /com/vmware/cis/tagging/category/id:{category_id} | Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
16
-
17
-
18
- # **add_to_used_by**
19
- > add_to_used_by(category_id, request_body)
20
-
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
-
23
- ### Example
24
- ```ruby
25
- # load the gem
26
- require 'vsphere-automation-cis'
27
- # setup authorization
28
- VSphereAutomation::Configuration.new.tap do |config|
29
- # Configure API key authorization: api_key
30
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
31
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
33
- end
34
-
35
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
36
- category_id = 'category_id_example' # String | The identifier of the input category.
37
- request_body = CIS::CisTaggingCategoryAddToUsedBy.new # CisTaggingCategoryAddToUsedBy |
38
-
39
- begin
40
- #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.
41
- api_instance.add_to_used_by(category_id, request_body)
42
- rescue VSphereAutomation::ApiError => e
43
- puts "Exception when calling TaggingCategoryApi->add_to_used_by: #{e}"
44
- end
45
- ```
46
-
47
- ### Parameters
48
-
49
- Name | Type | Description | Notes
50
- ------------- | ------------- | ------------- | -------------
51
- **category_id** | **String**| The identifier of the input category. |
52
- **request_body** | [**CisTaggingCategoryAddToUsedBy**](CisTaggingCategoryAddToUsedBy.md)| |
53
-
54
- ### Return type
55
-
56
- nil (empty response body)
57
-
58
- ### Authorization
59
-
60
- [api_key](../README.md#api_key)
61
-
62
- ### HTTP request headers
63
-
64
- - **Content-Type**: application/json
65
- - **Accept**: application/json
66
-
67
-
68
-
69
- # **create**
70
- > CisTaggingCategoryCreateResult create(request_body)
71
-
72
- Creates a category. To invoke this {@term operation}, you need the create category privilege.
73
-
74
- ### Example
75
- ```ruby
76
- # load the gem
77
- require 'vsphere-automation-cis'
78
- # setup authorization
79
- VSphereAutomation::Configuration.new.tap do |config|
80
- # Configure API key authorization: api_key
81
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
82
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
83
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
84
- end
85
-
86
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
87
- request_body = CIS::CisTaggingCategoryCreate.new # CisTaggingCategoryCreate |
88
-
89
- begin
90
- #Creates a category. To invoke this {@term operation}, you need the create category privilege.
91
- result = api_instance.create(request_body)
92
- p result
93
- rescue VSphereAutomation::ApiError => e
94
- puts "Exception when calling TaggingCategoryApi->create: #{e}"
95
- end
96
- ```
97
-
98
- ### Parameters
99
-
100
- Name | Type | Description | Notes
101
- ------------- | ------------- | ------------- | -------------
102
- **request_body** | [**CisTaggingCategoryCreate**](CisTaggingCategoryCreate.md)| |
103
-
104
- ### Return type
105
-
106
- [**CisTaggingCategoryCreateResult**](CisTaggingCategoryCreateResult.md)
107
-
108
- ### Authorization
109
-
110
- [api_key](../README.md#api_key)
111
-
112
- ### HTTP request headers
113
-
114
- - **Content-Type**: application/json
115
- - **Accept**: application/json
116
-
117
-
118
-
119
- # **delete**
120
- > delete(category_id)
121
-
122
- Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
123
-
124
- ### Example
125
- ```ruby
126
- # load the gem
127
- require 'vsphere-automation-cis'
128
- # setup authorization
129
- VSphereAutomation::Configuration.new.tap do |config|
130
- # Configure API key authorization: api_key
131
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
132
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
133
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
134
- end
135
-
136
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
137
- category_id = 'category_id_example' # String | The identifier of category to be deleted.
138
-
139
- begin
140
- #Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
141
- api_instance.delete(category_id)
142
- rescue VSphereAutomation::ApiError => e
143
- puts "Exception when calling TaggingCategoryApi->delete: #{e}"
144
- end
145
- ```
146
-
147
- ### Parameters
148
-
149
- Name | Type | Description | Notes
150
- ------------- | ------------- | ------------- | -------------
151
- **category_id** | **String**| The identifier of category to be deleted. |
152
-
153
- ### Return type
154
-
155
- nil (empty response body)
156
-
157
- ### Authorization
158
-
159
- [api_key](../README.md#api_key)
160
-
161
- ### HTTP request headers
162
-
163
- - **Content-Type**: Not defined
164
- - **Accept**: application/json
165
-
166
-
167
-
168
- # **get**
169
- > CisTaggingCategoryResult get(category_id)
170
-
171
- Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
172
-
173
- ### Example
174
- ```ruby
175
- # load the gem
176
- require 'vsphere-automation-cis'
177
- # setup authorization
178
- VSphereAutomation::Configuration.new.tap do |config|
179
- # Configure API key authorization: api_key
180
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
181
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
182
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
183
- end
184
-
185
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
186
- category_id = 'category_id_example' # String | The identifier of the input category.
187
-
188
- begin
189
- #Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
190
- result = api_instance.get(category_id)
191
- p result
192
- rescue VSphereAutomation::ApiError => e
193
- puts "Exception when calling TaggingCategoryApi->get: #{e}"
194
- end
195
- ```
196
-
197
- ### Parameters
198
-
199
- Name | Type | Description | Notes
200
- ------------- | ------------- | ------------- | -------------
201
- **category_id** | **String**| The identifier of the input category. |
202
-
203
- ### Return type
204
-
205
- [**CisTaggingCategoryResult**](CisTaggingCategoryResult.md)
206
-
207
- ### Authorization
208
-
209
- [api_key](../README.md#api_key)
210
-
211
- ### HTTP request headers
212
-
213
- - **Content-Type**: Not defined
214
- - **Accept**: application/json
215
-
216
-
217
-
218
- # **list**
219
- > CisTaggingCategoryListResult list
220
-
221
- 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.
222
-
223
- ### Example
224
- ```ruby
225
- # load the gem
226
- require 'vsphere-automation-cis'
227
- # setup authorization
228
- VSphereAutomation::Configuration.new.tap do |config|
229
- # Configure API key authorization: api_key
230
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
231
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
232
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
233
- end
234
-
235
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
236
-
237
- begin
238
- #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.
239
- result = api_instance.list
240
- p result
241
- rescue VSphereAutomation::ApiError => e
242
- puts "Exception when calling TaggingCategoryApi->list: #{e}"
243
- end
244
- ```
245
-
246
- ### Parameters
247
- This endpoint does not need any parameter.
248
-
249
- ### Return type
250
-
251
- [**CisTaggingCategoryListResult**](CisTaggingCategoryListResult.md)
252
-
253
- ### Authorization
254
-
255
- [api_key](../README.md#api_key)
256
-
257
- ### HTTP request headers
258
-
259
- - **Content-Type**: Not defined
260
- - **Accept**: application/json
261
-
262
-
263
-
264
- # **list_used_categories**
265
- > CisTaggingCategoryListUsedCategoriesResult list_used_categories(request_body)
266
-
267
- 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.
268
-
269
- ### Example
270
- ```ruby
271
- # load the gem
272
- require 'vsphere-automation-cis'
273
- # setup authorization
274
- VSphereAutomation::Configuration.new.tap do |config|
275
- # Configure API key authorization: api_key
276
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
277
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
278
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
279
- end
280
-
281
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
282
- request_body = CIS::CisTaggingCategoryListUsedCategories.new # CisTaggingCategoryListUsedCategories |
283
-
284
- begin
285
- #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.
286
- result = api_instance.list_used_categories(request_body)
287
- p result
288
- rescue VSphereAutomation::ApiError => e
289
- puts "Exception when calling TaggingCategoryApi->list_used_categories: #{e}"
290
- end
291
- ```
292
-
293
- ### Parameters
294
-
295
- Name | Type | Description | Notes
296
- ------------- | ------------- | ------------- | -------------
297
- **request_body** | [**CisTaggingCategoryListUsedCategories**](CisTaggingCategoryListUsedCategories.md)| |
298
-
299
- ### Return type
300
-
301
- [**CisTaggingCategoryListUsedCategoriesResult**](CisTaggingCategoryListUsedCategoriesResult.md)
302
-
303
- ### Authorization
304
-
305
- [api_key](../README.md#api_key)
306
-
307
- ### HTTP request headers
308
-
309
- - **Content-Type**: application/json
310
- - **Accept**: application/json
311
-
312
-
313
-
314
- # **remove_from_used_by**
315
- > remove_from_used_by(category_id, request_body)
316
-
317
- 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.
318
-
319
- ### Example
320
- ```ruby
321
- # load the gem
322
- require 'vsphere-automation-cis'
323
- # setup authorization
324
- VSphereAutomation::Configuration.new.tap do |config|
325
- # Configure API key authorization: api_key
326
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
327
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
328
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
329
- end
330
-
331
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
332
- category_id = 'category_id_example' # String | The identifier of the input category.
333
- request_body = CIS::CisTaggingCategoryRemoveFromUsedBy.new # CisTaggingCategoryRemoveFromUsedBy |
334
-
335
- begin
336
- #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.
337
- api_instance.remove_from_used_by(category_id, request_body)
338
- rescue VSphereAutomation::ApiError => e
339
- puts "Exception when calling TaggingCategoryApi->remove_from_used_by: #{e}"
340
- end
341
- ```
342
-
343
- ### Parameters
344
-
345
- Name | Type | Description | Notes
346
- ------------- | ------------- | ------------- | -------------
347
- **category_id** | **String**| The identifier of the input category. |
348
- **request_body** | [**CisTaggingCategoryRemoveFromUsedBy**](CisTaggingCategoryRemoveFromUsedBy.md)| |
349
-
350
- ### Return type
351
-
352
- nil (empty response body)
353
-
354
- ### Authorization
355
-
356
- [api_key](../README.md#api_key)
357
-
358
- ### HTTP request headers
359
-
360
- - **Content-Type**: application/json
361
- - **Accept**: application/json
362
-
363
-
364
-
365
- # **revoke_propagating_permissions**
366
- > revoke_propagating_permissions(category_id)
367
-
368
- 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.
369
-
370
- ### Example
371
- ```ruby
372
- # load the gem
373
- require 'vsphere-automation-cis'
374
- # setup authorization
375
- VSphereAutomation::Configuration.new.tap do |config|
376
- # Configure API key authorization: api_key
377
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
378
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
379
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
380
- end
381
-
382
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
383
- category_id = 'category_id_example' # String | The identifier of the input category.
384
-
385
- begin
386
- #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.
387
- api_instance.revoke_propagating_permissions(category_id)
388
- rescue VSphereAutomation::ApiError => e
389
- puts "Exception when calling TaggingCategoryApi->revoke_propagating_permissions: #{e}"
390
- end
391
- ```
392
-
393
- ### Parameters
394
-
395
- Name | Type | Description | Notes
396
- ------------- | ------------- | ------------- | -------------
397
- **category_id** | **String**| The identifier of the input category. |
398
-
399
- ### Return type
400
-
401
- nil (empty response body)
402
-
403
- ### Authorization
404
-
405
- [api_key](../README.md#api_key)
406
-
407
- ### HTTP request headers
408
-
409
- - **Content-Type**: Not defined
410
- - **Accept**: application/json
411
-
412
-
413
-
414
- # **update**
415
- > update(category_id, request_body)
416
-
417
- Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
418
-
419
- ### Example
420
- ```ruby
421
- # load the gem
422
- require 'vsphere-automation-cis'
423
- # setup authorization
424
- VSphereAutomation::Configuration.new.tap do |config|
425
- # Configure API key authorization: api_key
426
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
427
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
428
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
429
- end
430
-
431
- api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
432
- category_id = 'category_id_example' # String | The identifier of the category to be updated.
433
- request_body = CIS::CisTaggingCategoryUpdate.new # CisTaggingCategoryUpdate |
434
-
435
- begin
436
- #Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
437
- api_instance.update(category_id, request_body)
438
- rescue VSphereAutomation::ApiError => e
439
- puts "Exception when calling TaggingCategoryApi->update: #{e}"
440
- end
441
- ```
442
-
443
- ### Parameters
444
-
445
- Name | Type | Description | Notes
446
- ------------- | ------------- | ------------- | -------------
447
- **category_id** | **String**| The identifier of the category to be updated. |
448
- **request_body** | [**CisTaggingCategoryUpdate**](CisTaggingCategoryUpdate.md)| |
449
-
450
- ### Return type
451
-
452
- nil (empty response body)
453
-
454
- ### Authorization
455
-
456
- [api_key](../README.md#api_key)
457
-
458
- ### HTTP request headers
459
-
460
- - **Content-Type**: application/json
461
- - **Accept**: application/json
462
-
463
-
464
-