ibm_cloud_resource_controller 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +13 -0
  3. data/.gitignore +13 -0
  4. data/.openapi-generator-ignore +23 -0
  5. data/.openapi-generator/VERSION +1 -0
  6. data/.rspec +3 -0
  7. data/.travis.yml +49 -0
  8. data/CHANGELOG.md +2 -0
  9. data/CODE_OF_CONDUCT.md +76 -0
  10. data/CONTRIBUTING.md +13 -0
  11. data/Gemfile +4 -6
  12. data/LICENSE +201 -0
  13. data/README.md +56 -120
  14. data/Rakefile +3 -7
  15. data/bin/console +14 -0
  16. data/bin/setup +8 -0
  17. data/ibm_cloud_resource_controller.gemspec +34 -37
  18. data/lib/ibm_cloud_resource_controller.rb +9 -64
  19. data/lib/ibm_cloud_resource_controller/authenticators.rb +15 -0
  20. data/lib/ibm_cloud_resource_controller/common.rb +22 -0
  21. data/lib/ibm_cloud_resource_controller/resource_controller_v2.rb +982 -0
  22. data/lib/ibm_cloud_resource_controller/resource_manager_v2.rb +303 -0
  23. data/lib/ibm_cloud_resource_controller/version.rb +1 -13
  24. metadata +59 -145
  25. data/docs/Credentials.md +0 -25
  26. data/docs/ErrorReport.md +0 -23
  27. data/docs/PlanHistoryItem.md +0 -19
  28. data/docs/Reclamation.md +0 -45
  29. data/docs/ReclamationActionsPost.md +0 -19
  30. data/docs/ReclamationsList.md +0 -17
  31. data/docs/ResourceAlias.md +0 -57
  32. data/docs/ResourceAliasPatch.md +0 -17
  33. data/docs/ResourceAliasPost.md +0 -21
  34. data/docs/ResourceAliasesApi.md +0 -302
  35. data/docs/ResourceAliasesList.md +0 -21
  36. data/docs/ResourceBinding.md +0 -57
  37. data/docs/ResourceBindingPatch.md +0 -17
  38. data/docs/ResourceBindingPost.md +0 -25
  39. data/docs/ResourceBindingPostParameters.md +0 -17
  40. data/docs/ResourceBindingsApi.md +0 -300
  41. data/docs/ResourceBindingsList.md +0 -21
  42. data/docs/ResourceInstance.md +0 -81
  43. data/docs/ResourceInstancePatch.md +0 -23
  44. data/docs/ResourceInstancePost.md +0 -29
  45. data/docs/ResourceInstancesApi.md +0 -418
  46. data/docs/ResourceInstancesList.md +0 -21
  47. data/docs/ResourceKey.md +0 -53
  48. data/docs/ResourceKeyPatch.md +0 -17
  49. data/docs/ResourceKeyPost.md +0 -23
  50. data/docs/ResourceKeysApi.md +0 -298
  51. data/docs/ResourceKeysList.md +0 -21
  52. data/docs/ResourceReclamationsApi.md +0 -128
  53. data/git_push.sh +0 -58
  54. data/lib/ibm_cloud_resource_controller/api/resource_aliases_api.rb +0 -363
  55. data/lib/ibm_cloud_resource_controller/api/resource_bindings_api.rb +0 -360
  56. data/lib/ibm_cloud_resource_controller/api/resource_instances_api.rb +0 -493
  57. data/lib/ibm_cloud_resource_controller/api/resource_keys_api.rb +0 -357
  58. data/lib/ibm_cloud_resource_controller/api/resource_reclamations_api.rb +0 -156
  59. data/lib/ibm_cloud_resource_controller/api_client.rb +0 -388
  60. data/lib/ibm_cloud_resource_controller/api_error.rb +0 -57
  61. data/lib/ibm_cloud_resource_controller/configuration.rb +0 -248
  62. data/lib/ibm_cloud_resource_controller/models/credentials.rb +0 -250
  63. data/lib/ibm_cloud_resource_controller/models/error_report.rb +0 -240
  64. data/lib/ibm_cloud_resource_controller/models/plan_history_item.rb +0 -230
  65. data/lib/ibm_cloud_resource_controller/models/reclamation.rb +0 -352
  66. data/lib/ibm_cloud_resource_controller/models/reclamation_actions_post.rb +0 -220
  67. data/lib/ibm_cloud_resource_controller/models/reclamations_list.rb +0 -212
  68. data/lib/ibm_cloud_resource_controller/models/resource_alias.rb +0 -410
  69. data/lib/ibm_cloud_resource_controller/models/resource_alias_patch.rb +0 -236
  70. data/lib/ibm_cloud_resource_controller/models/resource_alias_post.rb +0 -266
  71. data/lib/ibm_cloud_resource_controller/models/resource_aliases_list.rb +0 -247
  72. data/lib/ibm_cloud_resource_controller/models/resource_binding.rb +0 -410
  73. data/lib/ibm_cloud_resource_controller/models/resource_binding_patch.rb +0 -236
  74. data/lib/ibm_cloud_resource_controller/models/resource_binding_post.rb +0 -278
  75. data/lib/ibm_cloud_resource_controller/models/resource_binding_post_parameters.rb +0 -210
  76. data/lib/ibm_cloud_resource_controller/models/resource_bindings_list.rb +0 -247
  77. data/lib/ibm_cloud_resource_controller/models/resource_instance.rb +0 -536
  78. data/lib/ibm_cloud_resource_controller/models/resource_instance_patch.rb +0 -259
  79. data/lib/ibm_cloud_resource_controller/models/resource_instance_post.rb +0 -317
  80. data/lib/ibm_cloud_resource_controller/models/resource_instances_list.rb +0 -247
  81. data/lib/ibm_cloud_resource_controller/models/resource_key.rb +0 -390
  82. data/lib/ibm_cloud_resource_controller/models/resource_key_patch.rb +0 -236
  83. data/lib/ibm_cloud_resource_controller/models/resource_key_post.rb +0 -251
  84. data/lib/ibm_cloud_resource_controller/models/resource_keys_list.rb +0 -247
  85. data/spec/api/resource_aliases_api_spec.rb +0 -104
  86. data/spec/api/resource_bindings_api_spec.rb +0 -103
  87. data/spec/api/resource_instances_api_spec.rb +0 -130
  88. data/spec/api/resource_keys_api_spec.rb +0 -102
  89. data/spec/api/resource_reclamations_api_spec.rb +0 -62
  90. data/spec/api_client_spec.rb +0 -226
  91. data/spec/configuration_spec.rb +0 -42
  92. data/spec/models/credentials_spec.rb +0 -65
  93. data/spec/models/error_report_spec.rb +0 -59
  94. data/spec/models/plan_history_item_spec.rb +0 -47
  95. data/spec/models/reclamation_actions_post_spec.rb +0 -47
  96. data/spec/models/reclamation_spec.rb +0 -125
  97. data/spec/models/reclamations_list_spec.rb +0 -41
  98. data/spec/models/resource_alias_patch_spec.rb +0 -41
  99. data/spec/models/resource_alias_post_spec.rb +0 -53
  100. data/spec/models/resource_alias_spec.rb +0 -143
  101. data/spec/models/resource_aliases_list_spec.rb +0 -53
  102. data/spec/models/resource_binding_patch_spec.rb +0 -41
  103. data/spec/models/resource_binding_post_parameters_spec.rb +0 -41
  104. data/spec/models/resource_binding_post_spec.rb +0 -65
  105. data/spec/models/resource_binding_spec.rb +0 -137
  106. data/spec/models/resource_bindings_list_spec.rb +0 -53
  107. data/spec/models/resource_instance_patch_spec.rb +0 -59
  108. data/spec/models/resource_instance_post_spec.rb +0 -77
  109. data/spec/models/resource_instance_spec.rb +0 -191
  110. data/spec/models/resource_instances_list_spec.rb +0 -53
  111. data/spec/models/resource_key_patch_spec.rb +0 -41
  112. data/spec/models/resource_key_post_spec.rb +0 -59
  113. data/spec/models/resource_key_spec.rb +0 -125
  114. data/spec/models/resource_keys_list_spec.rb +0 -53
  115. data/spec/spec_helper.rb +0 -111
@@ -1,21 +0,0 @@
1
- # IbmCloudResourceController::ResourceAliasesList
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **next_url** | **String** | The URL for requesting the next page of results. |
8
- **resources** | [**Array<ResourceAlias>**](ResourceAlias.md) | A list of resource aliases. |
9
- **rows_count** | **Integer** | The number of resource aliases in `resources`. |
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'IbmCloudResourceController'
15
-
16
- instance = IbmCloudResourceController::ResourceAliasesList.new(next_url: null,
17
- resources: null,
18
- rows_count: null)
19
- ```
20
-
21
-
@@ -1,57 +0,0 @@
1
- # IbmCloudResourceController::ResourceBinding
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | The ID associated with the binding. | [optional]
8
- **guid** | **String** | When you create a new binding, a globally unique identifier (GUID) is assigned. This GUID is a unique internal identifier managed by the resource controller that corresponds to the binding. | [optional]
9
- **crn** | **String** | The full Cloud Resource Name (CRN) associated with the binding. For more information about this format, see [Cloud Resource Names](https://cloud.ibm.com/docs/overview?topic=overview-crn). | [optional]
10
- **url** | **String** | When you provision a new binding, a relative URL path is created identifying the location of the binding. | [optional]
11
- **name** | **String** | The human-readable name of the binding. | [optional]
12
- **account_id** | **String** | An alpha-numeric value identifying the account ID. | [optional]
13
- **resource_group_id** | **String** | The short ID of the resource group. | [optional]
14
- **source_crn** | **String** | The CRN of resource alias associated to the binding. | [optional]
15
- **target_crn** | **String** | The CRN of target resource, e.g. application, in a specific environment. | [optional]
16
- **role** | **String** | The role CRN. | [optional]
17
- **region_binding_id** | **String** | The short ID of the binding in specific targeted environment, e.g. `service_binding_id` in a given IBM Cloud environment. | [optional]
18
- **state** | **String** | The state of the binding. | [optional]
19
- **credentials** | [**Credentials**](Credentials.md) | The credentials for the binding. Additional key-value pairs are passed through from the resource brokers. For additional details, see the service’s documentation. | [optional]
20
- **iam_compatible** | **Boolean** | Specifies whether the binding’s credentials support IAM. | [optional]
21
- **resource_alias_url** | **String** | The relative path to the resource alias that this binding is associated with. | [optional]
22
- **created_at** | **DateTime** | The date when the binding was created. | [optional]
23
- **updated_at** | **DateTime** | The date when the binding was last updated. | [optional]
24
- **deleted_at** | **DateTime** | The date when the binding was deleted. | [optional]
25
- **created_by** | **String** | The subject who created the binding. | [optional]
26
- **updated_by** | **String** | The subject who updated the binding. | [optional]
27
- **deleted_by** | **String** | The subject who deleted the binding. | [optional]
28
-
29
- ## Code Sample
30
-
31
- ```ruby
32
- require 'IbmCloudResourceController'
33
-
34
- instance = IbmCloudResourceController::ResourceBinding.new(id: null,
35
- guid: null,
36
- crn: null,
37
- url: null,
38
- name: null,
39
- account_id: null,
40
- resource_group_id: null,
41
- source_crn: null,
42
- target_crn: null,
43
- role: null,
44
- region_binding_id: null,
45
- state: null,
46
- credentials: null,
47
- iam_compatible: null,
48
- resource_alias_url: null,
49
- created_at: null,
50
- updated_at: null,
51
- deleted_at: null,
52
- created_by: null,
53
- updated_by: null,
54
- deleted_by: null)
55
- ```
56
-
57
-
@@ -1,17 +0,0 @@
1
- # IbmCloudResourceController::ResourceBindingPatch
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | The new name of the binding. Must be 180 characters or less and cannot include any special characters other than `(space) - . _ :`. |
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'IbmCloudResourceController'
13
-
14
- instance = IbmCloudResourceController::ResourceBindingPatch.new(name: my-new-binding-name)
15
- ```
16
-
17
-
@@ -1,25 +0,0 @@
1
- # IbmCloudResourceController::ResourceBindingPost
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | The name of the binding. Must be 180 characters or less and cannot include any special characters other than `(space) - . _ :`. | [optional]
8
- **source** | **String** | The short or long ID of resource alias. |
9
- **target** | **String** | The CRN of application to bind to in a specific environment, e.g. Dallas YP, CFEE instance |
10
- **parameters** | [**ResourceBindingPostParameters**](ResourceBindingPostParameters.md) | | [optional]
11
- **role** | **String** | The role name or it's CRN. | [optional] [default to 'Writer']
12
-
13
- ## Code Sample
14
-
15
- ```ruby
16
- require 'IbmCloudResourceController'
17
-
18
- instance = IbmCloudResourceController::ResourceBindingPost.new(name: my-binding,
19
- source: 25eba2a9-beef-450b-82cf-f5ad5e36c6dd,
20
- target: crn:v1:cf:public:cf:us-south:s/0ba4dba0-a120-4a1e-a124-5a249a904b76::cf-application:a1caa40b-2c24-4da8-8267-ac2c1a42ad0c,
21
- parameters: null,
22
- role: Writer)
23
- ```
24
-
25
-
@@ -1,17 +0,0 @@
1
- # IbmCloudResourceController::ResourceBindingPostParameters
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **serviceid_crn** | **String** | An optional platform defined option to reuse an existing IAM serviceId for the role assignment. | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'IbmCloudResourceController'
13
-
14
- instance = IbmCloudResourceController::ResourceBindingPostParameters.new(serviceid_crn: crn:v1:bluemix:public:iam-identity::a/9fceaa56d1ab84893af6b9eec5ab81bb::serviceid:ServiceId-fe4c29b5-db13-410a-bacc-b5779a03d393)
15
- ```
16
-
17
-
@@ -1,300 +0,0 @@
1
- # IbmCloudResourceController::ResourceBindingsApi
2
-
3
- All URIs are relative to *https://resource-controller.cloud.ibm.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_resource_binding**](ResourceBindingsApi.md#create_resource_binding) | **POST** /v2/resource_bindings | Create a new resource binding
8
- [**delete_resource_binding**](ResourceBindingsApi.md#delete_resource_binding) | **DELETE** /v2/resource_bindings/{id} | Delete a resource binding
9
- [**get_resource_binding**](ResourceBindingsApi.md#get_resource_binding) | **GET** /v2/resource_bindings/{id} | Get a resource binding
10
- [**list_resource_bindings**](ResourceBindingsApi.md#list_resource_bindings) | **GET** /v2/resource_bindings | Get a list of all resource bindings
11
- [**update_resource_binding**](ResourceBindingsApi.md#update_resource_binding) | **PATCH** /v2/resource_bindings/{id} | Update a resource binding
12
-
13
-
14
-
15
- ## create_resource_binding
16
-
17
- > ResourceBinding create_resource_binding(resource_binding_post)
18
-
19
- Create a new resource binding
20
-
21
- Create a new resource binding.
22
-
23
- ### Example
24
-
25
- ```ruby
26
- # load the gem
27
- require 'ibm_cloud_resource_controller'
28
- # setup authorization
29
- IbmCloudResourceController.configure do |config|
30
- # Configure API key authorization: IAM
31
- config.api_key['Authorization'] = 'YOUR API KEY'
32
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
- #config.api_key_prefix['Authorization'] = 'Bearer'
34
- end
35
-
36
- api_instance = IbmCloudResourceController::ResourceBindingsApi.new
37
- resource_binding_post = IbmCloudResourceController::ResourceBindingPost.new # ResourceBindingPost |
38
-
39
- begin
40
- #Create a new resource binding
41
- result = api_instance.create_resource_binding(resource_binding_post)
42
- p result
43
- rescue IbmCloudResourceController::ApiError => e
44
- puts "Exception when calling ResourceBindingsApi->create_resource_binding: #{e}"
45
- end
46
- ```
47
-
48
- ### Parameters
49
-
50
-
51
- Name | Type | Description | Notes
52
- ------------- | ------------- | ------------- | -------------
53
- **resource_binding_post** | [**ResourceBindingPost**](ResourceBindingPost.md)| |
54
-
55
- ### Return type
56
-
57
- [**ResourceBinding**](ResourceBinding.md)
58
-
59
- ### Authorization
60
-
61
- [IAM](../README.md#IAM)
62
-
63
- ### HTTP request headers
64
-
65
- - **Content-Type**: application/json
66
- - **Accept**: application/json
67
-
68
-
69
- ## delete_resource_binding
70
-
71
- > delete_resource_binding(id)
72
-
73
- Delete a resource binding
74
-
75
- Delete a resource binding by ID
76
-
77
- ### Example
78
-
79
- ```ruby
80
- # load the gem
81
- require 'ibm_cloud_resource_controller'
82
- # setup authorization
83
- IbmCloudResourceController.configure do |config|
84
- # Configure API key authorization: IAM
85
- config.api_key['Authorization'] = 'YOUR API KEY'
86
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
87
- #config.api_key_prefix['Authorization'] = 'Bearer'
88
- end
89
-
90
- api_instance = IbmCloudResourceController::ResourceBindingsApi.new
91
- id = 'id_example' # String | The short or long ID of the binding.
92
-
93
- begin
94
- #Delete a resource binding
95
- api_instance.delete_resource_binding(id)
96
- rescue IbmCloudResourceController::ApiError => e
97
- puts "Exception when calling ResourceBindingsApi->delete_resource_binding: #{e}"
98
- end
99
- ```
100
-
101
- ### Parameters
102
-
103
-
104
- Name | Type | Description | Notes
105
- ------------- | ------------- | ------------- | -------------
106
- **id** | **String**| The short or long ID of the binding. |
107
-
108
- ### Return type
109
-
110
- nil (empty response body)
111
-
112
- ### Authorization
113
-
114
- [IAM](../README.md#IAM)
115
-
116
- ### HTTP request headers
117
-
118
- - **Content-Type**: Not defined
119
- - **Accept**: application/json
120
-
121
-
122
- ## get_resource_binding
123
-
124
- > ResourceBinding get_resource_binding(id)
125
-
126
- Get a resource binding
127
-
128
- Retrieve a resource binding by ID.
129
-
130
- ### Example
131
-
132
- ```ruby
133
- # load the gem
134
- require 'ibm_cloud_resource_controller'
135
- # setup authorization
136
- IbmCloudResourceController.configure do |config|
137
- # Configure API key authorization: IAM
138
- config.api_key['Authorization'] = 'YOUR API KEY'
139
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
- #config.api_key_prefix['Authorization'] = 'Bearer'
141
- end
142
-
143
- api_instance = IbmCloudResourceController::ResourceBindingsApi.new
144
- id = 'id_example' # String | The short or long ID of the binding.
145
-
146
- begin
147
- #Get a resource binding
148
- result = api_instance.get_resource_binding(id)
149
- p result
150
- rescue IbmCloudResourceController::ApiError => e
151
- puts "Exception when calling ResourceBindingsApi->get_resource_binding: #{e}"
152
- end
153
- ```
154
-
155
- ### Parameters
156
-
157
-
158
- Name | Type | Description | Notes
159
- ------------- | ------------- | ------------- | -------------
160
- **id** | **String**| The short or long ID of the binding. |
161
-
162
- ### Return type
163
-
164
- [**ResourceBinding**](ResourceBinding.md)
165
-
166
- ### Authorization
167
-
168
- [IAM](../README.md#IAM)
169
-
170
- ### HTTP request headers
171
-
172
- - **Content-Type**: Not defined
173
- - **Accept**: application/json
174
-
175
-
176
- ## list_resource_bindings
177
-
178
- > ResourceBindingsList list_resource_bindings(opts)
179
-
180
- Get a list of all resource bindings
181
-
182
- Get a list of all resource bindings.
183
-
184
- ### Example
185
-
186
- ```ruby
187
- # load the gem
188
- require 'ibm_cloud_resource_controller'
189
- # setup authorization
190
- IbmCloudResourceController.configure do |config|
191
- # Configure API key authorization: IAM
192
- config.api_key['Authorization'] = 'YOUR API KEY'
193
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
194
- #config.api_key_prefix['Authorization'] = 'Bearer'
195
- end
196
-
197
- api_instance = IbmCloudResourceController::ResourceBindingsApi.new
198
- opts = {
199
- guid: 'guid_example', # String | The short ID of the binding.
200
- name: 'name_example', # String | The human-readable name of the binding.
201
- resource_group_id: 'resource_group_id_example', # String | Short ID of the resource group.
202
- resource_id: 'resource_id_example', # String | The unique ID of the offering (service name). This value is provided by and stored in the global catalog.
203
- region_binding_id: 'region_binding_id_example', # String | Short ID of the binding in the specific targeted environment, e.g. service_binding_id in a given IBM Cloud environment.
204
- limit: 'limit_example', # String | Limit on how many items should be returned
205
- updated_from: '2019-01-08T00:00:00.000Z', # String | Start date inclusive filter.
206
- updated_to: '2019-01-08T00:00:00.000Z' # String | End date inclusive filter.
207
- }
208
-
209
- begin
210
- #Get a list of all resource bindings
211
- result = api_instance.list_resource_bindings(opts)
212
- p result
213
- rescue IbmCloudResourceController::ApiError => e
214
- puts "Exception when calling ResourceBindingsApi->list_resource_bindings: #{e}"
215
- end
216
- ```
217
-
218
- ### Parameters
219
-
220
-
221
- Name | Type | Description | Notes
222
- ------------- | ------------- | ------------- | -------------
223
- **guid** | **String**| The short ID of the binding. | [optional]
224
- **name** | **String**| The human-readable name of the binding. | [optional]
225
- **resource_group_id** | **String**| Short ID of the resource group. | [optional]
226
- **resource_id** | **String**| The unique ID of the offering (service name). This value is provided by and stored in the global catalog. | [optional]
227
- **region_binding_id** | **String**| Short ID of the binding in the specific targeted environment, e.g. service_binding_id in a given IBM Cloud environment. | [optional]
228
- **limit** | **String**| Limit on how many items should be returned | [optional]
229
- **updated_from** | **String**| Start date inclusive filter. | [optional]
230
- **updated_to** | **String**| End date inclusive filter. | [optional]
231
-
232
- ### Return type
233
-
234
- [**ResourceBindingsList**](ResourceBindingsList.md)
235
-
236
- ### Authorization
237
-
238
- [IAM](../README.md#IAM)
239
-
240
- ### HTTP request headers
241
-
242
- - **Content-Type**: Not defined
243
- - **Accept**: application/json
244
-
245
-
246
- ## update_resource_binding
247
-
248
- > ResourceBinding update_resource_binding(id, resource_binding_patch)
249
-
250
- Update a resource binding
251
-
252
- Update a resource binding by ID.
253
-
254
- ### Example
255
-
256
- ```ruby
257
- # load the gem
258
- require 'ibm_cloud_resource_controller'
259
- # setup authorization
260
- IbmCloudResourceController.configure do |config|
261
- # Configure API key authorization: IAM
262
- config.api_key['Authorization'] = 'YOUR API KEY'
263
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
264
- #config.api_key_prefix['Authorization'] = 'Bearer'
265
- end
266
-
267
- api_instance = IbmCloudResourceController::ResourceBindingsApi.new
268
- id = 'id_example' # String | The short or long ID of the binding.
269
- resource_binding_patch = IbmCloudResourceController::ResourceBindingPatch.new # ResourceBindingPatch |
270
-
271
- begin
272
- #Update a resource binding
273
- result = api_instance.update_resource_binding(id, resource_binding_patch)
274
- p result
275
- rescue IbmCloudResourceController::ApiError => e
276
- puts "Exception when calling ResourceBindingsApi->update_resource_binding: #{e}"
277
- end
278
- ```
279
-
280
- ### Parameters
281
-
282
-
283
- Name | Type | Description | Notes
284
- ------------- | ------------- | ------------- | -------------
285
- **id** | **String**| The short or long ID of the binding. |
286
- **resource_binding_patch** | [**ResourceBindingPatch**](ResourceBindingPatch.md)| |
287
-
288
- ### Return type
289
-
290
- [**ResourceBinding**](ResourceBinding.md)
291
-
292
- ### Authorization
293
-
294
- [IAM](../README.md#IAM)
295
-
296
- ### HTTP request headers
297
-
298
- - **Content-Type**: application/json
299
- - **Accept**: application/json
300
-
@@ -1,21 +0,0 @@
1
- # IbmCloudResourceController::ResourceBindingsList
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **next_url** | **String** | The URL for requesting the next page of results. |
8
- **resources** | [**Array<ResourceBinding>**](ResourceBinding.md) | A list of resource bindings. |
9
- **rows_count** | **Integer** | The number of resource bindings in `resources`. |
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'IbmCloudResourceController'
15
-
16
- instance = IbmCloudResourceController::ResourceBindingsList.new(next_url: null,
17
- resources: null,
18
- rows_count: null)
19
- ```
20
-
21
-