ibm_cloud_resource_controller 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +148 -0
  4. data/Rakefile +10 -0
  5. data/docs/Credentials.md +25 -0
  6. data/docs/ErrorReport.md +23 -0
  7. data/docs/PlanHistoryItem.md +19 -0
  8. data/docs/Reclamation.md +45 -0
  9. data/docs/ReclamationActionsPost.md +19 -0
  10. data/docs/ReclamationsList.md +17 -0
  11. data/docs/ResourceAlias.md +57 -0
  12. data/docs/ResourceAliasPatch.md +17 -0
  13. data/docs/ResourceAliasPost.md +21 -0
  14. data/docs/ResourceAliasesApi.md +302 -0
  15. data/docs/ResourceAliasesList.md +21 -0
  16. data/docs/ResourceBinding.md +57 -0
  17. data/docs/ResourceBindingPatch.md +17 -0
  18. data/docs/ResourceBindingPost.md +25 -0
  19. data/docs/ResourceBindingPostParameters.md +17 -0
  20. data/docs/ResourceBindingsApi.md +300 -0
  21. data/docs/ResourceBindingsList.md +21 -0
  22. data/docs/ResourceInstance.md +81 -0
  23. data/docs/ResourceInstancePatch.md +23 -0
  24. data/docs/ResourceInstancePost.md +29 -0
  25. data/docs/ResourceInstancesApi.md +418 -0
  26. data/docs/ResourceInstancesList.md +21 -0
  27. data/docs/ResourceKey.md +53 -0
  28. data/docs/ResourceKeyPatch.md +17 -0
  29. data/docs/ResourceKeyPost.md +23 -0
  30. data/docs/ResourceKeysApi.md +298 -0
  31. data/docs/ResourceKeysList.md +21 -0
  32. data/docs/ResourceReclamationsApi.md +128 -0
  33. data/git_push.sh +58 -0
  34. data/ibm_cloud_resource_controller.gemspec +38 -0
  35. data/lib/ibm_cloud_resource_controller.rb +67 -0
  36. data/lib/ibm_cloud_resource_controller/api/resource_aliases_api.rb +363 -0
  37. data/lib/ibm_cloud_resource_controller/api/resource_bindings_api.rb +360 -0
  38. data/lib/ibm_cloud_resource_controller/api/resource_instances_api.rb +493 -0
  39. data/lib/ibm_cloud_resource_controller/api/resource_keys_api.rb +357 -0
  40. data/lib/ibm_cloud_resource_controller/api/resource_reclamations_api.rb +156 -0
  41. data/lib/ibm_cloud_resource_controller/api_client.rb +388 -0
  42. data/lib/ibm_cloud_resource_controller/api_error.rb +57 -0
  43. data/lib/ibm_cloud_resource_controller/configuration.rb +248 -0
  44. data/lib/ibm_cloud_resource_controller/models/credentials.rb +250 -0
  45. data/lib/ibm_cloud_resource_controller/models/error_report.rb +240 -0
  46. data/lib/ibm_cloud_resource_controller/models/plan_history_item.rb +230 -0
  47. data/lib/ibm_cloud_resource_controller/models/reclamation.rb +352 -0
  48. data/lib/ibm_cloud_resource_controller/models/reclamation_actions_post.rb +220 -0
  49. data/lib/ibm_cloud_resource_controller/models/reclamations_list.rb +212 -0
  50. data/lib/ibm_cloud_resource_controller/models/resource_alias.rb +410 -0
  51. data/lib/ibm_cloud_resource_controller/models/resource_alias_patch.rb +236 -0
  52. data/lib/ibm_cloud_resource_controller/models/resource_alias_post.rb +266 -0
  53. data/lib/ibm_cloud_resource_controller/models/resource_aliases_list.rb +247 -0
  54. data/lib/ibm_cloud_resource_controller/models/resource_binding.rb +410 -0
  55. data/lib/ibm_cloud_resource_controller/models/resource_binding_patch.rb +236 -0
  56. data/lib/ibm_cloud_resource_controller/models/resource_binding_post.rb +278 -0
  57. data/lib/ibm_cloud_resource_controller/models/resource_binding_post_parameters.rb +210 -0
  58. data/lib/ibm_cloud_resource_controller/models/resource_bindings_list.rb +247 -0
  59. data/lib/ibm_cloud_resource_controller/models/resource_instance.rb +536 -0
  60. data/lib/ibm_cloud_resource_controller/models/resource_instance_patch.rb +259 -0
  61. data/lib/ibm_cloud_resource_controller/models/resource_instance_post.rb +317 -0
  62. data/lib/ibm_cloud_resource_controller/models/resource_instances_list.rb +247 -0
  63. data/lib/ibm_cloud_resource_controller/models/resource_key.rb +390 -0
  64. data/lib/ibm_cloud_resource_controller/models/resource_key_patch.rb +236 -0
  65. data/lib/ibm_cloud_resource_controller/models/resource_key_post.rb +251 -0
  66. data/lib/ibm_cloud_resource_controller/models/resource_keys_list.rb +247 -0
  67. data/lib/ibm_cloud_resource_controller/version.rb +15 -0
  68. data/spec/api/resource_aliases_api_spec.rb +104 -0
  69. data/spec/api/resource_bindings_api_spec.rb +103 -0
  70. data/spec/api/resource_instances_api_spec.rb +130 -0
  71. data/spec/api/resource_keys_api_spec.rb +102 -0
  72. data/spec/api/resource_reclamations_api_spec.rb +62 -0
  73. data/spec/api_client_spec.rb +226 -0
  74. data/spec/configuration_spec.rb +42 -0
  75. data/spec/models/credentials_spec.rb +65 -0
  76. data/spec/models/error_report_spec.rb +59 -0
  77. data/spec/models/plan_history_item_spec.rb +47 -0
  78. data/spec/models/reclamation_actions_post_spec.rb +47 -0
  79. data/spec/models/reclamation_spec.rb +125 -0
  80. data/spec/models/reclamations_list_spec.rb +41 -0
  81. data/spec/models/resource_alias_patch_spec.rb +41 -0
  82. data/spec/models/resource_alias_post_spec.rb +53 -0
  83. data/spec/models/resource_alias_spec.rb +143 -0
  84. data/spec/models/resource_aliases_list_spec.rb +53 -0
  85. data/spec/models/resource_binding_patch_spec.rb +41 -0
  86. data/spec/models/resource_binding_post_parameters_spec.rb +41 -0
  87. data/spec/models/resource_binding_post_spec.rb +65 -0
  88. data/spec/models/resource_binding_spec.rb +137 -0
  89. data/spec/models/resource_bindings_list_spec.rb +53 -0
  90. data/spec/models/resource_instance_patch_spec.rb +59 -0
  91. data/spec/models/resource_instance_post_spec.rb +77 -0
  92. data/spec/models/resource_instance_spec.rb +191 -0
  93. data/spec/models/resource_instances_list_spec.rb +53 -0
  94. data/spec/models/resource_key_patch_spec.rb +41 -0
  95. data/spec/models/resource_key_post_spec.rb +59 -0
  96. data/spec/models/resource_key_spec.rb +125 -0
  97. data/spec/models/resource_keys_list_spec.rb +53 -0
  98. data/spec/spec_helper.rb +111 -0
  99. metadata +211 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '0458df5ef33bef0ba53f9a8782a997676c792d9a05703546988611e4b8eb1933'
4
+ data.tar.gz: f10b207a0bbc10435e005266f635189ac500aeba9e7a24e6b7bebcaa099112ed
5
+ SHA512:
6
+ metadata.gz: 2cec4de6319d878ff2b23b9917c7d19a3e3dd302add5ce9b33d13b6dd3b67001b9757d7591c90936350171e533ad076565f4cd71694cae44bd066e08ee1571fa
7
+ data.tar.gz: fbed6f3838dade61f002e7e79860fd0810476cf8c685ea9d21a40f84ae6aaa0ab135c349237260add1241dace02fa52fb5bc299aa5bb410ca3bdfe746335f1d6
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,148 @@
1
+ # ibm_cloud_resource_controller
2
+
3
+ IbmCloudResourceController - the Ruby gem for the IBM Cloud Resource Controller API
4
+
5
+ Manage lifecycle of your Cloud resources using Resource Controller APIs. Resources are provisioned globally in an account scope. Supports asynchronous provisioning of resources. Enables consumption of a global resource through a Cloud Foundry space in any region.
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: 2.0
10
+ - Package version: 1.0.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+
13
+ ## Installation
14
+
15
+ ### Build a gem
16
+
17
+ To build the Ruby code into a gem:
18
+
19
+ ```shell
20
+ gem build ibm_cloud_resource_controller.gemspec
21
+ ```
22
+
23
+ Then either install the gem locally:
24
+
25
+ ```shell
26
+ gem install ./ibm_cloud_resource_controller-1.0.0.gem
27
+ ```
28
+
29
+ (for development, run `gem install --dev ./ibm_cloud_resource_controller-1.0.0.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'ibm_cloud_resource_controller', '~> 1.0.0'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'ibm_cloud_resource_controller', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+
55
+ ```ruby
56
+ # Load the gem
57
+ require 'ibm_cloud_resource_controller'
58
+
59
+ # Setup authorization
60
+ IbmCloudResourceController.configure do |config|
61
+ # Configure API key authorization: IAM
62
+ config.api_key['Authorization'] = 'YOUR API KEY'
63
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
64
+ #config.api_key_prefix['Authorization'] = 'Bearer'
65
+ end
66
+
67
+ api_instance = IbmCloudResourceController::ResourceAliasesApi.new
68
+ resource_alias_post = IbmCloudResourceController::ResourceAliasPost.new # ResourceAliasPost |
69
+
70
+ begin
71
+ #Create a new resource alias
72
+ result = api_instance.create_resource_alias(resource_alias_post)
73
+ p result
74
+ rescue IbmCloudResourceController::ApiError => e
75
+ puts "Exception when calling ResourceAliasesApi->create_resource_alias: #{e}"
76
+ end
77
+
78
+ ```
79
+
80
+ ## Documentation for API Endpoints
81
+
82
+ All URIs are relative to *https://resource-controller.cloud.ibm.com*
83
+
84
+ Class | Method | HTTP request | Description
85
+ ------------ | ------------- | ------------- | -------------
86
+ *IbmCloudResourceController::ResourceAliasesApi* | [**create_resource_alias**](docs/ResourceAliasesApi.md#create_resource_alias) | **POST** /v2/resource_aliases | Create a new resource alias
87
+ *IbmCloudResourceController::ResourceAliasesApi* | [**delete_resource_alias**](docs/ResourceAliasesApi.md#delete_resource_alias) | **DELETE** /v2/resource_aliases/{id} | Delete a resource alias
88
+ *IbmCloudResourceController::ResourceAliasesApi* | [**get_resource_alias**](docs/ResourceAliasesApi.md#get_resource_alias) | **GET** /v2/resource_aliases/{id} | Get a resource alias
89
+ *IbmCloudResourceController::ResourceAliasesApi* | [**list_resource_aliases**](docs/ResourceAliasesApi.md#list_resource_aliases) | **GET** /v2/resource_aliases | Get a list of all resource aliases
90
+ *IbmCloudResourceController::ResourceAliasesApi* | [**update_resource_alias**](docs/ResourceAliasesApi.md#update_resource_alias) | **PATCH** /v2/resource_aliases/{id} | Update a resource alias
91
+ *IbmCloudResourceController::ResourceBindingsApi* | [**create_resource_binding**](docs/ResourceBindingsApi.md#create_resource_binding) | **POST** /v2/resource_bindings | Create a new resource binding
92
+ *IbmCloudResourceController::ResourceBindingsApi* | [**delete_resource_binding**](docs/ResourceBindingsApi.md#delete_resource_binding) | **DELETE** /v2/resource_bindings/{id} | Delete a resource binding
93
+ *IbmCloudResourceController::ResourceBindingsApi* | [**get_resource_binding**](docs/ResourceBindingsApi.md#get_resource_binding) | **GET** /v2/resource_bindings/{id} | Get a resource binding
94
+ *IbmCloudResourceController::ResourceBindingsApi* | [**list_resource_bindings**](docs/ResourceBindingsApi.md#list_resource_bindings) | **GET** /v2/resource_bindings | Get a list of all resource bindings
95
+ *IbmCloudResourceController::ResourceBindingsApi* | [**update_resource_binding**](docs/ResourceBindingsApi.md#update_resource_binding) | **PATCH** /v2/resource_bindings/{id} | Update a resource binding
96
+ *IbmCloudResourceController::ResourceInstancesApi* | [**create_resource_instance**](docs/ResourceInstancesApi.md#create_resource_instance) | **POST** /v2/resource_instances | Create (provision) a new resource instance
97
+ *IbmCloudResourceController::ResourceInstancesApi* | [**delete_resource_instance**](docs/ResourceInstancesApi.md#delete_resource_instance) | **DELETE** /v2/resource_instances/{id} | Delete a resource instance
98
+ *IbmCloudResourceController::ResourceInstancesApi* | [**get_resource_instance**](docs/ResourceInstancesApi.md#get_resource_instance) | **GET** /v2/resource_instances/{id} | Get a resource instance
99
+ *IbmCloudResourceController::ResourceInstancesApi* | [**list_resource_instances**](docs/ResourceInstancesApi.md#list_resource_instances) | **GET** /v2/resource_instances | Get a list of all resource instances
100
+ *IbmCloudResourceController::ResourceInstancesApi* | [**lock_resource_instance**](docs/ResourceInstancesApi.md#lock_resource_instance) | **POST** /v2/resource_instances/{id}/lock | Lock a resource instance
101
+ *IbmCloudResourceController::ResourceInstancesApi* | [**unlock_resource_instance**](docs/ResourceInstancesApi.md#unlock_resource_instance) | **DELETE** /v2/resource_instances/{id}/lock | Unlock a resource instance
102
+ *IbmCloudResourceController::ResourceInstancesApi* | [**update_resource_instance**](docs/ResourceInstancesApi.md#update_resource_instance) | **PATCH** /v2/resource_instances/{id} | Update a resource instance
103
+ *IbmCloudResourceController::ResourceKeysApi* | [**create_resource_key**](docs/ResourceKeysApi.md#create_resource_key) | **POST** /v2/resource_keys | Create a new resource key
104
+ *IbmCloudResourceController::ResourceKeysApi* | [**delete_resource_key**](docs/ResourceKeysApi.md#delete_resource_key) | **DELETE** /v2/resource_keys/{id} | Delete a resource key by ID
105
+ *IbmCloudResourceController::ResourceKeysApi* | [**get_resource_key**](docs/ResourceKeysApi.md#get_resource_key) | **GET** /v2/resource_keys/{id} | Get resource key by ID
106
+ *IbmCloudResourceController::ResourceKeysApi* | [**list_resource_keys**](docs/ResourceKeysApi.md#list_resource_keys) | **GET** /v2/resource_keys | Get a list of all of the resource keys.
107
+ *IbmCloudResourceController::ResourceKeysApi* | [**update_resource_key**](docs/ResourceKeysApi.md#update_resource_key) | **PATCH** /v2/resource_keys/{id} | Update a resource key
108
+ *IbmCloudResourceController::ResourceReclamationsApi* | [**list_reclamations**](docs/ResourceReclamationsApi.md#list_reclamations) | **GET** /v1/reclamations | Get a list of all reclamations
109
+ *IbmCloudResourceController::ResourceReclamationsApi* | [**run_reclamation_action**](docs/ResourceReclamationsApi.md#run_reclamation_action) | **POST** /v1/reclamations/{id}/actions/{action_name} | Perform a reclamation action
110
+
111
+
112
+ ## Documentation for Models
113
+
114
+ - [IbmCloudResourceController::Credentials](docs/Credentials.md)
115
+ - [IbmCloudResourceController::ErrorReport](docs/ErrorReport.md)
116
+ - [IbmCloudResourceController::PlanHistoryItem](docs/PlanHistoryItem.md)
117
+ - [IbmCloudResourceController::Reclamation](docs/Reclamation.md)
118
+ - [IbmCloudResourceController::ReclamationActionsPost](docs/ReclamationActionsPost.md)
119
+ - [IbmCloudResourceController::ReclamationsList](docs/ReclamationsList.md)
120
+ - [IbmCloudResourceController::ResourceAlias](docs/ResourceAlias.md)
121
+ - [IbmCloudResourceController::ResourceAliasPatch](docs/ResourceAliasPatch.md)
122
+ - [IbmCloudResourceController::ResourceAliasPost](docs/ResourceAliasPost.md)
123
+ - [IbmCloudResourceController::ResourceAliasesList](docs/ResourceAliasesList.md)
124
+ - [IbmCloudResourceController::ResourceBinding](docs/ResourceBinding.md)
125
+ - [IbmCloudResourceController::ResourceBindingPatch](docs/ResourceBindingPatch.md)
126
+ - [IbmCloudResourceController::ResourceBindingPost](docs/ResourceBindingPost.md)
127
+ - [IbmCloudResourceController::ResourceBindingPostParameters](docs/ResourceBindingPostParameters.md)
128
+ - [IbmCloudResourceController::ResourceBindingsList](docs/ResourceBindingsList.md)
129
+ - [IbmCloudResourceController::ResourceInstance](docs/ResourceInstance.md)
130
+ - [IbmCloudResourceController::ResourceInstancePatch](docs/ResourceInstancePatch.md)
131
+ - [IbmCloudResourceController::ResourceInstancePost](docs/ResourceInstancePost.md)
132
+ - [IbmCloudResourceController::ResourceInstancesList](docs/ResourceInstancesList.md)
133
+ - [IbmCloudResourceController::ResourceKey](docs/ResourceKey.md)
134
+ - [IbmCloudResourceController::ResourceKeyPatch](docs/ResourceKeyPatch.md)
135
+ - [IbmCloudResourceController::ResourceKeyPost](docs/ResourceKeyPost.md)
136
+ - [IbmCloudResourceController::ResourceKeysList](docs/ResourceKeysList.md)
137
+
138
+
139
+ ## Documentation for Authorization
140
+
141
+
142
+ ### IAM
143
+
144
+
145
+ - **Type**: API key
146
+ - **API key parameter name**: Authorization
147
+ - **Location**: HTTP header
148
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,25 @@
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
+
@@ -0,0 +1,23 @@
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
+
@@ -0,0 +1,19 @@
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
+
@@ -0,0 +1,45 @@
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
+
@@ -0,0 +1,19 @@
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
+
@@ -0,0 +1,17 @@
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
+
@@ -0,0 +1,57 @@
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
+
@@ -0,0 +1,17 @@
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
+
@@ -0,0 +1,21 @@
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
+
@@ -0,0 +1,302 @@
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
+