vsphere-automation-cis 0.4.2 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +20 -0
  3. data/lib/vsphere-automation-cis/api_client.rb +260 -0
  4. data/lib/vsphere-automation-cis/api_error.rb +34 -0
  5. data/lib/vsphere-automation-cis/configuration.rb +212 -0
  6. data/lib/vsphere-automation-cis/version.rb +1 -1
  7. metadata +13 -280
  8. data/Gemfile +0 -13
  9. data/Gemfile.lock +0 -78
  10. data/README.md +0 -180
  11. data/Rakefile +0 -18
  12. data/docs/CisSessionCreateResult.md +0 -8
  13. data/docs/CisSessionInfo.md +0 -10
  14. data/docs/CisSessionResult.md +0 -8
  15. data/docs/CisTaggingCategoryAddToUsedBy.md +0 -8
  16. data/docs/CisTaggingCategoryCreate.md +0 -8
  17. data/docs/CisTaggingCategoryCreateResult.md +0 -8
  18. data/docs/CisTaggingCategoryCreateSpec.md +0 -12
  19. data/docs/CisTaggingCategoryListResult.md +0 -8
  20. data/docs/CisTaggingCategoryListUsedCategories.md +0 -8
  21. data/docs/CisTaggingCategoryListUsedCategoriesResult.md +0 -8
  22. data/docs/CisTaggingCategoryModel.md +0 -13
  23. data/docs/CisTaggingCategoryModelCardinality.md +0 -7
  24. data/docs/CisTaggingCategoryRemoveFromUsedBy.md +0 -8
  25. data/docs/CisTaggingCategoryResult.md +0 -8
  26. data/docs/CisTaggingCategoryUpdate.md +0 -8
  27. data/docs/CisTaggingCategoryUpdateSpec.md +0 -11
  28. data/docs/CisTaggingTagAddToUsedBy.md +0 -8
  29. data/docs/CisTaggingTagAssociationAttach.md +0 -8
  30. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObject.md +0 -9
  31. data/docs/CisTaggingTagAssociationAttachMultipleTagsToObjectResult.md +0 -8
  32. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjects.md +0 -8
  33. data/docs/CisTaggingTagAssociationAttachTagToMultipleObjectsResult.md +0 -8
  34. data/docs/CisTaggingTagAssociationBatchResult.md +0 -9
  35. data/docs/CisTaggingTagAssociationDetach.md +0 -8
  36. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObject.md +0 -9
  37. data/docs/CisTaggingTagAssociationDetachMultipleTagsFromObjectResult.md +0 -8
  38. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjects.md +0 -8
  39. data/docs/CisTaggingTagAssociationDetachTagFromMultipleObjectsResult.md +0 -8
  40. data/docs/CisTaggingTagAssociationListAttachableTags.md +0 -8
  41. data/docs/CisTaggingTagAssociationListAttachableTagsResult.md +0 -8
  42. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTags.md +0 -8
  43. data/docs/CisTaggingTagAssociationListAttachedObjectsOnTagsResult.md +0 -8
  44. data/docs/CisTaggingTagAssociationListAttachedObjectsResult.md +0 -8
  45. data/docs/CisTaggingTagAssociationListAttachedTags.md +0 -8
  46. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjects.md +0 -8
  47. data/docs/CisTaggingTagAssociationListAttachedTagsOnObjectsResult.md +0 -8
  48. data/docs/CisTaggingTagAssociationListAttachedTagsResult.md +0 -8
  49. data/docs/CisTaggingTagAssociationObjectToTags.md +0 -9
  50. data/docs/CisTaggingTagAssociationTagToObjects.md +0 -9
  51. data/docs/CisTaggingTagCreate.md +0 -8
  52. data/docs/CisTaggingTagCreateResult.md +0 -8
  53. data/docs/CisTaggingTagCreateSpec.md +0 -11
  54. data/docs/CisTaggingTagListResult.md +0 -8
  55. data/docs/CisTaggingTagListTagsForCategoryResult.md +0 -8
  56. data/docs/CisTaggingTagListUsedTags.md +0 -8
  57. data/docs/CisTaggingTagListUsedTagsResult.md +0 -8
  58. data/docs/CisTaggingTagModel.md +0 -12
  59. data/docs/CisTaggingTagRemoveFromUsedBy.md +0 -8
  60. data/docs/CisTaggingTagResult.md +0 -8
  61. data/docs/CisTaggingTagUpdate.md +0 -8
  62. data/docs/CisTaggingTagUpdateSpec.md +0 -9
  63. data/docs/CisTaskInfo.md +0 -19
  64. data/docs/CisTaskProgress.md +0 -10
  65. data/docs/CisTaskStatus.md +0 -7
  66. data/docs/CisTasksFilterSpec.md +0 -12
  67. data/docs/CisTasksGetSpec.md +0 -9
  68. data/docs/CisTasksListResult.md +0 -8
  69. data/docs/CisTasksListResultValue.md +0 -9
  70. data/docs/CisTasksResult.md +0 -8
  71. data/docs/FilterSpecTargets.md +0 -9
  72. data/docs/SessionApi.md +0 -151
  73. data/docs/TaggingCategoryApi.md +0 -464
  74. data/docs/TaggingTagApi.md +0 -515
  75. data/docs/TaggingTagAssociationApi.md +0 -575
  76. data/docs/TasksApi.md +0 -180
  77. data/docs/VapiStdDynamicID.md +0 -9
  78. data/docs/VapiStdErrorsAlreadyExists.md +0 -9
  79. data/docs/VapiStdErrorsAlreadyExistsError.md +0 -9
  80. data/docs/VapiStdErrorsError.md +0 -9
  81. data/docs/VapiStdErrorsErrorError.md +0 -9
  82. data/docs/VapiStdErrorsInvalidArgument.md +0 -9
  83. data/docs/VapiStdErrorsInvalidArgumentError.md +0 -9
  84. data/docs/VapiStdErrorsNotAllowedInCurrentState.md +0 -9
  85. data/docs/VapiStdErrorsNotAllowedInCurrentStateError.md +0 -9
  86. data/docs/VapiStdErrorsNotFound.md +0 -9
  87. data/docs/VapiStdErrorsNotFoundError.md +0 -9
  88. data/docs/VapiStdErrorsResourceInaccessible.md +0 -9
  89. data/docs/VapiStdErrorsResourceInaccessibleError.md +0 -9
  90. data/docs/VapiStdErrorsServiceUnavailable.md +0 -9
  91. data/docs/VapiStdErrorsServiceUnavailableError.md +0 -9
  92. data/docs/VapiStdErrorsUnauthenticated.md +0 -9
  93. data/docs/VapiStdErrorsUnauthenticatedError.md +0 -9
  94. data/docs/VapiStdErrorsUnauthorized.md +0 -9
  95. data/docs/VapiStdErrorsUnauthorizedError.md +0 -9
  96. data/docs/VapiStdErrorsUnsupported.md +0 -9
  97. data/docs/VapiStdErrorsUnsupportedError.md +0 -9
  98. data/docs/VapiStdLocalizableMessage.md +0 -10
  99. data/git_push.sh +0 -55
  100. data/pkg/vsphere-automation-cis-0.4.1.gem +0 -0
  101. data/pkg/vsphere-automation-cis-0.4.2.gem +0 -0
  102. data/spec/api/session_api_spec.rb +0 -62
  103. data/spec/api/tagging_category_api_spec.rb +0 -132
  104. data/spec/api/tagging_tag_api_spec.rb +0 -143
  105. data/spec/api/tagging_tag_association_api_spec.rb +0 -156
  106. data/spec/api/tasks_api_spec.rb +0 -72
  107. data/spec/models/cis_session_create_result_spec.rb +0 -37
  108. data/spec/models/cis_session_info_spec.rb +0 -49
  109. data/spec/models/cis_session_result_spec.rb +0 -37
  110. data/spec/models/cis_tagging_category_add_to_used_by_spec.rb +0 -37
  111. data/spec/models/cis_tagging_category_create_result_spec.rb +0 -37
  112. data/spec/models/cis_tagging_category_create_spec.rb +0 -37
  113. data/spec/models/cis_tagging_category_create_spec_spec.rb +0 -61
  114. data/spec/models/cis_tagging_category_list_result_spec.rb +0 -37
  115. data/spec/models/cis_tagging_category_list_used_categories_result_spec.rb +0 -37
  116. data/spec/models/cis_tagging_category_list_used_categories_spec.rb +0 -37
  117. data/spec/models/cis_tagging_category_model_cardinality_spec.rb +0 -31
  118. data/spec/models/cis_tagging_category_model_spec.rb +0 -67
  119. data/spec/models/cis_tagging_category_remove_from_used_by_spec.rb +0 -37
  120. data/spec/models/cis_tagging_category_result_spec.rb +0 -37
  121. data/spec/models/cis_tagging_category_update_spec.rb +0 -37
  122. data/spec/models/cis_tagging_category_update_spec_spec.rb +0 -55
  123. data/spec/models/cis_tagging_tag_add_to_used_by_spec.rb +0 -37
  124. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_result_spec.rb +0 -37
  125. data/spec/models/cis_tagging_tag_association_attach_multiple_tags_to_object_spec.rb +0 -43
  126. data/spec/models/cis_tagging_tag_association_attach_spec.rb +0 -37
  127. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_result_spec.rb +0 -37
  128. data/spec/models/cis_tagging_tag_association_attach_tag_to_multiple_objects_spec.rb +0 -37
  129. data/spec/models/cis_tagging_tag_association_batch_result_spec.rb +0 -43
  130. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_result_spec.rb +0 -37
  131. data/spec/models/cis_tagging_tag_association_detach_multiple_tags_from_object_spec.rb +0 -43
  132. data/spec/models/cis_tagging_tag_association_detach_spec.rb +0 -37
  133. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_result_spec.rb +0 -37
  134. data/spec/models/cis_tagging_tag_association_detach_tag_from_multiple_objects_spec.rb +0 -37
  135. data/spec/models/cis_tagging_tag_association_list_attachable_tags_result_spec.rb +0 -37
  136. data/spec/models/cis_tagging_tag_association_list_attachable_tags_spec.rb +0 -37
  137. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_result_spec.rb +0 -37
  138. data/spec/models/cis_tagging_tag_association_list_attached_objects_on_tags_spec.rb +0 -37
  139. data/spec/models/cis_tagging_tag_association_list_attached_objects_result_spec.rb +0 -37
  140. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_result_spec.rb +0 -37
  141. data/spec/models/cis_tagging_tag_association_list_attached_tags_on_objects_spec.rb +0 -37
  142. data/spec/models/cis_tagging_tag_association_list_attached_tags_result_spec.rb +0 -37
  143. data/spec/models/cis_tagging_tag_association_list_attached_tags_spec.rb +0 -37
  144. data/spec/models/cis_tagging_tag_association_object_to_tags_spec.rb +0 -43
  145. data/spec/models/cis_tagging_tag_association_tag_to_objects_spec.rb +0 -43
  146. data/spec/models/cis_tagging_tag_create_result_spec.rb +0 -37
  147. data/spec/models/cis_tagging_tag_create_spec.rb +0 -37
  148. data/spec/models/cis_tagging_tag_create_spec_spec.rb +0 -55
  149. data/spec/models/cis_tagging_tag_list_result_spec.rb +0 -37
  150. data/spec/models/cis_tagging_tag_list_tags_for_category_result_spec.rb +0 -37
  151. data/spec/models/cis_tagging_tag_list_used_tags_result_spec.rb +0 -37
  152. data/spec/models/cis_tagging_tag_list_used_tags_spec.rb +0 -37
  153. data/spec/models/cis_tagging_tag_model_spec.rb +0 -61
  154. data/spec/models/cis_tagging_tag_remove_from_used_by_spec.rb +0 -37
  155. data/spec/models/cis_tagging_tag_result_spec.rb +0 -37
  156. data/spec/models/cis_tagging_tag_update_spec.rb +0 -37
  157. data/spec/models/cis_tagging_tag_update_spec_spec.rb +0 -43
  158. data/spec/models/cis_task_info_spec.rb +0 -103
  159. data/spec/models/cis_task_progress_spec.rb +0 -49
  160. data/spec/models/cis_task_status_spec.rb +0 -31
  161. data/spec/models/cis_tasks_filter_spec_spec.rb +0 -61
  162. data/spec/models/cis_tasks_get_spec_spec.rb +0 -43
  163. data/spec/models/cis_tasks_list_result_spec.rb +0 -37
  164. data/spec/models/cis_tasks_list_result_value_spec.rb +0 -43
  165. data/spec/models/cis_tasks_result_spec.rb +0 -37
  166. data/spec/models/filter_spec_targets_spec.rb +0 -43
  167. data/spec/models/vapi_std_dynamic_id_spec.rb +0 -43
  168. data/spec/models/vapi_std_errors_already_exists_error_spec.rb +0 -43
  169. data/spec/models/vapi_std_errors_already_exists_spec.rb +0 -43
  170. data/spec/models/vapi_std_errors_error_error_spec.rb +0 -43
  171. data/spec/models/vapi_std_errors_error_spec.rb +0 -43
  172. data/spec/models/vapi_std_errors_invalid_argument_error_spec.rb +0 -43
  173. data/spec/models/vapi_std_errors_invalid_argument_spec.rb +0 -43
  174. data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +0 -43
  175. data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +0 -43
  176. data/spec/models/vapi_std_errors_not_found_error_spec.rb +0 -43
  177. data/spec/models/vapi_std_errors_not_found_spec.rb +0 -43
  178. data/spec/models/vapi_std_errors_resource_inaccessible_error_spec.rb +0 -43
  179. data/spec/models/vapi_std_errors_resource_inaccessible_spec.rb +0 -43
  180. data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +0 -43
  181. data/spec/models/vapi_std_errors_service_unavailable_spec.rb +0 -43
  182. data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +0 -43
  183. data/spec/models/vapi_std_errors_unauthenticated_spec.rb +0 -43
  184. data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +0 -43
  185. data/spec/models/vapi_std_errors_unauthorized_spec.rb +0 -43
  186. data/spec/models/vapi_std_errors_unsupported_error_spec.rb +0 -43
  187. data/spec/models/vapi_std_errors_unsupported_spec.rb +0 -43
  188. data/spec/models/vapi_std_localizable_message_spec.rb +0 -49
  189. data/spec/spec_helper.rb +0 -110
  190. data/vsphere-automation-cis.gemspec +0 -39
@@ -1,62 +0,0 @@
1
- # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
- # SPDX-License-Identifier: MIT
3
-
4
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
-
6
- # cis - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
-
9
- require 'spec_helper'
10
- require 'json'
11
-
12
- # Unit tests for VSphereAutomation::CIS::SessionApi
13
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
14
- # Please update as you see appropriate
15
- describe 'SessionApi' do
16
- before do
17
- # run before each test
18
- @instance = VSphereAutomation::CIS::SessionApi.new
19
- end
20
-
21
- after do
22
- # run after each test
23
- end
24
-
25
- describe 'test an instance of SessionApi' do
26
- it 'should create an instance of SessionApi' do
27
- expect(@instance).to be_instance_of(VSphereAutomation::CIS::SessionApi)
28
- end
29
- end
30
-
31
- # unit tests for create
32
- # Creates a session with the API. This is the equivalent of login. This operation exchanges user credentials supplied in the security context for a session identifier that is to be used for authenticating subsequent calls. To authenticate subsequent calls clients are expected to include the session key.
33
- # @param vmware_use_header_authn Custom header to protect against CSRF attacks in browser based clients
34
- # @param [Hash] opts the optional parameters
35
- # @return [CisSessionCreateResult]
36
- describe 'create test' do
37
- it 'should work' do
38
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
39
- end
40
- end
41
-
42
- # unit tests for delete
43
- # Terminates the validity of a session token. This is the equivalent of log out. A session identifier is expected as part of the request.
44
- # @param [Hash] opts the optional parameters
45
- # @return [nil]
46
- describe 'delete test' do
47
- it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
- end
50
- end
51
-
52
- # unit tests for get
53
- # Returns information about the current session. This operation expects a valid session identifier to be supplied. A side effect of invoking this operation may be a change to the session's last accessed time to the current time if this is supported by the session implementation. Invoking any other operation in the API will also update the session's last accessed time. This API is meant to serve the needs of various front end projects that may want to display the name of the user. Examples of this include various web based user interfaces and logging facilities.
54
- # @param [Hash] opts the optional parameters
55
- # @return [CisSessionResult]
56
- describe 'get test' do
57
- it 'should work' do
58
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
- end
60
- end
61
-
62
- end
@@ -1,132 +0,0 @@
1
- # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
- # SPDX-License-Identifier: MIT
3
-
4
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
-
6
- # cis - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
-
9
- require 'spec_helper'
10
- require 'json'
11
-
12
- # Unit tests for VSphereAutomation::CIS::TaggingCategoryApi
13
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
14
- # Please update as you see appropriate
15
- describe 'TaggingCategoryApi' do
16
- before do
17
- # run before each test
18
- @instance = VSphereAutomation::CIS::TaggingCategoryApi.new
19
- end
20
-
21
- after do
22
- # run after each test
23
- end
24
-
25
- describe 'test an instance of TaggingCategoryApi' do
26
- it 'should create an instance of TaggingCategoryApi' do
27
- expect(@instance).to be_instance_of(VSphereAutomation::CIS::TaggingCategoryApi)
28
- end
29
- end
30
-
31
- # unit tests for add_to_used_by
32
- # Adds the {@param.name usedByEntity} to the {@link CategoryModel#usedBy} subscribers {@term set} for the specified category. If the {@param.name usedByEntity} is already in the {@term set}, then this becomes an idempotent no-op. To invoke this {@term operation}, you need the modify {@link CategoryModel#usedBy} privilege on the category.
33
- # @param category_id The identifier of the input category.
34
- # @param request_body
35
- # @param [Hash] opts the optional parameters
36
- # @return [nil]
37
- describe 'add_to_used_by test' do
38
- it 'should work' do
39
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
- end
41
- end
42
-
43
- # unit tests for create
44
- # Creates a category. To invoke this {@term operation}, you need the create category privilege.
45
- # @param request_body
46
- # @param [Hash] opts the optional parameters
47
- # @return [CisTaggingCategoryCreateResult]
48
- describe 'create test' do
49
- it 'should work' do
50
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
- end
52
- end
53
-
54
- # unit tests for delete
55
- # Deletes an existing category. To invoke this {@term operation}, you need the delete privilege on the category.
56
- # @param category_id The identifier of category to be deleted.
57
- # @param [Hash] opts the optional parameters
58
- # @return [nil]
59
- describe 'delete test' do
60
- it 'should work' do
61
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
- end
63
- end
64
-
65
- # unit tests for get
66
- # Fetches the category information for the given category identifier. In order to view the category information, you need the read privilege on the category.
67
- # @param category_id The identifier of the input category.
68
- # @param [Hash] opts the optional parameters
69
- # @return [CisTaggingCategoryResult]
70
- describe 'get test' do
71
- it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
- end
74
- end
75
-
76
- # unit tests for list
77
- # 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.
78
- # @param [Hash] opts the optional parameters
79
- # @return [CisTaggingCategoryListResult]
80
- describe 'list test' do
81
- it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
- end
84
- end
85
-
86
- # unit tests for list_used_categories
87
- # 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.
88
- # @param request_body
89
- # @param [Hash] opts the optional parameters
90
- # @return [CisTaggingCategoryListUsedCategoriesResult]
91
- describe 'list_used_categories test' do
92
- it 'should work' do
93
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
- end
95
- end
96
-
97
- # unit tests for remove_from_used_by
98
- # 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.
99
- # @param category_id The identifier of the input category.
100
- # @param request_body
101
- # @param [Hash] opts the optional parameters
102
- # @return [nil]
103
- describe 'remove_from_used_by test' do
104
- it 'should work' do
105
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
- end
107
- end
108
-
109
- # unit tests for revoke_propagating_permissions
110
- # 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.
111
- # @param category_id The identifier of the input category.
112
- # @param [Hash] opts the optional parameters
113
- # @return [nil]
114
- describe 'revoke_propagating_permissions test' do
115
- it 'should work' do
116
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
- end
118
- end
119
-
120
- # unit tests for update
121
- # Updates an existing category. To invoke this {@term operation}, you need the edit privilege on the category.
122
- # @param category_id The identifier of the category to be updated.
123
- # @param request_body
124
- # @param [Hash] opts the optional parameters
125
- # @return [nil]
126
- describe 'update test' do
127
- it 'should work' do
128
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
129
- end
130
- end
131
-
132
- end
@@ -1,143 +0,0 @@
1
- # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
- # SPDX-License-Identifier: MIT
3
-
4
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
-
6
- # cis - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
-
9
- require 'spec_helper'
10
- require 'json'
11
-
12
- # Unit tests for VSphereAutomation::CIS::TaggingTagApi
13
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
14
- # Please update as you see appropriate
15
- describe 'TaggingTagApi' do
16
- before do
17
- # run before each test
18
- @instance = VSphereAutomation::CIS::TaggingTagApi.new
19
- end
20
-
21
- after do
22
- # run after each test
23
- end
24
-
25
- describe 'test an instance of TaggingTagApi' do
26
- it 'should create an instance of TaggingTagApi' do
27
- expect(@instance).to be_instance_of(VSphereAutomation::CIS::TaggingTagApi)
28
- end
29
- end
30
-
31
- # unit tests for add_to_used_by
32
- # 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.
33
- # @param tag_id The identifier of the input tag.
34
- # @param request_body
35
- # @param [Hash] opts the optional parameters
36
- # @return [nil]
37
- describe 'add_to_used_by test' do
38
- it 'should work' do
39
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
- end
41
- end
42
-
43
- # unit tests for create
44
- # Creates a tag. To invoke this {@term operation}, you need the create tag privilege on the input category.
45
- # @param request_body
46
- # @param [Hash] opts the optional parameters
47
- # @return [CisTaggingTagCreateResult]
48
- describe 'create test' do
49
- it 'should work' do
50
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
- end
52
- end
53
-
54
- # unit tests for delete
55
- # Deletes an existing tag. To invoke this {@term operation}, you need the delete privilege on the tag.
56
- # @param tag_id The identifier of the input tag.
57
- # @param [Hash] opts the optional parameters
58
- # @return [nil]
59
- describe 'delete test' do
60
- it 'should work' do
61
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
- end
63
- end
64
-
65
- # unit tests for get
66
- # 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.
67
- # @param tag_id The identifier of the input tag.
68
- # @param [Hash] opts the optional parameters
69
- # @return [CisTaggingTagResult]
70
- describe 'get test' do
71
- it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
- end
74
- end
75
-
76
- # unit tests for list
77
- # 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.
78
- # @param [Hash] opts the optional parameters
79
- # @return [CisTaggingTagListResult]
80
- describe 'list test' do
81
- it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
- end
84
- end
85
-
86
- # unit tests for list_tags_for_category
87
- # 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.
88
- # @param category_id The identifier of the input category.
89
- # @param [Hash] opts the optional parameters
90
- # @return [CisTaggingTagListTagsForCategoryResult]
91
- describe 'list_tags_for_category test' do
92
- it 'should work' do
93
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
- end
95
- end
96
-
97
- # unit tests for list_used_tags
98
- # 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.
99
- # @param request_body
100
- # @param [Hash] opts the optional parameters
101
- # @return [CisTaggingTagListUsedTagsResult]
102
- describe 'list_used_tags test' do
103
- it 'should work' do
104
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
- end
106
- end
107
-
108
- # unit tests for remove_from_used_by
109
- # 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.
110
- # @param tag_id The identifier of the input tag.
111
- # @param request_body
112
- # @param [Hash] opts the optional parameters
113
- # @return [nil]
114
- describe 'remove_from_used_by test' do
115
- it 'should work' do
116
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
- end
118
- end
119
-
120
- # unit tests for revoke_propagating_permissions
121
- # 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.
122
- # @param tag_id The identifier of the input tag.
123
- # @param [Hash] opts the optional parameters
124
- # @return [nil]
125
- describe 'revoke_propagating_permissions test' do
126
- it 'should work' do
127
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
- end
129
- end
130
-
131
- # unit tests for update
132
- # Updates an existing tag. To invoke this {@term operation}, you need the edit privilege on the tag.
133
- # @param tag_id The identifier of the input tag.
134
- # @param request_body
135
- # @param [Hash] opts the optional parameters
136
- # @return [nil]
137
- describe 'update test' do
138
- it 'should work' do
139
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
- end
141
- end
142
-
143
- end
@@ -1,156 +0,0 @@
1
- # Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
2
- # SPDX-License-Identifier: MIT
3
-
4
- # DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
5
-
6
- # cis - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
-
9
- require 'spec_helper'
10
- require 'json'
11
-
12
- # Unit tests for VSphereAutomation::CIS::TaggingTagAssociationApi
13
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
14
- # Please update as you see appropriate
15
- describe 'TaggingTagAssociationApi' do
16
- before do
17
- # run before each test
18
- @instance = VSphereAutomation::CIS::TaggingTagAssociationApi.new
19
- end
20
-
21
- after do
22
- # run after each test
23
- end
24
-
25
- describe 'test an instance of TaggingTagAssociationApi' do
26
- it 'should create an instance of TaggingTagAssociationApi' do
27
- expect(@instance).to be_instance_of(VSphereAutomation::CIS::TaggingTagAssociationApi)
28
- end
29
- end
30
-
31
- # unit tests for attach
32
- # 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.
33
- # @param tag_id The identifier of the input tag.
34
- # @param request_body
35
- # @param [Hash] opts the optional parameters
36
- # @return [nil]
37
- describe 'attach test' do
38
- it 'should work' do
39
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
- end
41
- end
42
-
43
- # unit tests for attach_multiple_tags_to_object
44
- # 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.
45
- # @param request_body
46
- # @param [Hash] opts the optional parameters
47
- # @return [CisTaggingTagAssociationAttachMultipleTagsToObjectResult]
48
- describe 'attach_multiple_tags_to_object test' do
49
- it 'should work' do
50
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
- end
52
- end
53
-
54
- # unit tests for attach_tag_to_multiple_objects
55
- # 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.
56
- # @param tag_id The identifier of the input tag.
57
- # @param request_body
58
- # @param [Hash] opts the optional parameters
59
- # @return [CisTaggingTagAssociationAttachTagToMultipleObjectsResult]
60
- describe 'attach_tag_to_multiple_objects test' do
61
- it 'should work' do
62
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
- end
64
- end
65
-
66
- # unit tests for detach
67
- # 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.
68
- # @param tag_id The identifier of the input tag.
69
- # @param request_body
70
- # @param [Hash] opts the optional parameters
71
- # @return [nil]
72
- describe 'detach test' do
73
- it 'should work' do
74
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
75
- end
76
- end
77
-
78
- # unit tests for detach_multiple_tags_from_object
79
- # 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.
80
- # @param request_body
81
- # @param [Hash] opts the optional parameters
82
- # @return [CisTaggingTagAssociationDetachMultipleTagsFromObjectResult]
83
- describe 'detach_multiple_tags_from_object test' do
84
- it 'should work' do
85
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
- end
87
- end
88
-
89
- # unit tests for detach_tag_from_multiple_objects
90
- # 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.
91
- # @param tag_id The identifier of the input tag.
92
- # @param request_body
93
- # @param [Hash] opts the optional parameters
94
- # @return [CisTaggingTagAssociationDetachTagFromMultipleObjectsResult]
95
- describe 'detach_tag_from_multiple_objects test' do
96
- it 'should work' do
97
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
- end
99
- end
100
-
101
- # unit tests for list_attachable_tags
102
- # 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.
103
- # @param request_body
104
- # @param [Hash] opts the optional parameters
105
- # @return [CisTaggingTagAssociationListAttachableTagsResult]
106
- describe 'list_attachable_tags test' do
107
- it 'should work' do
108
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
- end
110
- end
111
-
112
- # unit tests for list_attached_objects
113
- # 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.
114
- # @param tag_id The identifier of the input tag.
115
- # @param [Hash] opts the optional parameters
116
- # @return [CisTaggingTagAssociationListAttachedObjectsResult]
117
- describe 'list_attached_objects test' do
118
- it 'should work' do
119
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
- end
121
- end
122
-
123
- # unit tests for list_attached_objects_on_tags
124
- # 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.
125
- # @param request_body
126
- # @param [Hash] opts the optional parameters
127
- # @return [CisTaggingTagAssociationListAttachedObjectsOnTagsResult]
128
- describe 'list_attached_objects_on_tags test' do
129
- it 'should work' do
130
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
131
- end
132
- end
133
-
134
- # unit tests for list_attached_tags
135
- # 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.
136
- # @param request_body
137
- # @param [Hash] opts the optional parameters
138
- # @return [CisTaggingTagAssociationListAttachedTagsResult]
139
- describe 'list_attached_tags test' do
140
- it 'should work' do
141
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
- end
143
- end
144
-
145
- # unit tests for list_attached_tags_on_objects
146
- # 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.
147
- # @param request_body
148
- # @param [Hash] opts the optional parameters
149
- # @return [CisTaggingTagAssociationListAttachedTagsOnObjectsResult]
150
- describe 'list_attached_tags_on_objects test' do
151
- it 'should work' do
152
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
153
- end
154
- end
155
-
156
- end