vsphere-automation-cis 0.4.2 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +20 -0
- data/lib/vsphere-automation-cis/api_client.rb +260 -0
- data/lib/vsphere-automation-cis/api_error.rb +34 -0
- data/lib/vsphere-automation-cis/configuration.rb +212 -0
- data/lib/vsphere-automation-cis/version.rb +1 -1
- metadata +13 -280
- data/Gemfile +0 -13
- data/Gemfile.lock +0 -78
- data/README.md +0 -180
- data/Rakefile +0 -18
- data/docs/CisSessionCreateResult.md +0 -8
- data/docs/CisSessionInfo.md +0 -10
- data/docs/CisSessionResult.md +0 -8
- data/docs/CisTaggingCategoryAddToUsedBy.md +0 -8
- data/docs/CisTaggingCategoryCreate.md +0 -8
- data/docs/CisTaggingCategoryCreateResult.md +0 -8
- data/docs/CisTaggingCategoryCreateSpec.md +0 -12
- data/docs/CisTaggingCategoryListResult.md +0 -8
- data/docs/CisTaggingCategoryListUsedCategories.md +0 -8
- data/docs/CisTaggingCategoryListUsedCategoriesResult.md +0 -8
- data/docs/CisTaggingCategoryModel.md +0 -13
- data/docs/CisTaggingCategoryModelCardinality.md +0 -7
- data/docs/CisTaggingCategoryRemoveFromUsedBy.md +0 -8
- data/docs/CisTaggingCategoryResult.md +0 -8
- data/docs/CisTaggingCategoryUpdate.md +0 -8
- data/docs/CisTaggingCategoryUpdateSpec.md +0 -11
- data/docs/CisTaggingTagAddToUsedBy.md +0 -8
- data/docs/CisTaggingTagAssociationAttach.md +0 -8
- data/docs/CisTaggingTagAssociationAttachMultipleTagsToObject.md +0 -9
- data/docs/CisTaggingTagAssociationAttachMultipleTagsToObjectResult.md +0 -8
- data/docs/CisTaggingTagAssociationAttachTagToMultipleObjects.md +0 -8
- data/docs/CisTaggingTagAssociationAttachTagToMultipleObjectsResult.md +0 -8
- data/docs/CisTaggingTagAssociationBatchResult.md +0 -9
- data/docs/CisTaggingTagAssociationDetach.md +0 -8
- data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObject.md +0 -9
- data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObjectResult.md +0 -8
- data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjects.md +0 -8
- data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjectsResult.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachableTags.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachableTagsResult.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedObjectsOnTags.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedObjectsOnTagsResult.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedObjectsResult.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedTags.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedTagsOnObjects.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedTagsOnObjectsResult.md +0 -8
- data/docs/CisTaggingTagAssociationListAttachedTagsResult.md +0 -8
- data/docs/CisTaggingTagAssociationObjectToTags.md +0 -9
- data/docs/CisTaggingTagAssociationTagToObjects.md +0 -9
- data/docs/CisTaggingTagCreate.md +0 -8
- data/docs/CisTaggingTagCreateResult.md +0 -8
- data/docs/CisTaggingTagCreateSpec.md +0 -11
- data/docs/CisTaggingTagListResult.md +0 -8
- data/docs/CisTaggingTagListTagsForCategoryResult.md +0 -8
- data/docs/CisTaggingTagListUsedTags.md +0 -8
- data/docs/CisTaggingTagListUsedTagsResult.md +0 -8
- data/docs/CisTaggingTagModel.md +0 -12
- data/docs/CisTaggingTagRemoveFromUsedBy.md +0 -8
- data/docs/CisTaggingTagResult.md +0 -8
- data/docs/CisTaggingTagUpdate.md +0 -8
- data/docs/CisTaggingTagUpdateSpec.md +0 -9
- data/docs/CisTaskInfo.md +0 -19
- data/docs/CisTaskProgress.md +0 -10
- data/docs/CisTaskStatus.md +0 -7
- data/docs/CisTasksFilterSpec.md +0 -12
- data/docs/CisTasksGetSpec.md +0 -9
- data/docs/CisTasksListResult.md +0 -8
- data/docs/CisTasksListResultValue.md +0 -9
- data/docs/CisTasksResult.md +0 -8
- data/docs/FilterSpecTargets.md +0 -9
- data/docs/SessionApi.md +0 -151
- data/docs/TaggingCategoryApi.md +0 -464
- data/docs/TaggingTagApi.md +0 -515
- data/docs/TaggingTagAssociationApi.md +0 -575
- data/docs/TasksApi.md +0 -180
- data/docs/VapiStdDynamicID.md +0 -9
- data/docs/VapiStdErrorsAlreadyExists.md +0 -9
- data/docs/VapiStdErrorsAlreadyExistsError.md +0 -9
- data/docs/VapiStdErrorsError.md +0 -9
- data/docs/VapiStdErrorsErrorError.md +0 -9
- data/docs/VapiStdErrorsInvalidArgument.md +0 -9
- data/docs/VapiStdErrorsInvalidArgumentError.md +0 -9
- data/docs/VapiStdErrorsNotAllowedInCurrentState.md +0 -9
- data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +0 -9
- data/docs/VapiStdErrorsNotFound.md +0 -9
- data/docs/VapiStdErrorsNotFoundError.md +0 -9
- data/docs/VapiStdErrorsResourceInaccessible.md +0 -9
- data/docs/VapiStdErrorsResourceInaccessibleError.md +0 -9
- data/docs/VapiStdErrorsServiceUnavailable.md +0 -9
- data/docs/VapiStdErrorsServiceUnavailableError.md +0 -9
- data/docs/VapiStdErrorsUnauthenticated.md +0 -9
- data/docs/VapiStdErrorsUnauthenticatedError.md +0 -9
- data/docs/VapiStdErrorsUnauthorized.md +0 -9
- data/docs/VapiStdErrorsUnauthorizedError.md +0 -9
- data/docs/VapiStdErrorsUnsupported.md +0 -9
- data/docs/VapiStdErrorsUnsupportedError.md +0 -9
- data/docs/VapiStdLocalizableMessage.md +0 -10
- data/git_push.sh +0 -55
- data/pkg/vsphere-automation-cis-0.4.1.gem +0 -0
- data/pkg/vsphere-automation-cis-0.4.2.gem +0 -0
- data/spec/api/session_api_spec.rb +0 -62
- data/spec/api/tagging_category_api_spec.rb +0 -132
- data/spec/api/tagging_tag_api_spec.rb +0 -143
- data/spec/api/tagging_tag_association_api_spec.rb +0 -156
- data/spec/api/tasks_api_spec.rb +0 -72
- data/spec/models/cis_session_create_result_spec.rb +0 -37
- data/spec/models/cis_session_info_spec.rb +0 -49
- data/spec/models/cis_session_result_spec.rb +0 -37
- data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +0 -37
- data/spec/models/cis_tagging_category_create_result_spec.rb +0 -37
- data/spec/models/cis_tagging_category_create_spec.rb +0 -37
- data/spec/models/cis_tagging_category_create_spec_spec.rb +0 -61
- data/spec/models/cis_tagging_category_list_result_spec.rb +0 -37
- data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +0 -37
- data/spec/models/cis_tagging_category_list_used_categories_spec.rb +0 -37
- data/spec/models/cis_tagging_category_model_cardinality_spec.rb +0 -31
- data/spec/models/cis_tagging_category_model_spec.rb +0 -67
- data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +0 -37
- data/spec/models/cis_tagging_category_result_spec.rb +0 -37
- data/spec/models/cis_tagging_category_update_spec.rb +0 -37
- data/spec/models/cis_tagging_category_update_spec_spec.rb +0 -55
- data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +0 -43
- data/spec/models/cis_tagging_tag_association_attach_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +0 -43
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +0 -43
- data/spec/models/cis_tagging_tag_association_detach_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +0 -43
- data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +0 -43
- data/spec/models/cis_tagging_tag_create_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_create_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_create_spec_spec.rb +0 -55
- data/spec/models/cis_tagging_tag_list_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_model_spec.rb +0 -61
- data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_result_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_update_spec.rb +0 -37
- data/spec/models/cis_tagging_tag_update_spec_spec.rb +0 -43
- data/spec/models/cis_task_info_spec.rb +0 -103
- data/spec/models/cis_task_progress_spec.rb +0 -49
- data/spec/models/cis_task_status_spec.rb +0 -31
- data/spec/models/cis_tasks_filter_spec_spec.rb +0 -61
- data/spec/models/cis_tasks_get_spec_spec.rb +0 -43
- data/spec/models/cis_tasks_list_result_spec.rb +0 -37
- data/spec/models/cis_tasks_list_result_value_spec.rb +0 -43
- data/spec/models/cis_tasks_result_spec.rb +0 -37
- data/spec/models/filter_spec_targets_spec.rb +0 -43
- data/spec/models/vapi_std_dynamic_id_spec.rb +0 -43
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_already_exists_spec.rb +0 -43
- data/spec/models/vapi_std_errors_error_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_not_found_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +0 -43
- data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_service_unavailable_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +0 -43
- data/spec/models/vapi_std_errors_unsupported_spec.rb +0 -43
- data/spec/models/vapi_std_localizable_message_spec.rb +0 -49
- data/spec/spec_helper.rb +0 -110
- data/vsphere-automation-cis.gemspec +0 -39
data/docs/TaggingTagApi.md
DELETED
@@ -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
|
-
|