vsphere-automation-cis 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3535c86a6b765e11eb809db421e3445658cf25cf05a2fc54359098af4524677
4
- data.tar.gz: 6ab75818465f47e21db2a8ba380dfd6c7750952573b9e48acba29d2c3469b799
3
+ metadata.gz: f274985c3db6e9bb80d739606d685355d3405a5169645365171e6048642877c4
4
+ data.tar.gz: e3bf1c0936f6c59b5c4d08fc4a02575be75057da73205cfb2d8f5b5d3f585519
5
5
  SHA512:
6
- metadata.gz: 8ca959abf15e5683abe3c9e390fc23e7c61b5912426d515b14ab8bc0df7d207f6a346e4778129a2ce2d99bd721569a679ea2d2ad2bcdf2d4aaa27939537e2e46
7
- data.tar.gz: 010c7d0f2787f259b7594161c13af3b8943a41ef74da8430c861f581365a415111665a8ae60b5e6b73e1de232796581ac54476608dad234c6cb7a1d18dcc663c
6
+ metadata.gz: 4a358a37ccf86e2bfe375ce924a8d458573aae58c3ed62985afb83c467affd967956e4396f93665700830dee7b4d34dffa0583db7179c072fc0dd106d12c17f3
7
+ data.tar.gz: ab6429370109ff17ee4a841c4de0df89880433629964739dedf5bce1c5cd071c58310c19f001b78099440efc0fa315d13af34388a9b60fa24eb04e763707aecd
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: ../runtime
3
3
  specs:
4
- vsphere-automation-runtime (0.2.2)
4
+ vsphere-automation-runtime (0.3.0)
5
5
  typhoeus (~> 1.3)
6
6
 
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- vsphere-automation-cis (0.2.2)
11
- vsphere-automation-runtime (~> 0.2.2)
10
+ vsphere-automation-cis (0.3.0)
11
+ vsphere-automation-runtime (~> 0.3.0)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The Ruby gem for the vSphere CIS API
4
4
 
5
5
  - API version: 2.0.0
6
- - Package version: 0.2.2
6
+ - Package version: 0.3.0
7
7
 
8
8
  ## Installation
9
9
 
@@ -64,22 +64,22 @@ Class | Method | HTTP request | Description
64
64
  `VSphereAutomation::CIS::TaggingCategoryApi` | [**get**](docs/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.
65
65
  `VSphereAutomation::CIS::TaggingCategoryApi` | [**list**](docs/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.
66
66
  `VSphereAutomation::CIS::TaggingCategoryApi` | [**list_used_categories**](docs/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.
67
- `VSphereAutomation::CIS::TaggingCategoryApi` | [**remove_from_used_by**](docs/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.
67
+ `VSphereAutomation::CIS::TaggingCategoryApi` | [**remove_from_used_by**](docs/TaggingCategoryApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=remove-from-used-by | 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.
68
68
  `VSphereAutomation::CIS::TaggingCategoryApi` | [**revoke_propagating_permissions**](docs/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.
69
69
  `VSphereAutomation::CIS::TaggingCategoryApi` | [**update**](docs/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.
70
- `VSphereAutomation::CIS::TaggingTagApi` | [**add_to_used_by**](docs/TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id} | Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
70
+ `VSphereAutomation::CIS::TaggingTagApi` | [**add_to_used_by**](docs/TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=add-to-used-by | Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
71
71
  `VSphereAutomation::CIS::TaggingTagApi` | [**create**](docs/TaggingTagApi.md#create) | **POST** /com/vmware/cis/tagging/tag | Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
72
72
  `VSphereAutomation::CIS::TaggingTagApi` | [**delete**](docs/TaggingTagApi.md#delete) | **DELETE** /com/vmware/cis/tagging/tag/id:{tag_id} | Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
73
73
  `VSphereAutomation::CIS::TaggingTagApi` | [**get**](docs/TaggingTagApi.md#get) | **GET** /com/vmware/cis/tagging/tag/id:{tag_id} | Fetches the tag information for the given tag identifier. To invoke this {@term operation}, you need the read privilege on the tag in order to view the tag info.
74
74
  `VSphereAutomation::CIS::TaggingTagApi` | [**list**](docs/TaggingTagApi.md#list) | **GET** /com/vmware/cis/tagging/tag | Enumerates the tags in the system. To invoke this {@term operation}, you need read privilege on the individual tags. The {@term list} will only contain tags for which you have read privileges.
75
- `VSphereAutomation::CIS::TaggingTagApi` | [**list_tags_for_category**](docs/TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id} | Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
75
+ `VSphereAutomation::CIS::TaggingTagApi` | [**list_tags_for_category**](docs/TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category | Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
76
76
  `VSphereAutomation::CIS::TaggingTagApi` | [**list_used_tags**](docs/TaggingTagApi.md#list_used_tags) | **POST** /com/vmware/cis/tagging/tag?~action=list-used-tags | Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
77
77
  `VSphereAutomation::CIS::TaggingTagApi` | [**remove_from_used_by**](docs/TaggingTagApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=remove-from-used-by | Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
78
78
  `VSphereAutomation::CIS::TaggingTagApi` | [**revoke_propagating_permissions**](docs/TaggingTagApi.md#revoke_propagating_permissions) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=revoke-propagating-permissions | Revokes all propagating permissions on the given tag. You should then attach a direct permission with tagging privileges on the given tag. To invoke this {@term operation}, you need tag related privileges (direct or propagating) on the concerned tag.
79
79
  `VSphereAutomation::CIS::TaggingTagApi` | [**update**](docs/TaggingTagApi.md#update) | **PATCH** /com/vmware/cis/tagging/tag/id:{tag_id} | Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
80
80
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**attach**](docs/TaggingTagAssociationApi.md#attach) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach | 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.
81
81
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**attach_multiple_tags_to_object**](docs/TaggingTagAssociationApi.md#attach_multiple_tags_to_object) | **POST** /com/vmware/cis/tagging/tag-association?~action=attach-multiple-tags-to-object | 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.
82
- `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**attach_tag_to_multiple_objects**](docs/TaggingTagAssociationApi.md#attach_tag_to_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id} | 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.
82
+ `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**attach_tag_to_multiple_objects**](docs/TaggingTagAssociationApi.md#attach_tag_to_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach-tag-to-multiple-objects | 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.
83
83
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**detach**](docs/TaggingTagAssociationApi.md#detach) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach | 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.
84
84
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**detach_multiple_tags_from_object**](docs/TaggingTagAssociationApi.md#detach_multiple_tags_from_object) | **POST** /com/vmware/cis/tagging/tag-association?~action=detach-multiple-tags-from-object | 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.
85
85
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**detach_tag_from_multiple_objects**](docs/TaggingTagAssociationApi.md#detach_tag_from_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach-tag-from-multiple-objects | 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.
@@ -87,8 +87,8 @@ Class | Method | HTTP request | Description
87
87
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**list_attached_objects**](docs/TaggingTagAssociationApi.md#list_attached_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects | 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.
88
88
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**list_attached_objects_on_tags**](docs/TaggingTagAssociationApi.md#list_attached_objects_on_tags) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags | 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.
89
89
  `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**list_attached_tags**](docs/TaggingTagAssociationApi.md#list_attached_tags) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-tags | 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.
90
- `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**list_attached_tags_on_objects**](docs/TaggingTagAssociationApi.md#list_attached_tags_on_objects) | **POST** /com/vmware/cis/tagging/tag-association | 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.
91
- `VSphereAutomation::CIS::TasksApi` | [**cancel**](docs/TasksApi.md#cancel) | **POST** /cis/tasks/{task} | Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
90
+ `VSphereAutomation::CIS::TaggingTagAssociationApi` | [**list_attached_tags_on_objects**](docs/TaggingTagAssociationApi.md#list_attached_tags_on_objects) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects | 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.
91
+ `VSphereAutomation::CIS::TasksApi` | [**cancel**](docs/TasksApi.md#cancel) | **POST** /cis/tasks/{task}?action=cancel | Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
92
92
  `VSphereAutomation::CIS::TasksApi` | [**get**](docs/TasksApi.md#get) | **GET** /cis/tasks/{task} | Returns information about a task.
93
93
  `VSphereAutomation::CIS::TasksApi` | [**list**](docs/TasksApi.md#list) | **GET** /cis/tasks | Returns information about at most 1000 visible (subject to permission checks) tasks matching the Tasks.FilterSpec. All tasks must be in the same provider.
94
94
 
@@ -3,6 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **value** | **Array<Object>** | |
6
+ **value** | [**Array<CisTasksListResultValue>**](CisTasksListResultValue.md) | |
7
7
 
8
8
 
@@ -10,7 +10,7 @@ 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} | 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.
13
+ [**remove_from_used_by**](TaggingCategoryApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/category/id:{category_id}?~action=remove-from-used-by | 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
 
@@ -312,7 +312,7 @@ Name | Type | Description | Notes
312
312
 
313
313
 
314
314
  # **remove_from_used_by**
315
- > remove_from_used_by(category_id, action, request_body)
315
+ > remove_from_used_by(category_id, request_body)
316
316
 
317
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.
318
318
 
@@ -330,12 +330,11 @@ end
330
330
 
331
331
  api_instance = VSphereAutomation::CIS::TaggingCategoryApi.new
332
332
  category_id = 'category_id_example' # String | The identifier of the input category.
333
- action = 'action_example' # String | ~action=remove-from-used-by
334
333
  request_body = CIS::CisTaggingCategoryRemoveFromUsedBy.new # CisTaggingCategoryRemoveFromUsedBy |
335
334
 
336
335
  begin
337
336
  #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.
338
- api_instance.remove_from_used_by(category_id, action, request_body)
337
+ api_instance.remove_from_used_by(category_id, request_body)
339
338
  rescue VSphereAutomation::ApiError => e
340
339
  puts "Exception when calling TaggingCategoryApi->remove_from_used_by: #{e}"
341
340
  end
@@ -346,7 +345,6 @@ end
346
345
  Name | Type | Description | Notes
347
346
  ------------- | ------------- | ------------- | -------------
348
347
  **category_id** | **String**| The identifier of the input category. |
349
- **action** | **String**| ~action=remove-from-used-by |
350
348
  **request_body** | [**CisTaggingCategoryRemoveFromUsedBy**](CisTaggingCategoryRemoveFromUsedBy.md)| |
351
349
 
352
350
  ### Return type
@@ -4,12 +4,12 @@ All URIs are relative to *https://<vcenter>/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**add_to_used_by**](TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id} | Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
7
+ [**add_to_used_by**](TaggingTagApi.md#add_to_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=add-to-used-by | Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
8
8
  [**create**](TaggingTagApi.md#create) | **POST** /com/vmware/cis/tagging/tag | Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
9
9
  [**delete**](TaggingTagApi.md#delete) | **DELETE** /com/vmware/cis/tagging/tag/id:{tag_id} | Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
10
10
  [**get**](TaggingTagApi.md#get) | **GET** /com/vmware/cis/tagging/tag/id:{tag_id} | Fetches the tag information for the given tag identifier. To invoke this {@term operation}, you need the read privilege on the tag in order to view the tag info.
11
11
  [**list**](TaggingTagApi.md#list) | **GET** /com/vmware/cis/tagging/tag | Enumerates the tags in the system. To invoke this {@term operation}, you need read privilege on the individual tags. The {@term list} will only contain tags for which you have read privileges.
12
- [**list_tags_for_category**](TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id} | Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
12
+ [**list_tags_for_category**](TaggingTagApi.md#list_tags_for_category) | **POST** /com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category | Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
13
13
  [**list_used_tags**](TaggingTagApi.md#list_used_tags) | **POST** /com/vmware/cis/tagging/tag?~action=list-used-tags | Enumerates all tags for which the {@param.name usedByEntity} is part of the {@link TagModel#usedBy} subscribers {@term set}. To invoke this {@term operation}, you need the read privilege on the individual tags.
14
14
  [**remove_from_used_by**](TaggingTagApi.md#remove_from_used_by) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=remove-from-used-by | Removes the {@param.name usedByEntity} from the {@link TagModel#usedBy} subscribers set. If the {@param.name usedByEntity} is not using this tag, then this becomes a no-op. To invoke this {@term operation}, you need modify {@link TagModel#usedBy} privilege on the tag.
15
15
  [**revoke_propagating_permissions**](TaggingTagApi.md#revoke_propagating_permissions) | **POST** /com/vmware/cis/tagging/tag/id:{tag_id}?~action=revoke-propagating-permissions | Revokes all propagating permissions on the given tag. You should then attach a direct permission with tagging privileges on the given tag. To invoke this {@term operation}, you need tag related privileges (direct or propagating) on the concerned tag.
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
 
19
19
  # **add_to_used_by**
20
- > add_to_used_by(tag_id, action, request_body)
20
+ > add_to_used_by(tag_id, request_body)
21
21
 
22
22
  Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
23
23
 
@@ -35,12 +35,11 @@ end
35
35
 
36
36
  api_instance = VSphereAutomation::CIS::TaggingTagApi.new
37
37
  tag_id = 'tag_id_example' # String | The identifier of the input tag.
38
- action = 'action_example' # String | ~action=add-to-used-by
39
38
  request_body = CIS::CisTaggingTagAddToUsedBy.new # CisTaggingTagAddToUsedBy |
40
39
 
41
40
  begin
42
41
  #Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
43
- api_instance.add_to_used_by(tag_id, action, request_body)
42
+ api_instance.add_to_used_by(tag_id, request_body)
44
43
  rescue VSphereAutomation::ApiError => e
45
44
  puts "Exception when calling TaggingTagApi->add_to_used_by: #{e}"
46
45
  end
@@ -51,7 +50,6 @@ end
51
50
  Name | Type | Description | Notes
52
51
  ------------- | ------------- | ------------- | -------------
53
52
  **tag_id** | **String**| The identifier of the input tag. |
54
- **action** | **String**| ~action=add-to-used-by |
55
53
  **request_body** | [**CisTaggingTagAddToUsedBy**](CisTaggingTagAddToUsedBy.md)| |
56
54
 
57
55
  ### Return type
@@ -265,7 +263,7 @@ This endpoint does not need any parameter.
265
263
 
266
264
 
267
265
  # **list_tags_for_category**
268
- > CisTaggingTagListTagsForCategoryResult list_tags_for_category(category_id, action)
266
+ > CisTaggingTagListTagsForCategoryResult list_tags_for_category(category_id)
269
267
 
270
268
  Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
271
269
 
@@ -283,11 +281,10 @@ end
283
281
 
284
282
  api_instance = VSphereAutomation::CIS::TaggingTagApi.new
285
283
  category_id = 'category_id_example' # String | The identifier of the input category.
286
- action = 'action_example' # String | ~action=list-tags-for-category
287
284
 
288
285
  begin
289
286
  #Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
290
- result = api_instance.list_tags_for_category(category_id, action)
287
+ result = api_instance.list_tags_for_category(category_id)
291
288
  p result
292
289
  rescue VSphereAutomation::ApiError => e
293
290
  puts "Exception when calling TaggingTagApi->list_tags_for_category: #{e}"
@@ -299,7 +296,6 @@ end
299
296
  Name | Type | Description | Notes
300
297
  ------------- | ------------- | ------------- | -------------
301
298
  **category_id** | **String**| The identifier of the input category. |
302
- **action** | **String**| ~action=list-tags-for-category |
303
299
 
304
300
  ### Return type
305
301
 
@@ -6,7 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**attach**](TaggingTagAssociationApi.md#attach) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach | 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.
8
8
  [**attach_multiple_tags_to_object**](TaggingTagAssociationApi.md#attach_multiple_tags_to_object) | **POST** /com/vmware/cis/tagging/tag-association?~action=attach-multiple-tags-to-object | 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.
9
- [**attach_tag_to_multiple_objects**](TaggingTagAssociationApi.md#attach_tag_to_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id} | 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.
9
+ [**attach_tag_to_multiple_objects**](TaggingTagAssociationApi.md#attach_tag_to_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=attach-tag-to-multiple-objects | 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.
10
10
  [**detach**](TaggingTagAssociationApi.md#detach) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach | 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.
11
11
  [**detach_multiple_tags_from_object**](TaggingTagAssociationApi.md#detach_multiple_tags_from_object) | **POST** /com/vmware/cis/tagging/tag-association?~action=detach-multiple-tags-from-object | 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.
12
12
  [**detach_tag_from_multiple_objects**](TaggingTagAssociationApi.md#detach_tag_from_multiple_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=detach-tag-from-multiple-objects | 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.
@@ -14,7 +14,7 @@ Method | HTTP request | Description
14
14
  [**list_attached_objects**](TaggingTagAssociationApi.md#list_attached_objects) | **POST** /com/vmware/cis/tagging/tag-association/id:{tag_id}?~action=list-attached-objects | 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.
15
15
  [**list_attached_objects_on_tags**](TaggingTagAssociationApi.md#list_attached_objects_on_tags) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-objects-on-tags | 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.
16
16
  [**list_attached_tags**](TaggingTagAssociationApi.md#list_attached_tags) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-tags | 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.
17
- [**list_attached_tags_on_objects**](TaggingTagAssociationApi.md#list_attached_tags_on_objects) | **POST** /com/vmware/cis/tagging/tag-association | 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.
17
+ [**list_attached_tags_on_objects**](TaggingTagAssociationApi.md#list_attached_tags_on_objects) | **POST** /com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects | 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.
18
18
 
19
19
 
20
20
  # **attach**
@@ -119,7 +119,7 @@ Name | Type | Description | Notes
119
119
 
120
120
 
121
121
  # **attach_tag_to_multiple_objects**
122
- > CisTaggingTagAssociationAttachTagToMultipleObjectsResult attach_tag_to_multiple_objects(tag_id, action, request_body)
122
+ > CisTaggingTagAssociationAttachTagToMultipleObjectsResult attach_tag_to_multiple_objects(tag_id, request_body)
123
123
 
124
124
  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.
125
125
 
@@ -137,12 +137,11 @@ end
137
137
 
138
138
  api_instance = VSphereAutomation::CIS::TaggingTagAssociationApi.new
139
139
  tag_id = 'tag_id_example' # String | The identifier of the input tag.
140
- action = 'action_example' # String | ~action=attach-tag-to-multiple-objects
141
140
  request_body = CIS::CisTaggingTagAssociationAttachTagToMultipleObjects.new # CisTaggingTagAssociationAttachTagToMultipleObjects |
142
141
 
143
142
  begin
144
143
  #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.
145
- result = api_instance.attach_tag_to_multiple_objects(tag_id, action, request_body)
144
+ result = api_instance.attach_tag_to_multiple_objects(tag_id, request_body)
146
145
  p result
147
146
  rescue VSphereAutomation::ApiError => e
148
147
  puts "Exception when calling TaggingTagAssociationApi->attach_tag_to_multiple_objects: #{e}"
@@ -154,7 +153,6 @@ end
154
153
  Name | Type | Description | Notes
155
154
  ------------- | ------------- | ------------- | -------------
156
155
  **tag_id** | **String**| The identifier of the input tag. |
157
- **action** | **String**| ~action=attach-tag-to-multiple-objects |
158
156
  **request_body** | [**CisTaggingTagAssociationAttachTagToMultipleObjects**](CisTaggingTagAssociationAttachTagToMultipleObjects.md)| |
159
157
 
160
158
  ### Return type
@@ -526,7 +524,7 @@ Name | Type | Description | Notes
526
524
 
527
525
 
528
526
  # **list_attached_tags_on_objects**
529
- > CisTaggingTagAssociationListAttachedTagsOnObjectsResult list_attached_tags_on_objects(action, request_body)
527
+ > CisTaggingTagAssociationListAttachedTagsOnObjectsResult list_attached_tags_on_objects(request_body)
530
528
 
531
529
  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.
532
530
 
@@ -543,12 +541,11 @@ VSphereAutomation::Configuration.new.tap do |config|
543
541
  end
544
542
 
545
543
  api_instance = VSphereAutomation::CIS::TaggingTagAssociationApi.new
546
- action = 'action_example' # String | ~action=list-attached-tags-on-objects
547
544
  request_body = CIS::CisTaggingTagAssociationListAttachedTagsOnObjects.new # CisTaggingTagAssociationListAttachedTagsOnObjects |
548
545
 
549
546
  begin
550
547
  #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.
551
- result = api_instance.list_attached_tags_on_objects(action, request_body)
548
+ result = api_instance.list_attached_tags_on_objects(request_body)
552
549
  p result
553
550
  rescue VSphereAutomation::ApiError => e
554
551
  puts "Exception when calling TaggingTagAssociationApi->list_attached_tags_on_objects: #{e}"
@@ -559,7 +556,6 @@ end
559
556
 
560
557
  Name | Type | Description | Notes
561
558
  ------------- | ------------- | ------------- | -------------
562
- **action** | **String**| ~action=list-attached-tags-on-objects |
563
559
  **request_body** | [**CisTaggingTagAssociationListAttachedTagsOnObjects**](CisTaggingTagAssociationListAttachedTagsOnObjects.md)| |
564
560
 
565
561
  ### Return type
data/docs/TasksApi.md CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *https://<vcenter>/rest*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**cancel**](TasksApi.md#cancel) | **POST** /cis/tasks/{task} | Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
7
+ [**cancel**](TasksApi.md#cancel) | **POST** /cis/tasks/{task}?action=cancel | Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
8
8
  [**get**](TasksApi.md#get) | **GET** /cis/tasks/{task} | Returns information about a task.
9
9
  [**list**](TasksApi.md#list) | **GET** /cis/tasks | Returns information about at most 1000 visible (subject to permission checks) tasks matching the Tasks.FilterSpec. All tasks must be in the same provider.
10
10
 
11
11
 
12
12
  # **cancel**
13
- > cancel(task, action)
13
+ > cancel(task)
14
14
 
15
15
  Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
16
16
 
@@ -28,11 +28,10 @@ end
28
28
 
29
29
  api_instance = VSphereAutomation::CIS::TasksApi.new
30
30
  task = 'task_example' # String | Task identifier. The parameter must be an identifier for the resource type: cis.task.
31
- action = 'action_example' # String | action=cancel
32
31
 
33
32
  begin
34
33
  #Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
35
- api_instance.cancel(task, action)
34
+ api_instance.cancel(task)
36
35
  rescue VSphereAutomation::ApiError => e
37
36
  puts "Exception when calling TasksApi->cancel: #{e}"
38
37
  end
@@ -43,7 +42,6 @@ end
43
42
  Name | Type | Description | Notes
44
43
  ------------- | ------------- | ------------- | -------------
45
44
  **task** | **String**| Task identifier. The parameter must be an identifier for the resource type: cis.task. |
46
- **action** | **String**| action=cancel |
47
45
 
48
46
  ### Return type
49
47
 
@@ -140,7 +138,7 @@ opts = {
140
138
  result_spec_exclude_result: true, # Boolean | If true, the result will not be included in the task information, otherwise it will be included. If unset, the result of the operation will be included in the task information.
141
139
  filter_spec_services: ['filter_spec_services_example'], # Array<String> | Identifiers of services. Tasks created by operations in these services match the filter (see CommonInfo.service). This field may be unset if Tasks.FilterSpec.tasks is specified. Currently all services must be from the same provider. If this field is unset or empty, tasks for all services will match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: vapi.service. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: vapi.service.
142
140
  filter_spec_status: ['filter_spec_status_example'], # Array<String> | Status that a task must have to match the filter (see CommonInfo.status). If unset or empty, tasks with any status match the filter.
143
- filter_spec_targets: nil, # Array<Object> | Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
141
+ filter_spec_targets: [CIS::FilterSpecTargets.new], # Array<FilterSpecTargets> | Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
144
142
  filter_spec_users: ['filter_spec_users_example'] # Array<String> | Users who must have initiated the operation for the associated task to match the filter (see CommonInfo.user). If unset or empty, tasks associated with operations initiated by any user match the filter.
145
143
  }
146
144
 
@@ -162,7 +160,7 @@ Name | Type | Description | Notes
162
160
  **result_spec_exclude_result** | **Boolean**| If true, the result will not be included in the task information, otherwise it will be included. If unset, the result of the operation will be included in the task information. | [optional]
163
161
  **filter_spec_services** | [**Array&lt;String&gt;**](String.md)| Identifiers of services. Tasks created by operations in these services match the filter (see CommonInfo.service). This field may be unset if Tasks.FilterSpec.tasks is specified. Currently all services must be from the same provider. If this field is unset or empty, tasks for all services will match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: vapi.service. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: vapi.service. | [optional]
164
162
  **filter_spec_status** | [**Array&lt;String&gt;**](String.md)| Status that a task must have to match the filter (see CommonInfo.status). If unset or empty, tasks with any status match the filter. | [optional]
165
- **filter_spec_targets** | [**Array&lt;Object&gt;**](Object.md)| Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter. | [optional]
163
+ **filter_spec_targets** | [**Array&lt;FilterSpecTargets&gt;**](FilterSpecTargets.md)| Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter. | [optional]
166
164
  **filter_spec_users** | [**Array&lt;String&gt;**](String.md)| Users who must have initiated the operation for the associated task to match the filter (see CommonInfo.user). If unset or empty, tasks associated with operations initiated by any user match the filter. | [optional]
167
165
 
168
166
  ### Return type
@@ -340,23 +340,21 @@ module VSphereAutomation
340
340
  end
341
341
  # 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.
342
342
  # @param category_id The identifier of the input category.
343
- # @param action ~action&#x3D;remove-from-used-by
344
343
  # @param request_body
345
344
  # @param [Hash] opts the optional parameters
346
345
  # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
347
- def remove_from_used_by(category_id, action, request_body, opts = {})
348
- remove_from_used_by_with_http_info(category_id, action, request_body, opts)
346
+ def remove_from_used_by(category_id, request_body, opts = {})
347
+ remove_from_used_by_with_http_info(category_id, request_body, opts)
349
348
  nil
350
349
  end
351
350
 
352
351
  # 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.
353
352
  # @api private
354
353
  # @param category_id The identifier of the input category.
355
- # @param action ~action&#x3D;remove-from-used-by
356
354
  # @param request_body
357
355
  # @param [Hash] opts the optional parameters
358
356
  # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
359
- def remove_from_used_by_with_http_info(category_id, action, request_body, opts = {})
357
+ def remove_from_used_by_with_http_info(category_id, request_body, opts = {})
360
358
  if @api_client.config.debugging
361
359
  @api_client.config.logger.debug 'Calling API: TaggingCategoryApi.remove_from_used_by ...'
362
360
  end
@@ -364,24 +362,15 @@ module VSphereAutomation
364
362
  if @api_client.config.client_side_validation && category_id.nil?
365
363
  fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingCategoryApi.remove_from_used_by"
366
364
  end
367
- # verify the required parameter 'action' is set
368
- if @api_client.config.client_side_validation && action.nil?
369
- fail ArgumentError, "Missing the required parameter 'action' when calling TaggingCategoryApi.remove_from_used_by"
370
- end
371
- # verify enum value
372
- if @api_client.config.client_side_validation && !['remove-from-used-by'].include?(action)
373
- fail ArgumentError, "invalid value for 'action', must be one of remove-from-used-by"
374
- end
375
365
  # verify the required parameter 'request_body' is set
376
366
  if @api_client.config.client_side_validation && request_body.nil?
377
367
  fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingCategoryApi.remove_from_used_by"
378
368
  end
379
369
  # resource path
380
- local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
370
+ local_var_path = '/com/vmware/cis/tagging/category/id:{category_id}?~action=remove-from-used-by'.sub('{' + 'category_id' + '}', category_id.to_s)
381
371
 
382
372
  # query parameters
383
373
  query_params = {}
384
- query_params[:'~action'] = action
385
374
 
386
375
  # header parameters
387
376
  header_params = {}
@@ -18,23 +18,21 @@ module VSphereAutomation
18
18
  end
19
19
  # Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
20
20
  # @param tag_id The identifier of the input tag.
21
- # @param action ~action&#x3D;add-to-used-by
22
21
  # @param request_body
23
22
  # @param [Hash] opts the optional parameters
24
23
  # @return [|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
25
- def add_to_used_by(tag_id, action, request_body, opts = {})
26
- add_to_used_by_with_http_info(tag_id, action, request_body, opts)
24
+ def add_to_used_by(tag_id, request_body, opts = {})
25
+ add_to_used_by_with_http_info(tag_id, request_body, opts)
27
26
  nil
28
27
  end
29
28
 
30
29
  # Adds the {@param.name usedByEntity} to the {@link TagModel#usedBy} subscribers {@term set}. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes a no-op. To invoke this {@term operation}, you need the modify {@link TagModel#usedBy} privilege on the tag.
31
30
  # @api private
32
31
  # @param tag_id The identifier of the input tag.
33
- # @param action ~action&#x3D;add-to-used-by
34
32
  # @param request_body
35
33
  # @param [Hash] opts the optional parameters
36
34
  # @return [Array<(|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
37
- def add_to_used_by_with_http_info(tag_id, action, request_body, opts = {})
35
+ def add_to_used_by_with_http_info(tag_id, request_body, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: TaggingTagApi.add_to_used_by ...'
40
38
  end
@@ -42,24 +40,15 @@ module VSphereAutomation
42
40
  if @api_client.config.client_side_validation && tag_id.nil?
43
41
  fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagApi.add_to_used_by"
44
42
  end
45
- # verify the required parameter 'action' is set
46
- if @api_client.config.client_side_validation && action.nil?
47
- fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagApi.add_to_used_by"
48
- end
49
- # verify enum value
50
- if @api_client.config.client_side_validation && !['add-to-used-by'].include?(action)
51
- fail ArgumentError, "invalid value for 'action', must be one of add-to-used-by"
52
- end
53
43
  # verify the required parameter 'request_body' is set
54
44
  if @api_client.config.client_side_validation && request_body.nil?
55
45
  fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagApi.add_to_used_by"
56
46
  end
57
47
  # resource path
58
- local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}'.sub('{' + 'tag_id' + '}', tag_id.to_s)
48
+ local_var_path = '/com/vmware/cis/tagging/tag/id:{tag_id}?~action=add-to-used-by'.sub('{' + 'tag_id' + '}', tag_id.to_s)
59
49
 
60
50
  # query parameters
61
51
  query_params = {}
62
- query_params[:'~action'] = action
63
52
 
64
53
  # header parameters
65
54
  header_params = {}
@@ -297,21 +286,19 @@ module VSphereAutomation
297
286
  end
298
287
  # Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
299
288
  # @param category_id The identifier of the input category.
300
- # @param action ~action&#x3D;list-tags-for-category
301
289
  # @param [Hash] opts the optional parameters
302
290
  # @return [CisTaggingTagListTagsForCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
303
- def list_tags_for_category(category_id, action, opts = {})
304
- data, _status_code, _headers = list_tags_for_category_with_http_info(category_id, action, opts)
291
+ def list_tags_for_category(category_id, opts = {})
292
+ data, _status_code, _headers = list_tags_for_category_with_http_info(category_id, opts)
305
293
  data
306
294
  end
307
295
 
308
296
  # Enumerates all tags for the given category. To invoke this {@term operation}, you need the read privilege on the given category and the individual tags in that category.
309
297
  # @api private
310
298
  # @param category_id The identifier of the input category.
311
- # @param action ~action&#x3D;list-tags-for-category
312
299
  # @param [Hash] opts the optional parameters
313
300
  # @return [Array<(CisTaggingTagListTagsForCategoryResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
314
- def list_tags_for_category_with_http_info(category_id, action, opts = {})
301
+ def list_tags_for_category_with_http_info(category_id, opts = {})
315
302
  if @api_client.config.debugging
316
303
  @api_client.config.logger.debug 'Calling API: TaggingTagApi.list_tags_for_category ...'
317
304
  end
@@ -319,20 +306,11 @@ module VSphereAutomation
319
306
  if @api_client.config.client_side_validation && category_id.nil?
320
307
  fail ArgumentError, "Missing the required parameter 'category_id' when calling TaggingTagApi.list_tags_for_category"
321
308
  end
322
- # verify the required parameter 'action' is set
323
- if @api_client.config.client_side_validation && action.nil?
324
- fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagApi.list_tags_for_category"
325
- end
326
- # verify enum value
327
- if @api_client.config.client_side_validation && !['list-tags-for-category'].include?(action)
328
- fail ArgumentError, "invalid value for 'action', must be one of list-tags-for-category"
329
- end
330
309
  # resource path
331
- local_var_path = '/com/vmware/cis/tagging/tag/id:{category_id}'.sub('{' + 'category_id' + '}', category_id.to_s)
310
+ local_var_path = '/com/vmware/cis/tagging/tag/id:{category_id}?~action=list-tags-for-category'.sub('{' + 'category_id' + '}', category_id.to_s)
332
311
 
333
312
  # query parameters
334
313
  query_params = {}
335
- query_params[:'~action'] = action
336
314
 
337
315
  # header parameters
338
316
  header_params = {}
@@ -132,23 +132,21 @@ module VSphereAutomation
132
132
  end
133
133
  # 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.
134
134
  # @param tag_id The identifier of the input tag.
135
- # @param action ~action&#x3D;attach-tag-to-multiple-objects
136
135
  # @param request_body
137
136
  # @param [Hash] opts the optional parameters
138
137
  # @return [CisTaggingTagAssociationAttachTagToMultipleObjectsResult|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
139
- def attach_tag_to_multiple_objects(tag_id, action, request_body, opts = {})
140
- data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id, action, request_body, opts)
138
+ def attach_tag_to_multiple_objects(tag_id, request_body, opts = {})
139
+ data, _status_code, _headers = attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts)
141
140
  data
142
141
  end
143
142
 
144
143
  # 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.
145
144
  # @api private
146
145
  # @param tag_id The identifier of the input tag.
147
- # @param action ~action&#x3D;attach-tag-to-multiple-objects
148
146
  # @param request_body
149
147
  # @param [Hash] opts the optional parameters
150
148
  # @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, action, request_body, opts = {})
149
+ def attach_tag_to_multiple_objects_with_http_info(tag_id, request_body, opts = {})
152
150
  if @api_client.config.debugging
153
151
  @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.attach_tag_to_multiple_objects ...'
154
152
  end
@@ -156,24 +154,15 @@ module VSphereAutomation
156
154
  if @api_client.config.client_side_validation && tag_id.nil?
157
155
  fail ArgumentError, "Missing the required parameter 'tag_id' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
158
156
  end
159
- # verify the required parameter 'action' is set
160
- if @api_client.config.client_side_validation && action.nil?
161
- fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
162
- end
163
- # verify enum value
164
- if @api_client.config.client_side_validation && !['attach-tag-to-multiple-objects'].include?(action)
165
- fail ArgumentError, "invalid value for 'action', must be one of attach-tag-to-multiple-objects"
166
- end
167
157
  # verify the required parameter 'request_body' is set
168
158
  if @api_client.config.client_side_validation && request_body.nil?
169
159
  fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.attach_tag_to_multiple_objects"
170
160
  end
171
161
  # resource path
172
- local_var_path = '/com/vmware/cis/tagging/tag-association/id:{tag_id}'.sub('{' + 'tag_id' + '}', tag_id.to_s)
162
+ 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)
173
163
 
174
164
  # query parameters
175
165
  query_params = {}
176
- query_params[:'~action'] = action
177
166
 
178
167
  # header parameters
179
168
  header_params = {}
@@ -604,43 +593,32 @@ module VSphereAutomation
604
593
  return data, status_code, headers
605
594
  end
606
595
  # 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
- # @param action ~action&#x3D;list-attached-tags-on-objects
608
596
  # @param request_body
609
597
  # @param [Hash] opts the optional parameters
610
598
  # @return [CisTaggingTagAssociationListAttachedTagsOnObjectsResult|]
611
- def list_attached_tags_on_objects(action, request_body, opts = {})
612
- data, _status_code, _headers = list_attached_tags_on_objects_with_http_info(action, request_body, opts)
599
+ def list_attached_tags_on_objects(request_body, opts = {})
600
+ data, _status_code, _headers = list_attached_tags_on_objects_with_http_info(request_body, opts)
613
601
  data
614
602
  end
615
603
 
616
604
  # 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.
617
605
  # @api private
618
- # @param action ~action&#x3D;list-attached-tags-on-objects
619
606
  # @param request_body
620
607
  # @param [Hash] opts the optional parameters
621
608
  # @return [Array<(CisTaggingTagAssociationListAttachedTagsOnObjectsResult|, Fixnum, Hash)>] data, response status code and response headers
622
- def list_attached_tags_on_objects_with_http_info(action, request_body, opts = {})
609
+ def list_attached_tags_on_objects_with_http_info(request_body, opts = {})
623
610
  if @api_client.config.debugging
624
611
  @api_client.config.logger.debug 'Calling API: TaggingTagAssociationApi.list_attached_tags_on_objects ...'
625
612
  end
626
- # verify the required parameter 'action' is set
627
- if @api_client.config.client_side_validation && action.nil?
628
- fail ArgumentError, "Missing the required parameter 'action' when calling TaggingTagAssociationApi.list_attached_tags_on_objects"
629
- end
630
- # verify enum value
631
- if @api_client.config.client_side_validation && !['list-attached-tags-on-objects'].include?(action)
632
- fail ArgumentError, "invalid value for 'action', must be one of list-attached-tags-on-objects"
633
- end
634
613
  # verify the required parameter 'request_body' is set
635
614
  if @api_client.config.client_side_validation && request_body.nil?
636
615
  fail ArgumentError, "Missing the required parameter 'request_body' when calling TaggingTagAssociationApi.list_attached_tags_on_objects"
637
616
  end
638
617
  # resource path
639
- local_var_path = '/com/vmware/cis/tagging/tag-association'
618
+ local_var_path = '/com/vmware/cis/tagging/tag-association?~action=list-attached-tags-on-objects'
640
619
 
641
620
  # query parameters
642
621
  query_params = {}
643
- query_params[:'~action'] = action
644
622
 
645
623
  # header parameters
646
624
  header_params = {}
@@ -18,21 +18,19 @@ module VSphereAutomation
18
18
  end
19
19
  # Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
20
20
  # @param task Task identifier. The parameter must be an identifier for the resource type: cis.task.
21
- # @param action action&#x3D;cancel
22
21
  # @param [Hash] opts the optional parameters
23
22
  # @return [|VapiStdErrorsUnsupportedError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|nil]
24
- def cancel(task, action, opts = {})
25
- cancel_with_http_info(task, action, opts)
23
+ def cancel(task, opts = {})
24
+ cancel_with_http_info(task, opts)
26
25
  nil
27
26
  end
28
27
 
29
28
  # Cancel a running operation associated with the task. This is the best effort attempt. Operation may not be cancelled anymore once it reaches certain stage.
30
29
  # @api private
31
30
  # @param task Task identifier. The parameter must be an identifier for the resource type: cis.task.
32
- # @param action action&#x3D;cancel
33
31
  # @param [Hash] opts the optional parameters
34
32
  # @return [Array<(|VapiStdErrorsUnsupportedError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|nil, Fixnum, Hash)>] nil, response status code and response headers
35
- def cancel_with_http_info(task, action, opts = {})
33
+ def cancel_with_http_info(task, opts = {})
36
34
  if @api_client.config.debugging
37
35
  @api_client.config.logger.debug 'Calling API: TasksApi.cancel ...'
38
36
  end
@@ -40,20 +38,11 @@ module VSphereAutomation
40
38
  if @api_client.config.client_side_validation && task.nil?
41
39
  fail ArgumentError, "Missing the required parameter 'task' when calling TasksApi.cancel"
42
40
  end
43
- # verify the required parameter 'action' is set
44
- if @api_client.config.client_side_validation && action.nil?
45
- fail ArgumentError, "Missing the required parameter 'action' when calling TasksApi.cancel"
46
- end
47
- # verify enum value
48
- if @api_client.config.client_side_validation && !['cancel'].include?(action)
49
- fail ArgumentError, "invalid value for 'action', must be one of cancel"
50
- end
51
41
  # resource path
52
- local_var_path = '/cis/tasks/{task}'.sub('{' + 'task' + '}', task.to_s)
42
+ local_var_path = '/cis/tasks/{task}?action=cancel'.sub('{' + 'task' + '}', task.to_s)
53
43
 
54
44
  # query parameters
55
45
  query_params = {}
56
- query_params[:'action'] = action
57
46
 
58
47
  # header parameters
59
48
  header_params = {}
@@ -148,7 +137,7 @@ module VSphereAutomation
148
137
  # @option opts [Boolean] :result_spec_exclude_result If true, the result will not be included in the task information, otherwise it will be included. If unset, the result of the operation will be included in the task information.
149
138
  # @option opts [Array<String>] :filter_spec_services Identifiers of services. Tasks created by operations in these services match the filter (see CommonInfo.service). This field may be unset if Tasks.FilterSpec.tasks is specified. Currently all services must be from the same provider. If this field is unset or empty, tasks for all services will match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: vapi.service. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: vapi.service.
150
139
  # @option opts [Array<String>] :filter_spec_status Status that a task must have to match the filter (see CommonInfo.status). If unset or empty, tasks with any status match the filter.
151
- # @option opts [Array<Object>] :filter_spec_targets Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
140
+ # @option opts [Array<FilterSpecTargets>] :filter_spec_targets Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
152
141
  # @option opts [Array<String>] :filter_spec_users Users who must have initiated the operation for the associated task to match the filter (see CommonInfo.user). If unset or empty, tasks associated with operations initiated by any user match the filter.
153
142
  # @return [CisTasksListResult|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsServiceUnavailableError|]
154
143
  def list(opts = {})
@@ -164,7 +153,7 @@ module VSphereAutomation
164
153
  # @option opts [Boolean] :result_spec_exclude_result If true, the result will not be included in the task information, otherwise it will be included. If unset, the result of the operation will be included in the task information.
165
154
  # @option opts [Array<String>] :filter_spec_services Identifiers of services. Tasks created by operations in these services match the filter (see CommonInfo.service). This field may be unset if Tasks.FilterSpec.tasks is specified. Currently all services must be from the same provider. If this field is unset or empty, tasks for all services will match the filter. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: vapi.service. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: vapi.service.
166
155
  # @option opts [Array<String>] :filter_spec_status Status that a task must have to match the filter (see CommonInfo.status). If unset or empty, tasks with any status match the filter.
167
- # @option opts [Array<Object>] :filter_spec_targets Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
156
+ # @option opts [Array<FilterSpecTargets>] :filter_spec_targets Identifiers of the targets the operation for the associated task created or was performed on (see CommonInfo.target). If unset or empty, tasks associated with operations on any target match the filter.
168
157
  # @option opts [Array<String>] :filter_spec_users Users who must have initiated the operation for the associated task to match the filter (see CommonInfo.user). If unset or empty, tasks associated with operations initiated by any user match the filter.
169
158
  # @return [Array<(CisTasksListResult|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsServiceUnavailableError|, Fixnum, Hash)>] data, response status code and response headers
170
159
  def list_with_http_info(opts = {})
@@ -29,7 +29,7 @@ module VSphereAutomation
29
29
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
30
30
  def initialize(config = Configuration.default)
31
31
  @config = config
32
- @user_agent = "SDK/0.2.2 Ruby/#{RUBY_VERSION} (#{Gem::Platform.local.os}; #{Gem::Platform.local.version}; #{Gem::Platform.local.cpu})"
32
+ @user_agent = "SDK/0.3.0 Ruby/#{RUBY_VERSION} (#{Gem::Platform.local.os}; #{Gem::Platform.local.version}; #{Gem::Platform.local.cpu})"
33
33
  @default_headers = {
34
34
  'Content-Type' => 'application/json',
35
35
  'User-Agent' => @user_agent
@@ -23,7 +23,7 @@ module VSphereAutomation
23
23
  # Attribute type mapping.
24
24
  def self.openapi_types
25
25
  {
26
- :'value' => :'Array<Object>'
26
+ :'value' => :'Array<CisTasksListResultValue>'
27
27
  }
28
28
  end
29
29
 
@@ -8,6 +8,6 @@
8
8
 
9
9
  module VSphereAutomation
10
10
  module CIS
11
- VERSION = '0.2.2'
11
+ VERSION = '0.3.0'
12
12
  end
13
13
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.license = 'MIT'
24
24
  s.required_ruby_version = ">= 2.3"
25
25
 
26
- s.add_runtime_dependency 'vsphere-automation-runtime', '~> 0.2.2'
26
+ s.add_runtime_dependency 'vsphere-automation-runtime', '~> 0.3.0'
27
27
 
28
28
  s.add_development_dependency 'bundler', '~> 2.0'
29
29
  s.add_development_dependency 'pry', '~> 0.12.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vsphere-automation-cis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vsphere-automation-runtime
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.2
19
+ version: 0.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.2
26
+ version: 0.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -314,6 +314,7 @@ files:
314
314
  - lib/vsphere-automation-cis/models/vapi_std_localizable_message.rb
315
315
  - lib/vsphere-automation-cis/version.rb
316
316
  - pkg/vsphere-automation-cis-0.2.1.gem
317
+ - pkg/vsphere-automation-cis-0.2.2.gem
317
318
  - spec/api/session_api_spec.rb
318
319
  - spec/api/tagging_category_api_spec.rb
319
320
  - spec/api/tagging_tag_api_spec.rb