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,515 +0,0 @@
1
- # VSphereAutomation::CIS::TaggingTagApi
2
-
3
- All URIs are relative to *https://<vcenter>/rest*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**add_to_used_by**](TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=add-to-used-by | Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
8
- [**create**](TaggingTagApi.md#create) | **POST** /com/vmware/cis/tagging/tag | Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
9
- [**delete**](TaggingTagApi.md#delete) | **DELETE** /com/vmware/cis/tagging/tag/id:{tag_id} | Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
10
- [**get**](TaggingTagApi.md#get) | **GET** /com/vmware/cis/tagging/tag/id:{tag_id} | Fetches the tag information for the given tag identifier. To invoke this {@term operation}, you need the read privilege on the tag in order to view the tag info.
11
- [**list**](TaggingTagApi.md#list) | **GET** /com/vmware/cis/tagging/tag | Enumerates the tags in the system. To invoke this {@term operation}, you need read privilege on the individual tags. The {@term list} will only contain tags for which you have read privileges.
12
- [**list_tags_for_category**](TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category | Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
13
- [**list_used_tags**](TaggingTagApi.md#list_used_tags) | **POST** /com/vmware/cis/tagging/tag?~action=list-used-tags | Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
14
- [**remove_from_used_by**](TaggingTagApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=remove-from-used-by | Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
15
- [**revoke_propagating_permissions**](TaggingTagApi.md#revoke_propagating_permissions) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=revoke-propagating-permissions | Revokes all propagating permissions on the given tag. You should then attach a direct permission with tagging privileges on the given tag. To invoke this {@term operation}, you need tag related privileges (direct or propagating) on the concerned tag.
16
- [**update**](TaggingTagApi.md#update) | **PATCH** /com/vmware/cis/tagging/tag/id:{tag_id} | Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
17
-
18
-
19
- # **add_to_used_by**
20
- > add_to_used_by(tag_id, request_body)
21
-
22
- Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
23
-
24
- ### Example
25
- ```ruby
26
- # load the gem
27
- require 'vsphere-automation-cis'
28
- # setup authorization
29
- VSphereAutomation::Configuration.new.tap do |config|
30
- # Configure API key authorization: api_key
31
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
32
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
34
- end
35
-
36
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
37
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
38
- request_body = CIS::CisTaggingTagAddToUsedBy.new # CisTaggingTagAddToUsedBy |
39
-
40
- begin
41
- #Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
42
- api_instance.add_to_used_by(tag_id, request_body)
43
- rescue VSphereAutomation::ApiError => e
44
- puts "Exception when calling TaggingTagApi->add_to_used_by: #{e}"
45
- end
46
- ```
47
-
48
- ### Parameters
49
-
50
- Name | Type | Description | Notes
51
- ------------- | ------------- | ------------- | -------------
52
- **tag_id** | **String**| The identifier of the input tag. |
53
- **request_body** | [**CisTaggingTagAddToUsedBy**](CisTaggingTagAddToUsedBy.md)| |
54
-
55
- ### Return type
56
-
57
- nil (empty response body)
58
-
59
- ### Authorization
60
-
61
- [api_key](../README.md#api_key)
62
-
63
- ### HTTP request headers
64
-
65
- - **Content-Type**: application/json
66
- - **Accept**: application/json
67
-
68
-
69
-
70
- # **create**
71
- > CisTaggingTagCreateResult create(request_body)
72
-
73
- Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
74
-
75
- ### Example
76
- ```ruby
77
- # load the gem
78
- require 'vsphere-automation-cis'
79
- # setup authorization
80
- VSphereAutomation::Configuration.new.tap do |config|
81
- # Configure API key authorization: api_key
82
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
83
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
85
- end
86
-
87
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
88
- request_body = CIS::CisTaggingTagCreate.new # CisTaggingTagCreate |
89
-
90
- begin
91
- #Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
92
- result = api_instance.create(request_body)
93
- p result
94
- rescue VSphereAutomation::ApiError => e
95
- puts "Exception when calling TaggingTagApi->create: #{e}"
96
- end
97
- ```
98
-
99
- ### Parameters
100
-
101
- Name | Type | Description | Notes
102
- ------------- | ------------- | ------------- | -------------
103
- **request_body** | [**CisTaggingTagCreate**](CisTaggingTagCreate.md)| |
104
-
105
- ### Return type
106
-
107
- [**CisTaggingTagCreateResult**](CisTaggingTagCreateResult.md)
108
-
109
- ### Authorization
110
-
111
- [api_key](../README.md#api_key)
112
-
113
- ### HTTP request headers
114
-
115
- - **Content-Type**: application/json
116
- - **Accept**: application/json
117
-
118
-
119
-
120
- # **delete**
121
- > delete(tag_id)
122
-
123
- Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
124
-
125
- ### Example
126
- ```ruby
127
- # load the gem
128
- require 'vsphere-automation-cis'
129
- # setup authorization
130
- VSphereAutomation::Configuration.new.tap do |config|
131
- # Configure API key authorization: api_key
132
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
133
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
134
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
135
- end
136
-
137
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
138
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
139
-
140
- begin
141
- #Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
142
- api_instance.delete(tag_id)
143
- rescue VSphereAutomation::ApiError => e
144
- puts "Exception when calling TaggingTagApi->delete: #{e}"
145
- end
146
- ```
147
-
148
- ### Parameters
149
-
150
- Name | Type | Description | Notes
151
- ------------- | ------------- | ------------- | -------------
152
- **tag_id** | **String**| The identifier of the input tag. |
153
-
154
- ### Return type
155
-
156
- nil (empty response body)
157
-
158
- ### Authorization
159
-
160
- [api_key](../README.md#api_key)
161
-
162
- ### HTTP request headers
163
-
164
- - **Content-Type**: Not defined
165
- - **Accept**: application/json
166
-
167
-
168
-
169
- # **get**
170
- > CisTaggingTagResult get(tag_id)
171
-
172
- Fetches the tag information for the given tag identifier. To invoke this {@term operation}, you need the read privilege on the tag in order to view the tag info.
173
-
174
- ### Example
175
- ```ruby
176
- # load the gem
177
- require 'vsphere-automation-cis'
178
- # setup authorization
179
- VSphereAutomation::Configuration.new.tap do |config|
180
- # Configure API key authorization: api_key
181
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
182
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
183
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
184
- end
185
-
186
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
187
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
188
-
189
- begin
190
- #Fetches the tag information for the given tag identifier. To invoke this {@term operation}, you need the read privilege on the tag in order to view the tag info.
191
- result = api_instance.get(tag_id)
192
- p result
193
- rescue VSphereAutomation::ApiError => e
194
- puts "Exception when calling TaggingTagApi->get: #{e}"
195
- end
196
- ```
197
-
198
- ### Parameters
199
-
200
- Name | Type | Description | Notes
201
- ------------- | ------------- | ------------- | -------------
202
- **tag_id** | **String**| The identifier of the input tag. |
203
-
204
- ### Return type
205
-
206
- [**CisTaggingTagResult**](CisTaggingTagResult.md)
207
-
208
- ### Authorization
209
-
210
- [api_key](../README.md#api_key)
211
-
212
- ### HTTP request headers
213
-
214
- - **Content-Type**: Not defined
215
- - **Accept**: application/json
216
-
217
-
218
-
219
- # **list**
220
- > CisTaggingTagListResult list
221
-
222
- Enumerates the tags in the system. To invoke this {@term operation}, you need read privilege on the individual tags. The {@term list} will only contain tags for which you have read privileges.
223
-
224
- ### Example
225
- ```ruby
226
- # load the gem
227
- require 'vsphere-automation-cis'
228
- # setup authorization
229
- VSphereAutomation::Configuration.new.tap do |config|
230
- # Configure API key authorization: api_key
231
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
232
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
233
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
234
- end
235
-
236
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
237
-
238
- begin
239
- #Enumerates the tags in the system. To invoke this {@term operation}, you need read privilege on the individual tags. The {@term list} will only contain tags for which you have read privileges.
240
- result = api_instance.list
241
- p result
242
- rescue VSphereAutomation::ApiError => e
243
- puts "Exception when calling TaggingTagApi->list: #{e}"
244
- end
245
- ```
246
-
247
- ### Parameters
248
- This endpoint does not need any parameter.
249
-
250
- ### Return type
251
-
252
- [**CisTaggingTagListResult**](CisTaggingTagListResult.md)
253
-
254
- ### Authorization
255
-
256
- [api_key](../README.md#api_key)
257
-
258
- ### HTTP request headers
259
-
260
- - **Content-Type**: Not defined
261
- - **Accept**: application/json
262
-
263
-
264
-
265
- # **list_tags_for_category**
266
- > CisTaggingTagListTagsForCategoryResult list_tags_for_category(category_id)
267
-
268
- Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
269
-
270
- ### Example
271
- ```ruby
272
- # load the gem
273
- require 'vsphere-automation-cis'
274
- # setup authorization
275
- VSphereAutomation::Configuration.new.tap do |config|
276
- # Configure API key authorization: api_key
277
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
278
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
279
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
280
- end
281
-
282
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
283
- category_id = 'category_id_example' # String | The identifier of the input category.
284
-
285
- begin
286
- #Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
287
- result = api_instance.list_tags_for_category(category_id)
288
- p result
289
- rescue VSphereAutomation::ApiError => e
290
- puts "Exception when calling TaggingTagApi->list_tags_for_category: #{e}"
291
- end
292
- ```
293
-
294
- ### Parameters
295
-
296
- Name | Type | Description | Notes
297
- ------------- | ------------- | ------------- | -------------
298
- **category_id** | **String**| The identifier of the input category. |
299
-
300
- ### Return type
301
-
302
- [**CisTaggingTagListTagsForCategoryResult**](CisTaggingTagListTagsForCategoryResult.md)
303
-
304
- ### Authorization
305
-
306
- [api_key](../README.md#api_key)
307
-
308
- ### HTTP request headers
309
-
310
- - **Content-Type**: Not defined
311
- - **Accept**: application/json
312
-
313
-
314
-
315
- # **list_used_tags**
316
- > CisTaggingTagListUsedTagsResult list_used_tags(request_body)
317
-
318
- Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
319
-
320
- ### Example
321
- ```ruby
322
- # load the gem
323
- require 'vsphere-automation-cis'
324
- # setup authorization
325
- VSphereAutomation::Configuration.new.tap do |config|
326
- # Configure API key authorization: api_key
327
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
328
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
329
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
330
- end
331
-
332
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
333
- request_body = CIS::CisTaggingTagListUsedTags.new # CisTaggingTagListUsedTags |
334
-
335
- begin
336
- #Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
337
- result = api_instance.list_used_tags(request_body)
338
- p result
339
- rescue VSphereAutomation::ApiError => e
340
- puts "Exception when calling TaggingTagApi->list_used_tags: #{e}"
341
- end
342
- ```
343
-
344
- ### Parameters
345
-
346
- Name | Type | Description | Notes
347
- ------------- | ------------- | ------------- | -------------
348
- **request_body** | [**CisTaggingTagListUsedTags**](CisTaggingTagListUsedTags.md)| |
349
-
350
- ### Return type
351
-
352
- [**CisTaggingTagListUsedTagsResult**](CisTaggingTagListUsedTagsResult.md)
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
- # **remove_from_used_by**
366
- > remove_from_used_by(tag_id, request_body)
367
-
368
- Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
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::TaggingTagApi.new
383
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
384
- request_body = CIS::CisTaggingTagRemoveFromUsedBy.new # CisTaggingTagRemoveFromUsedBy |
385
-
386
- begin
387
- #Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
388
- api_instance.remove_from_used_by(tag_id, request_body)
389
- rescue VSphereAutomation::ApiError => e
390
- puts "Exception when calling TaggingTagApi->remove_from_used_by: #{e}"
391
- end
392
- ```
393
-
394
- ### Parameters
395
-
396
- Name | Type | Description | Notes
397
- ------------- | ------------- | ------------- | -------------
398
- **tag_id** | **String**| The identifier of the input tag. |
399
- **request_body** | [**CisTaggingTagRemoveFromUsedBy**](CisTaggingTagRemoveFromUsedBy.md)| |
400
-
401
- ### Return type
402
-
403
- nil (empty response body)
404
-
405
- ### Authorization
406
-
407
- [api_key](../README.md#api_key)
408
-
409
- ### HTTP request headers
410
-
411
- - **Content-Type**: application/json
412
- - **Accept**: application/json
413
-
414
-
415
-
416
- # **revoke_propagating_permissions**
417
- > revoke_propagating_permissions(tag_id)
418
-
419
- Revokes all propagating permissions on the given tag. You should then attach a direct permission with tagging privileges on the given tag. To invoke this {@term operation}, you need tag related privileges (direct or propagating) on the concerned tag.
420
-
421
- ### Example
422
- ```ruby
423
- # load the gem
424
- require 'vsphere-automation-cis'
425
- # setup authorization
426
- VSphereAutomation::Configuration.new.tap do |config|
427
- # Configure API key authorization: api_key
428
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
429
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
430
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
431
- end
432
-
433
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
434
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
435
-
436
- begin
437
- #Revokes all propagating permissions on the given tag. You should then attach a direct permission with tagging privileges on the given tag. To invoke this {@term operation}, you need tag related privileges (direct or propagating) on the concerned tag.
438
- api_instance.revoke_propagating_permissions(tag_id)
439
- rescue VSphereAutomation::ApiError => e
440
- puts "Exception when calling TaggingTagApi->revoke_propagating_permissions: #{e}"
441
- end
442
- ```
443
-
444
- ### Parameters
445
-
446
- Name | Type | Description | Notes
447
- ------------- | ------------- | ------------- | -------------
448
- **tag_id** | **String**| The identifier of the input tag. |
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**: Not defined
461
- - **Accept**: application/json
462
-
463
-
464
-
465
- # **update**
466
- > update(tag_id, request_body)
467
-
468
- Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
469
-
470
- ### Example
471
- ```ruby
472
- # load the gem
473
- require 'vsphere-automation-cis'
474
- # setup authorization
475
- VSphereAutomation::Configuration.new.tap do |config|
476
- # Configure API key authorization: api_key
477
- config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
478
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
479
- #config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
480
- end
481
-
482
- api_instance = VSphereAutomation::CIS::TaggingTagApi.new
483
- tag_id = 'tag_id_example' # String | The identifier of the input tag.
484
- request_body = CIS::CisTaggingTagUpdate.new # CisTaggingTagUpdate |
485
-
486
- begin
487
- #Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
488
- api_instance.update(tag_id, request_body)
489
- rescue VSphereAutomation::ApiError => e
490
- puts "Exception when calling TaggingTagApi->update: #{e}"
491
- end
492
- ```
493
-
494
- ### Parameters
495
-
496
- Name | Type | Description | Notes
497
- ------------- | ------------- | ------------- | -------------
498
- **tag_id** | **String**| The identifier of the input tag. |
499
- **request_body** | [**CisTaggingTagUpdate**](CisTaggingTagUpdate.md)| |
500
-
501
- ### Return type
502
-
503
- nil (empty response body)
504
-
505
- ### Authorization
506
-
507
- [api_key](../README.md#api_key)
508
-
509
- ### HTTP request headers
510
-
511
- - **Content-Type**: application/json
512
- - **Accept**: application/json
513
-
514
-
515
-