vsphere-automation-cis 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +11 -1
- data/Gemfile.lock +39 -36
- data/README.md +14 -7
- data/Rakefile +8 -0
- data/docs/CisTaggingTagAssociationBatchResult.md +1 -1
- data/docs/CisTaskInfo.md +1 -1
- data/docs/CisTasksGetSpec.md +2 -2
- data/docs/CisTasksListResultValue.md +1 -1
- data/docs/FilterSpecTargets.md +1 -1
- data/docs/SessionApi.md +26 -6
- data/docs/TaggingCategoryApi.md +104 -39
- data/docs/TaggingTagApi.md +118 -44
- data/docs/TaggingTagAssociationApi.md +145 -64
- data/docs/TasksApi.md +40 -17
- data/lib/vsphere-automation-cis/api/session_api.rb +10 -12
- data/lib/vsphere-automation-cis/api/tagging_category_api.rb +79 -70
- data/lib/vsphere-automation-cis/api/tagging_tag_api.rb +96 -76
- data/lib/vsphere-automation-cis/api/tagging_tag_association_api.rb +140 -120
- data/lib/vsphere-automation-cis/api/tasks_api.rb +33 -24
- data/lib/vsphere-automation-cis/api_client.rb +9 -5
- data/lib/vsphere-automation-cis/api_error.rb +4 -6
- data/lib/vsphere-automation-cis/configuration.rb +18 -6
- data/lib/vsphere-automation-cis/models/cis_session_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_session_info.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_session_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_add_to_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model_cardinality.rb +6 -8
- data/lib/vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_batch_result.rb +5 -7
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_model.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_task_info.rb +5 -7
- data/lib/vsphere-automation-cis/models/cis_task_progress.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_task_status.rb +9 -11
- data/lib/vsphere-automation-cis/models/cis_tasks_filter_spec.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tasks_get_spec.rb +6 -8
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result_value.rb +17 -19
- data/lib/vsphere-automation-cis/models/cis_tasks_result.rb +4 -6
- data/lib/vsphere-automation-cis/models/filter_spec_targets.rb +23 -25
- data/lib/vsphere-automation-cis/models/vapi_std_dynamic_id.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported_error.rb +4 -6
- data/lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb +4 -6
- data/lib/vsphere-automation-cis/version.rb +5 -7
- data/lib/vsphere-automation-cis.rb +7 -9
- data/pkg/vsphere-automation-cis-0.2.0.gem +0 -0
- data/spec/api/session_api_spec.rb +4 -6
- data/spec/api/tagging_category_api_spec.rb +10 -11
- data/spec/api/tagging_tag_api_spec.rb +11 -11
- data/spec/api/tagging_tag_association_api_spec.rb +16 -16
- data/spec/api/tasks_api_spec.rb +9 -10
- data/spec/api_client_spec.rb +4 -6
- data/spec/configuration_spec.rb +4 -6
- data/spec/models/cis_session_create_result_spec.rb +4 -6
- data/spec/models/cis_session_info_spec.rb +4 -6
- data/spec/models/cis_session_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_spec.rb +4 -6
- data/spec/models/cis_tagging_category_create_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_list_used_categories_spec.rb +4 -6
- data/spec/models/cis_tagging_category_model_cardinality_spec.rb +4 -6
- data/spec/models/cis_tagging_category_model_spec.rb +4 -6
- data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_category_result_spec.rb +4 -6
- data/spec/models/cis_tagging_category_update_spec.rb +4 -6
- data/spec/models/cis_tagging_category_update_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_create_spec_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_model_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_result_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_update_spec.rb +4 -6
- data/spec/models/cis_tagging_tag_update_spec_spec.rb +4 -6
- data/spec/models/cis_task_info_spec.rb +4 -6
- data/spec/models/cis_task_progress_spec.rb +4 -6
- data/spec/models/cis_task_status_spec.rb +4 -6
- data/spec/models/cis_tasks_filter_spec_spec.rb +4 -6
- data/spec/models/cis_tasks_get_spec_spec.rb +4 -6
- data/spec/models/cis_tasks_list_result_spec.rb +4 -6
- data/spec/models/cis_tasks_list_result_value_spec.rb +6 -8
- data/spec/models/cis_tasks_result_spec.rb +4 -6
- data/spec/models/filter_spec_targets_spec.rb +6 -8
- data/spec/models/vapi_std_dynamic_id_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_already_exists_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unsupported_spec.rb +4 -6
- data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
- data/spec/spec_helper.rb +4 -6
- data/vsphere-automation-cis.gemspec +11 -14
- metadata +18 -32
data/docs/TaggingTagApi.md
CHANGED
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**add_to_used_by**](TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}
|
7
|
+
[**add_to_used_by**](TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id} | 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
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
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
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
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}
|
12
|
+
[**list_tags_for_category**](TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id} | 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
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
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
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.
|
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
|
18
18
|
|
19
19
|
# **add_to_used_by**
|
20
|
-
> add_to_used_by(tag_id,
|
20
|
+
> add_to_used_by(tag_id, action, request_body)
|
21
21
|
|
22
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
23
|
|
@@ -25,14 +25,22 @@ Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {
|
|
25
25
|
```ruby
|
26
26
|
# load the gem
|
27
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
|
28
35
|
|
29
36
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
30
37
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
31
|
-
|
38
|
+
action = 'action_example' # String | ~action=add-to-used-by
|
39
|
+
request_body = CIS::CisTaggingTagAddToUsedBy.new # CisTaggingTagAddToUsedBy |
|
32
40
|
|
33
41
|
begin
|
34
42
|
#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.
|
35
|
-
api_instance.add_to_used_by(tag_id,
|
43
|
+
api_instance.add_to_used_by(tag_id, action, request_body)
|
36
44
|
rescue VSphereAutomation::ApiError => e
|
37
45
|
puts "Exception when calling TaggingTagApi->add_to_used_by: #{e}"
|
38
46
|
end
|
@@ -43,7 +51,8 @@ end
|
|
43
51
|
Name | Type | Description | Notes
|
44
52
|
------------- | ------------- | ------------- | -------------
|
45
53
|
**tag_id** | **String**| The identifier of the input tag. |
|
46
|
-
**
|
54
|
+
**action** | **String**| ~action=add-to-used-by |
|
55
|
+
**request_body** | [**CisTaggingTagAddToUsedBy**](CisTaggingTagAddToUsedBy.md)| |
|
47
56
|
|
48
57
|
### Return type
|
49
58
|
|
@@ -51,17 +60,17 @@ nil (empty response body)
|
|
51
60
|
|
52
61
|
### Authorization
|
53
62
|
|
54
|
-
|
63
|
+
[api_key](../README.md#api_key)
|
55
64
|
|
56
65
|
### HTTP request headers
|
57
66
|
|
58
67
|
- **Content-Type**: application/json
|
59
|
-
- **Accept**:
|
68
|
+
- **Accept**: application/json
|
60
69
|
|
61
70
|
|
62
71
|
|
63
72
|
# **create**
|
64
|
-
> CisTaggingTagCreateResult create(
|
73
|
+
> CisTaggingTagCreateResult create(request_body)
|
65
74
|
|
66
75
|
Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
|
67
76
|
|
@@ -69,13 +78,20 @@ Creates a tag. To invoke this {@term operation}, you need the create tag privile
|
|
69
78
|
```ruby
|
70
79
|
# load the gem
|
71
80
|
require 'vsphere-automation-cis'
|
81
|
+
# setup authorization
|
82
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
83
|
+
# Configure API key authorization: api_key
|
84
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
85
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
87
|
+
end
|
72
88
|
|
73
89
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
74
|
-
|
90
|
+
request_body = CIS::CisTaggingTagCreate.new # CisTaggingTagCreate |
|
75
91
|
|
76
92
|
begin
|
77
93
|
#Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
|
78
|
-
result = api_instance.create(
|
94
|
+
result = api_instance.create(request_body)
|
79
95
|
p result
|
80
96
|
rescue VSphereAutomation::ApiError => e
|
81
97
|
puts "Exception when calling TaggingTagApi->create: #{e}"
|
@@ -86,7 +102,7 @@ end
|
|
86
102
|
|
87
103
|
Name | Type | Description | Notes
|
88
104
|
------------- | ------------- | ------------- | -------------
|
89
|
-
**
|
105
|
+
**request_body** | [**CisTaggingTagCreate**](CisTaggingTagCreate.md)| |
|
90
106
|
|
91
107
|
### Return type
|
92
108
|
|
@@ -94,12 +110,12 @@ Name | Type | Description | Notes
|
|
94
110
|
|
95
111
|
### Authorization
|
96
112
|
|
97
|
-
|
113
|
+
[api_key](../README.md#api_key)
|
98
114
|
|
99
115
|
### HTTP request headers
|
100
116
|
|
101
117
|
- **Content-Type**: application/json
|
102
|
-
- **Accept**:
|
118
|
+
- **Accept**: application/json
|
103
119
|
|
104
120
|
|
105
121
|
|
@@ -112,6 +128,13 @@ Deletes an existing tag. To invoke this {@term operation}, you need the delete p
|
|
112
128
|
```ruby
|
113
129
|
# load the gem
|
114
130
|
require 'vsphere-automation-cis'
|
131
|
+
# setup authorization
|
132
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
133
|
+
# Configure API key authorization: api_key
|
134
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
135
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
136
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
137
|
+
end
|
115
138
|
|
116
139
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
117
140
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
@@ -136,12 +159,12 @@ nil (empty response body)
|
|
136
159
|
|
137
160
|
### Authorization
|
138
161
|
|
139
|
-
|
162
|
+
[api_key](../README.md#api_key)
|
140
163
|
|
141
164
|
### HTTP request headers
|
142
165
|
|
143
166
|
- **Content-Type**: Not defined
|
144
|
-
- **Accept**:
|
167
|
+
- **Accept**: application/json
|
145
168
|
|
146
169
|
|
147
170
|
|
@@ -154,6 +177,13 @@ Fetches the tag information for the given tag identifier. To invoke this {@term
|
|
154
177
|
```ruby
|
155
178
|
# load the gem
|
156
179
|
require 'vsphere-automation-cis'
|
180
|
+
# setup authorization
|
181
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
182
|
+
# Configure API key authorization: api_key
|
183
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
185
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
186
|
+
end
|
157
187
|
|
158
188
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
159
189
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
@@ -179,12 +209,12 @@ Name | Type | Description | Notes
|
|
179
209
|
|
180
210
|
### Authorization
|
181
211
|
|
182
|
-
|
212
|
+
[api_key](../README.md#api_key)
|
183
213
|
|
184
214
|
### HTTP request headers
|
185
215
|
|
186
216
|
- **Content-Type**: Not defined
|
187
|
-
- **Accept**:
|
217
|
+
- **Accept**: application/json
|
188
218
|
|
189
219
|
|
190
220
|
|
@@ -197,6 +227,13 @@ Enumerates the tags in the system. To invoke this {@term operation}, you need re
|
|
197
227
|
```ruby
|
198
228
|
# load the gem
|
199
229
|
require 'vsphere-automation-cis'
|
230
|
+
# setup authorization
|
231
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
232
|
+
# Configure API key authorization: api_key
|
233
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
234
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
235
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
236
|
+
end
|
200
237
|
|
201
238
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
202
239
|
|
@@ -218,17 +255,17 @@ This endpoint does not need any parameter.
|
|
218
255
|
|
219
256
|
### Authorization
|
220
257
|
|
221
|
-
|
258
|
+
[api_key](../README.md#api_key)
|
222
259
|
|
223
260
|
### HTTP request headers
|
224
261
|
|
225
262
|
- **Content-Type**: Not defined
|
226
|
-
- **Accept**:
|
263
|
+
- **Accept**: application/json
|
227
264
|
|
228
265
|
|
229
266
|
|
230
267
|
# **list_tags_for_category**
|
231
|
-
> CisTaggingTagListTagsForCategoryResult list_tags_for_category(category_id)
|
268
|
+
> CisTaggingTagListTagsForCategoryResult list_tags_for_category(category_id, action)
|
232
269
|
|
233
270
|
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.
|
234
271
|
|
@@ -236,13 +273,21 @@ Enumerates all tags for the given category. To invoke this {@term operation}, yo
|
|
236
273
|
```ruby
|
237
274
|
# load the gem
|
238
275
|
require 'vsphere-automation-cis'
|
276
|
+
# setup authorization
|
277
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
278
|
+
# Configure API key authorization: api_key
|
279
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
280
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
281
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
282
|
+
end
|
239
283
|
|
240
284
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
241
285
|
category_id = 'category_id_example' # String | The identifier of the input category.
|
286
|
+
action = 'action_example' # String | ~action=list-tags-for-category
|
242
287
|
|
243
288
|
begin
|
244
289
|
#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.
|
245
|
-
result = api_instance.list_tags_for_category(category_id)
|
290
|
+
result = api_instance.list_tags_for_category(category_id, action)
|
246
291
|
p result
|
247
292
|
rescue VSphereAutomation::ApiError => e
|
248
293
|
puts "Exception when calling TaggingTagApi->list_tags_for_category: #{e}"
|
@@ -254,6 +299,7 @@ end
|
|
254
299
|
Name | Type | Description | Notes
|
255
300
|
------------- | ------------- | ------------- | -------------
|
256
301
|
**category_id** | **String**| The identifier of the input category. |
|
302
|
+
**action** | **String**| ~action=list-tags-for-category |
|
257
303
|
|
258
304
|
### Return type
|
259
305
|
|
@@ -261,17 +307,17 @@ Name | Type | Description | Notes
|
|
261
307
|
|
262
308
|
### Authorization
|
263
309
|
|
264
|
-
|
310
|
+
[api_key](../README.md#api_key)
|
265
311
|
|
266
312
|
### HTTP request headers
|
267
313
|
|
268
314
|
- **Content-Type**: Not defined
|
269
|
-
- **Accept**:
|
315
|
+
- **Accept**: application/json
|
270
316
|
|
271
317
|
|
272
318
|
|
273
319
|
# **list_used_tags**
|
274
|
-
> CisTaggingTagListUsedTagsResult list_used_tags(
|
320
|
+
> CisTaggingTagListUsedTagsResult list_used_tags(request_body)
|
275
321
|
|
276
322
|
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.
|
277
323
|
|
@@ -279,13 +325,20 @@ Enumerates all tags for which the {@param.name usedByEntity} is part of the {@li
|
|
279
325
|
```ruby
|
280
326
|
# load the gem
|
281
327
|
require 'vsphere-automation-cis'
|
328
|
+
# setup authorization
|
329
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
330
|
+
# Configure API key authorization: api_key
|
331
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
332
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
333
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
334
|
+
end
|
282
335
|
|
283
336
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
284
|
-
|
337
|
+
request_body = CIS::CisTaggingTagListUsedTags.new # CisTaggingTagListUsedTags |
|
285
338
|
|
286
339
|
begin
|
287
340
|
#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.
|
288
|
-
result = api_instance.list_used_tags(
|
341
|
+
result = api_instance.list_used_tags(request_body)
|
289
342
|
p result
|
290
343
|
rescue VSphereAutomation::ApiError => e
|
291
344
|
puts "Exception when calling TaggingTagApi->list_used_tags: #{e}"
|
@@ -296,7 +349,7 @@ end
|
|
296
349
|
|
297
350
|
Name | Type | Description | Notes
|
298
351
|
------------- | ------------- | ------------- | -------------
|
299
|
-
**
|
352
|
+
**request_body** | [**CisTaggingTagListUsedTags**](CisTaggingTagListUsedTags.md)| |
|
300
353
|
|
301
354
|
### Return type
|
302
355
|
|
@@ -304,17 +357,17 @@ Name | Type | Description | Notes
|
|
304
357
|
|
305
358
|
### Authorization
|
306
359
|
|
307
|
-
|
360
|
+
[api_key](../README.md#api_key)
|
308
361
|
|
309
362
|
### HTTP request headers
|
310
363
|
|
311
364
|
- **Content-Type**: application/json
|
312
|
-
- **Accept**:
|
365
|
+
- **Accept**: application/json
|
313
366
|
|
314
367
|
|
315
368
|
|
316
369
|
# **remove_from_used_by**
|
317
|
-
> remove_from_used_by(tag_id,
|
370
|
+
> remove_from_used_by(tag_id, request_body)
|
318
371
|
|
319
372
|
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.
|
320
373
|
|
@@ -322,14 +375,21 @@ Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscrib
|
|
322
375
|
```ruby
|
323
376
|
# load the gem
|
324
377
|
require 'vsphere-automation-cis'
|
378
|
+
# setup authorization
|
379
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
380
|
+
# Configure API key authorization: api_key
|
381
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
382
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
383
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
384
|
+
end
|
325
385
|
|
326
386
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
327
387
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
328
|
-
|
388
|
+
request_body = CIS::CisTaggingTagRemoveFromUsedBy.new # CisTaggingTagRemoveFromUsedBy |
|
329
389
|
|
330
390
|
begin
|
331
391
|
#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.
|
332
|
-
api_instance.remove_from_used_by(tag_id,
|
392
|
+
api_instance.remove_from_used_by(tag_id, request_body)
|
333
393
|
rescue VSphereAutomation::ApiError => e
|
334
394
|
puts "Exception when calling TaggingTagApi->remove_from_used_by: #{e}"
|
335
395
|
end
|
@@ -340,7 +400,7 @@ end
|
|
340
400
|
Name | Type | Description | Notes
|
341
401
|
------------- | ------------- | ------------- | -------------
|
342
402
|
**tag_id** | **String**| The identifier of the input tag. |
|
343
|
-
**
|
403
|
+
**request_body** | [**CisTaggingTagRemoveFromUsedBy**](CisTaggingTagRemoveFromUsedBy.md)| |
|
344
404
|
|
345
405
|
### Return type
|
346
406
|
|
@@ -348,12 +408,12 @@ nil (empty response body)
|
|
348
408
|
|
349
409
|
### Authorization
|
350
410
|
|
351
|
-
|
411
|
+
[api_key](../README.md#api_key)
|
352
412
|
|
353
413
|
### HTTP request headers
|
354
414
|
|
355
415
|
- **Content-Type**: application/json
|
356
|
-
- **Accept**:
|
416
|
+
- **Accept**: application/json
|
357
417
|
|
358
418
|
|
359
419
|
|
@@ -366,6 +426,13 @@ Revokes all propagating permissions on the given tag. You should then attach a d
|
|
366
426
|
```ruby
|
367
427
|
# load the gem
|
368
428
|
require 'vsphere-automation-cis'
|
429
|
+
# setup authorization
|
430
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
431
|
+
# Configure API key authorization: api_key
|
432
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
433
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
434
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
435
|
+
end
|
369
436
|
|
370
437
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
371
438
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
@@ -390,17 +457,17 @@ nil (empty response body)
|
|
390
457
|
|
391
458
|
### Authorization
|
392
459
|
|
393
|
-
|
460
|
+
[api_key](../README.md#api_key)
|
394
461
|
|
395
462
|
### HTTP request headers
|
396
463
|
|
397
464
|
- **Content-Type**: Not defined
|
398
|
-
- **Accept**:
|
465
|
+
- **Accept**: application/json
|
399
466
|
|
400
467
|
|
401
468
|
|
402
469
|
# **update**
|
403
|
-
> update(tag_id,
|
470
|
+
> update(tag_id, request_body)
|
404
471
|
|
405
472
|
Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
|
406
473
|
|
@@ -408,14 +475,21 @@ Updates an existing tag. To invoke this {@term operation}, you need the edit pri
|
|
408
475
|
```ruby
|
409
476
|
# load the gem
|
410
477
|
require 'vsphere-automation-cis'
|
478
|
+
# setup authorization
|
479
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
480
|
+
# Configure API key authorization: api_key
|
481
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
482
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
483
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
484
|
+
end
|
411
485
|
|
412
486
|
api_instance = VSphereAutomation::CIS::TaggingTagApi.new
|
413
487
|
tag_id = 'tag_id_example' # String | The identifier of the input tag.
|
414
|
-
|
488
|
+
request_body = CIS::CisTaggingTagUpdate.new # CisTaggingTagUpdate |
|
415
489
|
|
416
490
|
begin
|
417
491
|
#Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
|
418
|
-
api_instance.update(tag_id,
|
492
|
+
api_instance.update(tag_id, request_body)
|
419
493
|
rescue VSphereAutomation::ApiError => e
|
420
494
|
puts "Exception when calling TaggingTagApi->update: #{e}"
|
421
495
|
end
|
@@ -426,7 +500,7 @@ end
|
|
426
500
|
Name | Type | Description | Notes
|
427
501
|
------------- | ------------- | ------------- | -------------
|
428
502
|
**tag_id** | **String**| The identifier of the input tag. |
|
429
|
-
**
|
503
|
+
**request_body** | [**CisTaggingTagUpdate**](CisTaggingTagUpdate.md)| |
|
430
504
|
|
431
505
|
### Return type
|
432
506
|
|
@@ -434,12 +508,12 @@ nil (empty response body)
|
|
434
508
|
|
435
509
|
### Authorization
|
436
510
|
|
437
|
-
|
511
|
+
[api_key](../README.md#api_key)
|
438
512
|
|
439
513
|
### HTTP request headers
|
440
514
|
|
441
515
|
- **Content-Type**: application/json
|
442
|
-
- **Accept**:
|
516
|
+
- **Accept**: application/json
|
443
517
|
|
444
518
|
|
445
519
|
|