ibm_cloud_resource_controller 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# (C) Copyright IBM Corp. 2021.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
#
|
|
17
|
+
# IBM OpenAPI SDK Code Generator Version: 3.30.0-bd714324-20210406-200538
|
|
18
|
+
#
|
|
19
|
+
# Manage lifecycle of your Cloud resource groups using Resource Manager APIs.
|
|
20
|
+
|
|
21
|
+
require "concurrent"
|
|
22
|
+
require "erb"
|
|
23
|
+
require "json"
|
|
24
|
+
require "ibm_cloud_sdk_core"
|
|
25
|
+
require_relative "./common.rb"
|
|
26
|
+
|
|
27
|
+
module IbmCloudResourceManager
|
|
28
|
+
##
|
|
29
|
+
# The Resource Manager V2 service.
|
|
30
|
+
class ResourceManagerV2 < IBMCloudSdkCore::BaseService
|
|
31
|
+
include Concurrent::Async
|
|
32
|
+
DEFAULT_SERVICE_NAME = "resource_manager"
|
|
33
|
+
DEFAULT_SERVICE_URL = "https://resource-controller.cloud.ibm.com/v2"
|
|
34
|
+
##
|
|
35
|
+
# @!method initialize(args)
|
|
36
|
+
# Construct a new client for the Resource Manager service.
|
|
37
|
+
#
|
|
38
|
+
# @param args [Hash] The args to initialize with
|
|
39
|
+
# @option args service_url [String] The base service URL to use when contacting the service.
|
|
40
|
+
# The base service_url may differ between IBM Cloud regions.
|
|
41
|
+
# @option args authenticator [Object] The Authenticator instance to be configured for this service.
|
|
42
|
+
# @option args service_name [String] The name of the service to configure. Will be used as the key to load
|
|
43
|
+
# any external configuration, if applicable.
|
|
44
|
+
def initialize(args = {})
|
|
45
|
+
@__async_initialized__ = false
|
|
46
|
+
defaults = {}
|
|
47
|
+
defaults[:service_url] = DEFAULT_SERVICE_URL
|
|
48
|
+
defaults[:service_name] = DEFAULT_SERVICE_NAME
|
|
49
|
+
defaults[:authenticator] = nil
|
|
50
|
+
user_service_url = args[:service_url] unless args[:service_url].nil?
|
|
51
|
+
args = defaults.merge(args)
|
|
52
|
+
super
|
|
53
|
+
@service_url = user_service_url unless user_service_url.nil?
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
#########################
|
|
57
|
+
# Resource Group
|
|
58
|
+
#########################
|
|
59
|
+
|
|
60
|
+
##
|
|
61
|
+
# @!method list_resource_groups(account_id: nil, date: nil, name: nil, default: nil, include_deleted: nil)
|
|
62
|
+
# Get a list of all resource groups.
|
|
63
|
+
# Call this method to retrieve information about all resource groups and associated
|
|
64
|
+
# quotas in an account. The `id` returned in the response can be used to [create a
|
|
65
|
+
# resource instance
|
|
66
|
+
# later](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#create-resource-instance).
|
|
67
|
+
# The response can be filtered based on queryParams such as `account_id`, `name`,
|
|
68
|
+
# `default`, and more to narrow your search.
|
|
69
|
+
# @param account_id [String] The ID of the account that contains the resource groups that you want to get.
|
|
70
|
+
# @param date [String] The date in the format of YYYY-MM which returns resource groups. Deleted resource
|
|
71
|
+
# groups will be excluded before this month.
|
|
72
|
+
# @param name [String] The name of the resource group.
|
|
73
|
+
# @param default [Boolean] Boolean value to specify whether or not to list default resource groups.
|
|
74
|
+
# @param include_deleted [Boolean] Boolean value to specify whether or not to list default resource groups.
|
|
75
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
76
|
+
def list_resource_groups(account_id: nil, date: nil, name: nil, default: nil, include_deleted: nil)
|
|
77
|
+
headers = {
|
|
78
|
+
}
|
|
79
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "list_resource_groups")
|
|
80
|
+
headers.merge!(sdk_headers)
|
|
81
|
+
|
|
82
|
+
params = {
|
|
83
|
+
"account_id" => account_id,
|
|
84
|
+
"date" => date,
|
|
85
|
+
"name" => name,
|
|
86
|
+
"default" => default,
|
|
87
|
+
"include_deleted" => include_deleted
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
method_url = "/resource_groups"
|
|
91
|
+
|
|
92
|
+
response = request(
|
|
93
|
+
method: "GET",
|
|
94
|
+
url: method_url,
|
|
95
|
+
headers: headers,
|
|
96
|
+
params: params,
|
|
97
|
+
accept_json: true
|
|
98
|
+
)
|
|
99
|
+
response
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# @!method create_resource_group(name: nil, account_id: nil)
|
|
104
|
+
# Create a resource group.
|
|
105
|
+
# Create a resource group in an account to organize your account resources in
|
|
106
|
+
# customizable groupings so that you can quickly assign users access to more than
|
|
107
|
+
# one resource at a time. To learn what makes a good resource group strategy, see
|
|
108
|
+
# [Best practices for organizing
|
|
109
|
+
# resources](https://cloud.ibm.com/docs/account?topic=account-account_setup). A
|
|
110
|
+
# default resource group is created when an account is created. If you have a Lite
|
|
111
|
+
# account or 30-day trial, you cannot create extra resource groups, but you can
|
|
112
|
+
# rename your default resource group. If you have a Pay-As-You-Go or Subscription
|
|
113
|
+
# account, you can create multiple resource groups. You must be assigned an IAM
|
|
114
|
+
# policy with the Administrator role on All Account Management services to create
|
|
115
|
+
# extra resource groups.
|
|
116
|
+
# @param name [String] The new name of the resource group.
|
|
117
|
+
# @param account_id [String] The account id of the resource group.
|
|
118
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
119
|
+
def create_resource_group(name: nil, account_id: nil)
|
|
120
|
+
headers = {
|
|
121
|
+
}
|
|
122
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "create_resource_group")
|
|
123
|
+
headers.merge!(sdk_headers)
|
|
124
|
+
|
|
125
|
+
data = {
|
|
126
|
+
"name" => name,
|
|
127
|
+
"account_id" => account_id
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
method_url = "/resource_groups"
|
|
131
|
+
|
|
132
|
+
response = request(
|
|
133
|
+
method: "POST",
|
|
134
|
+
url: method_url,
|
|
135
|
+
headers: headers,
|
|
136
|
+
json: data,
|
|
137
|
+
accept_json: true
|
|
138
|
+
)
|
|
139
|
+
response
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
##
|
|
143
|
+
# @!method get_resource_group(id:)
|
|
144
|
+
# Get a resource group.
|
|
145
|
+
# Retrieve a resource group by alias ID. Call this method to get details about a
|
|
146
|
+
# particular resource group, like the name of the resource group, associated quotas,
|
|
147
|
+
# whether the state is active, the resource group ID and the CRN. The `id` returned
|
|
148
|
+
# in the response can be used to [create a resource instance
|
|
149
|
+
# later](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#create-resource-instance).
|
|
150
|
+
# @param id [String] The short or long ID of the alias.
|
|
151
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
152
|
+
def get_resource_group(id:)
|
|
153
|
+
raise ArgumentError.new("id must be provided") if id.nil?
|
|
154
|
+
|
|
155
|
+
headers = {
|
|
156
|
+
}
|
|
157
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "get_resource_group")
|
|
158
|
+
headers.merge!(sdk_headers)
|
|
159
|
+
|
|
160
|
+
method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)]
|
|
161
|
+
|
|
162
|
+
response = request(
|
|
163
|
+
method: "GET",
|
|
164
|
+
url: method_url,
|
|
165
|
+
headers: headers,
|
|
166
|
+
accept_json: true
|
|
167
|
+
)
|
|
168
|
+
response
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
##
|
|
172
|
+
# @!method update_resource_group(id:, name: nil, state: nil)
|
|
173
|
+
# Update a resource group.
|
|
174
|
+
# Update a resource group by the alias ID. Call this method to update information
|
|
175
|
+
# about an existing resource group. You can rename a resource group and activate or
|
|
176
|
+
# suspend a particular resource group. To update a resource group, users need to be
|
|
177
|
+
# assigned with IAM policies with the Editor role or higher.
|
|
178
|
+
# @param id [String] The short or long ID of the alias.
|
|
179
|
+
# @param name [String] The new name of the resource group.
|
|
180
|
+
# @param state [String] The state of the resource group.
|
|
181
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
182
|
+
def update_resource_group(id:, name: nil, state: nil)
|
|
183
|
+
raise ArgumentError.new("id must be provided") if id.nil?
|
|
184
|
+
|
|
185
|
+
headers = {
|
|
186
|
+
}
|
|
187
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "update_resource_group")
|
|
188
|
+
headers.merge!(sdk_headers)
|
|
189
|
+
|
|
190
|
+
data = {
|
|
191
|
+
"name" => name,
|
|
192
|
+
"state" => state
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)]
|
|
196
|
+
|
|
197
|
+
response = request(
|
|
198
|
+
method: "PATCH",
|
|
199
|
+
url: method_url,
|
|
200
|
+
headers: headers,
|
|
201
|
+
json: data,
|
|
202
|
+
accept_json: true
|
|
203
|
+
)
|
|
204
|
+
response
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
##
|
|
208
|
+
# @!method delete_resource_group(id:)
|
|
209
|
+
# Delete a resource group.
|
|
210
|
+
# Delete a resource group by the alias ID. You can delete a resource group only if
|
|
211
|
+
# the targeted resource group does not contain any resources or if it is not a
|
|
212
|
+
# default resource group. When a user creates an account, a default resource group
|
|
213
|
+
# is created in the account. If you want to delete a resource group that contains
|
|
214
|
+
# resources, first [delete the resource
|
|
215
|
+
# instances](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#delete-resource-instance).
|
|
216
|
+
# Then, delete the resource group when all resource instances in the group are
|
|
217
|
+
# deleted.
|
|
218
|
+
# @param id [String] The short or long ID of the alias.
|
|
219
|
+
# @return [nil]
|
|
220
|
+
def delete_resource_group(id:)
|
|
221
|
+
raise ArgumentError.new("id must be provided") if id.nil?
|
|
222
|
+
|
|
223
|
+
headers = {
|
|
224
|
+
}
|
|
225
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "delete_resource_group")
|
|
226
|
+
headers.merge!(sdk_headers)
|
|
227
|
+
|
|
228
|
+
method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)]
|
|
229
|
+
|
|
230
|
+
request(
|
|
231
|
+
method: "DELETE",
|
|
232
|
+
url: method_url,
|
|
233
|
+
headers: headers,
|
|
234
|
+
accept_json: false
|
|
235
|
+
)
|
|
236
|
+
nil
|
|
237
|
+
end
|
|
238
|
+
#########################
|
|
239
|
+
# Quota Definition
|
|
240
|
+
#########################
|
|
241
|
+
|
|
242
|
+
##
|
|
243
|
+
# @!method list_quota_definitions
|
|
244
|
+
# List quota definitions.
|
|
245
|
+
# Get a list of all quota definitions. Quotas for a resource group limit the number
|
|
246
|
+
# of apps, instances, and memory allowed for that specific resource group. Each
|
|
247
|
+
# resource group that you have on your account has a specific set of quotas.
|
|
248
|
+
# Standard quotas are for resource groups that are created by users with a Lite
|
|
249
|
+
# account, and Pay-As-You-Go quotas are for resource groups that are created with a
|
|
250
|
+
# Pay-As-You-Go account. This method provides list of all available quota
|
|
251
|
+
# definitions.
|
|
252
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
253
|
+
def list_quota_definitions
|
|
254
|
+
headers = {
|
|
255
|
+
}
|
|
256
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "list_quota_definitions")
|
|
257
|
+
headers.merge!(sdk_headers)
|
|
258
|
+
|
|
259
|
+
method_url = "/quota_definitions"
|
|
260
|
+
|
|
261
|
+
response = request(
|
|
262
|
+
method: "GET",
|
|
263
|
+
url: method_url,
|
|
264
|
+
headers: headers,
|
|
265
|
+
accept_json: true
|
|
266
|
+
)
|
|
267
|
+
response
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
##
|
|
271
|
+
# @!method get_quota_definition(id:)
|
|
272
|
+
# Get a quota definition.
|
|
273
|
+
# Call this method to retrieve information about a particular quota by passing the
|
|
274
|
+
# quota ID. The response can be used to identify the quota type, Standard or Paid.
|
|
275
|
+
# Information about available resources, such as number of apps, number of service
|
|
276
|
+
# instances, and memory, are returned in the response. Quotas for a resource group
|
|
277
|
+
# limit the number of apps, instances, and memory allowed for that specific resource
|
|
278
|
+
# group. Each resource group that you have on your account has a specific set of
|
|
279
|
+
# quotas. Standard quotas are for resource groups that are created by users with a
|
|
280
|
+
# Lite account, and Pay-As-You-Go quotas are for resource groups that are created
|
|
281
|
+
# with a Pay-As-You-Go account.
|
|
282
|
+
# @param id [String] The id of the quota.
|
|
283
|
+
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
|
284
|
+
def get_quota_definition(id:)
|
|
285
|
+
raise ArgumentError.new("id must be provided") if id.nil?
|
|
286
|
+
|
|
287
|
+
headers = {
|
|
288
|
+
}
|
|
289
|
+
sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "get_quota_definition")
|
|
290
|
+
headers.merge!(sdk_headers)
|
|
291
|
+
|
|
292
|
+
method_url = "/quota_definitions/%s" % [ERB::Util.url_encode(id)]
|
|
293
|
+
|
|
294
|
+
response = request(
|
|
295
|
+
method: "GET",
|
|
296
|
+
url: method_url,
|
|
297
|
+
headers: headers,
|
|
298
|
+
accept_json: true
|
|
299
|
+
)
|
|
300
|
+
response
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
end
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#IBM Cloud Resource Controller API
|
|
3
|
-
|
|
4
|
-
#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.
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 5.0.0-beta2
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
1
|
module IbmCloudResourceController
|
|
14
|
-
VERSION =
|
|
2
|
+
VERSION = "2.0.0"
|
|
15
3
|
end
|
metadata
CHANGED
|
@@ -1,55 +1,71 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ibm_cloud_resource_controller
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- IBM Cloud Developers
|
|
8
8
|
autorequire:
|
|
9
|
-
bindir:
|
|
9
|
+
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: ibm_cloud_sdk_core
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.0.1
|
|
19
|
+
version: 1.1.1
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
26
|
+
version: 1.1.1
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: bundler
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
30
38
|
- - ">="
|
|
31
39
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
40
|
+
version: '0'
|
|
33
41
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
42
|
+
name: rake
|
|
35
43
|
requirement: !ruby/object:Gem::Requirement
|
|
36
44
|
requirements:
|
|
37
|
-
- - "~>"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '3.6'
|
|
40
45
|
- - ">="
|
|
41
46
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
47
|
+
version: '0'
|
|
43
48
|
type: :development
|
|
44
49
|
prerelease: false
|
|
45
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
51
|
requirements:
|
|
47
|
-
- - "
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rubocop
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
48
60
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
50
66
|
- - ">="
|
|
51
67
|
- !ruby/object:Gem::Version
|
|
52
|
-
version:
|
|
68
|
+
version: '0'
|
|
53
69
|
description: Ruby gem for IBM Cloud Resource Controller API
|
|
54
70
|
email:
|
|
55
71
|
- ''
|
|
@@ -57,107 +73,36 @@ executables: []
|
|
|
57
73
|
extensions: []
|
|
58
74
|
extra_rdoc_files: []
|
|
59
75
|
files:
|
|
76
|
+
- ".bumpversion.cfg"
|
|
77
|
+
- ".gitignore"
|
|
78
|
+
- ".openapi-generator-ignore"
|
|
79
|
+
- ".openapi-generator/VERSION"
|
|
80
|
+
- ".rspec"
|
|
81
|
+
- ".travis.yml"
|
|
82
|
+
- CHANGELOG.md
|
|
83
|
+
- CODE_OF_CONDUCT.md
|
|
84
|
+
- CONTRIBUTING.md
|
|
60
85
|
- Gemfile
|
|
86
|
+
- LICENSE
|
|
61
87
|
- README.md
|
|
62
88
|
- Rakefile
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- docs/PlanHistoryItem.md
|
|
66
|
-
- docs/Reclamation.md
|
|
67
|
-
- docs/ReclamationActionsPost.md
|
|
68
|
-
- docs/ReclamationsList.md
|
|
69
|
-
- docs/ResourceAlias.md
|
|
70
|
-
- docs/ResourceAliasPatch.md
|
|
71
|
-
- docs/ResourceAliasPost.md
|
|
72
|
-
- docs/ResourceAliasesApi.md
|
|
73
|
-
- docs/ResourceAliasesList.md
|
|
74
|
-
- docs/ResourceBinding.md
|
|
75
|
-
- docs/ResourceBindingPatch.md
|
|
76
|
-
- docs/ResourceBindingPost.md
|
|
77
|
-
- docs/ResourceBindingPostParameters.md
|
|
78
|
-
- docs/ResourceBindingsApi.md
|
|
79
|
-
- docs/ResourceBindingsList.md
|
|
80
|
-
- docs/ResourceInstance.md
|
|
81
|
-
- docs/ResourceInstancePatch.md
|
|
82
|
-
- docs/ResourceInstancePost.md
|
|
83
|
-
- docs/ResourceInstancesApi.md
|
|
84
|
-
- docs/ResourceInstancesList.md
|
|
85
|
-
- docs/ResourceKey.md
|
|
86
|
-
- docs/ResourceKeyPatch.md
|
|
87
|
-
- docs/ResourceKeyPost.md
|
|
88
|
-
- docs/ResourceKeysApi.md
|
|
89
|
-
- docs/ResourceKeysList.md
|
|
90
|
-
- docs/ResourceReclamationsApi.md
|
|
91
|
-
- git_push.sh
|
|
89
|
+
- bin/console
|
|
90
|
+
- bin/setup
|
|
92
91
|
- ibm_cloud_resource_controller.gemspec
|
|
93
92
|
- lib/ibm_cloud_resource_controller.rb
|
|
94
|
-
- lib/ibm_cloud_resource_controller/
|
|
95
|
-
- lib/ibm_cloud_resource_controller/
|
|
96
|
-
- lib/ibm_cloud_resource_controller/
|
|
97
|
-
- lib/ibm_cloud_resource_controller/
|
|
98
|
-
- lib/ibm_cloud_resource_controller/api/resource_reclamations_api.rb
|
|
99
|
-
- lib/ibm_cloud_resource_controller/api_client.rb
|
|
100
|
-
- lib/ibm_cloud_resource_controller/api_error.rb
|
|
101
|
-
- lib/ibm_cloud_resource_controller/configuration.rb
|
|
102
|
-
- lib/ibm_cloud_resource_controller/models/credentials.rb
|
|
103
|
-
- lib/ibm_cloud_resource_controller/models/error_report.rb
|
|
104
|
-
- lib/ibm_cloud_resource_controller/models/plan_history_item.rb
|
|
105
|
-
- lib/ibm_cloud_resource_controller/models/reclamation.rb
|
|
106
|
-
- lib/ibm_cloud_resource_controller/models/reclamation_actions_post.rb
|
|
107
|
-
- lib/ibm_cloud_resource_controller/models/reclamations_list.rb
|
|
108
|
-
- lib/ibm_cloud_resource_controller/models/resource_alias.rb
|
|
109
|
-
- lib/ibm_cloud_resource_controller/models/resource_alias_patch.rb
|
|
110
|
-
- lib/ibm_cloud_resource_controller/models/resource_alias_post.rb
|
|
111
|
-
- lib/ibm_cloud_resource_controller/models/resource_aliases_list.rb
|
|
112
|
-
- lib/ibm_cloud_resource_controller/models/resource_binding.rb
|
|
113
|
-
- lib/ibm_cloud_resource_controller/models/resource_binding_patch.rb
|
|
114
|
-
- lib/ibm_cloud_resource_controller/models/resource_binding_post.rb
|
|
115
|
-
- lib/ibm_cloud_resource_controller/models/resource_binding_post_parameters.rb
|
|
116
|
-
- lib/ibm_cloud_resource_controller/models/resource_bindings_list.rb
|
|
117
|
-
- lib/ibm_cloud_resource_controller/models/resource_instance.rb
|
|
118
|
-
- lib/ibm_cloud_resource_controller/models/resource_instance_patch.rb
|
|
119
|
-
- lib/ibm_cloud_resource_controller/models/resource_instance_post.rb
|
|
120
|
-
- lib/ibm_cloud_resource_controller/models/resource_instances_list.rb
|
|
121
|
-
- lib/ibm_cloud_resource_controller/models/resource_key.rb
|
|
122
|
-
- lib/ibm_cloud_resource_controller/models/resource_key_patch.rb
|
|
123
|
-
- lib/ibm_cloud_resource_controller/models/resource_key_post.rb
|
|
124
|
-
- lib/ibm_cloud_resource_controller/models/resource_keys_list.rb
|
|
93
|
+
- lib/ibm_cloud_resource_controller/authenticators.rb
|
|
94
|
+
- lib/ibm_cloud_resource_controller/common.rb
|
|
95
|
+
- lib/ibm_cloud_resource_controller/resource_controller_v2.rb
|
|
96
|
+
- lib/ibm_cloud_resource_controller/resource_manager_v2.rb
|
|
125
97
|
- lib/ibm_cloud_resource_controller/version.rb
|
|
126
|
-
|
|
127
|
-
- spec/api/resource_bindings_api_spec.rb
|
|
128
|
-
- spec/api/resource_instances_api_spec.rb
|
|
129
|
-
- spec/api/resource_keys_api_spec.rb
|
|
130
|
-
- spec/api/resource_reclamations_api_spec.rb
|
|
131
|
-
- spec/api_client_spec.rb
|
|
132
|
-
- spec/configuration_spec.rb
|
|
133
|
-
- spec/models/credentials_spec.rb
|
|
134
|
-
- spec/models/error_report_spec.rb
|
|
135
|
-
- spec/models/plan_history_item_spec.rb
|
|
136
|
-
- spec/models/reclamation_actions_post_spec.rb
|
|
137
|
-
- spec/models/reclamation_spec.rb
|
|
138
|
-
- spec/models/reclamations_list_spec.rb
|
|
139
|
-
- spec/models/resource_alias_patch_spec.rb
|
|
140
|
-
- spec/models/resource_alias_post_spec.rb
|
|
141
|
-
- spec/models/resource_alias_spec.rb
|
|
142
|
-
- spec/models/resource_aliases_list_spec.rb
|
|
143
|
-
- spec/models/resource_binding_patch_spec.rb
|
|
144
|
-
- spec/models/resource_binding_post_parameters_spec.rb
|
|
145
|
-
- spec/models/resource_binding_post_spec.rb
|
|
146
|
-
- spec/models/resource_binding_spec.rb
|
|
147
|
-
- spec/models/resource_bindings_list_spec.rb
|
|
148
|
-
- spec/models/resource_instance_patch_spec.rb
|
|
149
|
-
- spec/models/resource_instance_post_spec.rb
|
|
150
|
-
- spec/models/resource_instance_spec.rb
|
|
151
|
-
- spec/models/resource_instances_list_spec.rb
|
|
152
|
-
- spec/models/resource_key_patch_spec.rb
|
|
153
|
-
- spec/models/resource_key_post_spec.rb
|
|
154
|
-
- spec/models/resource_key_spec.rb
|
|
155
|
-
- spec/models/resource_keys_list_spec.rb
|
|
156
|
-
- spec/spec_helper.rb
|
|
157
|
-
homepage: https://openapi-generator.tech
|
|
98
|
+
homepage: https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby
|
|
158
99
|
licenses:
|
|
159
100
|
- Apache-2.0
|
|
160
|
-
metadata:
|
|
101
|
+
metadata:
|
|
102
|
+
allowed_push_host: https://rubygems.org
|
|
103
|
+
homepage_uri: https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby
|
|
104
|
+
source_code_uri: https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby
|
|
105
|
+
changelog_uri: https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/CHANGELOG.md
|
|
161
106
|
post_install_message:
|
|
162
107
|
rdoc_options: []
|
|
163
108
|
require_paths:
|
|
@@ -166,46 +111,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
166
111
|
requirements:
|
|
167
112
|
- - ">="
|
|
168
113
|
- !ruby/object:Gem::Version
|
|
169
|
-
version:
|
|
114
|
+
version: 2.3.0
|
|
170
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
116
|
requirements:
|
|
172
117
|
- - ">="
|
|
173
118
|
- !ruby/object:Gem::Version
|
|
174
119
|
version: '0'
|
|
175
120
|
requirements: []
|
|
176
|
-
rubygems_version: 3.
|
|
121
|
+
rubygems_version: 3.2.5
|
|
177
122
|
signing_key:
|
|
178
123
|
specification_version: 4
|
|
179
124
|
summary: IBM Cloud Resource Controller API
|
|
180
|
-
test_files:
|
|
181
|
-
- spec/api/resource_aliases_api_spec.rb
|
|
182
|
-
- spec/api/resource_bindings_api_spec.rb
|
|
183
|
-
- spec/api/resource_instances_api_spec.rb
|
|
184
|
-
- spec/api/resource_keys_api_spec.rb
|
|
185
|
-
- spec/api/resource_reclamations_api_spec.rb
|
|
186
|
-
- spec/api_client_spec.rb
|
|
187
|
-
- spec/configuration_spec.rb
|
|
188
|
-
- spec/models/credentials_spec.rb
|
|
189
|
-
- spec/models/error_report_spec.rb
|
|
190
|
-
- spec/models/plan_history_item_spec.rb
|
|
191
|
-
- spec/models/reclamation_actions_post_spec.rb
|
|
192
|
-
- spec/models/reclamation_spec.rb
|
|
193
|
-
- spec/models/reclamations_list_spec.rb
|
|
194
|
-
- spec/models/resource_alias_patch_spec.rb
|
|
195
|
-
- spec/models/resource_alias_post_spec.rb
|
|
196
|
-
- spec/models/resource_alias_spec.rb
|
|
197
|
-
- spec/models/resource_aliases_list_spec.rb
|
|
198
|
-
- spec/models/resource_binding_patch_spec.rb
|
|
199
|
-
- spec/models/resource_binding_post_parameters_spec.rb
|
|
200
|
-
- spec/models/resource_binding_post_spec.rb
|
|
201
|
-
- spec/models/resource_binding_spec.rb
|
|
202
|
-
- spec/models/resource_bindings_list_spec.rb
|
|
203
|
-
- spec/models/resource_instance_patch_spec.rb
|
|
204
|
-
- spec/models/resource_instance_post_spec.rb
|
|
205
|
-
- spec/models/resource_instance_spec.rb
|
|
206
|
-
- spec/models/resource_instances_list_spec.rb
|
|
207
|
-
- spec/models/resource_key_patch_spec.rb
|
|
208
|
-
- spec/models/resource_key_post_spec.rb
|
|
209
|
-
- spec/models/resource_key_spec.rb
|
|
210
|
-
- spec/models/resource_keys_list_spec.rb
|
|
211
|
-
- spec/spec_helper.rb
|
|
125
|
+
test_files: []
|