topological_inventory-api-client 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/docs/DefaultApi.md +1444 -1
  3. data/docs/ServiceInstance.md +2 -0
  4. data/docs/ServiceInstanceNode.md +2 -0
  5. data/docs/ServiceOffering.md +2 -0
  6. data/docs/ServiceOfferingNode.md +2 -0
  7. data/docs/Tag.md +2 -14
  8. data/docs/Vm.md +2 -0
  9. data/lib/topological_inventory-api-client.rb +1 -2
  10. data/lib/topological_inventory-api-client/api/default_api.rb +1925 -1
  11. data/lib/topological_inventory-api-client/api_client.rb +1 -1
  12. data/lib/topological_inventory-api-client/api_error.rb +1 -1
  13. data/lib/topological_inventory-api-client/configuration.rb +4 -4
  14. data/lib/topological_inventory-api-client/models/applied_inventories_parameters_service_plan.rb +1 -1
  15. data/lib/topological_inventory-api-client/models/availabilities_collection.rb +1 -1
  16. data/lib/topological_inventory-api-client/models/availability.rb +1 -1
  17. data/lib/topological_inventory-api-client/models/cluster.rb +1 -1
  18. data/lib/topological_inventory-api-client/models/clusters_collection.rb +1 -1
  19. data/lib/topological_inventory-api-client/models/collection_links.rb +1 -1
  20. data/lib/topological_inventory-api-client/models/collection_metadata.rb +1 -1
  21. data/lib/topological_inventory-api-client/models/container.rb +1 -1
  22. data/lib/topological_inventory-api-client/models/container_group.rb +1 -1
  23. data/lib/topological_inventory-api-client/models/container_groups_collection.rb +1 -1
  24. data/lib/topological_inventory-api-client/models/container_image.rb +1 -1
  25. data/lib/topological_inventory-api-client/models/container_images_collection.rb +1 -1
  26. data/lib/topological_inventory-api-client/models/container_node.rb +1 -1
  27. data/lib/topological_inventory-api-client/models/container_nodes_collection.rb +1 -1
  28. data/lib/topological_inventory-api-client/models/container_project.rb +1 -1
  29. data/lib/topological_inventory-api-client/models/container_projects_collection.rb +1 -1
  30. data/lib/topological_inventory-api-client/models/container_resource_quota.rb +1 -1
  31. data/lib/topological_inventory-api-client/models/container_resource_quota_collection.rb +1 -1
  32. data/lib/topological_inventory-api-client/models/container_template.rb +1 -1
  33. data/lib/topological_inventory-api-client/models/container_templates_collection.rb +1 -1
  34. data/lib/topological_inventory-api-client/models/containers_collection.rb +1 -1
  35. data/lib/topological_inventory-api-client/models/datastore.rb +1 -1
  36. data/lib/topological_inventory-api-client/models/datastores_collection.rb +1 -1
  37. data/lib/topological_inventory-api-client/models/error_not_found.rb +1 -1
  38. data/lib/topological_inventory-api-client/models/error_not_found_errors.rb +1 -1
  39. data/lib/topological_inventory-api-client/models/flavor.rb +1 -1
  40. data/lib/topological_inventory-api-client/models/flavors_collection.rb +1 -1
  41. data/lib/topological_inventory-api-client/models/graph_ql_request.rb +1 -1
  42. data/lib/topological_inventory-api-client/models/graph_ql_response.rb +1 -1
  43. data/lib/topological_inventory-api-client/models/host.rb +1 -1
  44. data/lib/topological_inventory-api-client/models/hosts_collection.rb +1 -1
  45. data/lib/topological_inventory-api-client/models/inline_response200.rb +1 -1
  46. data/lib/topological_inventory-api-client/models/ipaddress.rb +1 -1
  47. data/lib/topological_inventory-api-client/models/ipaddresses_collection.rb +1 -1
  48. data/lib/topological_inventory-api-client/models/network.rb +1 -1
  49. data/lib/topological_inventory-api-client/models/network_adapter.rb +1 -1
  50. data/lib/topological_inventory-api-client/models/network_adapters_collection.rb +1 -1
  51. data/lib/topological_inventory-api-client/models/networks_collection.rb +1 -1
  52. data/lib/topological_inventory-api-client/models/orchestration_stack.rb +1 -1
  53. data/lib/topological_inventory-api-client/models/orchestration_stacks_collection.rb +1 -1
  54. data/lib/topological_inventory-api-client/models/order_parameters_service_offering.rb +1 -1
  55. data/lib/topological_inventory-api-client/models/order_parameters_service_plan.rb +1 -1
  56. data/lib/topological_inventory-api-client/models/security_group.rb +1 -1
  57. data/lib/topological_inventory-api-client/models/security_groups_collection.rb +1 -1
  58. data/lib/topological_inventory-api-client/models/service_instance.rb +29 -2
  59. data/lib/topological_inventory-api-client/models/service_instance_node.rb +29 -2
  60. data/lib/topological_inventory-api-client/models/service_instance_nodes_collection.rb +1 -1
  61. data/lib/topological_inventory-api-client/models/service_instances_collection.rb +1 -1
  62. data/lib/topological_inventory-api-client/models/service_inventories_collection.rb +1 -1
  63. data/lib/topological_inventory-api-client/models/service_inventory.rb +1 -1
  64. data/lib/topological_inventory-api-client/models/service_offering.rb +29 -2
  65. data/lib/topological_inventory-api-client/models/service_offering_icon.rb +1 -1
  66. data/lib/topological_inventory-api-client/models/service_offering_icons_collection.rb +1 -1
  67. data/lib/topological_inventory-api-client/models/service_offering_node.rb +29 -2
  68. data/lib/topological_inventory-api-client/models/service_offering_nodes_collection.rb +1 -1
  69. data/lib/topological_inventory-api-client/models/service_offerings_collection.rb +1 -1
  70. data/lib/topological_inventory-api-client/models/service_plan.rb +1 -1
  71. data/lib/topological_inventory-api-client/models/service_plans_collection.rb +1 -1
  72. data/lib/topological_inventory-api-client/models/source.rb +1 -1
  73. data/lib/topological_inventory-api-client/models/source_region.rb +1 -1
  74. data/lib/topological_inventory-api-client/models/source_regions_collection.rb +1 -1
  75. data/lib/topological_inventory-api-client/models/sources_collection.rb +1 -1
  76. data/lib/topological_inventory-api-client/models/subnet.rb +1 -1
  77. data/lib/topological_inventory-api-client/models/subnets_collection.rb +1 -1
  78. data/lib/topological_inventory-api-client/models/subscription.rb +1 -1
  79. data/lib/topological_inventory-api-client/models/subscriptions_collection.rb +1 -1
  80. data/lib/topological_inventory-api-client/models/tag.rb +8 -80
  81. data/lib/topological_inventory-api-client/models/tags_collection.rb +1 -1
  82. data/lib/topological_inventory-api-client/models/task.rb +1 -1
  83. data/lib/topological_inventory-api-client/models/tasks_collection.rb +1 -1
  84. data/lib/topological_inventory-api-client/models/tenant.rb +1 -1
  85. data/lib/topological_inventory-api-client/models/vm.rb +29 -2
  86. data/lib/topological_inventory-api-client/models/vms_collection.rb +1 -1
  87. data/lib/topological_inventory-api-client/models/volume.rb +1 -1
  88. data/lib/topological_inventory-api-client/models/volume_attachment.rb +1 -1
  89. data/lib/topological_inventory-api-client/models/volume_attachments_collection.rb +1 -1
  90. data/lib/topological_inventory-api-client/models/volume_type.rb +1 -1
  91. data/lib/topological_inventory-api-client/models/volume_types_collection.rb +1 -1
  92. data/lib/topological_inventory-api-client/models/volumes_collection.rb +1 -1
  93. data/lib/topological_inventory-api-client/version.rb +2 -2
  94. data/spec/api/default_api_spec.rb +339 -1
  95. data/spec/api_client_spec.rb +1 -1
  96. data/spec/configuration_spec.rb +4 -4
  97. data/spec/models/applied_inventories_parameters_service_plan_spec.rb +1 -1
  98. data/spec/models/availabilities_collection_spec.rb +1 -1
  99. data/spec/models/availability_spec.rb +1 -1
  100. data/spec/models/cluster_spec.rb +1 -1
  101. data/spec/models/clusters_collection_spec.rb +1 -1
  102. data/spec/models/collection_links_spec.rb +1 -1
  103. data/spec/models/collection_metadata_spec.rb +1 -1
  104. data/spec/models/container_group_spec.rb +1 -1
  105. data/spec/models/container_groups_collection_spec.rb +1 -1
  106. data/spec/models/container_image_spec.rb +1 -1
  107. data/spec/models/container_images_collection_spec.rb +1 -1
  108. data/spec/models/container_node_spec.rb +1 -1
  109. data/spec/models/container_nodes_collection_spec.rb +1 -1
  110. data/spec/models/container_project_spec.rb +1 -1
  111. data/spec/models/container_projects_collection_spec.rb +1 -1
  112. data/spec/models/container_resource_quota_collection_spec.rb +1 -1
  113. data/spec/models/container_resource_quota_spec.rb +1 -1
  114. data/spec/models/container_spec.rb +1 -1
  115. data/spec/models/container_template_spec.rb +1 -1
  116. data/spec/models/container_templates_collection_spec.rb +1 -1
  117. data/spec/models/containers_collection_spec.rb +1 -1
  118. data/spec/models/datastore_spec.rb +1 -1
  119. data/spec/models/datastores_collection_spec.rb +1 -1
  120. data/spec/models/error_not_found_errors_spec.rb +1 -1
  121. data/spec/models/error_not_found_spec.rb +1 -1
  122. data/spec/models/flavor_spec.rb +1 -1
  123. data/spec/models/flavors_collection_spec.rb +1 -1
  124. data/spec/models/graph_ql_request_spec.rb +1 -1
  125. data/spec/models/graph_ql_response_spec.rb +1 -1
  126. data/spec/models/host_spec.rb +1 -1
  127. data/spec/models/hosts_collection_spec.rb +1 -1
  128. data/spec/models/inline_response200_spec.rb +1 -1
  129. data/spec/models/ipaddress_spec.rb +1 -1
  130. data/spec/models/ipaddresses_collection_spec.rb +1 -1
  131. data/spec/models/network_adapter_spec.rb +1 -1
  132. data/spec/models/network_adapters_collection_spec.rb +1 -1
  133. data/spec/models/network_spec.rb +1 -1
  134. data/spec/models/networks_collection_spec.rb +1 -1
  135. data/spec/models/orchestration_stack_spec.rb +1 -1
  136. data/spec/models/orchestration_stacks_collection_spec.rb +1 -1
  137. data/spec/models/order_parameters_service_offering_spec.rb +1 -1
  138. data/spec/models/order_parameters_service_plan_spec.rb +1 -1
  139. data/spec/models/security_group_spec.rb +1 -1
  140. data/spec/models/security_groups_collection_spec.rb +1 -1
  141. data/spec/models/service_instance_node_spec.rb +7 -1
  142. data/spec/models/service_instance_nodes_collection_spec.rb +1 -1
  143. data/spec/models/service_instance_spec.rb +7 -1
  144. data/spec/models/service_instances_collection_spec.rb +1 -1
  145. data/spec/models/service_inventories_collection_spec.rb +1 -1
  146. data/spec/models/service_inventory_spec.rb +1 -1
  147. data/spec/models/service_offering_icon_spec.rb +1 -1
  148. data/spec/models/service_offering_icons_collection_spec.rb +1 -1
  149. data/spec/models/service_offering_node_spec.rb +7 -1
  150. data/spec/models/service_offering_nodes_collection_spec.rb +1 -1
  151. data/spec/models/service_offering_spec.rb +7 -1
  152. data/spec/models/service_offerings_collection_spec.rb +1 -1
  153. data/spec/models/service_plan_spec.rb +1 -1
  154. data/spec/models/service_plans_collection_spec.rb +1 -1
  155. data/spec/models/source_region_spec.rb +1 -1
  156. data/spec/models/source_regions_collection_spec.rb +1 -1
  157. data/spec/models/source_spec.rb +1 -1
  158. data/spec/models/sources_collection_spec.rb +1 -1
  159. data/spec/models/subnet_spec.rb +1 -1
  160. data/spec/models/subnets_collection_spec.rb +1 -1
  161. data/spec/models/subscription_spec.rb +1 -1
  162. data/spec/models/subscriptions_collection_spec.rb +1 -1
  163. data/spec/models/tag_spec.rb +2 -38
  164. data/spec/models/tags_collection_spec.rb +1 -1
  165. data/spec/models/task_spec.rb +1 -1
  166. data/spec/models/tasks_collection_spec.rb +1 -1
  167. data/spec/models/tenant_spec.rb +1 -1
  168. data/spec/models/vm_spec.rb +7 -1
  169. data/spec/models/vms_collection_spec.rb +1 -1
  170. data/spec/models/volume_attachment_spec.rb +1 -1
  171. data/spec/models/volume_attachments_collection_spec.rb +1 -1
  172. data/spec/models/volume_spec.rb +1 -1
  173. data/spec/models/volume_type_spec.rb +1 -1
  174. data/spec/models/volume_types_collection_spec.rb +1 -1
  175. data/spec/models/volumes_collection_spec.rb +1 -1
  176. data/spec/spec_helper.rb +1 -1
  177. data/topological_inventory-api-client.gemspec +1 -1
  178. metadata +2 -8
  179. data/docs/Tagging.md +0 -21
  180. data/lib/topological_inventory-api-client/models/tagging.rb +0 -242
  181. data/pkg/topological_inventory-api-client-1.0.0.gem +0 -0
  182. data/spec/models/tagging_spec.rb +0 -53
  183. data/topological_inventory-api-client-2.0.0.gem +0 -0
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **last_seen_at** | **DateTime** | | [optional] [readonly]
13
13
  **name** | **String** | | [optional] [readonly]
14
14
  **root_service_instance_id** | **String** | ID of the resource | [optional] [readonly]
15
+ **service_credential_id** | **String** | ID of the resource | [optional] [readonly]
15
16
  **service_inventory_id** | **String** | ID of the resource | [optional] [readonly]
16
17
  **service_offering_id** | **String** | ID of the resource | [optional] [readonly]
17
18
  **service_plan_id** | **String** | ID of the resource | [optional] [readonly]
@@ -36,6 +37,7 @@ instance = TopologicalInventoryApiClient::ServiceInstance.new(archived_at: null,
36
37
  last_seen_at: null,
37
38
  name: Sample ServiceInstance,
38
39
  root_service_instance_id: null,
40
+ service_credential_id: null,
39
41
  service_inventory_id: null,
40
42
  service_offering_id: null,
41
43
  service_plan_id: null,
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **last_seen_at** | **DateTime** | | [optional] [readonly]
12
12
  **name** | **String** | | [optional]
13
13
  **root_service_instance_id** | **String** | ID of the resource | [optional] [readonly]
14
+ **service_credential_id** | **String** | ID of the resource | [optional] [readonly]
14
15
  **service_instance_id** | **String** | ID of the resource | [optional] [readonly]
15
16
  **service_inventory_id** | **String** | ID of the resource | [optional] [readonly]
16
17
  **source_created_at** | **DateTime** | | [optional]
@@ -31,6 +32,7 @@ instance = TopologicalInventoryApiClient::ServiceInstanceNode.new(archived_at: n
31
32
  last_seen_at: null,
32
33
  name: null,
33
34
  root_service_instance_id: null,
35
+ service_credential_id: null,
34
36
  service_instance_id: null,
35
37
  service_inventory_id: null,
36
38
  source_created_at: null,
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **last_seen_at** | **DateTime** | | [optional] [readonly]
16
16
  **long_description** | **String** | | [optional] [readonly]
17
17
  **name** | **String** | | [optional] [readonly]
18
+ **service_credential_id** | **String** | ID of the resource | [optional] [readonly]
18
19
  **service_inventory_id** | **String** | ID of the resource | [optional] [readonly]
19
20
  **service_offering_icon_id** | **String** | ID of the resource | [optional] [readonly]
20
21
  **source_created_at** | **DateTime** | | [optional] [readonly]
@@ -42,6 +43,7 @@ instance = TopologicalInventoryApiClient::ServiceOffering.new(archived_at: null,
42
43
  last_seen_at: null,
43
44
  long_description: This template provides a standalone MariaDB server with a database created...,
44
45
  name: Sample Service Offering,
46
+ service_credential_id: null,
45
47
  service_inventory_id: null,
46
48
  service_offering_icon_id: null,
47
49
  source_created_at: null,
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **last_seen_at** | **DateTime** | | [optional] [readonly]
12
12
  **name** | **String** | | [optional]
13
13
  **root_service_offering_id** | **String** | ID of the resource | [optional] [readonly]
14
+ **service_credential_id** | **String** | ID of the resource | [optional] [readonly]
14
15
  **service_inventory_id** | **String** | ID of the resource | [optional] [readonly]
15
16
  **service_offering_id** | **String** | ID of the resource | [optional] [readonly]
16
17
  **source_created_at** | **DateTime** | | [optional]
@@ -31,6 +32,7 @@ instance = TopologicalInventoryApiClient::ServiceOfferingNode.new(archived_at: n
31
32
  last_seen_at: null,
32
33
  name: null,
33
34
  root_service_offering_id: null,
35
+ service_credential_id: null,
34
36
  service_inventory_id: null,
35
37
  service_offering_id: null,
36
38
  source_created_at: null,
data/docs/Tag.md CHANGED
@@ -4,26 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **created_at** | **DateTime** | | [optional] [readonly]
8
- **description** | **String** | | [optional] [readonly]
9
- **id** | **String** | ID of the resource | [optional] [readonly]
10
- **last_seen_at** | **DateTime** | | [optional] [readonly]
11
- **name** | **String** | | [optional] [readonly]
12
- **namespace** | **String** | | [optional] [readonly]
13
- **value** | **String** | | [optional] [readonly]
7
+ **tag** | **String** | | [optional]
14
8
 
15
9
  ## Code Sample
16
10
 
17
11
  ```ruby
18
12
  require 'TopologicalInventoryApiClient'
19
13
 
20
- instance = TopologicalInventoryApiClient::Tag.new(created_at: null,
21
- description: Instruction set architecture,
22
- id: null,
23
- last_seen_at: null,
24
- name: architecture,
25
- namespace: openshift,
26
- value: null)
14
+ instance = TopologicalInventoryApiClient::Tag.new(tag: /namespace/architecture=x86_64)
27
15
  ```
28
16
 
29
17
 
data/docs/Vm.md CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **description** | **String** | Description of the Vm | [optional] [readonly]
11
11
  **extra** | [**Object**](.md) | | [optional] [readonly]
12
12
  **flavor_id** | **String** | ID of the resource | [optional] [readonly]
13
+ **host_id** | **String** | ID of the resource | [optional] [readonly]
13
14
  **host_inventory_uuid** | **String** | | [optional] [readonly]
14
15
  **hostname** | **String** | | [optional] [readonly]
15
16
  **id** | **String** | ID of the resource | [optional] [readonly]
@@ -39,6 +40,7 @@ instance = TopologicalInventoryApiClient::Vm.new(archived_at: null,
39
40
  description: null,
40
41
  extra: null,
41
42
  flavor_id: null,
43
+ host_id: null,
42
44
  host_inventory_uuid: null,
43
45
  hostname: localhost.localdomain,
44
46
  id: null,
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -84,7 +84,6 @@ require 'topological_inventory-api-client/models/subnets_collection'
84
84
  require 'topological_inventory-api-client/models/subscription'
85
85
  require 'topological_inventory-api-client/models/subscriptions_collection'
86
86
  require 'topological_inventory-api-client/models/tag'
87
- require 'topological_inventory-api-client/models/tagging'
88
87
  require 'topological_inventory-api-client/models/tags_collection'
89
88
  require 'topological_inventory-api-client/models/task'
90
89
  require 'topological_inventory-api-client/models/tasks_collection'
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -14744,6 +14744,1930 @@ module TopologicalInventoryApiClient
14744
14744
  return data, status_code, headers
14745
14745
  end
14746
14746
 
14747
+ # Tag a ContainerGroup
14748
+ # Tags a ContainerGroup object
14749
+ # @param id [String] ID of the resource
14750
+ # @param tag [Array<Tag>] Tag attributes to add
14751
+ # @param [Hash] opts the optional parameters
14752
+ # @return [Tag]
14753
+ def tag_container_group(id, tag, opts = {})
14754
+ data, _status_code, _headers = tag_container_group_with_http_info(id, tag, opts)
14755
+ data
14756
+ end
14757
+
14758
+ # Tag a ContainerGroup
14759
+ # Tags a ContainerGroup object
14760
+ # @param id [String] ID of the resource
14761
+ # @param tag [Array<Tag>] Tag attributes to add
14762
+ # @param [Hash] opts the optional parameters
14763
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
14764
+ def tag_container_group_with_http_info(id, tag, opts = {})
14765
+ if @api_client.config.debugging
14766
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_group ...'
14767
+ end
14768
+ # verify the required parameter 'id' is set
14769
+ if @api_client.config.client_side_validation && id.nil?
14770
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_group"
14771
+ end
14772
+ pattern = Regexp.new(/^\d+$/)
14773
+ if @api_client.config.client_side_validation && id !~ pattern
14774
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_group, must conform to the pattern #{pattern}."
14775
+ end
14776
+
14777
+ # verify the required parameter 'tag' is set
14778
+ if @api_client.config.client_side_validation && tag.nil?
14779
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_group"
14780
+ end
14781
+ # resource path
14782
+ local_var_path = '/container_groups/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
14783
+
14784
+ # query parameters
14785
+ query_params = opts[:query_params] || {}
14786
+
14787
+ # header parameters
14788
+ header_params = opts[:header_params] || {}
14789
+ # HTTP header 'Accept' (if needed)
14790
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14791
+ # HTTP header 'Content-Type'
14792
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14793
+
14794
+ # form parameters
14795
+ form_params = opts[:form_params] || {}
14796
+
14797
+ # http body (model)
14798
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
14799
+
14800
+ # return_type
14801
+ return_type = opts[:return_type] || 'Tag'
14802
+
14803
+ # auth_names
14804
+ auth_names = opts[:auth_names] || ['UserSecurity']
14805
+
14806
+ new_options = opts.merge(
14807
+ :header_params => header_params,
14808
+ :query_params => query_params,
14809
+ :form_params => form_params,
14810
+ :body => post_body,
14811
+ :auth_names => auth_names,
14812
+ :return_type => return_type
14813
+ )
14814
+
14815
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
14816
+ if @api_client.config.debugging
14817
+ @api_client.config.logger.debug "API called: DefaultApi#tag_container_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14818
+ end
14819
+ return data, status_code, headers
14820
+ end
14821
+
14822
+ # Tag a ContainerImage
14823
+ # Tags a ContainerImage object
14824
+ # @param id [String] ID of the resource
14825
+ # @param tag [Array<Tag>] Tag attributes to add
14826
+ # @param [Hash] opts the optional parameters
14827
+ # @return [Tag]
14828
+ def tag_container_image(id, tag, opts = {})
14829
+ data, _status_code, _headers = tag_container_image_with_http_info(id, tag, opts)
14830
+ data
14831
+ end
14832
+
14833
+ # Tag a ContainerImage
14834
+ # Tags a ContainerImage object
14835
+ # @param id [String] ID of the resource
14836
+ # @param tag [Array<Tag>] Tag attributes to add
14837
+ # @param [Hash] opts the optional parameters
14838
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
14839
+ def tag_container_image_with_http_info(id, tag, opts = {})
14840
+ if @api_client.config.debugging
14841
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_image ...'
14842
+ end
14843
+ # verify the required parameter 'id' is set
14844
+ if @api_client.config.client_side_validation && id.nil?
14845
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_image"
14846
+ end
14847
+ pattern = Regexp.new(/^\d+$/)
14848
+ if @api_client.config.client_side_validation && id !~ pattern
14849
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_image, must conform to the pattern #{pattern}."
14850
+ end
14851
+
14852
+ # verify the required parameter 'tag' is set
14853
+ if @api_client.config.client_side_validation && tag.nil?
14854
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_image"
14855
+ end
14856
+ # resource path
14857
+ local_var_path = '/container_images/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
14858
+
14859
+ # query parameters
14860
+ query_params = opts[:query_params] || {}
14861
+
14862
+ # header parameters
14863
+ header_params = opts[:header_params] || {}
14864
+ # HTTP header 'Accept' (if needed)
14865
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14866
+ # HTTP header 'Content-Type'
14867
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14868
+
14869
+ # form parameters
14870
+ form_params = opts[:form_params] || {}
14871
+
14872
+ # http body (model)
14873
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
14874
+
14875
+ # return_type
14876
+ return_type = opts[:return_type] || 'Tag'
14877
+
14878
+ # auth_names
14879
+ auth_names = opts[:auth_names] || ['UserSecurity']
14880
+
14881
+ new_options = opts.merge(
14882
+ :header_params => header_params,
14883
+ :query_params => query_params,
14884
+ :form_params => form_params,
14885
+ :body => post_body,
14886
+ :auth_names => auth_names,
14887
+ :return_type => return_type
14888
+ )
14889
+
14890
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
14891
+ if @api_client.config.debugging
14892
+ @api_client.config.logger.debug "API called: DefaultApi#tag_container_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14893
+ end
14894
+ return data, status_code, headers
14895
+ end
14896
+
14897
+ # Tag a ContainerNode
14898
+ # Tags a ContainerNode object
14899
+ # @param id [String] ID of the resource
14900
+ # @param tag [Array<Tag>] Tag attributes to add
14901
+ # @param [Hash] opts the optional parameters
14902
+ # @return [Tag]
14903
+ def tag_container_node(id, tag, opts = {})
14904
+ data, _status_code, _headers = tag_container_node_with_http_info(id, tag, opts)
14905
+ data
14906
+ end
14907
+
14908
+ # Tag a ContainerNode
14909
+ # Tags a ContainerNode object
14910
+ # @param id [String] ID of the resource
14911
+ # @param tag [Array<Tag>] Tag attributes to add
14912
+ # @param [Hash] opts the optional parameters
14913
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
14914
+ def tag_container_node_with_http_info(id, tag, opts = {})
14915
+ if @api_client.config.debugging
14916
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_node ...'
14917
+ end
14918
+ # verify the required parameter 'id' is set
14919
+ if @api_client.config.client_side_validation && id.nil?
14920
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_node"
14921
+ end
14922
+ pattern = Regexp.new(/^\d+$/)
14923
+ if @api_client.config.client_side_validation && id !~ pattern
14924
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_node, must conform to the pattern #{pattern}."
14925
+ end
14926
+
14927
+ # verify the required parameter 'tag' is set
14928
+ if @api_client.config.client_side_validation && tag.nil?
14929
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_node"
14930
+ end
14931
+ # resource path
14932
+ local_var_path = '/container_nodes/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
14933
+
14934
+ # query parameters
14935
+ query_params = opts[:query_params] || {}
14936
+
14937
+ # header parameters
14938
+ header_params = opts[:header_params] || {}
14939
+ # HTTP header 'Accept' (if needed)
14940
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14941
+ # HTTP header 'Content-Type'
14942
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14943
+
14944
+ # form parameters
14945
+ form_params = opts[:form_params] || {}
14946
+
14947
+ # http body (model)
14948
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
14949
+
14950
+ # return_type
14951
+ return_type = opts[:return_type] || 'Tag'
14952
+
14953
+ # auth_names
14954
+ auth_names = opts[:auth_names] || ['UserSecurity']
14955
+
14956
+ new_options = opts.merge(
14957
+ :header_params => header_params,
14958
+ :query_params => query_params,
14959
+ :form_params => form_params,
14960
+ :body => post_body,
14961
+ :auth_names => auth_names,
14962
+ :return_type => return_type
14963
+ )
14964
+
14965
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
14966
+ if @api_client.config.debugging
14967
+ @api_client.config.logger.debug "API called: DefaultApi#tag_container_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14968
+ end
14969
+ return data, status_code, headers
14970
+ end
14971
+
14972
+ # Tag a ContainerProject
14973
+ # Tags a ContainerProject object
14974
+ # @param id [String] ID of the resource
14975
+ # @param tag [Array<Tag>] Tag attributes to add
14976
+ # @param [Hash] opts the optional parameters
14977
+ # @return [Tag]
14978
+ def tag_container_project(id, tag, opts = {})
14979
+ data, _status_code, _headers = tag_container_project_with_http_info(id, tag, opts)
14980
+ data
14981
+ end
14982
+
14983
+ # Tag a ContainerProject
14984
+ # Tags a ContainerProject object
14985
+ # @param id [String] ID of the resource
14986
+ # @param tag [Array<Tag>] Tag attributes to add
14987
+ # @param [Hash] opts the optional parameters
14988
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
14989
+ def tag_container_project_with_http_info(id, tag, opts = {})
14990
+ if @api_client.config.debugging
14991
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_project ...'
14992
+ end
14993
+ # verify the required parameter 'id' is set
14994
+ if @api_client.config.client_side_validation && id.nil?
14995
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_project"
14996
+ end
14997
+ pattern = Regexp.new(/^\d+$/)
14998
+ if @api_client.config.client_side_validation && id !~ pattern
14999
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_project, must conform to the pattern #{pattern}."
15000
+ end
15001
+
15002
+ # verify the required parameter 'tag' is set
15003
+ if @api_client.config.client_side_validation && tag.nil?
15004
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_project"
15005
+ end
15006
+ # resource path
15007
+ local_var_path = '/container_projects/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15008
+
15009
+ # query parameters
15010
+ query_params = opts[:query_params] || {}
15011
+
15012
+ # header parameters
15013
+ header_params = opts[:header_params] || {}
15014
+ # HTTP header 'Accept' (if needed)
15015
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15016
+ # HTTP header 'Content-Type'
15017
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15018
+
15019
+ # form parameters
15020
+ form_params = opts[:form_params] || {}
15021
+
15022
+ # http body (model)
15023
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15024
+
15025
+ # return_type
15026
+ return_type = opts[:return_type] || 'Tag'
15027
+
15028
+ # auth_names
15029
+ auth_names = opts[:auth_names] || ['UserSecurity']
15030
+
15031
+ new_options = opts.merge(
15032
+ :header_params => header_params,
15033
+ :query_params => query_params,
15034
+ :form_params => form_params,
15035
+ :body => post_body,
15036
+ :auth_names => auth_names,
15037
+ :return_type => return_type
15038
+ )
15039
+
15040
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15041
+ if @api_client.config.debugging
15042
+ @api_client.config.logger.debug "API called: DefaultApi#tag_container_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15043
+ end
15044
+ return data, status_code, headers
15045
+ end
15046
+
15047
+ # Tag a ContainerTemplate
15048
+ # Tags a ContainerTemplate object
15049
+ # @param id [String] ID of the resource
15050
+ # @param tag [Array<Tag>] Tag attributes to add
15051
+ # @param [Hash] opts the optional parameters
15052
+ # @return [Tag]
15053
+ def tag_container_template(id, tag, opts = {})
15054
+ data, _status_code, _headers = tag_container_template_with_http_info(id, tag, opts)
15055
+ data
15056
+ end
15057
+
15058
+ # Tag a ContainerTemplate
15059
+ # Tags a ContainerTemplate object
15060
+ # @param id [String] ID of the resource
15061
+ # @param tag [Array<Tag>] Tag attributes to add
15062
+ # @param [Hash] opts the optional parameters
15063
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15064
+ def tag_container_template_with_http_info(id, tag, opts = {})
15065
+ if @api_client.config.debugging
15066
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_template ...'
15067
+ end
15068
+ # verify the required parameter 'id' is set
15069
+ if @api_client.config.client_side_validation && id.nil?
15070
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_template"
15071
+ end
15072
+ pattern = Regexp.new(/^\d+$/)
15073
+ if @api_client.config.client_side_validation && id !~ pattern
15074
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_template, must conform to the pattern #{pattern}."
15075
+ end
15076
+
15077
+ # verify the required parameter 'tag' is set
15078
+ if @api_client.config.client_side_validation && tag.nil?
15079
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_template"
15080
+ end
15081
+ # resource path
15082
+ local_var_path = '/container_templates/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15083
+
15084
+ # query parameters
15085
+ query_params = opts[:query_params] || {}
15086
+
15087
+ # header parameters
15088
+ header_params = opts[:header_params] || {}
15089
+ # HTTP header 'Accept' (if needed)
15090
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15091
+ # HTTP header 'Content-Type'
15092
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15093
+
15094
+ # form parameters
15095
+ form_params = opts[:form_params] || {}
15096
+
15097
+ # http body (model)
15098
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15099
+
15100
+ # return_type
15101
+ return_type = opts[:return_type] || 'Tag'
15102
+
15103
+ # auth_names
15104
+ auth_names = opts[:auth_names] || ['UserSecurity']
15105
+
15106
+ new_options = opts.merge(
15107
+ :header_params => header_params,
15108
+ :query_params => query_params,
15109
+ :form_params => form_params,
15110
+ :body => post_body,
15111
+ :auth_names => auth_names,
15112
+ :return_type => return_type
15113
+ )
15114
+
15115
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15116
+ if @api_client.config.debugging
15117
+ @api_client.config.logger.debug "API called: DefaultApi#tag_container_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15118
+ end
15119
+ return data, status_code, headers
15120
+ end
15121
+
15122
+ # Tag a Ipaddress
15123
+ # Tags a Ipaddress object
15124
+ # @param id [String] ID of the resource
15125
+ # @param tag [Array<Tag>] Tag attributes to add
15126
+ # @param [Hash] opts the optional parameters
15127
+ # @return [Tag]
15128
+ def tag_ipaddress(id, tag, opts = {})
15129
+ data, _status_code, _headers = tag_ipaddress_with_http_info(id, tag, opts)
15130
+ data
15131
+ end
15132
+
15133
+ # Tag a Ipaddress
15134
+ # Tags a Ipaddress object
15135
+ # @param id [String] ID of the resource
15136
+ # @param tag [Array<Tag>] Tag attributes to add
15137
+ # @param [Hash] opts the optional parameters
15138
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15139
+ def tag_ipaddress_with_http_info(id, tag, opts = {})
15140
+ if @api_client.config.debugging
15141
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_ipaddress ...'
15142
+ end
15143
+ # verify the required parameter 'id' is set
15144
+ if @api_client.config.client_side_validation && id.nil?
15145
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_ipaddress"
15146
+ end
15147
+ pattern = Regexp.new(/^\d+$/)
15148
+ if @api_client.config.client_side_validation && id !~ pattern
15149
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_ipaddress, must conform to the pattern #{pattern}."
15150
+ end
15151
+
15152
+ # verify the required parameter 'tag' is set
15153
+ if @api_client.config.client_side_validation && tag.nil?
15154
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_ipaddress"
15155
+ end
15156
+ # resource path
15157
+ local_var_path = '/ipaddresses/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15158
+
15159
+ # query parameters
15160
+ query_params = opts[:query_params] || {}
15161
+
15162
+ # header parameters
15163
+ header_params = opts[:header_params] || {}
15164
+ # HTTP header 'Accept' (if needed)
15165
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15166
+ # HTTP header 'Content-Type'
15167
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15168
+
15169
+ # form parameters
15170
+ form_params = opts[:form_params] || {}
15171
+
15172
+ # http body (model)
15173
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15174
+
15175
+ # return_type
15176
+ return_type = opts[:return_type] || 'Tag'
15177
+
15178
+ # auth_names
15179
+ auth_names = opts[:auth_names] || ['UserSecurity']
15180
+
15181
+ new_options = opts.merge(
15182
+ :header_params => header_params,
15183
+ :query_params => query_params,
15184
+ :form_params => form_params,
15185
+ :body => post_body,
15186
+ :auth_names => auth_names,
15187
+ :return_type => return_type
15188
+ )
15189
+
15190
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15191
+ if @api_client.config.debugging
15192
+ @api_client.config.logger.debug "API called: DefaultApi#tag_ipaddress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15193
+ end
15194
+ return data, status_code, headers
15195
+ end
15196
+
15197
+ # Tag a Network
15198
+ # Tags a Network object
15199
+ # @param id [String] ID of the resource
15200
+ # @param tag [Array<Tag>] Tag attributes to add
15201
+ # @param [Hash] opts the optional parameters
15202
+ # @return [Tag]
15203
+ def tag_network(id, tag, opts = {})
15204
+ data, _status_code, _headers = tag_network_with_http_info(id, tag, opts)
15205
+ data
15206
+ end
15207
+
15208
+ # Tag a Network
15209
+ # Tags a Network object
15210
+ # @param id [String] ID of the resource
15211
+ # @param tag [Array<Tag>] Tag attributes to add
15212
+ # @param [Hash] opts the optional parameters
15213
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15214
+ def tag_network_with_http_info(id, tag, opts = {})
15215
+ if @api_client.config.debugging
15216
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_network ...'
15217
+ end
15218
+ # verify the required parameter 'id' is set
15219
+ if @api_client.config.client_side_validation && id.nil?
15220
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_network"
15221
+ end
15222
+ pattern = Regexp.new(/^\d+$/)
15223
+ if @api_client.config.client_side_validation && id !~ pattern
15224
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_network, must conform to the pattern #{pattern}."
15225
+ end
15226
+
15227
+ # verify the required parameter 'tag' is set
15228
+ if @api_client.config.client_side_validation && tag.nil?
15229
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_network"
15230
+ end
15231
+ # resource path
15232
+ local_var_path = '/networks/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15233
+
15234
+ # query parameters
15235
+ query_params = opts[:query_params] || {}
15236
+
15237
+ # header parameters
15238
+ header_params = opts[:header_params] || {}
15239
+ # HTTP header 'Accept' (if needed)
15240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15241
+ # HTTP header 'Content-Type'
15242
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15243
+
15244
+ # form parameters
15245
+ form_params = opts[:form_params] || {}
15246
+
15247
+ # http body (model)
15248
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15249
+
15250
+ # return_type
15251
+ return_type = opts[:return_type] || 'Tag'
15252
+
15253
+ # auth_names
15254
+ auth_names = opts[:auth_names] || ['UserSecurity']
15255
+
15256
+ new_options = opts.merge(
15257
+ :header_params => header_params,
15258
+ :query_params => query_params,
15259
+ :form_params => form_params,
15260
+ :body => post_body,
15261
+ :auth_names => auth_names,
15262
+ :return_type => return_type
15263
+ )
15264
+
15265
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15266
+ if @api_client.config.debugging
15267
+ @api_client.config.logger.debug "API called: DefaultApi#tag_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15268
+ end
15269
+ return data, status_code, headers
15270
+ end
15271
+
15272
+ # Tag a NetworkAdapter
15273
+ # Tags a NetworkAdapter object
15274
+ # @param id [String] ID of the resource
15275
+ # @param tag [Array<Tag>] Tag attributes to add
15276
+ # @param [Hash] opts the optional parameters
15277
+ # @return [Tag]
15278
+ def tag_network_adapter(id, tag, opts = {})
15279
+ data, _status_code, _headers = tag_network_adapter_with_http_info(id, tag, opts)
15280
+ data
15281
+ end
15282
+
15283
+ # Tag a NetworkAdapter
15284
+ # Tags a NetworkAdapter object
15285
+ # @param id [String] ID of the resource
15286
+ # @param tag [Array<Tag>] Tag attributes to add
15287
+ # @param [Hash] opts the optional parameters
15288
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15289
+ def tag_network_adapter_with_http_info(id, tag, opts = {})
15290
+ if @api_client.config.debugging
15291
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_network_adapter ...'
15292
+ end
15293
+ # verify the required parameter 'id' is set
15294
+ if @api_client.config.client_side_validation && id.nil?
15295
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_network_adapter"
15296
+ end
15297
+ pattern = Regexp.new(/^\d+$/)
15298
+ if @api_client.config.client_side_validation && id !~ pattern
15299
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_network_adapter, must conform to the pattern #{pattern}."
15300
+ end
15301
+
15302
+ # verify the required parameter 'tag' is set
15303
+ if @api_client.config.client_side_validation && tag.nil?
15304
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_network_adapter"
15305
+ end
15306
+ # resource path
15307
+ local_var_path = '/network_adapters/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15308
+
15309
+ # query parameters
15310
+ query_params = opts[:query_params] || {}
15311
+
15312
+ # header parameters
15313
+ header_params = opts[:header_params] || {}
15314
+ # HTTP header 'Accept' (if needed)
15315
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15316
+ # HTTP header 'Content-Type'
15317
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15318
+
15319
+ # form parameters
15320
+ form_params = opts[:form_params] || {}
15321
+
15322
+ # http body (model)
15323
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15324
+
15325
+ # return_type
15326
+ return_type = opts[:return_type] || 'Tag'
15327
+
15328
+ # auth_names
15329
+ auth_names = opts[:auth_names] || ['UserSecurity']
15330
+
15331
+ new_options = opts.merge(
15332
+ :header_params => header_params,
15333
+ :query_params => query_params,
15334
+ :form_params => form_params,
15335
+ :body => post_body,
15336
+ :auth_names => auth_names,
15337
+ :return_type => return_type
15338
+ )
15339
+
15340
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15341
+ if @api_client.config.debugging
15342
+ @api_client.config.logger.debug "API called: DefaultApi#tag_network_adapter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15343
+ end
15344
+ return data, status_code, headers
15345
+ end
15346
+
15347
+ # Tag a SecurityGroup
15348
+ # Tags a SecurityGroup object
15349
+ # @param id [String] ID of the resource
15350
+ # @param tag [Array<Tag>] Tag attributes to add
15351
+ # @param [Hash] opts the optional parameters
15352
+ # @return [Tag]
15353
+ def tag_security_group(id, tag, opts = {})
15354
+ data, _status_code, _headers = tag_security_group_with_http_info(id, tag, opts)
15355
+ data
15356
+ end
15357
+
15358
+ # Tag a SecurityGroup
15359
+ # Tags a SecurityGroup object
15360
+ # @param id [String] ID of the resource
15361
+ # @param tag [Array<Tag>] Tag attributes to add
15362
+ # @param [Hash] opts the optional parameters
15363
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15364
+ def tag_security_group_with_http_info(id, tag, opts = {})
15365
+ if @api_client.config.debugging
15366
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_security_group ...'
15367
+ end
15368
+ # verify the required parameter 'id' is set
15369
+ if @api_client.config.client_side_validation && id.nil?
15370
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_security_group"
15371
+ end
15372
+ pattern = Regexp.new(/^\d+$/)
15373
+ if @api_client.config.client_side_validation && id !~ pattern
15374
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_security_group, must conform to the pattern #{pattern}."
15375
+ end
15376
+
15377
+ # verify the required parameter 'tag' is set
15378
+ if @api_client.config.client_side_validation && tag.nil?
15379
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_security_group"
15380
+ end
15381
+ # resource path
15382
+ local_var_path = '/security_groups/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15383
+
15384
+ # query parameters
15385
+ query_params = opts[:query_params] || {}
15386
+
15387
+ # header parameters
15388
+ header_params = opts[:header_params] || {}
15389
+ # HTTP header 'Accept' (if needed)
15390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15391
+ # HTTP header 'Content-Type'
15392
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15393
+
15394
+ # form parameters
15395
+ form_params = opts[:form_params] || {}
15396
+
15397
+ # http body (model)
15398
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15399
+
15400
+ # return_type
15401
+ return_type = opts[:return_type] || 'Tag'
15402
+
15403
+ # auth_names
15404
+ auth_names = opts[:auth_names] || ['UserSecurity']
15405
+
15406
+ new_options = opts.merge(
15407
+ :header_params => header_params,
15408
+ :query_params => query_params,
15409
+ :form_params => form_params,
15410
+ :body => post_body,
15411
+ :auth_names => auth_names,
15412
+ :return_type => return_type
15413
+ )
15414
+
15415
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15416
+ if @api_client.config.debugging
15417
+ @api_client.config.logger.debug "API called: DefaultApi#tag_security_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15418
+ end
15419
+ return data, status_code, headers
15420
+ end
15421
+
15422
+ # Tag a ServiceInventory
15423
+ # Tags a ServiceInventory object
15424
+ # @param id [String] ID of the resource
15425
+ # @param tag [Array<Tag>] Tag attributes to add
15426
+ # @param [Hash] opts the optional parameters
15427
+ # @return [Tag]
15428
+ def tag_service_inventory(id, tag, opts = {})
15429
+ data, _status_code, _headers = tag_service_inventory_with_http_info(id, tag, opts)
15430
+ data
15431
+ end
15432
+
15433
+ # Tag a ServiceInventory
15434
+ # Tags a ServiceInventory object
15435
+ # @param id [String] ID of the resource
15436
+ # @param tag [Array<Tag>] Tag attributes to add
15437
+ # @param [Hash] opts the optional parameters
15438
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15439
+ def tag_service_inventory_with_http_info(id, tag, opts = {})
15440
+ if @api_client.config.debugging
15441
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_service_inventory ...'
15442
+ end
15443
+ # verify the required parameter 'id' is set
15444
+ if @api_client.config.client_side_validation && id.nil?
15445
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_service_inventory"
15446
+ end
15447
+ pattern = Regexp.new(/^\d+$/)
15448
+ if @api_client.config.client_side_validation && id !~ pattern
15449
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_service_inventory, must conform to the pattern #{pattern}."
15450
+ end
15451
+
15452
+ # verify the required parameter 'tag' is set
15453
+ if @api_client.config.client_side_validation && tag.nil?
15454
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_service_inventory"
15455
+ end
15456
+ # resource path
15457
+ local_var_path = '/service_inventories/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15458
+
15459
+ # query parameters
15460
+ query_params = opts[:query_params] || {}
15461
+
15462
+ # header parameters
15463
+ header_params = opts[:header_params] || {}
15464
+ # HTTP header 'Accept' (if needed)
15465
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15466
+ # HTTP header 'Content-Type'
15467
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15468
+
15469
+ # form parameters
15470
+ form_params = opts[:form_params] || {}
15471
+
15472
+ # http body (model)
15473
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15474
+
15475
+ # return_type
15476
+ return_type = opts[:return_type] || 'Tag'
15477
+
15478
+ # auth_names
15479
+ auth_names = opts[:auth_names] || ['UserSecurity']
15480
+
15481
+ new_options = opts.merge(
15482
+ :header_params => header_params,
15483
+ :query_params => query_params,
15484
+ :form_params => form_params,
15485
+ :body => post_body,
15486
+ :auth_names => auth_names,
15487
+ :return_type => return_type
15488
+ )
15489
+
15490
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15491
+ if @api_client.config.debugging
15492
+ @api_client.config.logger.debug "API called: DefaultApi#tag_service_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15493
+ end
15494
+ return data, status_code, headers
15495
+ end
15496
+
15497
+ # Tag a ServiceOffering
15498
+ # Tags a ServiceOffering object
15499
+ # @param id [String] ID of the resource
15500
+ # @param tag [Array<Tag>] Tag attributes to add
15501
+ # @param [Hash] opts the optional parameters
15502
+ # @return [Tag]
15503
+ def tag_service_offering(id, tag, opts = {})
15504
+ data, _status_code, _headers = tag_service_offering_with_http_info(id, tag, opts)
15505
+ data
15506
+ end
15507
+
15508
+ # Tag a ServiceOffering
15509
+ # Tags a ServiceOffering object
15510
+ # @param id [String] ID of the resource
15511
+ # @param tag [Array<Tag>] Tag attributes to add
15512
+ # @param [Hash] opts the optional parameters
15513
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15514
+ def tag_service_offering_with_http_info(id, tag, opts = {})
15515
+ if @api_client.config.debugging
15516
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_service_offering ...'
15517
+ end
15518
+ # verify the required parameter 'id' is set
15519
+ if @api_client.config.client_side_validation && id.nil?
15520
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_service_offering"
15521
+ end
15522
+ pattern = Regexp.new(/^\d+$/)
15523
+ if @api_client.config.client_side_validation && id !~ pattern
15524
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_service_offering, must conform to the pattern #{pattern}."
15525
+ end
15526
+
15527
+ # verify the required parameter 'tag' is set
15528
+ if @api_client.config.client_side_validation && tag.nil?
15529
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_service_offering"
15530
+ end
15531
+ # resource path
15532
+ local_var_path = '/service_offerings/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15533
+
15534
+ # query parameters
15535
+ query_params = opts[:query_params] || {}
15536
+
15537
+ # header parameters
15538
+ header_params = opts[:header_params] || {}
15539
+ # HTTP header 'Accept' (if needed)
15540
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15541
+ # HTTP header 'Content-Type'
15542
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15543
+
15544
+ # form parameters
15545
+ form_params = opts[:form_params] || {}
15546
+
15547
+ # http body (model)
15548
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15549
+
15550
+ # return_type
15551
+ return_type = opts[:return_type] || 'Tag'
15552
+
15553
+ # auth_names
15554
+ auth_names = opts[:auth_names] || ['UserSecurity']
15555
+
15556
+ new_options = opts.merge(
15557
+ :header_params => header_params,
15558
+ :query_params => query_params,
15559
+ :form_params => form_params,
15560
+ :body => post_body,
15561
+ :auth_names => auth_names,
15562
+ :return_type => return_type
15563
+ )
15564
+
15565
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15566
+ if @api_client.config.debugging
15567
+ @api_client.config.logger.debug "API called: DefaultApi#tag_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15568
+ end
15569
+ return data, status_code, headers
15570
+ end
15571
+
15572
+ # Tag a Subnet
15573
+ # Tags a Subnet object
15574
+ # @param id [String] ID of the resource
15575
+ # @param tag [Array<Tag>] Tag attributes to add
15576
+ # @param [Hash] opts the optional parameters
15577
+ # @return [Tag]
15578
+ def tag_subnet(id, tag, opts = {})
15579
+ data, _status_code, _headers = tag_subnet_with_http_info(id, tag, opts)
15580
+ data
15581
+ end
15582
+
15583
+ # Tag a Subnet
15584
+ # Tags a Subnet object
15585
+ # @param id [String] ID of the resource
15586
+ # @param tag [Array<Tag>] Tag attributes to add
15587
+ # @param [Hash] opts the optional parameters
15588
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15589
+ def tag_subnet_with_http_info(id, tag, opts = {})
15590
+ if @api_client.config.debugging
15591
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_subnet ...'
15592
+ end
15593
+ # verify the required parameter 'id' is set
15594
+ if @api_client.config.client_side_validation && id.nil?
15595
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_subnet"
15596
+ end
15597
+ pattern = Regexp.new(/^\d+$/)
15598
+ if @api_client.config.client_side_validation && id !~ pattern
15599
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_subnet, must conform to the pattern #{pattern}."
15600
+ end
15601
+
15602
+ # verify the required parameter 'tag' is set
15603
+ if @api_client.config.client_side_validation && tag.nil?
15604
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_subnet"
15605
+ end
15606
+ # resource path
15607
+ local_var_path = '/subnets/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15608
+
15609
+ # query parameters
15610
+ query_params = opts[:query_params] || {}
15611
+
15612
+ # header parameters
15613
+ header_params = opts[:header_params] || {}
15614
+ # HTTP header 'Accept' (if needed)
15615
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15616
+ # HTTP header 'Content-Type'
15617
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15618
+
15619
+ # form parameters
15620
+ form_params = opts[:form_params] || {}
15621
+
15622
+ # http body (model)
15623
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15624
+
15625
+ # return_type
15626
+ return_type = opts[:return_type] || 'Tag'
15627
+
15628
+ # auth_names
15629
+ auth_names = opts[:auth_names] || ['UserSecurity']
15630
+
15631
+ new_options = opts.merge(
15632
+ :header_params => header_params,
15633
+ :query_params => query_params,
15634
+ :form_params => form_params,
15635
+ :body => post_body,
15636
+ :auth_names => auth_names,
15637
+ :return_type => return_type
15638
+ )
15639
+
15640
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15641
+ if @api_client.config.debugging
15642
+ @api_client.config.logger.debug "API called: DefaultApi#tag_subnet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15643
+ end
15644
+ return data, status_code, headers
15645
+ end
15646
+
15647
+ # Tag a Vm
15648
+ # Tags a Vm object
15649
+ # @param id [String] ID of the resource
15650
+ # @param tag [Array<Tag>] Tag attributes to add
15651
+ # @param [Hash] opts the optional parameters
15652
+ # @return [Tag]
15653
+ def tag_vm(id, tag, opts = {})
15654
+ data, _status_code, _headers = tag_vm_with_http_info(id, tag, opts)
15655
+ data
15656
+ end
15657
+
15658
+ # Tag a Vm
15659
+ # Tags a Vm object
15660
+ # @param id [String] ID of the resource
15661
+ # @param tag [Array<Tag>] Tag attributes to add
15662
+ # @param [Hash] opts the optional parameters
15663
+ # @return [Array<(Tag, Integer, Hash)>] Tag data, response status code and response headers
15664
+ def tag_vm_with_http_info(id, tag, opts = {})
15665
+ if @api_client.config.debugging
15666
+ @api_client.config.logger.debug 'Calling API: DefaultApi.tag_vm ...'
15667
+ end
15668
+ # verify the required parameter 'id' is set
15669
+ if @api_client.config.client_side_validation && id.nil?
15670
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_vm"
15671
+ end
15672
+ pattern = Regexp.new(/^\d+$/)
15673
+ if @api_client.config.client_side_validation && id !~ pattern
15674
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_vm, must conform to the pattern #{pattern}."
15675
+ end
15676
+
15677
+ # verify the required parameter 'tag' is set
15678
+ if @api_client.config.client_side_validation && tag.nil?
15679
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_vm"
15680
+ end
15681
+ # resource path
15682
+ local_var_path = '/vms/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15683
+
15684
+ # query parameters
15685
+ query_params = opts[:query_params] || {}
15686
+
15687
+ # header parameters
15688
+ header_params = opts[:header_params] || {}
15689
+ # HTTP header 'Accept' (if needed)
15690
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15691
+ # HTTP header 'Content-Type'
15692
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15693
+
15694
+ # form parameters
15695
+ form_params = opts[:form_params] || {}
15696
+
15697
+ # http body (model)
15698
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15699
+
15700
+ # return_type
15701
+ return_type = opts[:return_type] || 'Tag'
15702
+
15703
+ # auth_names
15704
+ auth_names = opts[:auth_names] || ['UserSecurity']
15705
+
15706
+ new_options = opts.merge(
15707
+ :header_params => header_params,
15708
+ :query_params => query_params,
15709
+ :form_params => form_params,
15710
+ :body => post_body,
15711
+ :auth_names => auth_names,
15712
+ :return_type => return_type
15713
+ )
15714
+
15715
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15716
+ if @api_client.config.debugging
15717
+ @api_client.config.logger.debug "API called: DefaultApi#tag_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15718
+ end
15719
+ return data, status_code, headers
15720
+ end
15721
+
15722
+ # Untag a ContainerGroup
15723
+ # Untags a ContainerGroup object
15724
+ # @param id [String] ID of the resource
15725
+ # @param tag [Array<Tag>] Tag attributes to removed
15726
+ # @param [Hash] opts the optional parameters
15727
+ # @return [nil]
15728
+ def untag_container_group(id, tag, opts = {})
15729
+ untag_container_group_with_http_info(id, tag, opts)
15730
+ nil
15731
+ end
15732
+
15733
+ # Untag a ContainerGroup
15734
+ # Untags a ContainerGroup object
15735
+ # @param id [String] ID of the resource
15736
+ # @param tag [Array<Tag>] Tag attributes to removed
15737
+ # @param [Hash] opts the optional parameters
15738
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
15739
+ def untag_container_group_with_http_info(id, tag, opts = {})
15740
+ if @api_client.config.debugging
15741
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_group ...'
15742
+ end
15743
+ # verify the required parameter 'id' is set
15744
+ if @api_client.config.client_side_validation && id.nil?
15745
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_group"
15746
+ end
15747
+ pattern = Regexp.new(/^\d+$/)
15748
+ if @api_client.config.client_side_validation && id !~ pattern
15749
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_group, must conform to the pattern #{pattern}."
15750
+ end
15751
+
15752
+ # verify the required parameter 'tag' is set
15753
+ if @api_client.config.client_side_validation && tag.nil?
15754
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_group"
15755
+ end
15756
+ # resource path
15757
+ local_var_path = '/container_groups/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15758
+
15759
+ # query parameters
15760
+ query_params = opts[:query_params] || {}
15761
+
15762
+ # header parameters
15763
+ header_params = opts[:header_params] || {}
15764
+ # HTTP header 'Content-Type'
15765
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15766
+
15767
+ # form parameters
15768
+ form_params = opts[:form_params] || {}
15769
+
15770
+ # http body (model)
15771
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15772
+
15773
+ # return_type
15774
+ return_type = opts[:return_type]
15775
+
15776
+ # auth_names
15777
+ auth_names = opts[:auth_names] || ['UserSecurity']
15778
+
15779
+ new_options = opts.merge(
15780
+ :header_params => header_params,
15781
+ :query_params => query_params,
15782
+ :form_params => form_params,
15783
+ :body => post_body,
15784
+ :auth_names => auth_names,
15785
+ :return_type => return_type
15786
+ )
15787
+
15788
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15789
+ if @api_client.config.debugging
15790
+ @api_client.config.logger.debug "API called: DefaultApi#untag_container_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15791
+ end
15792
+ return data, status_code, headers
15793
+ end
15794
+
15795
+ # Untag a ContainerImage
15796
+ # Untags a ContainerImage object
15797
+ # @param id [String] ID of the resource
15798
+ # @param tag [Array<Tag>] Tag attributes to removed
15799
+ # @param [Hash] opts the optional parameters
15800
+ # @return [nil]
15801
+ def untag_container_image(id, tag, opts = {})
15802
+ untag_container_image_with_http_info(id, tag, opts)
15803
+ nil
15804
+ end
15805
+
15806
+ # Untag a ContainerImage
15807
+ # Untags a ContainerImage object
15808
+ # @param id [String] ID of the resource
15809
+ # @param tag [Array<Tag>] Tag attributes to removed
15810
+ # @param [Hash] opts the optional parameters
15811
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
15812
+ def untag_container_image_with_http_info(id, tag, opts = {})
15813
+ if @api_client.config.debugging
15814
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_image ...'
15815
+ end
15816
+ # verify the required parameter 'id' is set
15817
+ if @api_client.config.client_side_validation && id.nil?
15818
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_image"
15819
+ end
15820
+ pattern = Regexp.new(/^\d+$/)
15821
+ if @api_client.config.client_side_validation && id !~ pattern
15822
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_image, must conform to the pattern #{pattern}."
15823
+ end
15824
+
15825
+ # verify the required parameter 'tag' is set
15826
+ if @api_client.config.client_side_validation && tag.nil?
15827
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_image"
15828
+ end
15829
+ # resource path
15830
+ local_var_path = '/container_images/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15831
+
15832
+ # query parameters
15833
+ query_params = opts[:query_params] || {}
15834
+
15835
+ # header parameters
15836
+ header_params = opts[:header_params] || {}
15837
+ # HTTP header 'Content-Type'
15838
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15839
+
15840
+ # form parameters
15841
+ form_params = opts[:form_params] || {}
15842
+
15843
+ # http body (model)
15844
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15845
+
15846
+ # return_type
15847
+ return_type = opts[:return_type]
15848
+
15849
+ # auth_names
15850
+ auth_names = opts[:auth_names] || ['UserSecurity']
15851
+
15852
+ new_options = opts.merge(
15853
+ :header_params => header_params,
15854
+ :query_params => query_params,
15855
+ :form_params => form_params,
15856
+ :body => post_body,
15857
+ :auth_names => auth_names,
15858
+ :return_type => return_type
15859
+ )
15860
+
15861
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15862
+ if @api_client.config.debugging
15863
+ @api_client.config.logger.debug "API called: DefaultApi#untag_container_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15864
+ end
15865
+ return data, status_code, headers
15866
+ end
15867
+
15868
+ # Untag a ContainerNode
15869
+ # Untags a ContainerNode object
15870
+ # @param id [String] ID of the resource
15871
+ # @param tag [Array<Tag>] Tag attributes to removed
15872
+ # @param [Hash] opts the optional parameters
15873
+ # @return [nil]
15874
+ def untag_container_node(id, tag, opts = {})
15875
+ untag_container_node_with_http_info(id, tag, opts)
15876
+ nil
15877
+ end
15878
+
15879
+ # Untag a ContainerNode
15880
+ # Untags a ContainerNode object
15881
+ # @param id [String] ID of the resource
15882
+ # @param tag [Array<Tag>] Tag attributes to removed
15883
+ # @param [Hash] opts the optional parameters
15884
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
15885
+ def untag_container_node_with_http_info(id, tag, opts = {})
15886
+ if @api_client.config.debugging
15887
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_node ...'
15888
+ end
15889
+ # verify the required parameter 'id' is set
15890
+ if @api_client.config.client_side_validation && id.nil?
15891
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_node"
15892
+ end
15893
+ pattern = Regexp.new(/^\d+$/)
15894
+ if @api_client.config.client_side_validation && id !~ pattern
15895
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_node, must conform to the pattern #{pattern}."
15896
+ end
15897
+
15898
+ # verify the required parameter 'tag' is set
15899
+ if @api_client.config.client_side_validation && tag.nil?
15900
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_node"
15901
+ end
15902
+ # resource path
15903
+ local_var_path = '/container_nodes/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15904
+
15905
+ # query parameters
15906
+ query_params = opts[:query_params] || {}
15907
+
15908
+ # header parameters
15909
+ header_params = opts[:header_params] || {}
15910
+ # HTTP header 'Content-Type'
15911
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15912
+
15913
+ # form parameters
15914
+ form_params = opts[:form_params] || {}
15915
+
15916
+ # http body (model)
15917
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15918
+
15919
+ # return_type
15920
+ return_type = opts[:return_type]
15921
+
15922
+ # auth_names
15923
+ auth_names = opts[:auth_names] || ['UserSecurity']
15924
+
15925
+ new_options = opts.merge(
15926
+ :header_params => header_params,
15927
+ :query_params => query_params,
15928
+ :form_params => form_params,
15929
+ :body => post_body,
15930
+ :auth_names => auth_names,
15931
+ :return_type => return_type
15932
+ )
15933
+
15934
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15935
+ if @api_client.config.debugging
15936
+ @api_client.config.logger.debug "API called: DefaultApi#untag_container_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15937
+ end
15938
+ return data, status_code, headers
15939
+ end
15940
+
15941
+ # Untag a ContainerProject
15942
+ # Untags a ContainerProject object
15943
+ # @param id [String] ID of the resource
15944
+ # @param tag [Array<Tag>] Tag attributes to removed
15945
+ # @param [Hash] opts the optional parameters
15946
+ # @return [nil]
15947
+ def untag_container_project(id, tag, opts = {})
15948
+ untag_container_project_with_http_info(id, tag, opts)
15949
+ nil
15950
+ end
15951
+
15952
+ # Untag a ContainerProject
15953
+ # Untags a ContainerProject object
15954
+ # @param id [String] ID of the resource
15955
+ # @param tag [Array<Tag>] Tag attributes to removed
15956
+ # @param [Hash] opts the optional parameters
15957
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
15958
+ def untag_container_project_with_http_info(id, tag, opts = {})
15959
+ if @api_client.config.debugging
15960
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_project ...'
15961
+ end
15962
+ # verify the required parameter 'id' is set
15963
+ if @api_client.config.client_side_validation && id.nil?
15964
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_project"
15965
+ end
15966
+ pattern = Regexp.new(/^\d+$/)
15967
+ if @api_client.config.client_side_validation && id !~ pattern
15968
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_project, must conform to the pattern #{pattern}."
15969
+ end
15970
+
15971
+ # verify the required parameter 'tag' is set
15972
+ if @api_client.config.client_side_validation && tag.nil?
15973
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_project"
15974
+ end
15975
+ # resource path
15976
+ local_var_path = '/container_projects/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
15977
+
15978
+ # query parameters
15979
+ query_params = opts[:query_params] || {}
15980
+
15981
+ # header parameters
15982
+ header_params = opts[:header_params] || {}
15983
+ # HTTP header 'Content-Type'
15984
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15985
+
15986
+ # form parameters
15987
+ form_params = opts[:form_params] || {}
15988
+
15989
+ # http body (model)
15990
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
15991
+
15992
+ # return_type
15993
+ return_type = opts[:return_type]
15994
+
15995
+ # auth_names
15996
+ auth_names = opts[:auth_names] || ['UserSecurity']
15997
+
15998
+ new_options = opts.merge(
15999
+ :header_params => header_params,
16000
+ :query_params => query_params,
16001
+ :form_params => form_params,
16002
+ :body => post_body,
16003
+ :auth_names => auth_names,
16004
+ :return_type => return_type
16005
+ )
16006
+
16007
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16008
+ if @api_client.config.debugging
16009
+ @api_client.config.logger.debug "API called: DefaultApi#untag_container_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16010
+ end
16011
+ return data, status_code, headers
16012
+ end
16013
+
16014
+ # Untag a ContainerTemplate
16015
+ # Untags a ContainerTemplate object
16016
+ # @param id [String] ID of the resource
16017
+ # @param tag [Array<Tag>] Tag attributes to removed
16018
+ # @param [Hash] opts the optional parameters
16019
+ # @return [nil]
16020
+ def untag_container_template(id, tag, opts = {})
16021
+ untag_container_template_with_http_info(id, tag, opts)
16022
+ nil
16023
+ end
16024
+
16025
+ # Untag a ContainerTemplate
16026
+ # Untags a ContainerTemplate object
16027
+ # @param id [String] ID of the resource
16028
+ # @param tag [Array<Tag>] Tag attributes to removed
16029
+ # @param [Hash] opts the optional parameters
16030
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16031
+ def untag_container_template_with_http_info(id, tag, opts = {})
16032
+ if @api_client.config.debugging
16033
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_template ...'
16034
+ end
16035
+ # verify the required parameter 'id' is set
16036
+ if @api_client.config.client_side_validation && id.nil?
16037
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_template"
16038
+ end
16039
+ pattern = Regexp.new(/^\d+$/)
16040
+ if @api_client.config.client_side_validation && id !~ pattern
16041
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_template, must conform to the pattern #{pattern}."
16042
+ end
16043
+
16044
+ # verify the required parameter 'tag' is set
16045
+ if @api_client.config.client_side_validation && tag.nil?
16046
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_template"
16047
+ end
16048
+ # resource path
16049
+ local_var_path = '/container_templates/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16050
+
16051
+ # query parameters
16052
+ query_params = opts[:query_params] || {}
16053
+
16054
+ # header parameters
16055
+ header_params = opts[:header_params] || {}
16056
+ # HTTP header 'Content-Type'
16057
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16058
+
16059
+ # form parameters
16060
+ form_params = opts[:form_params] || {}
16061
+
16062
+ # http body (model)
16063
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16064
+
16065
+ # return_type
16066
+ return_type = opts[:return_type]
16067
+
16068
+ # auth_names
16069
+ auth_names = opts[:auth_names] || ['UserSecurity']
16070
+
16071
+ new_options = opts.merge(
16072
+ :header_params => header_params,
16073
+ :query_params => query_params,
16074
+ :form_params => form_params,
16075
+ :body => post_body,
16076
+ :auth_names => auth_names,
16077
+ :return_type => return_type
16078
+ )
16079
+
16080
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16081
+ if @api_client.config.debugging
16082
+ @api_client.config.logger.debug "API called: DefaultApi#untag_container_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16083
+ end
16084
+ return data, status_code, headers
16085
+ end
16086
+
16087
+ # Untag a Ipaddress
16088
+ # Untags a Ipaddress object
16089
+ # @param id [String] ID of the resource
16090
+ # @param tag [Array<Tag>] Tag attributes to removed
16091
+ # @param [Hash] opts the optional parameters
16092
+ # @return [nil]
16093
+ def untag_ipaddress(id, tag, opts = {})
16094
+ untag_ipaddress_with_http_info(id, tag, opts)
16095
+ nil
16096
+ end
16097
+
16098
+ # Untag a Ipaddress
16099
+ # Untags a Ipaddress object
16100
+ # @param id [String] ID of the resource
16101
+ # @param tag [Array<Tag>] Tag attributes to removed
16102
+ # @param [Hash] opts the optional parameters
16103
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16104
+ def untag_ipaddress_with_http_info(id, tag, opts = {})
16105
+ if @api_client.config.debugging
16106
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_ipaddress ...'
16107
+ end
16108
+ # verify the required parameter 'id' is set
16109
+ if @api_client.config.client_side_validation && id.nil?
16110
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_ipaddress"
16111
+ end
16112
+ pattern = Regexp.new(/^\d+$/)
16113
+ if @api_client.config.client_side_validation && id !~ pattern
16114
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_ipaddress, must conform to the pattern #{pattern}."
16115
+ end
16116
+
16117
+ # verify the required parameter 'tag' is set
16118
+ if @api_client.config.client_side_validation && tag.nil?
16119
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_ipaddress"
16120
+ end
16121
+ # resource path
16122
+ local_var_path = '/ipaddresses/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16123
+
16124
+ # query parameters
16125
+ query_params = opts[:query_params] || {}
16126
+
16127
+ # header parameters
16128
+ header_params = opts[:header_params] || {}
16129
+ # HTTP header 'Content-Type'
16130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16131
+
16132
+ # form parameters
16133
+ form_params = opts[:form_params] || {}
16134
+
16135
+ # http body (model)
16136
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16137
+
16138
+ # return_type
16139
+ return_type = opts[:return_type]
16140
+
16141
+ # auth_names
16142
+ auth_names = opts[:auth_names] || ['UserSecurity']
16143
+
16144
+ new_options = opts.merge(
16145
+ :header_params => header_params,
16146
+ :query_params => query_params,
16147
+ :form_params => form_params,
16148
+ :body => post_body,
16149
+ :auth_names => auth_names,
16150
+ :return_type => return_type
16151
+ )
16152
+
16153
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16154
+ if @api_client.config.debugging
16155
+ @api_client.config.logger.debug "API called: DefaultApi#untag_ipaddress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16156
+ end
16157
+ return data, status_code, headers
16158
+ end
16159
+
16160
+ # Untag a Network
16161
+ # Untags a Network object
16162
+ # @param id [String] ID of the resource
16163
+ # @param tag [Array<Tag>] Tag attributes to removed
16164
+ # @param [Hash] opts the optional parameters
16165
+ # @return [nil]
16166
+ def untag_network(id, tag, opts = {})
16167
+ untag_network_with_http_info(id, tag, opts)
16168
+ nil
16169
+ end
16170
+
16171
+ # Untag a Network
16172
+ # Untags a Network object
16173
+ # @param id [String] ID of the resource
16174
+ # @param tag [Array<Tag>] Tag attributes to removed
16175
+ # @param [Hash] opts the optional parameters
16176
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16177
+ def untag_network_with_http_info(id, tag, opts = {})
16178
+ if @api_client.config.debugging
16179
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_network ...'
16180
+ end
16181
+ # verify the required parameter 'id' is set
16182
+ if @api_client.config.client_side_validation && id.nil?
16183
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_network"
16184
+ end
16185
+ pattern = Regexp.new(/^\d+$/)
16186
+ if @api_client.config.client_side_validation && id !~ pattern
16187
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_network, must conform to the pattern #{pattern}."
16188
+ end
16189
+
16190
+ # verify the required parameter 'tag' is set
16191
+ if @api_client.config.client_side_validation && tag.nil?
16192
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_network"
16193
+ end
16194
+ # resource path
16195
+ local_var_path = '/networks/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16196
+
16197
+ # query parameters
16198
+ query_params = opts[:query_params] || {}
16199
+
16200
+ # header parameters
16201
+ header_params = opts[:header_params] || {}
16202
+ # HTTP header 'Content-Type'
16203
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16204
+
16205
+ # form parameters
16206
+ form_params = opts[:form_params] || {}
16207
+
16208
+ # http body (model)
16209
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16210
+
16211
+ # return_type
16212
+ return_type = opts[:return_type]
16213
+
16214
+ # auth_names
16215
+ auth_names = opts[:auth_names] || ['UserSecurity']
16216
+
16217
+ new_options = opts.merge(
16218
+ :header_params => header_params,
16219
+ :query_params => query_params,
16220
+ :form_params => form_params,
16221
+ :body => post_body,
16222
+ :auth_names => auth_names,
16223
+ :return_type => return_type
16224
+ )
16225
+
16226
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16227
+ if @api_client.config.debugging
16228
+ @api_client.config.logger.debug "API called: DefaultApi#untag_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16229
+ end
16230
+ return data, status_code, headers
16231
+ end
16232
+
16233
+ # Untag a NetworkAdapter
16234
+ # Untags a NetworkAdapter object
16235
+ # @param id [String] ID of the resource
16236
+ # @param tag [Array<Tag>] Tag attributes to removed
16237
+ # @param [Hash] opts the optional parameters
16238
+ # @return [nil]
16239
+ def untag_network_adapter(id, tag, opts = {})
16240
+ untag_network_adapter_with_http_info(id, tag, opts)
16241
+ nil
16242
+ end
16243
+
16244
+ # Untag a NetworkAdapter
16245
+ # Untags a NetworkAdapter object
16246
+ # @param id [String] ID of the resource
16247
+ # @param tag [Array<Tag>] Tag attributes to removed
16248
+ # @param [Hash] opts the optional parameters
16249
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16250
+ def untag_network_adapter_with_http_info(id, tag, opts = {})
16251
+ if @api_client.config.debugging
16252
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_network_adapter ...'
16253
+ end
16254
+ # verify the required parameter 'id' is set
16255
+ if @api_client.config.client_side_validation && id.nil?
16256
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_network_adapter"
16257
+ end
16258
+ pattern = Regexp.new(/^\d+$/)
16259
+ if @api_client.config.client_side_validation && id !~ pattern
16260
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_network_adapter, must conform to the pattern #{pattern}."
16261
+ end
16262
+
16263
+ # verify the required parameter 'tag' is set
16264
+ if @api_client.config.client_side_validation && tag.nil?
16265
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_network_adapter"
16266
+ end
16267
+ # resource path
16268
+ local_var_path = '/network_adapters/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16269
+
16270
+ # query parameters
16271
+ query_params = opts[:query_params] || {}
16272
+
16273
+ # header parameters
16274
+ header_params = opts[:header_params] || {}
16275
+ # HTTP header 'Content-Type'
16276
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16277
+
16278
+ # form parameters
16279
+ form_params = opts[:form_params] || {}
16280
+
16281
+ # http body (model)
16282
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16283
+
16284
+ # return_type
16285
+ return_type = opts[:return_type]
16286
+
16287
+ # auth_names
16288
+ auth_names = opts[:auth_names] || ['UserSecurity']
16289
+
16290
+ new_options = opts.merge(
16291
+ :header_params => header_params,
16292
+ :query_params => query_params,
16293
+ :form_params => form_params,
16294
+ :body => post_body,
16295
+ :auth_names => auth_names,
16296
+ :return_type => return_type
16297
+ )
16298
+
16299
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16300
+ if @api_client.config.debugging
16301
+ @api_client.config.logger.debug "API called: DefaultApi#untag_network_adapter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16302
+ end
16303
+ return data, status_code, headers
16304
+ end
16305
+
16306
+ # Untag a SecurityGroup
16307
+ # Untags a SecurityGroup object
16308
+ # @param id [String] ID of the resource
16309
+ # @param tag [Array<Tag>] Tag attributes to removed
16310
+ # @param [Hash] opts the optional parameters
16311
+ # @return [nil]
16312
+ def untag_security_group(id, tag, opts = {})
16313
+ untag_security_group_with_http_info(id, tag, opts)
16314
+ nil
16315
+ end
16316
+
16317
+ # Untag a SecurityGroup
16318
+ # Untags a SecurityGroup object
16319
+ # @param id [String] ID of the resource
16320
+ # @param tag [Array<Tag>] Tag attributes to removed
16321
+ # @param [Hash] opts the optional parameters
16322
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16323
+ def untag_security_group_with_http_info(id, tag, opts = {})
16324
+ if @api_client.config.debugging
16325
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_security_group ...'
16326
+ end
16327
+ # verify the required parameter 'id' is set
16328
+ if @api_client.config.client_side_validation && id.nil?
16329
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_security_group"
16330
+ end
16331
+ pattern = Regexp.new(/^\d+$/)
16332
+ if @api_client.config.client_side_validation && id !~ pattern
16333
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_security_group, must conform to the pattern #{pattern}."
16334
+ end
16335
+
16336
+ # verify the required parameter 'tag' is set
16337
+ if @api_client.config.client_side_validation && tag.nil?
16338
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_security_group"
16339
+ end
16340
+ # resource path
16341
+ local_var_path = '/security_groups/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16342
+
16343
+ # query parameters
16344
+ query_params = opts[:query_params] || {}
16345
+
16346
+ # header parameters
16347
+ header_params = opts[:header_params] || {}
16348
+ # HTTP header 'Content-Type'
16349
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16350
+
16351
+ # form parameters
16352
+ form_params = opts[:form_params] || {}
16353
+
16354
+ # http body (model)
16355
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16356
+
16357
+ # return_type
16358
+ return_type = opts[:return_type]
16359
+
16360
+ # auth_names
16361
+ auth_names = opts[:auth_names] || ['UserSecurity']
16362
+
16363
+ new_options = opts.merge(
16364
+ :header_params => header_params,
16365
+ :query_params => query_params,
16366
+ :form_params => form_params,
16367
+ :body => post_body,
16368
+ :auth_names => auth_names,
16369
+ :return_type => return_type
16370
+ )
16371
+
16372
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16373
+ if @api_client.config.debugging
16374
+ @api_client.config.logger.debug "API called: DefaultApi#untag_security_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16375
+ end
16376
+ return data, status_code, headers
16377
+ end
16378
+
16379
+ # Untag a ServiceInventory
16380
+ # Untags a ServiceInventory object
16381
+ # @param id [String] ID of the resource
16382
+ # @param tag [Array<Tag>] Tag attributes to removed
16383
+ # @param [Hash] opts the optional parameters
16384
+ # @return [nil]
16385
+ def untag_service_inventory(id, tag, opts = {})
16386
+ untag_service_inventory_with_http_info(id, tag, opts)
16387
+ nil
16388
+ end
16389
+
16390
+ # Untag a ServiceInventory
16391
+ # Untags a ServiceInventory object
16392
+ # @param id [String] ID of the resource
16393
+ # @param tag [Array<Tag>] Tag attributes to removed
16394
+ # @param [Hash] opts the optional parameters
16395
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16396
+ def untag_service_inventory_with_http_info(id, tag, opts = {})
16397
+ if @api_client.config.debugging
16398
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_service_inventory ...'
16399
+ end
16400
+ # verify the required parameter 'id' is set
16401
+ if @api_client.config.client_side_validation && id.nil?
16402
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_service_inventory"
16403
+ end
16404
+ pattern = Regexp.new(/^\d+$/)
16405
+ if @api_client.config.client_side_validation && id !~ pattern
16406
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_service_inventory, must conform to the pattern #{pattern}."
16407
+ end
16408
+
16409
+ # verify the required parameter 'tag' is set
16410
+ if @api_client.config.client_side_validation && tag.nil?
16411
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_service_inventory"
16412
+ end
16413
+ # resource path
16414
+ local_var_path = '/service_inventories/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16415
+
16416
+ # query parameters
16417
+ query_params = opts[:query_params] || {}
16418
+
16419
+ # header parameters
16420
+ header_params = opts[:header_params] || {}
16421
+ # HTTP header 'Content-Type'
16422
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16423
+
16424
+ # form parameters
16425
+ form_params = opts[:form_params] || {}
16426
+
16427
+ # http body (model)
16428
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16429
+
16430
+ # return_type
16431
+ return_type = opts[:return_type]
16432
+
16433
+ # auth_names
16434
+ auth_names = opts[:auth_names] || ['UserSecurity']
16435
+
16436
+ new_options = opts.merge(
16437
+ :header_params => header_params,
16438
+ :query_params => query_params,
16439
+ :form_params => form_params,
16440
+ :body => post_body,
16441
+ :auth_names => auth_names,
16442
+ :return_type => return_type
16443
+ )
16444
+
16445
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16446
+ if @api_client.config.debugging
16447
+ @api_client.config.logger.debug "API called: DefaultApi#untag_service_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16448
+ end
16449
+ return data, status_code, headers
16450
+ end
16451
+
16452
+ # Untag a ServiceOffering
16453
+ # Untags a ServiceOffering object
16454
+ # @param id [String] ID of the resource
16455
+ # @param tag [Array<Tag>] Tag attributes to removed
16456
+ # @param [Hash] opts the optional parameters
16457
+ # @return [nil]
16458
+ def untag_service_offering(id, tag, opts = {})
16459
+ untag_service_offering_with_http_info(id, tag, opts)
16460
+ nil
16461
+ end
16462
+
16463
+ # Untag a ServiceOffering
16464
+ # Untags a ServiceOffering object
16465
+ # @param id [String] ID of the resource
16466
+ # @param tag [Array<Tag>] Tag attributes to removed
16467
+ # @param [Hash] opts the optional parameters
16468
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16469
+ def untag_service_offering_with_http_info(id, tag, opts = {})
16470
+ if @api_client.config.debugging
16471
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_service_offering ...'
16472
+ end
16473
+ # verify the required parameter 'id' is set
16474
+ if @api_client.config.client_side_validation && id.nil?
16475
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_service_offering"
16476
+ end
16477
+ pattern = Regexp.new(/^\d+$/)
16478
+ if @api_client.config.client_side_validation && id !~ pattern
16479
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_service_offering, must conform to the pattern #{pattern}."
16480
+ end
16481
+
16482
+ # verify the required parameter 'tag' is set
16483
+ if @api_client.config.client_side_validation && tag.nil?
16484
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_service_offering"
16485
+ end
16486
+ # resource path
16487
+ local_var_path = '/service_offerings/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16488
+
16489
+ # query parameters
16490
+ query_params = opts[:query_params] || {}
16491
+
16492
+ # header parameters
16493
+ header_params = opts[:header_params] || {}
16494
+ # HTTP header 'Content-Type'
16495
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16496
+
16497
+ # form parameters
16498
+ form_params = opts[:form_params] || {}
16499
+
16500
+ # http body (model)
16501
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16502
+
16503
+ # return_type
16504
+ return_type = opts[:return_type]
16505
+
16506
+ # auth_names
16507
+ auth_names = opts[:auth_names] || ['UserSecurity']
16508
+
16509
+ new_options = opts.merge(
16510
+ :header_params => header_params,
16511
+ :query_params => query_params,
16512
+ :form_params => form_params,
16513
+ :body => post_body,
16514
+ :auth_names => auth_names,
16515
+ :return_type => return_type
16516
+ )
16517
+
16518
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16519
+ if @api_client.config.debugging
16520
+ @api_client.config.logger.debug "API called: DefaultApi#untag_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16521
+ end
16522
+ return data, status_code, headers
16523
+ end
16524
+
16525
+ # Untag a Subnet
16526
+ # Untags a Subnet object
16527
+ # @param id [String] ID of the resource
16528
+ # @param tag [Array<Tag>] Tag attributes to removed
16529
+ # @param [Hash] opts the optional parameters
16530
+ # @return [nil]
16531
+ def untag_subnet(id, tag, opts = {})
16532
+ untag_subnet_with_http_info(id, tag, opts)
16533
+ nil
16534
+ end
16535
+
16536
+ # Untag a Subnet
16537
+ # Untags a Subnet object
16538
+ # @param id [String] ID of the resource
16539
+ # @param tag [Array<Tag>] Tag attributes to removed
16540
+ # @param [Hash] opts the optional parameters
16541
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16542
+ def untag_subnet_with_http_info(id, tag, opts = {})
16543
+ if @api_client.config.debugging
16544
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_subnet ...'
16545
+ end
16546
+ # verify the required parameter 'id' is set
16547
+ if @api_client.config.client_side_validation && id.nil?
16548
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_subnet"
16549
+ end
16550
+ pattern = Regexp.new(/^\d+$/)
16551
+ if @api_client.config.client_side_validation && id !~ pattern
16552
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_subnet, must conform to the pattern #{pattern}."
16553
+ end
16554
+
16555
+ # verify the required parameter 'tag' is set
16556
+ if @api_client.config.client_side_validation && tag.nil?
16557
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_subnet"
16558
+ end
16559
+ # resource path
16560
+ local_var_path = '/subnets/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16561
+
16562
+ # query parameters
16563
+ query_params = opts[:query_params] || {}
16564
+
16565
+ # header parameters
16566
+ header_params = opts[:header_params] || {}
16567
+ # HTTP header 'Content-Type'
16568
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16569
+
16570
+ # form parameters
16571
+ form_params = opts[:form_params] || {}
16572
+
16573
+ # http body (model)
16574
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16575
+
16576
+ # return_type
16577
+ return_type = opts[:return_type]
16578
+
16579
+ # auth_names
16580
+ auth_names = opts[:auth_names] || ['UserSecurity']
16581
+
16582
+ new_options = opts.merge(
16583
+ :header_params => header_params,
16584
+ :query_params => query_params,
16585
+ :form_params => form_params,
16586
+ :body => post_body,
16587
+ :auth_names => auth_names,
16588
+ :return_type => return_type
16589
+ )
16590
+
16591
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16592
+ if @api_client.config.debugging
16593
+ @api_client.config.logger.debug "API called: DefaultApi#untag_subnet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16594
+ end
16595
+ return data, status_code, headers
16596
+ end
16597
+
16598
+ # Untag a Vm
16599
+ # Untags a Vm object
16600
+ # @param id [String] ID of the resource
16601
+ # @param tag [Array<Tag>] Tag attributes to removed
16602
+ # @param [Hash] opts the optional parameters
16603
+ # @return [nil]
16604
+ def untag_vm(id, tag, opts = {})
16605
+ untag_vm_with_http_info(id, tag, opts)
16606
+ nil
16607
+ end
16608
+
16609
+ # Untag a Vm
16610
+ # Untags a Vm object
16611
+ # @param id [String] ID of the resource
16612
+ # @param tag [Array<Tag>] Tag attributes to removed
16613
+ # @param [Hash] opts the optional parameters
16614
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
16615
+ def untag_vm_with_http_info(id, tag, opts = {})
16616
+ if @api_client.config.debugging
16617
+ @api_client.config.logger.debug 'Calling API: DefaultApi.untag_vm ...'
16618
+ end
16619
+ # verify the required parameter 'id' is set
16620
+ if @api_client.config.client_side_validation && id.nil?
16621
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_vm"
16622
+ end
16623
+ pattern = Regexp.new(/^\d+$/)
16624
+ if @api_client.config.client_side_validation && id !~ pattern
16625
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_vm, must conform to the pattern #{pattern}."
16626
+ end
16627
+
16628
+ # verify the required parameter 'tag' is set
16629
+ if @api_client.config.client_side_validation && tag.nil?
16630
+ fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_vm"
16631
+ end
16632
+ # resource path
16633
+ local_var_path = '/vms/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
16634
+
16635
+ # query parameters
16636
+ query_params = opts[:query_params] || {}
16637
+
16638
+ # header parameters
16639
+ header_params = opts[:header_params] || {}
16640
+ # HTTP header 'Content-Type'
16641
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16642
+
16643
+ # form parameters
16644
+ form_params = opts[:form_params] || {}
16645
+
16646
+ # http body (model)
16647
+ post_body = opts[:body] || @api_client.object_to_http_body(tag)
16648
+
16649
+ # return_type
16650
+ return_type = opts[:return_type]
16651
+
16652
+ # auth_names
16653
+ auth_names = opts[:auth_names] || ['UserSecurity']
16654
+
16655
+ new_options = opts.merge(
16656
+ :header_params => header_params,
16657
+ :query_params => query_params,
16658
+ :form_params => form_params,
16659
+ :body => post_body,
16660
+ :auth_names => auth_names,
16661
+ :return_type => return_type
16662
+ )
16663
+
16664
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16665
+ if @api_client.config.debugging
16666
+ @api_client.config.logger.debug "API called: DefaultApi#untag_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16667
+ end
16668
+ return data, status_code, headers
16669
+ end
16670
+
14747
16671
  # Update an existing Task
14748
16672
  # Updates a Task object
14749
16673
  # @param id [String] ID of the resource