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/TaggingCategoryApi.md
CHANGED
@@ -10,13 +10,13 @@ Method | HTTP request | Description
|
|
10
10
|
[**get**](TaggingCategoryApi.md#get) | **GET** /com/vmware/cis/tagging/category/id:{category_id} | Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
|
11
11
|
[**list**](TaggingCategoryApi.md#list) | **GET** /com/vmware/cis/tagging/category | Enumerates the categories in the system. To invoke this {@term operation}, you need the read privilege on the individual categories. The {@term list} will only contain those categories for which you have read privileges.
|
12
12
|
[**list_used_categories**](TaggingCategoryApi.md#list_used_categories) | **POST** /com/vmware/cis/tagging/category?~action=list-used-categories | Enumerates all categories for which the {@param.name usedByEntity} is part of the {@link CategoryModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual categories.
|
13
|
-
[**remove_from_used_by**](TaggingCategoryApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id}
|
13
|
+
[**remove_from_used_by**](TaggingCategoryApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id} | Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is not using this category, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
|
14
14
|
[**revoke_propagating_permissions**](TaggingCategoryApi.md#revoke_propagating_permissions) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=revoke-propagating-permissions | Revokes all propagating permissions on the given category. You should then attach a direct permission with tagging privileges on the given category. To invoke this {@term operation}, you need category related privileges (direct or propagating) on the concerned category.
|
15
15
|
[**update**](TaggingCategoryApi.md#update) | **PATCH** /com/vmware/cis/tagging/category/id:{category_id} | Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
|
16
16
|
|
17
17
|
|
18
18
|
# **add_to_used_by**
|
19
|
-
> add_to_used_by(category_id,
|
19
|
+
> add_to_used_by(category_id, request_body)
|
20
20
|
|
21
21
|
Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscribers {@term set} for the specified category. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes an idempotent no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
|
22
22
|
|
@@ -24,14 +24,21 @@ Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscrib
|
|
24
24
|
```ruby
|
25
25
|
# load the gem
|
26
26
|
require 'vsphere-automation-cis'
|
27
|
+
# setup authorization
|
28
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
29
|
+
# Configure API key authorization: api_key
|
30
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
33
|
+
end
|
27
34
|
|
28
35
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
29
36
|
category_id = 'category_id_example' # String | The identifier of the input category.
|
30
|
-
|
37
|
+
request_body = CIS::CisTaggingCategoryAddToUsedBy.new # CisTaggingCategoryAddToUsedBy |
|
31
38
|
|
32
39
|
begin
|
33
40
|
#Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscribers {@term set} for the specified category. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes an idempotent no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
|
34
|
-
api_instance.add_to_used_by(category_id,
|
41
|
+
api_instance.add_to_used_by(category_id, request_body)
|
35
42
|
rescue VSphereAutomation::ApiError => e
|
36
43
|
puts "Exception when calling TaggingCategoryApi->add_to_used_by: #{e}"
|
37
44
|
end
|
@@ -42,7 +49,7 @@ end
|
|
42
49
|
Name | Type | Description | Notes
|
43
50
|
------------- | ------------- | ------------- | -------------
|
44
51
|
**category_id** | **String**| The identifier of the input category. |
|
45
|
-
**
|
52
|
+
**request_body** | [**CisTaggingCategoryAddToUsedBy**](CisTaggingCategoryAddToUsedBy.md)| |
|
46
53
|
|
47
54
|
### Return type
|
48
55
|
|
@@ -50,17 +57,17 @@ nil (empty response body)
|
|
50
57
|
|
51
58
|
### Authorization
|
52
59
|
|
53
|
-
|
60
|
+
[api_key](../README.md#api_key)
|
54
61
|
|
55
62
|
### HTTP request headers
|
56
63
|
|
57
64
|
- **Content-Type**: application/json
|
58
|
-
- **Accept**:
|
65
|
+
- **Accept**: application/json
|
59
66
|
|
60
67
|
|
61
68
|
|
62
69
|
# **create**
|
63
|
-
> CisTaggingCategoryCreateResult create(
|
70
|
+
> CisTaggingCategoryCreateResult create(request_body)
|
64
71
|
|
65
72
|
Creates a category. To invoke this {@term operation}, you need the create category privilege.
|
66
73
|
|
@@ -68,13 +75,20 @@ Creates a category. To invoke this {@term operation}, you need the create catego
|
|
68
75
|
```ruby
|
69
76
|
# load the gem
|
70
77
|
require 'vsphere-automation-cis'
|
78
|
+
# setup authorization
|
79
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
80
|
+
# Configure API key authorization: api_key
|
81
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
82
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
84
|
+
end
|
71
85
|
|
72
86
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
73
|
-
|
87
|
+
request_body = CIS::CisTaggingCategoryCreate.new # CisTaggingCategoryCreate |
|
74
88
|
|
75
89
|
begin
|
76
90
|
#Creates a category. To invoke this {@term operation}, you need the create category privilege.
|
77
|
-
result = api_instance.create(
|
91
|
+
result = api_instance.create(request_body)
|
78
92
|
p result
|
79
93
|
rescue VSphereAutomation::ApiError => e
|
80
94
|
puts "Exception when calling TaggingCategoryApi->create: #{e}"
|
@@ -85,7 +99,7 @@ end
|
|
85
99
|
|
86
100
|
Name | Type | Description | Notes
|
87
101
|
------------- | ------------- | ------------- | -------------
|
88
|
-
**
|
102
|
+
**request_body** | [**CisTaggingCategoryCreate**](CisTaggingCategoryCreate.md)| |
|
89
103
|
|
90
104
|
### Return type
|
91
105
|
|
@@ -93,12 +107,12 @@ Name | Type | Description | Notes
|
|
93
107
|
|
94
108
|
### Authorization
|
95
109
|
|
96
|
-
|
110
|
+
[api_key](../README.md#api_key)
|
97
111
|
|
98
112
|
### HTTP request headers
|
99
113
|
|
100
114
|
- **Content-Type**: application/json
|
101
|
-
- **Accept**:
|
115
|
+
- **Accept**: application/json
|
102
116
|
|
103
117
|
|
104
118
|
|
@@ -111,6 +125,13 @@ Deletes an existing category. To invoke this {@term operation}, you need the del
|
|
111
125
|
```ruby
|
112
126
|
# load the gem
|
113
127
|
require 'vsphere-automation-cis'
|
128
|
+
# setup authorization
|
129
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
130
|
+
# Configure API key authorization: api_key
|
131
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
132
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
133
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
134
|
+
end
|
114
135
|
|
115
136
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
116
137
|
category_id = 'category_id_example' # String | The identifier of category to be deleted.
|
@@ -135,12 +156,12 @@ nil (empty response body)
|
|
135
156
|
|
136
157
|
### Authorization
|
137
158
|
|
138
|
-
|
159
|
+
[api_key](../README.md#api_key)
|
139
160
|
|
140
161
|
### HTTP request headers
|
141
162
|
|
142
163
|
- **Content-Type**: Not defined
|
143
|
-
- **Accept**:
|
164
|
+
- **Accept**: application/json
|
144
165
|
|
145
166
|
|
146
167
|
|
@@ -153,6 +174,13 @@ Fetches the category information for the given category identifier. In order to
|
|
153
174
|
```ruby
|
154
175
|
# load the gem
|
155
176
|
require 'vsphere-automation-cis'
|
177
|
+
# setup authorization
|
178
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
179
|
+
# Configure API key authorization: api_key
|
180
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
181
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
182
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
183
|
+
end
|
156
184
|
|
157
185
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
158
186
|
category_id = 'category_id_example' # String | The identifier of the input category.
|
@@ -178,12 +206,12 @@ Name | Type | Description | Notes
|
|
178
206
|
|
179
207
|
### Authorization
|
180
208
|
|
181
|
-
|
209
|
+
[api_key](../README.md#api_key)
|
182
210
|
|
183
211
|
### HTTP request headers
|
184
212
|
|
185
213
|
- **Content-Type**: Not defined
|
186
|
-
- **Accept**:
|
214
|
+
- **Accept**: application/json
|
187
215
|
|
188
216
|
|
189
217
|
|
@@ -196,6 +224,13 @@ Enumerates the categories in the system. To invoke this {@term operation}, you n
|
|
196
224
|
```ruby
|
197
225
|
# load the gem
|
198
226
|
require 'vsphere-automation-cis'
|
227
|
+
# setup authorization
|
228
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
229
|
+
# Configure API key authorization: api_key
|
230
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
231
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
232
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
233
|
+
end
|
199
234
|
|
200
235
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
201
236
|
|
@@ -217,17 +252,17 @@ This endpoint does not need any parameter.
|
|
217
252
|
|
218
253
|
### Authorization
|
219
254
|
|
220
|
-
|
255
|
+
[api_key](../README.md#api_key)
|
221
256
|
|
222
257
|
### HTTP request headers
|
223
258
|
|
224
259
|
- **Content-Type**: Not defined
|
225
|
-
- **Accept**:
|
260
|
+
- **Accept**: application/json
|
226
261
|
|
227
262
|
|
228
263
|
|
229
264
|
# **list_used_categories**
|
230
|
-
> CisTaggingCategoryListUsedCategoriesResult list_used_categories(
|
265
|
+
> CisTaggingCategoryListUsedCategoriesResult list_used_categories(request_body)
|
231
266
|
|
232
267
|
Enumerates all categories for which the {@param.name usedByEntity} is part of the {@link CategoryModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual categories.
|
233
268
|
|
@@ -235,13 +270,20 @@ Enumerates all categories for which the {@param.name usedByEntity} is part of th
|
|
235
270
|
```ruby
|
236
271
|
# load the gem
|
237
272
|
require 'vsphere-automation-cis'
|
273
|
+
# setup authorization
|
274
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
275
|
+
# Configure API key authorization: api_key
|
276
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
277
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
278
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
279
|
+
end
|
238
280
|
|
239
281
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
240
|
-
|
282
|
+
request_body = CIS::CisTaggingCategoryListUsedCategories.new # CisTaggingCategoryListUsedCategories |
|
241
283
|
|
242
284
|
begin
|
243
285
|
#Enumerates all categories for which the {@param.name usedByEntity} is part of the {@link CategoryModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual categories.
|
244
|
-
result = api_instance.list_used_categories(
|
286
|
+
result = api_instance.list_used_categories(request_body)
|
245
287
|
p result
|
246
288
|
rescue VSphereAutomation::ApiError => e
|
247
289
|
puts "Exception when calling TaggingCategoryApi->list_used_categories: #{e}"
|
@@ -252,7 +294,7 @@ end
|
|
252
294
|
|
253
295
|
Name | Type | Description | Notes
|
254
296
|
------------- | ------------- | ------------- | -------------
|
255
|
-
**
|
297
|
+
**request_body** | [**CisTaggingCategoryListUsedCategories**](CisTaggingCategoryListUsedCategories.md)| |
|
256
298
|
|
257
299
|
### Return type
|
258
300
|
|
@@ -260,17 +302,17 @@ Name | Type | Description | Notes
|
|
260
302
|
|
261
303
|
### Authorization
|
262
304
|
|
263
|
-
|
305
|
+
[api_key](../README.md#api_key)
|
264
306
|
|
265
307
|
### HTTP request headers
|
266
308
|
|
267
309
|
- **Content-Type**: application/json
|
268
|
-
- **Accept**:
|
310
|
+
- **Accept**: application/json
|
269
311
|
|
270
312
|
|
271
313
|
|
272
314
|
# **remove_from_used_by**
|
273
|
-
> remove_from_used_by(category_id,
|
315
|
+
> remove_from_used_by(category_id, action, request_body)
|
274
316
|
|
275
317
|
Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is not using this category, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
|
276
318
|
|
@@ -278,14 +320,22 @@ Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} sub
|
|
278
320
|
```ruby
|
279
321
|
# load the gem
|
280
322
|
require 'vsphere-automation-cis'
|
323
|
+
# setup authorization
|
324
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
325
|
+
# Configure API key authorization: api_key
|
326
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
327
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
328
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
329
|
+
end
|
281
330
|
|
282
331
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
283
332
|
category_id = 'category_id_example' # String | The identifier of the input category.
|
284
|
-
|
333
|
+
action = 'action_example' # String | ~action=remove-from-used-by
|
334
|
+
request_body = CIS::CisTaggingCategoryRemoveFromUsedBy.new # CisTaggingCategoryRemoveFromUsedBy |
|
285
335
|
|
286
336
|
begin
|
287
337
|
#Removes the {@param.name usedByEntity} from the {@link CategoryModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is not using this category, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
|
288
|
-
api_instance.remove_from_used_by(category_id,
|
338
|
+
api_instance.remove_from_used_by(category_id, action, request_body)
|
289
339
|
rescue VSphereAutomation::ApiError => e
|
290
340
|
puts "Exception when calling TaggingCategoryApi->remove_from_used_by: #{e}"
|
291
341
|
end
|
@@ -296,7 +346,8 @@ end
|
|
296
346
|
Name | Type | Description | Notes
|
297
347
|
------------- | ------------- | ------------- | -------------
|
298
348
|
**category_id** | **String**| The identifier of the input category. |
|
299
|
-
**
|
349
|
+
**action** | **String**| ~action=remove-from-used-by |
|
350
|
+
**request_body** | [**CisTaggingCategoryRemoveFromUsedBy**](CisTaggingCategoryRemoveFromUsedBy.md)| |
|
300
351
|
|
301
352
|
### Return type
|
302
353
|
|
@@ -304,12 +355,12 @@ nil (empty response body)
|
|
304
355
|
|
305
356
|
### Authorization
|
306
357
|
|
307
|
-
|
358
|
+
[api_key](../README.md#api_key)
|
308
359
|
|
309
360
|
### HTTP request headers
|
310
361
|
|
311
362
|
- **Content-Type**: application/json
|
312
|
-
- **Accept**:
|
363
|
+
- **Accept**: application/json
|
313
364
|
|
314
365
|
|
315
366
|
|
@@ -322,6 +373,13 @@ Revokes all propagating permissions on the given category. You should then attac
|
|
322
373
|
```ruby
|
323
374
|
# load the gem
|
324
375
|
require 'vsphere-automation-cis'
|
376
|
+
# setup authorization
|
377
|
+
VSphereAutomation::Configuration.new.tap do |config|
|
378
|
+
# Configure API key authorization: api_key
|
379
|
+
config.api_key['vmware-api-session-id'] = 'YOUR API KEY'
|
380
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
381
|
+
#config.api_key_prefix['vmware-api-session-id'] = 'Bearer'
|
382
|
+
end
|
325
383
|
|
326
384
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
327
385
|
category_id = 'category_id_example' # String | The identifier of the input category.
|
@@ -346,17 +404,17 @@ nil (empty response body)
|
|
346
404
|
|
347
405
|
### Authorization
|
348
406
|
|
349
|
-
|
407
|
+
[api_key](../README.md#api_key)
|
350
408
|
|
351
409
|
### HTTP request headers
|
352
410
|
|
353
411
|
- **Content-Type**: Not defined
|
354
|
-
- **Accept**:
|
412
|
+
- **Accept**: application/json
|
355
413
|
|
356
414
|
|
357
415
|
|
358
416
|
# **update**
|
359
|
-
> update(category_id,
|
417
|
+
> update(category_id, request_body)
|
360
418
|
|
361
419
|
Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
|
362
420
|
|
@@ -364,14 +422,21 @@ Updates an existing category. To invoke this {@term operation}, you need the edi
|
|
364
422
|
```ruby
|
365
423
|
# load the gem
|
366
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
|
367
432
|
|
368
433
|
api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
|
369
434
|
category_id = 'category_id_example' # String | The identifier of the category to be updated.
|
370
|
-
|
435
|
+
request_body = CIS::CisTaggingCategoryUpdate.new # CisTaggingCategoryUpdate |
|
371
436
|
|
372
437
|
begin
|
373
438
|
#Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
|
374
|
-
api_instance.update(category_id,
|
439
|
+
api_instance.update(category_id, request_body)
|
375
440
|
rescue VSphereAutomation::ApiError => e
|
376
441
|
puts "Exception when calling TaggingCategoryApi->update: #{e}"
|
377
442
|
end
|
@@ -382,7 +447,7 @@ end
|
|
382
447
|
Name | Type | Description | Notes
|
383
448
|
------------- | ------------- | ------------- | -------------
|
384
449
|
**category_id** | **String**| The identifier of the category to be updated. |
|
385
|
-
**
|
450
|
+
**request_body** | [**CisTaggingCategoryUpdate**](CisTaggingCategoryUpdate.md)| |
|
386
451
|
|
387
452
|
### Return type
|
388
453
|
|
@@ -390,12 +455,12 @@ nil (empty response body)
|
|
390
455
|
|
391
456
|
### Authorization
|
392
457
|
|
393
|
-
|
458
|
+
[api_key](../README.md#api_key)
|
394
459
|
|
395
460
|
### HTTP request headers
|
396
461
|
|
397
462
|
- **Content-Type**: application/json
|
398
|
-
- **Accept**:
|
463
|
+
- **Accept**: application/json
|
399
464
|
|
400
465
|
|
401
466
|
|