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.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +13 -0
- data/.gitignore +13 -0
- data/.openapi-generator-ignore +23 -0
- data/.openapi-generator/VERSION +1 -0
- data/.rspec +3 -0
- data/.travis.yml +49 -0
- data/CHANGELOG.md +2 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/CONTRIBUTING.md +13 -0
- data/Gemfile +4 -6
- data/LICENSE +201 -0
- data/README.md +56 -120
- data/Rakefile +3 -7
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ibm_cloud_resource_controller.gemspec +34 -37
- data/lib/ibm_cloud_resource_controller.rb +9 -64
- data/lib/ibm_cloud_resource_controller/authenticators.rb +15 -0
- data/lib/ibm_cloud_resource_controller/common.rb +22 -0
- data/lib/ibm_cloud_resource_controller/resource_controller_v2.rb +982 -0
- data/lib/ibm_cloud_resource_controller/resource_manager_v2.rb +303 -0
- data/lib/ibm_cloud_resource_controller/version.rb +1 -13
- metadata +59 -145
- data/docs/Credentials.md +0 -25
- data/docs/ErrorReport.md +0 -23
- data/docs/PlanHistoryItem.md +0 -19
- data/docs/Reclamation.md +0 -45
- data/docs/ReclamationActionsPost.md +0 -19
- data/docs/ReclamationsList.md +0 -17
- data/docs/ResourceAlias.md +0 -57
- data/docs/ResourceAliasPatch.md +0 -17
- data/docs/ResourceAliasPost.md +0 -21
- data/docs/ResourceAliasesApi.md +0 -302
- data/docs/ResourceAliasesList.md +0 -21
- data/docs/ResourceBinding.md +0 -57
- data/docs/ResourceBindingPatch.md +0 -17
- data/docs/ResourceBindingPost.md +0 -25
- data/docs/ResourceBindingPostParameters.md +0 -17
- data/docs/ResourceBindingsApi.md +0 -300
- data/docs/ResourceBindingsList.md +0 -21
- data/docs/ResourceInstance.md +0 -81
- data/docs/ResourceInstancePatch.md +0 -23
- data/docs/ResourceInstancePost.md +0 -29
- data/docs/ResourceInstancesApi.md +0 -418
- data/docs/ResourceInstancesList.md +0 -21
- data/docs/ResourceKey.md +0 -53
- data/docs/ResourceKeyPatch.md +0 -17
- data/docs/ResourceKeyPost.md +0 -23
- data/docs/ResourceKeysApi.md +0 -298
- data/docs/ResourceKeysList.md +0 -21
- data/docs/ResourceReclamationsApi.md +0 -128
- data/git_push.sh +0 -58
- data/lib/ibm_cloud_resource_controller/api/resource_aliases_api.rb +0 -363
- data/lib/ibm_cloud_resource_controller/api/resource_bindings_api.rb +0 -360
- data/lib/ibm_cloud_resource_controller/api/resource_instances_api.rb +0 -493
- data/lib/ibm_cloud_resource_controller/api/resource_keys_api.rb +0 -357
- data/lib/ibm_cloud_resource_controller/api/resource_reclamations_api.rb +0 -156
- data/lib/ibm_cloud_resource_controller/api_client.rb +0 -388
- data/lib/ibm_cloud_resource_controller/api_error.rb +0 -57
- data/lib/ibm_cloud_resource_controller/configuration.rb +0 -248
- data/lib/ibm_cloud_resource_controller/models/credentials.rb +0 -250
- data/lib/ibm_cloud_resource_controller/models/error_report.rb +0 -240
- data/lib/ibm_cloud_resource_controller/models/plan_history_item.rb +0 -230
- data/lib/ibm_cloud_resource_controller/models/reclamation.rb +0 -352
- data/lib/ibm_cloud_resource_controller/models/reclamation_actions_post.rb +0 -220
- data/lib/ibm_cloud_resource_controller/models/reclamations_list.rb +0 -212
- data/lib/ibm_cloud_resource_controller/models/resource_alias.rb +0 -410
- data/lib/ibm_cloud_resource_controller/models/resource_alias_patch.rb +0 -236
- data/lib/ibm_cloud_resource_controller/models/resource_alias_post.rb +0 -266
- data/lib/ibm_cloud_resource_controller/models/resource_aliases_list.rb +0 -247
- data/lib/ibm_cloud_resource_controller/models/resource_binding.rb +0 -410
- data/lib/ibm_cloud_resource_controller/models/resource_binding_patch.rb +0 -236
- data/lib/ibm_cloud_resource_controller/models/resource_binding_post.rb +0 -278
- data/lib/ibm_cloud_resource_controller/models/resource_binding_post_parameters.rb +0 -210
- data/lib/ibm_cloud_resource_controller/models/resource_bindings_list.rb +0 -247
- data/lib/ibm_cloud_resource_controller/models/resource_instance.rb +0 -536
- data/lib/ibm_cloud_resource_controller/models/resource_instance_patch.rb +0 -259
- data/lib/ibm_cloud_resource_controller/models/resource_instance_post.rb +0 -317
- data/lib/ibm_cloud_resource_controller/models/resource_instances_list.rb +0 -247
- data/lib/ibm_cloud_resource_controller/models/resource_key.rb +0 -390
- data/lib/ibm_cloud_resource_controller/models/resource_key_patch.rb +0 -236
- data/lib/ibm_cloud_resource_controller/models/resource_key_post.rb +0 -251
- data/lib/ibm_cloud_resource_controller/models/resource_keys_list.rb +0 -247
- data/spec/api/resource_aliases_api_spec.rb +0 -104
- data/spec/api/resource_bindings_api_spec.rb +0 -103
- data/spec/api/resource_instances_api_spec.rb +0 -130
- data/spec/api/resource_keys_api_spec.rb +0 -102
- data/spec/api/resource_reclamations_api_spec.rb +0 -62
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/credentials_spec.rb +0 -65
- data/spec/models/error_report_spec.rb +0 -59
- data/spec/models/plan_history_item_spec.rb +0 -47
- data/spec/models/reclamation_actions_post_spec.rb +0 -47
- data/spec/models/reclamation_spec.rb +0 -125
- data/spec/models/reclamations_list_spec.rb +0 -41
- data/spec/models/resource_alias_patch_spec.rb +0 -41
- data/spec/models/resource_alias_post_spec.rb +0 -53
- data/spec/models/resource_alias_spec.rb +0 -143
- data/spec/models/resource_aliases_list_spec.rb +0 -53
- data/spec/models/resource_binding_patch_spec.rb +0 -41
- data/spec/models/resource_binding_post_parameters_spec.rb +0 -41
- data/spec/models/resource_binding_post_spec.rb +0 -65
- data/spec/models/resource_binding_spec.rb +0 -137
- data/spec/models/resource_bindings_list_spec.rb +0 -53
- data/spec/models/resource_instance_patch_spec.rb +0 -59
- data/spec/models/resource_instance_post_spec.rb +0 -77
- data/spec/models/resource_instance_spec.rb +0 -191
- data/spec/models/resource_instances_list_spec.rb +0 -53
- data/spec/models/resource_key_patch_spec.rb +0 -41
- data/spec/models/resource_key_post_spec.rb +0 -59
- data/spec/models/resource_key_spec.rb +0 -125
- data/spec/models/resource_keys_list_spec.rb +0 -53
- data/spec/spec_helper.rb +0 -111
data/docs/Credentials.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::Credentials
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**apikey** | **String** | The API key for the credentials. | [optional]
|
8
|
-
**iam_apikey_description** | **String** | The optional description of the API key. | [optional]
|
9
|
-
**iam_apikey_name** | **String** | The name of the API key. | [optional]
|
10
|
-
**iam_role_crn** | **String** | The Cloud Resource Name for the role of the credentials. | [optional]
|
11
|
-
**iam_serviceid_crn** | **String** | The Cloud Resource Name for the service ID of the credentials. | [optional]
|
12
|
-
|
13
|
-
## Code Sample
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'IbmCloudResourceController'
|
17
|
-
|
18
|
-
instance = IbmCloudResourceController::Credentials.new(apikey: null,
|
19
|
-
iam_apikey_description: null,
|
20
|
-
iam_apikey_name: null,
|
21
|
-
iam_role_crn: null,
|
22
|
-
iam_serviceid_crn: null)
|
23
|
-
```
|
24
|
-
|
25
|
-
|
data/docs/ErrorReport.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ErrorReport
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**error_code** | **String** | The error code encountered. | [optional]
|
8
|
-
**message** | **String** | The error message. | [optional]
|
9
|
-
**status_code** | **String** | The status code. | [optional]
|
10
|
-
**transaction_id** | **String** | The transaction-id of the request. | [optional]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'IbmCloudResourceController'
|
16
|
-
|
17
|
-
instance = IbmCloudResourceController::ErrorReport.new(error_code: RC-CloudControllerErrorResponse,
|
18
|
-
message: null,
|
19
|
-
status_code: null,
|
20
|
-
transaction_id: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
data/docs/PlanHistoryItem.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::PlanHistoryItem
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**resource_plan_id** | **String** | The unique ID of the plan associated with the offering. This value is provided by and stored in the global catalog. |
|
8
|
-
**start_date** | **DateTime** | The date on which the plan was changed. |
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'IbmCloudResourceController'
|
14
|
-
|
15
|
-
instance = IbmCloudResourceController::PlanHistoryItem.new(resource_plan_id: null,
|
16
|
-
start_date: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/Reclamation.md
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::Reclamation
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | The ID associated with the reclamation. | [optional]
|
8
|
-
**entity_id** | **String** | The short ID of the entity for the reclamation. | [optional]
|
9
|
-
**entity_type_id** | **String** | The short ID of the entity type for the reclamation. | [optional]
|
10
|
-
**entity_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]
|
11
|
-
**resource_instance_id** | **String** | The short ID of the resource instance. | [optional]
|
12
|
-
**resource_group_id** | **String** | The short ID of the resource group. | [optional]
|
13
|
-
**account_id** | **String** | An alpha-numeric value identifying the account ID. | [optional]
|
14
|
-
**policy_id** | **String** | The short ID of policy for the reclamation. | [optional]
|
15
|
-
**state** | **String** | The state of the reclamation. | [optional]
|
16
|
-
**target_time** | **String** | The target time that the reclamation retention period end. | [optional]
|
17
|
-
**custom_properties** | **Hash<String, Object>** | The custom properties of the reclamation. | [optional]
|
18
|
-
**created_at** | **DateTime** | The date when the reclamation was created. | [optional]
|
19
|
-
**created_by** | **String** | The subject who created the reclamation. | [optional]
|
20
|
-
**updated_at** | **DateTime** | The date when the reclamation was last updated. | [optional]
|
21
|
-
**updated_by** | **String** | The subject who updated the reclamation. | [optional]
|
22
|
-
|
23
|
-
## Code Sample
|
24
|
-
|
25
|
-
```ruby
|
26
|
-
require 'IbmCloudResourceController'
|
27
|
-
|
28
|
-
instance = IbmCloudResourceController::Reclamation.new(id: null,
|
29
|
-
entity_id: null,
|
30
|
-
entity_type_id: null,
|
31
|
-
entity_crn: null,
|
32
|
-
resource_instance_id: null,
|
33
|
-
resource_group_id: null,
|
34
|
-
account_id: null,
|
35
|
-
policy_id: null,
|
36
|
-
state: null,
|
37
|
-
target_time: null,
|
38
|
-
custom_properties: null,
|
39
|
-
created_at: null,
|
40
|
-
created_by: null,
|
41
|
-
updated_at: null,
|
42
|
-
updated_by: null)
|
43
|
-
```
|
44
|
-
|
45
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ReclamationActionsPost
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**request_by** | **String** | The request initiator, if different from the request token. | [optional]
|
8
|
-
**comment** | **String** | A comment to describe the action. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'IbmCloudResourceController'
|
14
|
-
|
15
|
-
instance = IbmCloudResourceController::ReclamationActionsPost.new(request_by: null,
|
16
|
-
comment: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/ReclamationsList.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ReclamationsList
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**resources** | [**Array<Reclamation>**](Reclamation.md) | A list of reclamations. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'IbmCloudResourceController'
|
13
|
-
|
14
|
-
instance = IbmCloudResourceController::ReclamationsList.new(resources: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/ResourceAlias.md
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ResourceAlias
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | The ID associated with the alias. | [optional]
|
8
|
-
**guid** | **String** | When you create a new alias, a globally unique identifier (GUID) is assigned. This GUID is a unique internal indentifier managed by the resource controller that corresponds to the alias. | [optional]
|
9
|
-
**crn** | **String** | The full Cloud Resource Name (CRN) associated with the alias. 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 created a new alias, a relative URL path is created identifying the location of the alias. | [optional]
|
11
|
-
**name** | **String** | The human-readable name of the alias. | [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
|
-
**resource_group_crn** | **String** | The long ID (full CRN) of the resource group. | [optional]
|
15
|
-
**target_crn** | **String** | The CRN of the target namespace in the specific environment. | [optional]
|
16
|
-
**state** | **String** | The state of the alias. | [optional]
|
17
|
-
**resource_instance_id** | **String** | The short ID of the resource instance that is being aliased. | [optional]
|
18
|
-
**region_instance_id** | **String** | The short ID of the instance in the specific target environment, e.g. `service_instance_id` in a given IBM Cloud environment. | [optional]
|
19
|
-
**resource_instance_url** | **String** | The relative path to the instance. | [optional]
|
20
|
-
**resource_bindings_url** | **String** | The relative path to the resource bindings for the alias. | [optional]
|
21
|
-
**resource_keys_url** | **String** | The relative path to the resource keys for the alias. | [optional]
|
22
|
-
**created_at** | **DateTime** | The date when the alias was created. | [optional]
|
23
|
-
**updated_at** | **DateTime** | The date when the alias was last updated. | [optional]
|
24
|
-
**deleted_at** | **DateTime** | The date when the alias was deleted. | [optional]
|
25
|
-
**created_by** | **String** | The subject who created the alias. | [optional]
|
26
|
-
**updated_by** | **String** | The subject who updated the alias. | [optional]
|
27
|
-
**deleted_by** | **String** | The subject who deleted the alias. | [optional]
|
28
|
-
|
29
|
-
## Code Sample
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
require 'IbmCloudResourceController'
|
33
|
-
|
34
|
-
instance = IbmCloudResourceController::ResourceAlias.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
|
-
resource_group_crn: null,
|
42
|
-
target_crn: null,
|
43
|
-
state: null,
|
44
|
-
resource_instance_id: null,
|
45
|
-
region_instance_id: null,
|
46
|
-
resource_instance_url: null,
|
47
|
-
resource_bindings_url: null,
|
48
|
-
resource_keys_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
|
-
|
data/docs/ResourceAliasPatch.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ResourceAliasPatch
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | The new name of the alias. 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::ResourceAliasPatch.new(name: my-new-alias-name)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/ResourceAliasPost.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ResourceAliasPost
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | The name of the alias. Must be 180 characters or less and cannot include any special characters other than `(space) - . _ :`. |
|
8
|
-
**source** | **String** | The short or long ID of resource instance. |
|
9
|
-
**target** | **String** | The CRN of target name(space) in a specific environment, e.g. space in Dallas YP, CFEE instance etc. |
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'IbmCloudResourceController'
|
15
|
-
|
16
|
-
instance = IbmCloudResourceController::ResourceAliasPost.new(name: my-alias,
|
17
|
-
source: a8dff6d3-d287-4668-a81d-c87c55c2656d,
|
18
|
-
target: crn:v1:cf:public:cf:us-south:o/5e939cd5-6377-4383-b9e0-9db22cd11753::cf-space:66c8b915-101a-406c-a784-e6636676e4f5)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/ResourceAliasesApi.md
DELETED
@@ -1,302 +0,0 @@
|
|
1
|
-
# IbmCloudResourceController::ResourceAliasesApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://resource-controller.cloud.ibm.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**create_resource_alias**](ResourceAliasesApi.md#create_resource_alias) | **POST** /v2/resource_aliases | Create a new resource alias
|
8
|
-
[**delete_resource_alias**](ResourceAliasesApi.md#delete_resource_alias) | **DELETE** /v2/resource_aliases/{id} | Delete a resource alias
|
9
|
-
[**get_resource_alias**](ResourceAliasesApi.md#get_resource_alias) | **GET** /v2/resource_aliases/{id} | Get a resource alias
|
10
|
-
[**list_resource_aliases**](ResourceAliasesApi.md#list_resource_aliases) | **GET** /v2/resource_aliases | Get a list of all resource aliases
|
11
|
-
[**update_resource_alias**](ResourceAliasesApi.md#update_resource_alias) | **PATCH** /v2/resource_aliases/{id} | Update a resource alias
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
## create_resource_alias
|
16
|
-
|
17
|
-
> ResourceAlias create_resource_alias(resource_alias_post)
|
18
|
-
|
19
|
-
Create a new resource alias
|
20
|
-
|
21
|
-
Alias a resource instance into a targeted environment's (name)space.
|
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::ResourceAliasesApi.new
|
37
|
-
resource_alias_post = IbmCloudResourceController::ResourceAliasPost.new # ResourceAliasPost |
|
38
|
-
|
39
|
-
begin
|
40
|
-
#Create a new resource alias
|
41
|
-
result = api_instance.create_resource_alias(resource_alias_post)
|
42
|
-
p result
|
43
|
-
rescue IbmCloudResourceController::ApiError => e
|
44
|
-
puts "Exception when calling ResourceAliasesApi->create_resource_alias: #{e}"
|
45
|
-
end
|
46
|
-
```
|
47
|
-
|
48
|
-
### Parameters
|
49
|
-
|
50
|
-
|
51
|
-
Name | Type | Description | Notes
|
52
|
-
------------- | ------------- | ------------- | -------------
|
53
|
-
**resource_alias_post** | [**ResourceAliasPost**](ResourceAliasPost.md)| |
|
54
|
-
|
55
|
-
### Return type
|
56
|
-
|
57
|
-
[**ResourceAlias**](ResourceAlias.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_alias
|
70
|
-
|
71
|
-
> delete_resource_alias(id)
|
72
|
-
|
73
|
-
Delete a resource alias
|
74
|
-
|
75
|
-
Delete a resource alias 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::ResourceAliasesApi.new
|
91
|
-
id = 'id_example' # String | The short or long ID of the alias.
|
92
|
-
|
93
|
-
begin
|
94
|
-
#Delete a resource alias
|
95
|
-
api_instance.delete_resource_alias(id)
|
96
|
-
rescue IbmCloudResourceController::ApiError => e
|
97
|
-
puts "Exception when calling ResourceAliasesApi->delete_resource_alias: #{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 alias. |
|
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_alias
|
123
|
-
|
124
|
-
> ResourceAlias get_resource_alias(id)
|
125
|
-
|
126
|
-
Get a resource alias
|
127
|
-
|
128
|
-
Retrieve a resource alias 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::ResourceAliasesApi.new
|
144
|
-
id = 'id_example' # String | The short or long ID of the alias.
|
145
|
-
|
146
|
-
begin
|
147
|
-
#Get a resource alias
|
148
|
-
result = api_instance.get_resource_alias(id)
|
149
|
-
p result
|
150
|
-
rescue IbmCloudResourceController::ApiError => e
|
151
|
-
puts "Exception when calling ResourceAliasesApi->get_resource_alias: #{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 alias. |
|
161
|
-
|
162
|
-
### Return type
|
163
|
-
|
164
|
-
[**ResourceAlias**](ResourceAlias.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_aliases
|
177
|
-
|
178
|
-
> ResourceAliasesList list_resource_aliases(opts)
|
179
|
-
|
180
|
-
Get a list of all resource aliases
|
181
|
-
|
182
|
-
Get a list of all resource aliases.
|
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::ResourceAliasesApi.new
|
198
|
-
opts = {
|
199
|
-
guid: 'guid_example', # String | Short ID of the alias.
|
200
|
-
name: 'name_example', # String | The human-readable name of the alias.
|
201
|
-
resource_instance_id: 'resource_instance_id_example', # String | Resource instance short ID.
|
202
|
-
region_instance_id: 'region_instance_id_example', # String | Short ID of the instance in a specific targeted environment. For example, `service_instance_id` in a given IBM Cloud environment.
|
203
|
-
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.
|
204
|
-
resource_group_id: 'resource_group_id_example', # String | Short ID of Resource group.
|
205
|
-
limit: 'limit_example', # String | Limit on how many items should be returned.
|
206
|
-
updated_from: '2019-01-08T00:00:00.000Z', # String | Start date inclusive filter.
|
207
|
-
updated_to: '2019-01-08T00:00:00.000Z' # String | End date inclusive filter.
|
208
|
-
}
|
209
|
-
|
210
|
-
begin
|
211
|
-
#Get a list of all resource aliases
|
212
|
-
result = api_instance.list_resource_aliases(opts)
|
213
|
-
p result
|
214
|
-
rescue IbmCloudResourceController::ApiError => e
|
215
|
-
puts "Exception when calling ResourceAliasesApi->list_resource_aliases: #{e}"
|
216
|
-
end
|
217
|
-
```
|
218
|
-
|
219
|
-
### Parameters
|
220
|
-
|
221
|
-
|
222
|
-
Name | Type | Description | Notes
|
223
|
-
------------- | ------------- | ------------- | -------------
|
224
|
-
**guid** | **String**| Short ID of the alias. | [optional]
|
225
|
-
**name** | **String**| The human-readable name of the alias. | [optional]
|
226
|
-
**resource_instance_id** | **String**| Resource instance short ID. | [optional]
|
227
|
-
**region_instance_id** | **String**| Short ID of the instance in a specific targeted environment. For example, `service_instance_id` in a given IBM Cloud environment. | [optional]
|
228
|
-
**resource_id** | **String**| The unique ID of the offering (service name). This value is provided by and stored in the global catalog. | [optional]
|
229
|
-
**resource_group_id** | **String**| Short ID of Resource group. | [optional]
|
230
|
-
**limit** | **String**| Limit on how many items should be returned. | [optional]
|
231
|
-
**updated_from** | **String**| Start date inclusive filter. | [optional]
|
232
|
-
**updated_to** | **String**| End date inclusive filter. | [optional]
|
233
|
-
|
234
|
-
### Return type
|
235
|
-
|
236
|
-
[**ResourceAliasesList**](ResourceAliasesList.md)
|
237
|
-
|
238
|
-
### Authorization
|
239
|
-
|
240
|
-
[IAM](../README.md#IAM)
|
241
|
-
|
242
|
-
### HTTP request headers
|
243
|
-
|
244
|
-
- **Content-Type**: Not defined
|
245
|
-
- **Accept**: application/json
|
246
|
-
|
247
|
-
|
248
|
-
## update_resource_alias
|
249
|
-
|
250
|
-
> ResourceAlias update_resource_alias(id, resource_alias_patch)
|
251
|
-
|
252
|
-
Update a resource alias
|
253
|
-
|
254
|
-
Update a resource alias by ID.
|
255
|
-
|
256
|
-
### Example
|
257
|
-
|
258
|
-
```ruby
|
259
|
-
# load the gem
|
260
|
-
require 'ibm_cloud_resource_controller'
|
261
|
-
# setup authorization
|
262
|
-
IbmCloudResourceController.configure do |config|
|
263
|
-
# Configure API key authorization: IAM
|
264
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
265
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
266
|
-
#config.api_key_prefix['Authorization'] = 'Bearer'
|
267
|
-
end
|
268
|
-
|
269
|
-
api_instance = IbmCloudResourceController::ResourceAliasesApi.new
|
270
|
-
id = 'id_example' # String | The short or long ID of the alias.
|
271
|
-
resource_alias_patch = IbmCloudResourceController::ResourceAliasPatch.new # ResourceAliasPatch |
|
272
|
-
|
273
|
-
begin
|
274
|
-
#Update a resource alias
|
275
|
-
result = api_instance.update_resource_alias(id, resource_alias_patch)
|
276
|
-
p result
|
277
|
-
rescue IbmCloudResourceController::ApiError => e
|
278
|
-
puts "Exception when calling ResourceAliasesApi->update_resource_alias: #{e}"
|
279
|
-
end
|
280
|
-
```
|
281
|
-
|
282
|
-
### Parameters
|
283
|
-
|
284
|
-
|
285
|
-
Name | Type | Description | Notes
|
286
|
-
------------- | ------------- | ------------- | -------------
|
287
|
-
**id** | **String**| The short or long ID of the alias. |
|
288
|
-
**resource_alias_patch** | [**ResourceAliasPatch**](ResourceAliasPatch.md)| |
|
289
|
-
|
290
|
-
### Return type
|
291
|
-
|
292
|
-
[**ResourceAlias**](ResourceAlias.md)
|
293
|
-
|
294
|
-
### Authorization
|
295
|
-
|
296
|
-
[IAM](../README.md#IAM)
|
297
|
-
|
298
|
-
### HTTP request headers
|
299
|
-
|
300
|
-
- **Content-Type**: application/json
|
301
|
-
- **Accept**: application/json
|
302
|
-
|