vsphere-automation-cis 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +81 -0
- data/README.md +173 -0
- data/Rakefile +10 -0
- data/docs/CisSessionCreateResult.md +8 -0
- data/docs/CisSessionInfo.md +10 -0
- data/docs/CisSessionResult.md +8 -0
- data/docs/CisTaggingCategoryAddToUsedBy.md +8 -0
- data/docs/CisTaggingCategoryCreate.md +8 -0
- data/docs/CisTaggingCategoryCreateResult.md +8 -0
- data/docs/CisTaggingCategoryCreateSpec.md +12 -0
- data/docs/CisTaggingCategoryListResult.md +8 -0
- data/docs/CisTaggingCategoryListUsedCategories.md +8 -0
- data/docs/CisTaggingCategoryListUsedCategoriesResult.md +8 -0
- data/docs/CisTaggingCategoryModel.md +13 -0
- data/docs/CisTaggingCategoryModelCardinality.md +7 -0
- data/docs/CisTaggingCategoryRemoveFromUsedBy.md +8 -0
- data/docs/CisTaggingCategoryResult.md +8 -0
- data/docs/CisTaggingCategoryUpdate.md +8 -0
- data/docs/CisTaggingCategoryUpdateSpec.md +11 -0
- data/docs/CisTaggingTagAddToUsedBy.md +8 -0
- data/docs/CisTaggingTagAssociationAttach.md +8 -0
- data/docs/CisTaggingTagAssociationAttachMultipleTagsToObject.md +9 -0
- data/docs/CisTaggingTagAssociationAttachMultipleTagsToObjectResult.md +8 -0
- data/docs/CisTaggingTagAssociationAttachTagToMultipleObjects.md +8 -0
- data/docs/CisTaggingTagAssociationAttachTagToMultipleObjectsResult.md +8 -0
- data/docs/CisTaggingTagAssociationBatchResult.md +9 -0
- data/docs/CisTaggingTagAssociationDetach.md +8 -0
- data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObject.md +9 -0
- data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObjectResult.md +8 -0
- data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjects.md +8 -0
- data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjectsResult.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachableTags.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachableTagsResult.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedObjectsOnTags.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedObjectsOnTagsResult.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedObjectsResult.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedTags.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedTagsOnObjects.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedTagsOnObjectsResult.md +8 -0
- data/docs/CisTaggingTagAssociationListAttachedTagsResult.md +8 -0
- data/docs/CisTaggingTagAssociationObjectToTags.md +9 -0
- data/docs/CisTaggingTagAssociationTagToObjects.md +9 -0
- data/docs/CisTaggingTagCreate.md +8 -0
- data/docs/CisTaggingTagCreateResult.md +8 -0
- data/docs/CisTaggingTagCreateSpec.md +11 -0
- data/docs/CisTaggingTagListResult.md +8 -0
- data/docs/CisTaggingTagListTagsForCategoryResult.md +8 -0
- data/docs/CisTaggingTagListUsedTags.md +8 -0
- data/docs/CisTaggingTagListUsedTagsResult.md +8 -0
- data/docs/CisTaggingTagModel.md +12 -0
- data/docs/CisTaggingTagRemoveFromUsedBy.md +8 -0
- data/docs/CisTaggingTagResult.md +8 -0
- data/docs/CisTaggingTagUpdate.md +8 -0
- data/docs/CisTaggingTagUpdateSpec.md +9 -0
- data/docs/CisTaskInfo.md +19 -0
- data/docs/CisTaskProgress.md +10 -0
- data/docs/CisTaskStatus.md +7 -0
- data/docs/CisTasksFilterSpec.md +12 -0
- data/docs/CisTasksGetSpec.md +9 -0
- data/docs/CisTasksListResult.md +8 -0
- data/docs/CisTasksListResultValue.md +9 -0
- data/docs/CisTasksResult.md +8 -0
- data/docs/FilterSpecTargets.md +9 -0
- data/docs/SessionApi.md +131 -0
- data/docs/TaggingCategoryApi.md +401 -0
- data/docs/TaggingTagApi.md +445 -0
- data/docs/TaggingTagAssociationApi.md +498 -0
- data/docs/TasksApi.md +159 -0
- data/docs/VapiStdDynamicID.md +9 -0
- data/docs/VapiStdErrorsAlreadyExists.md +9 -0
- data/docs/VapiStdErrorsAlreadyExistsError.md +9 -0
- data/docs/VapiStdErrorsError.md +9 -0
- data/docs/VapiStdErrorsErrorError.md +9 -0
- data/docs/VapiStdErrorsInvalidArgument.md +9 -0
- data/docs/VapiStdErrorsInvalidArgumentError.md +9 -0
- data/docs/VapiStdErrorsNotAllowedInCurrentState.md +9 -0
- data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +9 -0
- data/docs/VapiStdErrorsNotFound.md +9 -0
- data/docs/VapiStdErrorsNotFoundError.md +9 -0
- data/docs/VapiStdErrorsResourceInaccessible.md +9 -0
- data/docs/VapiStdErrorsResourceInaccessibleError.md +9 -0
- data/docs/VapiStdErrorsServiceUnavailable.md +9 -0
- data/docs/VapiStdErrorsServiceUnavailableError.md +9 -0
- data/docs/VapiStdErrorsUnauthenticated.md +9 -0
- data/docs/VapiStdErrorsUnauthenticatedError.md +9 -0
- data/docs/VapiStdErrorsUnauthorized.md +9 -0
- data/docs/VapiStdErrorsUnauthorizedError.md +9 -0
- data/docs/VapiStdErrorsUnsupported.md +9 -0
- data/docs/VapiStdErrorsUnsupportedError.md +9 -0
- data/docs/VapiStdLocalizableMessage.md +10 -0
- data/git_push.sh +55 -0
- data/lib/vsphere-automation-cis.rb +124 -0
- data/lib/vsphere-automation-cis/api/session_api.rb +172 -0
- data/lib/vsphere-automation-cis/api/tagging_category_api.rb +511 -0
- data/lib/vsphere-automation-cis/api/tagging_tag_api.rb +567 -0
- data/lib/vsphere-automation-cis/api/tagging_tag_association_api.rb +654 -0
- data/lib/vsphere-automation-cis/api/tasks_api.rb +212 -0
- data/lib/vsphere-automation-cis/api_client.rb +386 -0
- data/lib/vsphere-automation-cis/api_error.rb +36 -0
- data/lib/vsphere-automation-cis/configuration.rb +200 -0
- data/lib/vsphere-automation-cis/models/cis_session_create_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_session_info.rb +219 -0
- data/lib/vsphere-automation-cis/models/cis_session_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_add_to_used_by.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_create_spec.rb +245 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_list_used_categories_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model.rb +267 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_model_cardinality.rb +30 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_remove_from_used_by.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_category_update_spec.rb +215 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_add_to_used_by.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object.rb +205 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects.rb +191 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_batch_result.rb +206 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object.rb +205 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects.rb +191 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attachable_tags_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags.rb +191 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_on_tags_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_objects_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects.rb +191 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_on_objects_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_list_attached_tags_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_object_to_tags.rb +205 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_association_tag_to_objects.rb +206 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_create_spec.rb +229 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_tags_for_category_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_list_used_tags_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_model.rb +251 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_remove_from_used_by.rb +189 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update.rb +188 -0
- data/lib/vsphere-automation-cis/models/cis_tagging_tag_update_spec.rb +194 -0
- data/lib/vsphere-automation-cis/models/cis_task_info.rb +315 -0
- data/lib/vsphere-automation-cis/models/cis_task_progress.rb +218 -0
- data/lib/vsphere-automation-cis/models/cis_task_status.rb +33 -0
- data/lib/vsphere-automation-cis/models/cis_tasks_filter_spec.rb +234 -0
- data/lib/vsphere-automation-cis/models/cis_tasks_get_spec.rb +194 -0
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result.rb +190 -0
- data/lib/vsphere-automation-cis/models/cis_tasks_list_result_value.rb +192 -0
- data/lib/vsphere-automation-cis/models/cis_tasks_result.rb +188 -0
- data/lib/vsphere-automation-cis/models/filter_spec_targets.rb +204 -0
- data/lib/vsphere-automation-cis/models/vapi_std_dynamic_id.rb +204 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_already_exists_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_error_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_invalid_argument_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_allowed_in_current_state_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_not_found_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_resource_inaccessible_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_service_unavailable_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthenticated_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unauthorized_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported.rb +201 -0
- data/lib/vsphere-automation-cis/models/vapi_std_errors_unsupported_error.rb +192 -0
- data/lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb +221 -0
- data/lib/vsphere-automation-cis/version.rb +15 -0
- data/spec/api/session_api_spec.rb +64 -0
- data/spec/api/tagging_category_api_spec.rb +134 -0
- data/spec/api/tagging_tag_api_spec.rb +145 -0
- data/spec/api/tagging_tag_association_api_spec.rb +158 -0
- data/spec/api/tasks_api_spec.rb +74 -0
- data/spec/api_client_spec.rb +224 -0
- data/spec/configuration_spec.rb +40 -0
- data/spec/models/cis_session_create_result_spec.rb +39 -0
- data/spec/models/cis_session_info_spec.rb +51 -0
- data/spec/models/cis_session_result_spec.rb +39 -0
- data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +39 -0
- data/spec/models/cis_tagging_category_create_result_spec.rb +39 -0
- data/spec/models/cis_tagging_category_create_spec.rb +39 -0
- data/spec/models/cis_tagging_category_create_spec_spec.rb +63 -0
- data/spec/models/cis_tagging_category_list_result_spec.rb +39 -0
- data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +39 -0
- data/spec/models/cis_tagging_category_list_used_categories_spec.rb +39 -0
- data/spec/models/cis_tagging_category_model_cardinality_spec.rb +33 -0
- data/spec/models/cis_tagging_category_model_spec.rb +69 -0
- data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +39 -0
- data/spec/models/cis_tagging_category_result_spec.rb +39 -0
- data/spec/models/cis_tagging_category_update_spec.rb +39 -0
- data/spec/models/cis_tagging_category_update_spec_spec.rb +57 -0
- data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +45 -0
- data/spec/models/cis_tagging_tag_association_attach_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +45 -0
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +45 -0
- data/spec/models/cis_tagging_tag_association_detach_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +45 -0
- data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +45 -0
- data/spec/models/cis_tagging_tag_create_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_create_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_create_spec_spec.rb +57 -0
- data/spec/models/cis_tagging_tag_list_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_model_spec.rb +63 -0
- data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_result_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_update_spec.rb +39 -0
- data/spec/models/cis_tagging_tag_update_spec_spec.rb +45 -0
- data/spec/models/cis_task_info_spec.rb +105 -0
- data/spec/models/cis_task_progress_spec.rb +51 -0
- data/spec/models/cis_task_status_spec.rb +33 -0
- data/spec/models/cis_tasks_filter_spec_spec.rb +63 -0
- data/spec/models/cis_tasks_get_spec_spec.rb +45 -0
- data/spec/models/cis_tasks_list_result_spec.rb +39 -0
- data/spec/models/cis_tasks_list_result_value_spec.rb +45 -0
- data/spec/models/cis_tasks_result_spec.rb +39 -0
- data/spec/models/filter_spec_targets_spec.rb +45 -0
- data/spec/models/vapi_std_dynamic_id_spec.rb +45 -0
- data/spec/models/vapi_std_errors_already_exists_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_already_exists_spec.rb +45 -0
- data/spec/models/vapi_std_errors_error_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_invalid_argument_spec.rb +45 -0
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +45 -0
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_not_found_spec.rb +45 -0
- data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +45 -0
- data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_service_unavailable_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unsupported_error_spec.rb +45 -0
- data/spec/models/vapi_std_errors_unsupported_spec.rb +45 -0
- data/spec/models/vapi_std_localizable_message_spec.rb +51 -0
- data/spec/spec_helper.rb +109 -0
- data/vsphere-automation-cis.gemspec +43 -0
- metadata +535 -0
@@ -0,0 +1,654 @@
|
|
1
|
+
=begin
|
2
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
3
|
+
|
4
|
+
# cis
|
5
|
+
|
6
|
+
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'uri'
|
12
|
+
|
13
|
+
module VSphereAutomation
|
14
|
+
module CIS
|
15
|
+
class TaggingTagAssociationApi
|
16
|
+
attr_accessor :api_client
|
17
|
+
|
18
|
+
def initialize(api_client = ApiClient.default)
|
19
|
+
@api_client = api_client
|
20
|
+
end
|
21
|
+
# Attaches the given tag to the input object. The tag needs to meet the cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
22
|
+
# @param tag_id The identifier of the input tag.
|
23
|
+
# @param cis_tagging_tag_association_attach
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
26
|
+
def attach(tag_id, cis_tagging_tag_association_attach, opts = {})
|
27
|
+
attach_with_http_info(tag_id, cis_tagging_tag_association_attach, opts)
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attaches the given tag to the input object. The tag needs to meet the cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) criteria in order to be eligible for attachment. If the tag is already attached to the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
32
|
+
# @api private
|
33
|
+
# @param tag_id The identifier of the input tag.
|
34
|
+
# @param cis_tagging_tag_association_attach
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(|VapiStdErrorsInvalidArgumentError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
+
def attach_with_http_info(tag_id, cis_tagging_tag_association_attach, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'tag_id' is set
|
42
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'cis_tagging_tag_association_attach' is set
|
46
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_attach.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_attach' when calling TaggingTagAssociationApi.attach"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_attach)
|
67
|
+
auth_names = []
|
68
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names)
|
74
|
+
if @api_client.config.debugging
|
75
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
|
+
end
|
77
|
+
return data, status_code, headers
|
78
|
+
end
|
79
|
+
# Attaches the given tags to the input object. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege on each tag.
|
80
|
+
# @param cis_tagging_tag_association_attach_multiple_tags_to_object
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|]
|
83
|
+
def attach_multiple_tags_to_object(cis_tagging_tag_association_attach_multiple_tags_to_object, opts = {})
|
84
|
+
data, _status_code, _headers = attach_multiple_tags_to_object_with_http_info(cis_tagging_tag_association_attach_multiple_tags_to_object, opts)
|
85
|
+
data
|
86
|
+
end
|
87
|
+
|
88
|
+
# Attaches the given tags to the input object. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege on each tag.
|
89
|
+
# @api private
|
90
|
+
# @param cis_tagging_tag_association_attach_multiple_tags_to_object
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [Array<(CisTaggingTagAssociationAttachMultipleTagsToObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
93
|
+
def attach_multiple_tags_to_object_with_http_info(cis_tagging_tag_association_attach_multiple_tags_to_object, opts = {})
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_multiple_tags_to_object ...'
|
96
|
+
end
|
97
|
+
# verify the required parameter 'cis_tagging_tag_association_attach_multiple_tags_to_object' is set
|
98
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_attach_multiple_tags_to_object.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_attach_multiple_tags_to_object' when calling TaggingTagAssociationApi.attach_multiple_tags_to_object"
|
100
|
+
end
|
101
|
+
# resource path
|
102
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=attach-multiple-tags-to-object'
|
103
|
+
|
104
|
+
# query parameters
|
105
|
+
query_params = {}
|
106
|
+
|
107
|
+
# header parameters
|
108
|
+
header_params = {}
|
109
|
+
# HTTP header 'Accept' (if needed)
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
111
|
+
# HTTP header 'Content-Type'
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
113
|
+
|
114
|
+
# form parameters
|
115
|
+
form_params = {}
|
116
|
+
|
117
|
+
# http body (model)
|
118
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_attach_multiple_tags_to_object)
|
119
|
+
auth_names = []
|
120
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
121
|
+
:header_params => header_params,
|
122
|
+
:query_params => query_params,
|
123
|
+
:form_params => form_params,
|
124
|
+
:body => post_body,
|
125
|
+
:auth_names => auth_names,
|
126
|
+
:return_type => {
|
127
|
+
'200' => 'CIS::CisTaggingTagAssociationAttachMultipleTagsToObjectResult',
|
128
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
129
|
+
})
|
130
|
+
if @api_client.config.debugging
|
131
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach_multiple_tags_to_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
132
|
+
end
|
133
|
+
return data, status_code, headers
|
134
|
+
end
|
135
|
+
# Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
136
|
+
# @param tag_id The identifier of the input tag.
|
137
|
+
# @param cis_tagging_tag_association_attach_tag_to_multiple_objects
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @return [CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
140
|
+
def attach_tag_to_multiple_objects(tag_id, cis_tagging_tag_association_attach_tag_to_multiple_objects, opts = {})
|
141
|
+
data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id, cis_tagging_tag_association_attach_tag_to_multiple_objects, opts)
|
142
|
+
data
|
143
|
+
end
|
144
|
+
|
145
|
+
# Attaches the given tag to the input objects. If a tag is already attached to the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
146
|
+
# @api private
|
147
|
+
# @param tag_id The identifier of the input tag.
|
148
|
+
# @param cis_tagging_tag_association_attach_tag_to_multiple_objects
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [Array<(CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
151
|
+
def attach_tag_to_multiple_objects_with_http_info(tag_id, cis_tagging_tag_association_attach_tag_to_multiple_objects, opts = {})
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_tag_to_multiple_objects ...'
|
154
|
+
end
|
155
|
+
# verify the required parameter 'tag_id' is set
|
156
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
157
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
|
158
|
+
end
|
159
|
+
# verify the required parameter 'cis_tagging_tag_association_attach_tag_to_multiple_objects' is set
|
160
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_attach_tag_to_multiple_objects.nil?
|
161
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_attach_tag_to_multiple_objects' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
|
162
|
+
end
|
163
|
+
# resource path
|
164
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach-tag-to-multiple-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
165
|
+
|
166
|
+
# query parameters
|
167
|
+
query_params = {}
|
168
|
+
|
169
|
+
# header parameters
|
170
|
+
header_params = {}
|
171
|
+
# HTTP header 'Accept' (if needed)
|
172
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
173
|
+
# HTTP header 'Content-Type'
|
174
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
175
|
+
|
176
|
+
# form parameters
|
177
|
+
form_params = {}
|
178
|
+
|
179
|
+
# http body (model)
|
180
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_attach_tag_to_multiple_objects)
|
181
|
+
auth_names = []
|
182
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
183
|
+
:header_params => header_params,
|
184
|
+
:query_params => query_params,
|
185
|
+
:form_params => form_params,
|
186
|
+
:body => post_body,
|
187
|
+
:auth_names => auth_names,
|
188
|
+
:return_type => {
|
189
|
+
'200' => 'CIS::CisTaggingTagAssociationAttachTagToMultipleObjectsResult',
|
190
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
191
|
+
'404' => 'CIS::VapiStdErrorsNotFoundError',
|
192
|
+
})
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#attach_tag_to_multiple_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
# Detaches the tag from the given object. If the tag is already removed from the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
199
|
+
# @param tag_id The identifier of the input tag.
|
200
|
+
# @param cis_tagging_tag_association_detach
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
203
|
+
def detach(tag_id, cis_tagging_tag_association_detach, opts = {})
|
204
|
+
detach_with_http_info(tag_id, cis_tagging_tag_association_detach, opts)
|
205
|
+
nil
|
206
|
+
end
|
207
|
+
|
208
|
+
# Detaches the tag from the given object. If the tag is already removed from the object, then this {@term operation} is a no-op and an error will not be thrown. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on the object.
|
209
|
+
# @api private
|
210
|
+
# @param tag_id The identifier of the input tag.
|
211
|
+
# @param cis_tagging_tag_association_detach
|
212
|
+
# @param [Hash] opts the optional parameters
|
213
|
+
# @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
214
|
+
def detach_with_http_info(tag_id, cis_tagging_tag_association_detach, opts = {})
|
215
|
+
if @api_client.config.debugging
|
216
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach ...'
|
217
|
+
end
|
218
|
+
# verify the required parameter 'tag_id' is set
|
219
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach"
|
221
|
+
end
|
222
|
+
# verify the required parameter 'cis_tagging_tag_association_detach' is set
|
223
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_detach.nil?
|
224
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_detach' when calling TaggingTagAssociationApi.detach"
|
225
|
+
end
|
226
|
+
# resource path
|
227
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = {}
|
231
|
+
|
232
|
+
# header parameters
|
233
|
+
header_params = {}
|
234
|
+
# HTTP header 'Accept' (if needed)
|
235
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
236
|
+
# HTTP header 'Content-Type'
|
237
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_detach)
|
244
|
+
auth_names = []
|
245
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
246
|
+
:header_params => header_params,
|
247
|
+
:query_params => query_params,
|
248
|
+
:form_params => form_params,
|
249
|
+
:body => post_body,
|
250
|
+
:auth_names => auth_names)
|
251
|
+
if @api_client.config.debugging
|
252
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
253
|
+
end
|
254
|
+
return data, status_code, headers
|
255
|
+
end
|
256
|
+
# Detaches the given tags from the input object. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege each tag.
|
257
|
+
# @param cis_tagging_tag_association_detach_multiple_tags_from_object
|
258
|
+
# @param [Hash] opts the optional parameters
|
259
|
+
# @return [CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|]
|
260
|
+
def detach_multiple_tags_from_object(cis_tagging_tag_association_detach_multiple_tags_from_object, opts = {})
|
261
|
+
data, _status_code, _headers = detach_multiple_tags_from_object_with_http_info(cis_tagging_tag_association_detach_multiple_tags_from_object, opts)
|
262
|
+
data
|
263
|
+
end
|
264
|
+
|
265
|
+
# Detaches the given tags from the input object. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the read privilege on the object and the attach tag privilege each tag.
|
266
|
+
# @api private
|
267
|
+
# @param cis_tagging_tag_association_detach_multiple_tags_from_object
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [Array<(CisTaggingTagAssociationDetachMultipleTagsFromObjectResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
270
|
+
def detach_multiple_tags_from_object_with_http_info(cis_tagging_tag_association_detach_multiple_tags_from_object, opts = {})
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_multiple_tags_from_object ...'
|
273
|
+
end
|
274
|
+
# verify the required parameter 'cis_tagging_tag_association_detach_multiple_tags_from_object' is set
|
275
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_detach_multiple_tags_from_object.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_detach_multiple_tags_from_object' when calling TaggingTagAssociationApi.detach_multiple_tags_from_object"
|
277
|
+
end
|
278
|
+
# resource path
|
279
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=detach-multiple-tags-from-object'
|
280
|
+
|
281
|
+
# query parameters
|
282
|
+
query_params = {}
|
283
|
+
|
284
|
+
# header parameters
|
285
|
+
header_params = {}
|
286
|
+
# HTTP header 'Accept' (if needed)
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
288
|
+
# HTTP header 'Content-Type'
|
289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
290
|
+
|
291
|
+
# form parameters
|
292
|
+
form_params = {}
|
293
|
+
|
294
|
+
# http body (model)
|
295
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_detach_multiple_tags_from_object)
|
296
|
+
auth_names = []
|
297
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
298
|
+
:header_params => header_params,
|
299
|
+
:query_params => query_params,
|
300
|
+
:form_params => form_params,
|
301
|
+
:body => post_body,
|
302
|
+
:auth_names => auth_names,
|
303
|
+
:return_type => {
|
304
|
+
'200' => 'CIS::CisTaggingTagAssociationDetachMultipleTagsFromObjectResult',
|
305
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
306
|
+
})
|
307
|
+
if @api_client.config.debugging
|
308
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach_multiple_tags_from_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
|
+
end
|
310
|
+
return data, status_code, headers
|
311
|
+
end
|
312
|
+
# Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
313
|
+
# @param tag_id The identifier of the input tag.
|
314
|
+
# @param cis_tagging_tag_association_detach_tag_from_multiple_objects
|
315
|
+
# @param [Hash] opts the optional parameters
|
316
|
+
# @return [CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
317
|
+
def detach_tag_from_multiple_objects(tag_id, cis_tagging_tag_association_detach_tag_from_multiple_objects, opts = {})
|
318
|
+
data, _status_code, _headers = detach_tag_from_multiple_objects_with_http_info(tag_id, cis_tagging_tag_association_detach_tag_from_multiple_objects, opts)
|
319
|
+
data
|
320
|
+
end
|
321
|
+
|
322
|
+
# Detaches the given tag from the input objects. If a tag is already removed from the object, then the individual {@term operation} is a no-op and an error will not be added to {@link BatchResult#errorMessages}. To invoke this {@term operation}, you need the attach tag privilege on the tag and the read privilege on each object.
|
323
|
+
# @api private
|
324
|
+
# @param tag_id The identifier of the input tag.
|
325
|
+
# @param cis_tagging_tag_association_detach_tag_from_multiple_objects
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @return [Array<(CisTaggingTagAssociationDetachTagFromMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
328
|
+
def detach_tag_from_multiple_objects_with_http_info(tag_id, cis_tagging_tag_association_detach_tag_from_multiple_objects, opts = {})
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.detach_tag_from_multiple_objects ...'
|
331
|
+
end
|
332
|
+
# verify the required parameter 'tag_id' is set
|
333
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
334
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects"
|
335
|
+
end
|
336
|
+
# verify the required parameter 'cis_tagging_tag_association_detach_tag_from_multiple_objects' is set
|
337
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_detach_tag_from_multiple_objects.nil?
|
338
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_detach_tag_from_multiple_objects' when calling TaggingTagAssociationApi.detach_tag_from_multiple_objects"
|
339
|
+
end
|
340
|
+
# resource path
|
341
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach-tag-from-multiple-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
342
|
+
|
343
|
+
# query parameters
|
344
|
+
query_params = {}
|
345
|
+
|
346
|
+
# header parameters
|
347
|
+
header_params = {}
|
348
|
+
# HTTP header 'Accept' (if needed)
|
349
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
350
|
+
# HTTP header 'Content-Type'
|
351
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
352
|
+
|
353
|
+
# form parameters
|
354
|
+
form_params = {}
|
355
|
+
|
356
|
+
# http body (model)
|
357
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_detach_tag_from_multiple_objects)
|
358
|
+
auth_names = []
|
359
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
360
|
+
:header_params => header_params,
|
361
|
+
:query_params => query_params,
|
362
|
+
:form_params => form_params,
|
363
|
+
:body => post_body,
|
364
|
+
:auth_names => auth_names,
|
365
|
+
:return_type => {
|
366
|
+
'200' => 'CIS::CisTaggingTagAssociationDetachTagFromMultipleObjectsResult',
|
367
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
368
|
+
'404' => 'CIS::VapiStdErrorsNotFoundError',
|
369
|
+
})
|
370
|
+
if @api_client.config.debugging
|
371
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#detach_tag_from_multiple_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
372
|
+
end
|
373
|
+
return data, status_code, headers
|
374
|
+
end
|
375
|
+
# Fetches the {@term list} of attachable tags for the given object, omitting the tags that have already been attached. Criteria for attachability is calculated based on tagging cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) constructs. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have read privileges.
|
376
|
+
# @param cis_tagging_tag_association_list_attachable_tags
|
377
|
+
# @param [Hash] opts the optional parameters
|
378
|
+
# @return [CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|]
|
379
|
+
def list_attachable_tags(cis_tagging_tag_association_list_attachable_tags, opts = {})
|
380
|
+
data, _status_code, _headers = list_attachable_tags_with_http_info(cis_tagging_tag_association_list_attachable_tags, opts)
|
381
|
+
data
|
382
|
+
end
|
383
|
+
|
384
|
+
# Fetches the {@term list} of attachable tags for the given object, omitting the tags that have already been attached. Criteria for attachability is calculated based on tagging cardinality ({@link CategoryModel#cardinality}) and associability ({@link CategoryModel#associableTypes}) constructs. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have read privileges.
|
385
|
+
# @api private
|
386
|
+
# @param cis_tagging_tag_association_list_attachable_tags
|
387
|
+
# @param [Hash] opts the optional parameters
|
388
|
+
# @return [Array<(CisTaggingTagAssociationListAttachableTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
389
|
+
def list_attachable_tags_with_http_info(cis_tagging_tag_association_list_attachable_tags, opts = {})
|
390
|
+
if @api_client.config.debugging
|
391
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attachable_tags ...'
|
392
|
+
end
|
393
|
+
# verify the required parameter 'cis_tagging_tag_association_list_attachable_tags' is set
|
394
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_list_attachable_tags.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_list_attachable_tags' when calling TaggingTagAssociationApi.list_attachable_tags"
|
396
|
+
end
|
397
|
+
# resource path
|
398
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attachable-tags'
|
399
|
+
|
400
|
+
# query parameters
|
401
|
+
query_params = {}
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
407
|
+
# HTTP header 'Content-Type'
|
408
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
409
|
+
|
410
|
+
# form parameters
|
411
|
+
form_params = {}
|
412
|
+
|
413
|
+
# http body (model)
|
414
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_list_attachable_tags)
|
415
|
+
auth_names = []
|
416
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
417
|
+
:header_params => header_params,
|
418
|
+
:query_params => query_params,
|
419
|
+
:form_params => form_params,
|
420
|
+
:body => post_body,
|
421
|
+
:auth_names => auth_names,
|
422
|
+
:return_type => {
|
423
|
+
'200' => 'CIS::CisTaggingTagAssociationListAttachableTagsResult',
|
424
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
425
|
+
})
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attachable_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
+
end
|
429
|
+
return data, status_code, headers
|
430
|
+
end
|
431
|
+
# Fetches the {@term list} of attached objects for the given tag. To invoke this {@term operation}, you need the read privilege on the input tag. Only those objects for which you have the read privilege will be returned.
|
432
|
+
# @param tag_id The identifier of the input tag.
|
433
|
+
# @param [Hash] opts the optional parameters
|
434
|
+
# @return [CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
435
|
+
def list_attached_objects(tag_id, opts = {})
|
436
|
+
data, _status_code, _headers = list_attached_objects_with_http_info(tag_id, opts)
|
437
|
+
data
|
438
|
+
end
|
439
|
+
|
440
|
+
# Fetches the {@term list} of attached objects for the given tag. To invoke this {@term operation}, you need the read privilege on the input tag. Only those objects for which you have the read privilege will be returned.
|
441
|
+
# @api private
|
442
|
+
# @param tag_id The identifier of the input tag.
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @return [Array<(CisTaggingTagAssociationListAttachedObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
445
|
+
def list_attached_objects_with_http_info(tag_id, opts = {})
|
446
|
+
if @api_client.config.debugging
|
447
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_objects ...'
|
448
|
+
end
|
449
|
+
# verify the required parameter 'tag_id' is set
|
450
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
451
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.list_attached_objects"
|
452
|
+
end
|
453
|
+
# resource path
|
454
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects'.sub('{' + 'tag_id' + '}', tag_id.to_s)
|
455
|
+
|
456
|
+
# query parameters
|
457
|
+
query_params = {}
|
458
|
+
|
459
|
+
# header parameters
|
460
|
+
header_params = {}
|
461
|
+
# HTTP header 'Accept' (if needed)
|
462
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
463
|
+
|
464
|
+
# form parameters
|
465
|
+
form_params = {}
|
466
|
+
|
467
|
+
# http body (model)
|
468
|
+
post_body = nil
|
469
|
+
auth_names = []
|
470
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
471
|
+
:header_params => header_params,
|
472
|
+
:query_params => query_params,
|
473
|
+
:form_params => form_params,
|
474
|
+
:body => post_body,
|
475
|
+
:auth_names => auth_names,
|
476
|
+
:return_type => {
|
477
|
+
'200' => 'CIS::CisTaggingTagAssociationListAttachedObjectsResult',
|
478
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
479
|
+
'404' => 'CIS::VapiStdErrorsNotFoundError',
|
480
|
+
})
|
481
|
+
if @api_client.config.debugging
|
482
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
483
|
+
end
|
484
|
+
return data, status_code, headers
|
485
|
+
end
|
486
|
+
# Fetches the {@term list} of {@link TagToObjects} describing the input tag identifiers and the objects they are attached to. To invoke this {@term operation}, you need the read privilege on each input tag. The {@link TagToObjects#objectIds} will only contain those objects for which you have the read privilege.
|
487
|
+
# @param cis_tagging_tag_association_list_attached_objects_on_tags
|
488
|
+
# @param [Hash] opts the optional parameters
|
489
|
+
# @return [CisTaggingTagAssociationListAttachedObjectsOnTagsResult|]
|
490
|
+
def list_attached_objects_on_tags(cis_tagging_tag_association_list_attached_objects_on_tags, opts = {})
|
491
|
+
data, _status_code, _headers = list_attached_objects_on_tags_with_http_info(cis_tagging_tag_association_list_attached_objects_on_tags, opts)
|
492
|
+
data
|
493
|
+
end
|
494
|
+
|
495
|
+
# Fetches the {@term list} of {@link TagToObjects} describing the input tag identifiers and the objects they are attached to. To invoke this {@term operation}, you need the read privilege on each input tag. The {@link TagToObjects#objectIds} will only contain those objects for which you have the read privilege.
|
496
|
+
# @api private
|
497
|
+
# @param cis_tagging_tag_association_list_attached_objects_on_tags
|
498
|
+
# @param [Hash] opts the optional parameters
|
499
|
+
# @return [Array<(CisTaggingTagAssociationListAttachedObjectsOnTagsResult|, Fixnum, Hash)>] data, response status code and response headers
|
500
|
+
def list_attached_objects_on_tags_with_http_info(cis_tagging_tag_association_list_attached_objects_on_tags, opts = {})
|
501
|
+
if @api_client.config.debugging
|
502
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_objects_on_tags ...'
|
503
|
+
end
|
504
|
+
# verify the required parameter 'cis_tagging_tag_association_list_attached_objects_on_tags' is set
|
505
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_list_attached_objects_on_tags.nil?
|
506
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_list_attached_objects_on_tags' when calling TaggingTagAssociationApi.list_attached_objects_on_tags"
|
507
|
+
end
|
508
|
+
# resource path
|
509
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags'
|
510
|
+
|
511
|
+
# query parameters
|
512
|
+
query_params = {}
|
513
|
+
|
514
|
+
# header parameters
|
515
|
+
header_params = {}
|
516
|
+
# HTTP header 'Accept' (if needed)
|
517
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
518
|
+
# HTTP header 'Content-Type'
|
519
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
520
|
+
|
521
|
+
# form parameters
|
522
|
+
form_params = {}
|
523
|
+
|
524
|
+
# http body (model)
|
525
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_list_attached_objects_on_tags)
|
526
|
+
auth_names = []
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
528
|
+
:header_params => header_params,
|
529
|
+
:query_params => query_params,
|
530
|
+
:form_params => form_params,
|
531
|
+
:body => post_body,
|
532
|
+
:auth_names => auth_names,
|
533
|
+
:return_type => {
|
534
|
+
'200' => 'CIS::CisTaggingTagAssociationListAttachedObjectsOnTagsResult',
|
535
|
+
})
|
536
|
+
if @api_client.config.debugging
|
537
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_objects_on_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
538
|
+
end
|
539
|
+
return data, status_code, headers
|
540
|
+
end
|
541
|
+
# Fetches the {@term list} of tags attached to the given object. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have the read privileges.
|
542
|
+
# @param cis_tagging_tag_association_list_attached_tags
|
543
|
+
# @param [Hash] opts the optional parameters
|
544
|
+
# @return [CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|]
|
545
|
+
def list_attached_tags(cis_tagging_tag_association_list_attached_tags, opts = {})
|
546
|
+
data, _status_code, _headers = list_attached_tags_with_http_info(cis_tagging_tag_association_list_attached_tags, opts)
|
547
|
+
data
|
548
|
+
end
|
549
|
+
|
550
|
+
# Fetches the {@term list} of tags attached to the given object. To invoke this {@term operation}, you need the read privilege on the input object. The {@term list} will only contain those tags for which you have the read privileges.
|
551
|
+
# @api private
|
552
|
+
# @param cis_tagging_tag_association_list_attached_tags
|
553
|
+
# @param [Hash] opts the optional parameters
|
554
|
+
# @return [Array<(CisTaggingTagAssociationListAttachedTagsResult|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
555
|
+
def list_attached_tags_with_http_info(cis_tagging_tag_association_list_attached_tags, opts = {})
|
556
|
+
if @api_client.config.debugging
|
557
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags ...'
|
558
|
+
end
|
559
|
+
# verify the required parameter 'cis_tagging_tag_association_list_attached_tags' is set
|
560
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_list_attached_tags.nil?
|
561
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_list_attached_tags' when calling TaggingTagAssociationApi.list_attached_tags"
|
562
|
+
end
|
563
|
+
# resource path
|
564
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags'
|
565
|
+
|
566
|
+
# query parameters
|
567
|
+
query_params = {}
|
568
|
+
|
569
|
+
# header parameters
|
570
|
+
header_params = {}
|
571
|
+
# HTTP header 'Accept' (if needed)
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
573
|
+
# HTTP header 'Content-Type'
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
575
|
+
|
576
|
+
# form parameters
|
577
|
+
form_params = {}
|
578
|
+
|
579
|
+
# http body (model)
|
580
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_list_attached_tags)
|
581
|
+
auth_names = []
|
582
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
583
|
+
:header_params => header_params,
|
584
|
+
:query_params => query_params,
|
585
|
+
:form_params => form_params,
|
586
|
+
:body => post_body,
|
587
|
+
:auth_names => auth_names,
|
588
|
+
:return_type => {
|
589
|
+
'200' => 'CIS::CisTaggingTagAssociationListAttachedTagsResult',
|
590
|
+
'403' => 'CIS::VapiStdErrorsUnauthorizedError',
|
591
|
+
})
|
592
|
+
if @api_client.config.debugging
|
593
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
594
|
+
end
|
595
|
+
return data, status_code, headers
|
596
|
+
end
|
597
|
+
# Fetches the {@term list} of {@link ObjectToTags} describing the input object identifiers and the tags attached to each object. To invoke this {@term operation}, you need the read privilege on each input object. The {@link ObjectToTags#tagIds} will only contain those tags for which you have the read privilege.
|
598
|
+
# @param cis_tagging_tag_association_list_attached_tags_on_objects
|
599
|
+
# @param [Hash] opts the optional parameters
|
600
|
+
# @return [CisTaggingTagAssociationListAttachedTagsOnObjectsResult|]
|
601
|
+
def list_attached_tags_on_objects(cis_tagging_tag_association_list_attached_tags_on_objects, opts = {})
|
602
|
+
data, _status_code, _headers = list_attached_tags_on_objects_with_http_info(cis_tagging_tag_association_list_attached_tags_on_objects, opts)
|
603
|
+
data
|
604
|
+
end
|
605
|
+
|
606
|
+
# Fetches the {@term list} of {@link ObjectToTags} describing the input object identifiers and the tags attached to each object. To invoke this {@term operation}, you need the read privilege on each input object. The {@link ObjectToTags#tagIds} will only contain those tags for which you have the read privilege.
|
607
|
+
# @api private
|
608
|
+
# @param cis_tagging_tag_association_list_attached_tags_on_objects
|
609
|
+
# @param [Hash] opts the optional parameters
|
610
|
+
# @return [Array<(CisTaggingTagAssociationListAttachedTagsOnObjectsResult|, Fixnum, Hash)>] data, response status code and response headers
|
611
|
+
def list_attached_tags_on_objects_with_http_info(cis_tagging_tag_association_list_attached_tags_on_objects, opts = {})
|
612
|
+
if @api_client.config.debugging
|
613
|
+
@api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags_on_objects ...'
|
614
|
+
end
|
615
|
+
# verify the required parameter 'cis_tagging_tag_association_list_attached_tags_on_objects' is set
|
616
|
+
if @api_client.config.client_side_validation && cis_tagging_tag_association_list_attached_tags_on_objects.nil?
|
617
|
+
fail ArgumentError, "Missing the required parameter 'cis_tagging_tag_association_list_attached_tags_on_objects' when calling TaggingTagAssociationApi.list_attached_tags_on_objects"
|
618
|
+
end
|
619
|
+
# resource path
|
620
|
+
local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects'
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = {}
|
627
|
+
# HTTP header 'Accept' (if needed)
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
629
|
+
# HTTP header 'Content-Type'
|
630
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
631
|
+
|
632
|
+
# form parameters
|
633
|
+
form_params = {}
|
634
|
+
|
635
|
+
# http body (model)
|
636
|
+
post_body = @api_client.object_to_http_body(cis_tagging_tag_association_list_attached_tags_on_objects)
|
637
|
+
auth_names = []
|
638
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
639
|
+
:header_params => header_params,
|
640
|
+
:query_params => query_params,
|
641
|
+
:form_params => form_params,
|
642
|
+
:body => post_body,
|
643
|
+
:auth_names => auth_names,
|
644
|
+
:return_type => {
|
645
|
+
'200' => 'CIS::CisTaggingTagAssociationListAttachedTagsOnObjectsResult',
|
646
|
+
})
|
647
|
+
if @api_client.config.debugging
|
648
|
+
@api_client.config.logger.debug "API called: TaggingTagAssociationApi#list_attached_tags_on_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
649
|
+
end
|
650
|
+
return data, status_code, headers
|
651
|
+
end
|
652
|
+
end
|
653
|
+
end
|
654
|
+
end
|