ibm_cloud_resource_controller 1.0.1
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +148 -0
- data/Rakefile +10 -0
- data/docs/Credentials.md +25 -0
- data/docs/ErrorReport.md +23 -0
- data/docs/PlanHistoryItem.md +19 -0
- data/docs/Reclamation.md +45 -0
- data/docs/ReclamationActionsPost.md +19 -0
- data/docs/ReclamationsList.md +17 -0
- data/docs/ResourceAlias.md +57 -0
- data/docs/ResourceAliasPatch.md +17 -0
- data/docs/ResourceAliasPost.md +21 -0
- data/docs/ResourceAliasesApi.md +302 -0
- data/docs/ResourceAliasesList.md +21 -0
- data/docs/ResourceBinding.md +57 -0
- data/docs/ResourceBindingPatch.md +17 -0
- data/docs/ResourceBindingPost.md +25 -0
- data/docs/ResourceBindingPostParameters.md +17 -0
- data/docs/ResourceBindingsApi.md +300 -0
- data/docs/ResourceBindingsList.md +21 -0
- data/docs/ResourceInstance.md +81 -0
- data/docs/ResourceInstancePatch.md +23 -0
- data/docs/ResourceInstancePost.md +29 -0
- data/docs/ResourceInstancesApi.md +418 -0
- data/docs/ResourceInstancesList.md +21 -0
- data/docs/ResourceKey.md +53 -0
- data/docs/ResourceKeyPatch.md +17 -0
- data/docs/ResourceKeyPost.md +23 -0
- data/docs/ResourceKeysApi.md +298 -0
- data/docs/ResourceKeysList.md +21 -0
- data/docs/ResourceReclamationsApi.md +128 -0
- data/git_push.sh +58 -0
- data/ibm_cloud_resource_controller.gemspec +38 -0
- data/lib/ibm_cloud_resource_controller.rb +67 -0
- data/lib/ibm_cloud_resource_controller/api/resource_aliases_api.rb +363 -0
- data/lib/ibm_cloud_resource_controller/api/resource_bindings_api.rb +360 -0
- data/lib/ibm_cloud_resource_controller/api/resource_instances_api.rb +493 -0
- data/lib/ibm_cloud_resource_controller/api/resource_keys_api.rb +357 -0
- data/lib/ibm_cloud_resource_controller/api/resource_reclamations_api.rb +156 -0
- data/lib/ibm_cloud_resource_controller/api_client.rb +388 -0
- data/lib/ibm_cloud_resource_controller/api_error.rb +57 -0
- data/lib/ibm_cloud_resource_controller/configuration.rb +248 -0
- data/lib/ibm_cloud_resource_controller/models/credentials.rb +250 -0
- data/lib/ibm_cloud_resource_controller/models/error_report.rb +240 -0
- data/lib/ibm_cloud_resource_controller/models/plan_history_item.rb +230 -0
- data/lib/ibm_cloud_resource_controller/models/reclamation.rb +352 -0
- data/lib/ibm_cloud_resource_controller/models/reclamation_actions_post.rb +220 -0
- data/lib/ibm_cloud_resource_controller/models/reclamations_list.rb +212 -0
- data/lib/ibm_cloud_resource_controller/models/resource_alias.rb +410 -0
- data/lib/ibm_cloud_resource_controller/models/resource_alias_patch.rb +236 -0
- data/lib/ibm_cloud_resource_controller/models/resource_alias_post.rb +266 -0
- data/lib/ibm_cloud_resource_controller/models/resource_aliases_list.rb +247 -0
- data/lib/ibm_cloud_resource_controller/models/resource_binding.rb +410 -0
- data/lib/ibm_cloud_resource_controller/models/resource_binding_patch.rb +236 -0
- data/lib/ibm_cloud_resource_controller/models/resource_binding_post.rb +278 -0
- data/lib/ibm_cloud_resource_controller/models/resource_binding_post_parameters.rb +210 -0
- data/lib/ibm_cloud_resource_controller/models/resource_bindings_list.rb +247 -0
- data/lib/ibm_cloud_resource_controller/models/resource_instance.rb +536 -0
- data/lib/ibm_cloud_resource_controller/models/resource_instance_patch.rb +259 -0
- data/lib/ibm_cloud_resource_controller/models/resource_instance_post.rb +317 -0
- data/lib/ibm_cloud_resource_controller/models/resource_instances_list.rb +247 -0
- data/lib/ibm_cloud_resource_controller/models/resource_key.rb +390 -0
- data/lib/ibm_cloud_resource_controller/models/resource_key_patch.rb +236 -0
- data/lib/ibm_cloud_resource_controller/models/resource_key_post.rb +251 -0
- data/lib/ibm_cloud_resource_controller/models/resource_keys_list.rb +247 -0
- data/lib/ibm_cloud_resource_controller/version.rb +15 -0
- data/spec/api/resource_aliases_api_spec.rb +104 -0
- data/spec/api/resource_bindings_api_spec.rb +103 -0
- data/spec/api/resource_instances_api_spec.rb +130 -0
- data/spec/api/resource_keys_api_spec.rb +102 -0
- data/spec/api/resource_reclamations_api_spec.rb +62 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/credentials_spec.rb +65 -0
- data/spec/models/error_report_spec.rb +59 -0
- data/spec/models/plan_history_item_spec.rb +47 -0
- data/spec/models/reclamation_actions_post_spec.rb +47 -0
- data/spec/models/reclamation_spec.rb +125 -0
- data/spec/models/reclamations_list_spec.rb +41 -0
- data/spec/models/resource_alias_patch_spec.rb +41 -0
- data/spec/models/resource_alias_post_spec.rb +53 -0
- data/spec/models/resource_alias_spec.rb +143 -0
- data/spec/models/resource_aliases_list_spec.rb +53 -0
- data/spec/models/resource_binding_patch_spec.rb +41 -0
- data/spec/models/resource_binding_post_parameters_spec.rb +41 -0
- data/spec/models/resource_binding_post_spec.rb +65 -0
- data/spec/models/resource_binding_spec.rb +137 -0
- data/spec/models/resource_bindings_list_spec.rb +53 -0
- data/spec/models/resource_instance_patch_spec.rb +59 -0
- data/spec/models/resource_instance_post_spec.rb +77 -0
- data/spec/models/resource_instance_spec.rb +191 -0
- data/spec/models/resource_instances_list_spec.rb +53 -0
- data/spec/models/resource_key_patch_spec.rb +41 -0
- data/spec/models/resource_key_post_spec.rb +59 -0
- data/spec/models/resource_key_spec.rb +125 -0
- data/spec/models/resource_keys_list_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- metadata +211 -0
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,300 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
|