google-cloud-oracle_database-v1 0.a → 0.1.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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +118 -8
  5. data/lib/google/cloud/oracle_database/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb +47 -0
  7. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +124 -0
  8. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +2624 -0
  9. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb +902 -0
  10. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +1372 -0
  11. data/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb +54 -0
  12. data/lib/google/cloud/oracle_database/v1/oracle_database.rb +48 -0
  13. data/lib/google/cloud/oracle_database/v1/rest.rb +38 -0
  14. data/lib/google/cloud/oracle_database/v1/version.rb +7 -2
  15. data/lib/google/cloud/oracle_database/v1.rb +40 -0
  16. data/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb +46 -0
  17. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +83 -0
  18. data/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb +50 -0
  19. data/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb +46 -0
  20. data/lib/google/cloud/oracledatabase/v1/common_pb.rb +44 -0
  21. data/lib/google/cloud/oracledatabase/v1/db_node_pb.rb +47 -0
  22. data/lib/google/cloud/oracledatabase/v1/db_server_pb.rb +47 -0
  23. data/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb +45 -0
  24. data/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb +47 -0
  25. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +56 -0
  26. data/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb +45 -0
  27. data/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb +44 -0
  28. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +108 -0
  29. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +89 -0
  30. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +54 -0
  31. data/lib/google-cloud-oracle_database-v1.rb +21 -0
  32. data/proto_docs/README.md +4 -0
  33. data/proto_docs/google/api/client.rb +420 -0
  34. data/proto_docs/google/api/field_behavior.rb +85 -0
  35. data/proto_docs/google/api/field_info.rb +88 -0
  36. data/proto_docs/google/api/launch_stage.rb +71 -0
  37. data/proto_docs/google/api/resource.rb +227 -0
  38. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +844 -0
  39. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb +57 -0
  40. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb +175 -0
  41. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb +48 -0
  42. data/proto_docs/google/cloud/oracledatabase/v1/common.rb +37 -0
  43. data/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +103 -0
  44. data/proto_docs/google/cloud/oracledatabase/v1/db_server.rb +100 -0
  45. data/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb +70 -0
  46. data/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb +78 -0
  47. data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +266 -0
  48. data/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb +41 -0
  49. data/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb +35 -0
  50. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +649 -0
  51. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +251 -0
  52. data/proto_docs/google/longrunning/operations.rb +164 -0
  53. data/proto_docs/google/protobuf/any.rb +145 -0
  54. data/proto_docs/google/protobuf/duration.rb +98 -0
  55. data/proto_docs/google/protobuf/empty.rb +34 -0
  56. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  57. data/proto_docs/google/rpc/status.rb +48 -0
  58. data/proto_docs/google/type/datetime.rb +99 -0
  59. data/proto_docs/google/type/dayofweek.rb +49 -0
  60. data/proto_docs/google/type/month.rb +64 -0
  61. data/proto_docs/google/type/timeofday.rb +45 -0
  62. metadata +123 -10
@@ -0,0 +1,2624 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
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
+ # https://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
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/oracledatabase/v1/oracledatabase_pb"
21
+ require "google/cloud/oracle_database/v1/oracle_database/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module OracleDatabase
27
+ module V1
28
+ module OracleDatabase
29
+ module Rest
30
+ ##
31
+ # REST client for the OracleDatabase service.
32
+ #
33
+ # Service describing handlers for resources
34
+ #
35
+ class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$"
41
+
42
+ include Paths
43
+
44
+ # @private
45
+ attr_reader :oracle_database_stub
46
+
47
+ ##
48
+ # Configure the OracleDatabase Client class.
49
+ #
50
+ # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration}
51
+ # for a description of the configuration fields.
52
+ #
53
+ # @example
54
+ #
55
+ # # Modify the configuration for all OracleDatabase clients
56
+ # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config|
57
+ # config.timeout = 10.0
58
+ # end
59
+ #
60
+ # @yield [config] Configure the Client client.
61
+ # @yieldparam config [Client::Configuration]
62
+ #
63
+ # @return [Client::Configuration]
64
+ #
65
+ def self.configure
66
+ @configure ||= begin
67
+ namespace = ["Google", "Cloud", "OracleDatabase", "V1"]
68
+ parent_config = while namespace.any?
69
+ parent_name = namespace.join "::"
70
+ parent_const = const_get parent_name
71
+ break parent_const.configure if parent_const.respond_to? :configure
72
+ namespace.pop
73
+ end
74
+ default_config = Client::Configuration.new parent_config
75
+
76
+ default_config.timeout = 60.0
77
+
78
+ default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0
79
+ default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = {
80
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
81
+ }
82
+
83
+ default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0
84
+ default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = {
85
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
86
+ }
87
+
88
+ default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0
89
+ default_config.rpcs.list_cloud_vm_clusters.retry_policy = {
90
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
91
+ }
92
+
93
+ default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0
94
+ default_config.rpcs.get_cloud_vm_cluster.retry_policy = {
95
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
96
+ }
97
+
98
+ default_config.rpcs.list_entitlements.timeout = 60.0
99
+ default_config.rpcs.list_entitlements.retry_policy = {
100
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
101
+ }
102
+
103
+ default_config.rpcs.list_db_servers.timeout = 60.0
104
+ default_config.rpcs.list_db_servers.retry_policy = {
105
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
106
+ }
107
+
108
+ default_config.rpcs.list_db_nodes.timeout = 60.0
109
+ default_config.rpcs.list_db_nodes.retry_policy = {
110
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
111
+ }
112
+
113
+ default_config.rpcs.list_gi_versions.timeout = 60.0
114
+ default_config.rpcs.list_gi_versions.retry_policy = {
115
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
116
+ }
117
+
118
+ default_config.rpcs.list_db_system_shapes.timeout = 60.0
119
+ default_config.rpcs.list_db_system_shapes.retry_policy = {
120
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
121
+ }
122
+
123
+ default_config.rpcs.list_autonomous_databases.timeout = 60.0
124
+ default_config.rpcs.list_autonomous_databases.retry_policy = {
125
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
126
+ }
127
+
128
+ default_config.rpcs.get_autonomous_database.timeout = 60.0
129
+ default_config.rpcs.get_autonomous_database.retry_policy = {
130
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
131
+ }
132
+
133
+ default_config.rpcs.list_autonomous_db_versions.timeout = 60.0
134
+ default_config.rpcs.list_autonomous_db_versions.retry_policy = {
135
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
136
+ }
137
+
138
+ default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0
139
+ default_config.rpcs.list_autonomous_database_character_sets.retry_policy = {
140
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
141
+ }
142
+
143
+ default_config.rpcs.list_autonomous_database_backups.timeout = 60.0
144
+ default_config.rpcs.list_autonomous_database_backups.retry_policy = {
145
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
146
+ }
147
+
148
+ default_config
149
+ end
150
+ yield @configure if block_given?
151
+ @configure
152
+ end
153
+
154
+ ##
155
+ # Configure the OracleDatabase Client instance.
156
+ #
157
+ # The configuration is set to the derived mode, meaning that values can be changed,
158
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
159
+ # should be made on {Client.configure}.
160
+ #
161
+ # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration}
162
+ # for a description of the configuration fields.
163
+ #
164
+ # @yield [config] Configure the Client client.
165
+ # @yieldparam config [Client::Configuration]
166
+ #
167
+ # @return [Client::Configuration]
168
+ #
169
+ def configure
170
+ yield @config if block_given?
171
+ @config
172
+ end
173
+
174
+ ##
175
+ # The effective universe domain
176
+ #
177
+ # @return [String]
178
+ #
179
+ def universe_domain
180
+ @oracle_database_stub.universe_domain
181
+ end
182
+
183
+ ##
184
+ # Create a new OracleDatabase REST client object.
185
+ #
186
+ # @example
187
+ #
188
+ # # Create a client using the default configuration
189
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
190
+ #
191
+ # # Create a client using a custom configuration
192
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config|
193
+ # config.timeout = 10.0
194
+ # end
195
+ #
196
+ # @yield [config] Configure the OracleDatabase client.
197
+ # @yieldparam config [Client::Configuration]
198
+ #
199
+ def initialize
200
+ # Create the configuration object
201
+ @config = Configuration.new Client.configure
202
+
203
+ # Yield the configuration if needed
204
+ yield @config if block_given?
205
+
206
+ # Create credentials
207
+ credentials = @config.credentials
208
+ # Use self-signed JWT if the endpoint is unchanged from default,
209
+ # but only if the default endpoint does not have a region prefix.
210
+ enable_self_signed_jwt = @config.endpoint.nil? ||
211
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
212
+ !@config.endpoint.split(".").first.include?("-"))
213
+ credentials ||= Credentials.default scope: @config.scope,
214
+ enable_self_signed_jwt: enable_self_signed_jwt
215
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
216
+ credentials = Credentials.new credentials, scope: @config.scope
217
+ end
218
+
219
+ @quota_project_id = @config.quota_project
220
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
221
+
222
+ @operations_client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations.new do |config|
223
+ config.credentials = credentials
224
+ config.quota_project = @quota_project_id
225
+ config.endpoint = @config.endpoint
226
+ config.universe_domain = @config.universe_domain
227
+ end
228
+
229
+ @oracle_database_stub = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.new(
230
+ endpoint: @config.endpoint,
231
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
232
+ universe_domain: @config.universe_domain,
233
+ credentials: credentials
234
+ )
235
+
236
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
237
+ config.credentials = credentials
238
+ config.quota_project = @quota_project_id
239
+ config.endpoint = @oracle_database_stub.endpoint
240
+ config.universe_domain = @oracle_database_stub.universe_domain
241
+ config.bindings_override = @config.bindings_override
242
+ end
243
+ end
244
+
245
+ ##
246
+ # Get the associated client for long-running operations.
247
+ #
248
+ # @return [::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations]
249
+ #
250
+ attr_reader :operations_client
251
+
252
+ ##
253
+ # Get the associated client for mix-in of the Locations.
254
+ #
255
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
256
+ #
257
+ attr_reader :location_client
258
+
259
+ # Service calls
260
+
261
+ ##
262
+ # Lists Exadata Infrastructures in a given project and location.
263
+ #
264
+ # @overload list_cloud_exadata_infrastructures(request, options = nil)
265
+ # Pass arguments to `list_cloud_exadata_infrastructures` via a request object, either of type
266
+ # {::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest} or an equivalent Hash.
267
+ #
268
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Hash]
269
+ # A request object representing the call parameters. Required. To specify no
270
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
271
+ # @param options [::Gapic::CallOptions, ::Hash]
272
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
273
+ #
274
+ # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil)
275
+ # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at
276
+ # least one keyword argument is required. To specify no parameters, or to keep all
277
+ # the default parameter values, pass an empty Hash as a request object (see above).
278
+ #
279
+ # @param parent [::String]
280
+ # Required. The parent value for CloudExadataInfrastructure in the following
281
+ # format: projects/\\{project}/locations/\\{location}.
282
+ # @param page_size [::Integer]
283
+ # Optional. The maximum number of items to return.
284
+ # If unspecified, at most 50 Exadata infrastructures will be returned.
285
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
286
+ # @param page_token [::String]
287
+ # Optional. A token identifying a page of results the server should return.
288
+ # @yield [result, operation] Access the result along with the TransportOperation object
289
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>]
290
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
291
+ #
292
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>]
293
+ #
294
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/oracle_database/v1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new
304
+ #
305
+ # # Call the list_cloud_exadata_infrastructures method.
306
+ # result = client.list_cloud_exadata_infrastructures request
307
+ #
308
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
309
+ # # over elements, and API calls will be issued to fetch pages as needed.
310
+ # result.each do |item|
311
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.
312
+ # p item
313
+ # end
314
+ #
315
+ def list_cloud_exadata_infrastructures request, options = nil
316
+ raise ::ArgumentError, "request must be provided" if request.nil?
317
+
318
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest
319
+
320
+ # Converts hash and nil to an options object
321
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
322
+
323
+ # Customize the options with defaults
324
+ call_metadata = @config.rpcs.list_cloud_exadata_infrastructures.metadata.to_h
325
+
326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
327
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
328
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
329
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
330
+ transports_version_send: [:rest]
331
+
332
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
333
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
334
+
335
+ options.apply_defaults timeout: @config.rpcs.list_cloud_exadata_infrastructures.timeout,
336
+ metadata: call_metadata,
337
+ retry_policy: @config.rpcs.list_cloud_exadata_infrastructures.retry_policy
338
+
339
+ options.apply_defaults timeout: @config.timeout,
340
+ metadata: @config.metadata,
341
+ retry_policy: @config.retry_policy
342
+
343
+ @oracle_database_stub.list_cloud_exadata_infrastructures request, options do |result, operation|
344
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_exadata_infrastructures, "cloud_exadata_infrastructures", request, result, options
345
+ yield result, operation if block_given?
346
+ return result
347
+ end
348
+ rescue ::Gapic::Rest::Error => e
349
+ raise ::Google::Cloud::Error.from_error(e)
350
+ end
351
+
352
+ ##
353
+ # Gets details of a single Exadata Infrastructure.
354
+ #
355
+ # @overload get_cloud_exadata_infrastructure(request, options = nil)
356
+ # Pass arguments to `get_cloud_exadata_infrastructure` via a request object, either of type
357
+ # {::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest} or an equivalent Hash.
358
+ #
359
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Hash]
360
+ # A request object representing the call parameters. Required. To specify no
361
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
362
+ # @param options [::Gapic::CallOptions, ::Hash]
363
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
364
+ #
365
+ # @overload get_cloud_exadata_infrastructure(name: nil)
366
+ # Pass arguments to `get_cloud_exadata_infrastructure` via keyword arguments. Note that at
367
+ # least one keyword argument is required. To specify no parameters, or to keep all
368
+ # the default parameter values, pass an empty Hash as a request object (see above).
369
+ #
370
+ # @param name [::String]
371
+ # Required. The name of the Cloud Exadata Infrastructure in the following
372
+ # format:
373
+ # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}.
374
+ # @yield [result, operation] Access the result along with the TransportOperation object
375
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure]
376
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
377
+ #
378
+ # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure]
379
+ #
380
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
381
+ #
382
+ # @example Basic example
383
+ # require "google/cloud/oracle_database/v1"
384
+ #
385
+ # # Create a client object. The client can be reused for multiple calls.
386
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
387
+ #
388
+ # # Create a request. To set request fields, pass in keyword arguments.
389
+ # request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new
390
+ #
391
+ # # Call the get_cloud_exadata_infrastructure method.
392
+ # result = client.get_cloud_exadata_infrastructure request
393
+ #
394
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.
395
+ # p result
396
+ #
397
+ def get_cloud_exadata_infrastructure request, options = nil
398
+ raise ::ArgumentError, "request must be provided" if request.nil?
399
+
400
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest
401
+
402
+ # Converts hash and nil to an options object
403
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
404
+
405
+ # Customize the options with defaults
406
+ call_metadata = @config.rpcs.get_cloud_exadata_infrastructure.metadata.to_h
407
+
408
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
409
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
410
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
411
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
412
+ transports_version_send: [:rest]
413
+
414
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
415
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
416
+
417
+ options.apply_defaults timeout: @config.rpcs.get_cloud_exadata_infrastructure.timeout,
418
+ metadata: call_metadata,
419
+ retry_policy: @config.rpcs.get_cloud_exadata_infrastructure.retry_policy
420
+
421
+ options.apply_defaults timeout: @config.timeout,
422
+ metadata: @config.metadata,
423
+ retry_policy: @config.retry_policy
424
+
425
+ @oracle_database_stub.get_cloud_exadata_infrastructure request, options do |result, operation|
426
+ yield result, operation if block_given?
427
+ return result
428
+ end
429
+ rescue ::Gapic::Rest::Error => e
430
+ raise ::Google::Cloud::Error.from_error(e)
431
+ end
432
+
433
+ ##
434
+ # Creates a new Exadata Infrastructure in a given project and location.
435
+ #
436
+ # @overload create_cloud_exadata_infrastructure(request, options = nil)
437
+ # Pass arguments to `create_cloud_exadata_infrastructure` via a request object, either of type
438
+ # {::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest} or an equivalent Hash.
439
+ #
440
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Hash]
441
+ # A request object representing the call parameters. Required. To specify no
442
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
443
+ # @param options [::Gapic::CallOptions, ::Hash]
444
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
445
+ #
446
+ # @overload create_cloud_exadata_infrastructure(parent: nil, cloud_exadata_infrastructure_id: nil, cloud_exadata_infrastructure: nil, request_id: nil)
447
+ # Pass arguments to `create_cloud_exadata_infrastructure` via keyword arguments. Note that at
448
+ # least one keyword argument is required. To specify no parameters, or to keep all
449
+ # the default parameter values, pass an empty Hash as a request object (see above).
450
+ #
451
+ # @param parent [::String]
452
+ # Required. The parent value for CloudExadataInfrastructure in the following
453
+ # format: projects/\\{project}/locations/\\{location}.
454
+ # @param cloud_exadata_infrastructure_id [::String]
455
+ # Required. The ID of the Exadata Infrastructure to create. This value is
456
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
457
+ # 63 characters in length. The value must start with a letter and end with a
458
+ # letter or a number.
459
+ # @param cloud_exadata_infrastructure [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure, ::Hash]
460
+ # Required. Details of the Exadata Infrastructure instance to create.
461
+ # @param request_id [::String]
462
+ # Optional. An optional ID to identify the request. This value is used to
463
+ # identify duplicate requests. If you make a request with the same request ID
464
+ # and the original request is still in progress or completed, the server
465
+ # ignores the second request. This prevents clients from
466
+ # accidentally creating duplicate commitments.
467
+ #
468
+ # The request ID must be a valid UUID with the exception that zero UUID is
469
+ # not supported (00000000-0000-0000-0000-000000000000).
470
+ # @yield [result, operation] Access the result along with the TransportOperation object
471
+ # @yieldparam result [::Gapic::Operation]
472
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
473
+ #
474
+ # @return [::Gapic::Operation]
475
+ #
476
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
477
+ #
478
+ # @example Basic example
479
+ # require "google/cloud/oracle_database/v1"
480
+ #
481
+ # # Create a client object. The client can be reused for multiple calls.
482
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
483
+ #
484
+ # # Create a request. To set request fields, pass in keyword arguments.
485
+ # request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new
486
+ #
487
+ # # Call the create_cloud_exadata_infrastructure method.
488
+ # result = client.create_cloud_exadata_infrastructure request
489
+ #
490
+ # # The returned object is of type Gapic::Operation. You can use it to
491
+ # # check the status of an operation, cancel it, or wait for results.
492
+ # # Here is how to wait for a response.
493
+ # result.wait_until_done! timeout: 60
494
+ # if result.response?
495
+ # p result.response
496
+ # else
497
+ # puts "No response received."
498
+ # end
499
+ #
500
+ def create_cloud_exadata_infrastructure request, options = nil
501
+ raise ::ArgumentError, "request must be provided" if request.nil?
502
+
503
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest
504
+
505
+ # Converts hash and nil to an options object
506
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
507
+
508
+ # Customize the options with defaults
509
+ call_metadata = @config.rpcs.create_cloud_exadata_infrastructure.metadata.to_h
510
+
511
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
512
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
513
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
514
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
515
+ transports_version_send: [:rest]
516
+
517
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
518
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
519
+
520
+ options.apply_defaults timeout: @config.rpcs.create_cloud_exadata_infrastructure.timeout,
521
+ metadata: call_metadata,
522
+ retry_policy: @config.rpcs.create_cloud_exadata_infrastructure.retry_policy
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
526
+ retry_policy: @config.retry_policy
527
+
528
+ @oracle_database_stub.create_cloud_exadata_infrastructure request, options do |result, operation|
529
+ result = ::Gapic::Operation.new result, @operations_client, options: options
530
+ yield result, operation if block_given?
531
+ return result
532
+ end
533
+ rescue ::Gapic::Rest::Error => e
534
+ raise ::Google::Cloud::Error.from_error(e)
535
+ end
536
+
537
+ ##
538
+ # Deletes a single Exadata Infrastructure.
539
+ #
540
+ # @overload delete_cloud_exadata_infrastructure(request, options = nil)
541
+ # Pass arguments to `delete_cloud_exadata_infrastructure` via a request object, either of type
542
+ # {::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest} or an equivalent Hash.
543
+ #
544
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Hash]
545
+ # A request object representing the call parameters. Required. To specify no
546
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
547
+ # @param options [::Gapic::CallOptions, ::Hash]
548
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
549
+ #
550
+ # @overload delete_cloud_exadata_infrastructure(name: nil, request_id: nil, force: nil)
551
+ # Pass arguments to `delete_cloud_exadata_infrastructure` via keyword arguments. Note that at
552
+ # least one keyword argument is required. To specify no parameters, or to keep all
553
+ # the default parameter values, pass an empty Hash as a request object (see above).
554
+ #
555
+ # @param name [::String]
556
+ # Required. The name of the Cloud Exadata Infrastructure in the following
557
+ # format:
558
+ # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}.
559
+ # @param request_id [::String]
560
+ # Optional. An optional ID to identify the request. This value is used to
561
+ # identify duplicate requests. If you make a request with the same request ID
562
+ # and the original request is still in progress or completed, the server
563
+ # ignores the second request. This prevents clients from
564
+ # accidentally creating duplicate commitments.
565
+ #
566
+ # The request ID must be a valid UUID with the exception that zero UUID is
567
+ # not supported (00000000-0000-0000-0000-000000000000).
568
+ # @param force [::Boolean]
569
+ # Optional. If set to true, all VM clusters for this Exadata Infrastructure
570
+ # will be deleted. An Exadata Infrastructure can only be deleted once all its
571
+ # VM clusters have been deleted.
572
+ # @yield [result, operation] Access the result along with the TransportOperation object
573
+ # @yieldparam result [::Gapic::Operation]
574
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
575
+ #
576
+ # @return [::Gapic::Operation]
577
+ #
578
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
579
+ #
580
+ # @example Basic example
581
+ # require "google/cloud/oracle_database/v1"
582
+ #
583
+ # # Create a client object. The client can be reused for multiple calls.
584
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
585
+ #
586
+ # # Create a request. To set request fields, pass in keyword arguments.
587
+ # request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new
588
+ #
589
+ # # Call the delete_cloud_exadata_infrastructure method.
590
+ # result = client.delete_cloud_exadata_infrastructure request
591
+ #
592
+ # # The returned object is of type Gapic::Operation. You can use it to
593
+ # # check the status of an operation, cancel it, or wait for results.
594
+ # # Here is how to wait for a response.
595
+ # result.wait_until_done! timeout: 60
596
+ # if result.response?
597
+ # p result.response
598
+ # else
599
+ # puts "No response received."
600
+ # end
601
+ #
602
+ def delete_cloud_exadata_infrastructure request, options = nil
603
+ raise ::ArgumentError, "request must be provided" if request.nil?
604
+
605
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest
606
+
607
+ # Converts hash and nil to an options object
608
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
609
+
610
+ # Customize the options with defaults
611
+ call_metadata = @config.rpcs.delete_cloud_exadata_infrastructure.metadata.to_h
612
+
613
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
614
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
615
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
616
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
617
+ transports_version_send: [:rest]
618
+
619
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
620
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
621
+
622
+ options.apply_defaults timeout: @config.rpcs.delete_cloud_exadata_infrastructure.timeout,
623
+ metadata: call_metadata,
624
+ retry_policy: @config.rpcs.delete_cloud_exadata_infrastructure.retry_policy
625
+
626
+ options.apply_defaults timeout: @config.timeout,
627
+ metadata: @config.metadata,
628
+ retry_policy: @config.retry_policy
629
+
630
+ @oracle_database_stub.delete_cloud_exadata_infrastructure request, options do |result, operation|
631
+ result = ::Gapic::Operation.new result, @operations_client, options: options
632
+ yield result, operation if block_given?
633
+ return result
634
+ end
635
+ rescue ::Gapic::Rest::Error => e
636
+ raise ::Google::Cloud::Error.from_error(e)
637
+ end
638
+
639
+ ##
640
+ # Lists the VM Clusters in a given project and location.
641
+ #
642
+ # @overload list_cloud_vm_clusters(request, options = nil)
643
+ # Pass arguments to `list_cloud_vm_clusters` via a request object, either of type
644
+ # {::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest} or an equivalent Hash.
645
+ #
646
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Hash]
647
+ # A request object representing the call parameters. Required. To specify no
648
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
649
+ # @param options [::Gapic::CallOptions, ::Hash]
650
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
651
+ #
652
+ # @overload list_cloud_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil)
653
+ # Pass arguments to `list_cloud_vm_clusters` via keyword arguments. Note that at
654
+ # least one keyword argument is required. To specify no parameters, or to keep all
655
+ # the default parameter values, pass an empty Hash as a request object (see above).
656
+ #
657
+ # @param parent [::String]
658
+ # Required. The name of the parent in the following format:
659
+ # projects/\\{project}/locations/\\{location}.
660
+ # @param page_size [::Integer]
661
+ # Optional. The number of VM clusters to return.
662
+ # If unspecified, at most 50 VM clusters will be returned.
663
+ # The maximum value is 1,000.
664
+ # @param page_token [::String]
665
+ # Optional. A token identifying the page of results the server returns.
666
+ # @param filter [::String]
667
+ # Optional. An expression for filtering the results of the request.
668
+ # @yield [result, operation] Access the result along with the TransportOperation object
669
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>]
670
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
671
+ #
672
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>]
673
+ #
674
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
675
+ #
676
+ # @example Basic example
677
+ # require "google/cloud/oracle_database/v1"
678
+ #
679
+ # # Create a client object. The client can be reused for multiple calls.
680
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
681
+ #
682
+ # # Create a request. To set request fields, pass in keyword arguments.
683
+ # request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new
684
+ #
685
+ # # Call the list_cloud_vm_clusters method.
686
+ # result = client.list_cloud_vm_clusters request
687
+ #
688
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
689
+ # # over elements, and API calls will be issued to fetch pages as needed.
690
+ # result.each do |item|
691
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.
692
+ # p item
693
+ # end
694
+ #
695
+ def list_cloud_vm_clusters request, options = nil
696
+ raise ::ArgumentError, "request must be provided" if request.nil?
697
+
698
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest
699
+
700
+ # Converts hash and nil to an options object
701
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
702
+
703
+ # Customize the options with defaults
704
+ call_metadata = @config.rpcs.list_cloud_vm_clusters.metadata.to_h
705
+
706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
707
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
708
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
709
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
710
+ transports_version_send: [:rest]
711
+
712
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
713
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
714
+
715
+ options.apply_defaults timeout: @config.rpcs.list_cloud_vm_clusters.timeout,
716
+ metadata: call_metadata,
717
+ retry_policy: @config.rpcs.list_cloud_vm_clusters.retry_policy
718
+
719
+ options.apply_defaults timeout: @config.timeout,
720
+ metadata: @config.metadata,
721
+ retry_policy: @config.retry_policy
722
+
723
+ @oracle_database_stub.list_cloud_vm_clusters request, options do |result, operation|
724
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_vm_clusters, "cloud_vm_clusters", request, result, options
725
+ yield result, operation if block_given?
726
+ return result
727
+ end
728
+ rescue ::Gapic::Rest::Error => e
729
+ raise ::Google::Cloud::Error.from_error(e)
730
+ end
731
+
732
+ ##
733
+ # Gets details of a single VM Cluster.
734
+ #
735
+ # @overload get_cloud_vm_cluster(request, options = nil)
736
+ # Pass arguments to `get_cloud_vm_cluster` via a request object, either of type
737
+ # {::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest} or an equivalent Hash.
738
+ #
739
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Hash]
740
+ # A request object representing the call parameters. Required. To specify no
741
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
742
+ # @param options [::Gapic::CallOptions, ::Hash]
743
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
744
+ #
745
+ # @overload get_cloud_vm_cluster(name: nil)
746
+ # Pass arguments to `get_cloud_vm_cluster` via keyword arguments. Note that at
747
+ # least one keyword argument is required. To specify no parameters, or to keep all
748
+ # the default parameter values, pass an empty Hash as a request object (see above).
749
+ #
750
+ # @param name [::String]
751
+ # Required. The name of the Cloud VM Cluster in the following format:
752
+ # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}.
753
+ # @yield [result, operation] Access the result along with the TransportOperation object
754
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster]
755
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
756
+ #
757
+ # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster]
758
+ #
759
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
760
+ #
761
+ # @example Basic example
762
+ # require "google/cloud/oracle_database/v1"
763
+ #
764
+ # # Create a client object. The client can be reused for multiple calls.
765
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
766
+ #
767
+ # # Create a request. To set request fields, pass in keyword arguments.
768
+ # request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new
769
+ #
770
+ # # Call the get_cloud_vm_cluster method.
771
+ # result = client.get_cloud_vm_cluster request
772
+ #
773
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster.
774
+ # p result
775
+ #
776
+ def get_cloud_vm_cluster request, options = nil
777
+ raise ::ArgumentError, "request must be provided" if request.nil?
778
+
779
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest
780
+
781
+ # Converts hash and nil to an options object
782
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
783
+
784
+ # Customize the options with defaults
785
+ call_metadata = @config.rpcs.get_cloud_vm_cluster.metadata.to_h
786
+
787
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
788
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
789
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
790
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
791
+ transports_version_send: [:rest]
792
+
793
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
794
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
795
+
796
+ options.apply_defaults timeout: @config.rpcs.get_cloud_vm_cluster.timeout,
797
+ metadata: call_metadata,
798
+ retry_policy: @config.rpcs.get_cloud_vm_cluster.retry_policy
799
+
800
+ options.apply_defaults timeout: @config.timeout,
801
+ metadata: @config.metadata,
802
+ retry_policy: @config.retry_policy
803
+
804
+ @oracle_database_stub.get_cloud_vm_cluster request, options do |result, operation|
805
+ yield result, operation if block_given?
806
+ return result
807
+ end
808
+ rescue ::Gapic::Rest::Error => e
809
+ raise ::Google::Cloud::Error.from_error(e)
810
+ end
811
+
812
+ ##
813
+ # Creates a new VM Cluster in a given project and location.
814
+ #
815
+ # @overload create_cloud_vm_cluster(request, options = nil)
816
+ # Pass arguments to `create_cloud_vm_cluster` via a request object, either of type
817
+ # {::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest} or an equivalent Hash.
818
+ #
819
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Hash]
820
+ # A request object representing the call parameters. Required. To specify no
821
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
822
+ # @param options [::Gapic::CallOptions, ::Hash]
823
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
824
+ #
825
+ # @overload create_cloud_vm_cluster(parent: nil, cloud_vm_cluster_id: nil, cloud_vm_cluster: nil, request_id: nil)
826
+ # Pass arguments to `create_cloud_vm_cluster` via keyword arguments. Note that at
827
+ # least one keyword argument is required. To specify no parameters, or to keep all
828
+ # the default parameter values, pass an empty Hash as a request object (see above).
829
+ #
830
+ # @param parent [::String]
831
+ # Required. The name of the parent in the following format:
832
+ # projects/\\{project}/locations/\\{location}.
833
+ # @param cloud_vm_cluster_id [::String]
834
+ # Required. The ID of the VM Cluster to create. This value is restricted
835
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
836
+ # characters in length. The value must start with a letter and end with
837
+ # a letter or a number.
838
+ # @param cloud_vm_cluster [::Google::Cloud::OracleDatabase::V1::CloudVmCluster, ::Hash]
839
+ # Required. The resource being created
840
+ # @param request_id [::String]
841
+ # Optional. An optional ID to identify the request. This value is used to
842
+ # identify duplicate requests. If you make a request with the same request ID
843
+ # and the original request is still in progress or completed, the server
844
+ # ignores the second request. This prevents clients from
845
+ # accidentally creating duplicate commitments.
846
+ #
847
+ # The request ID must be a valid UUID with the exception that zero UUID is
848
+ # not supported (00000000-0000-0000-0000-000000000000).
849
+ # @yield [result, operation] Access the result along with the TransportOperation object
850
+ # @yieldparam result [::Gapic::Operation]
851
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
852
+ #
853
+ # @return [::Gapic::Operation]
854
+ #
855
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
856
+ #
857
+ # @example Basic example
858
+ # require "google/cloud/oracle_database/v1"
859
+ #
860
+ # # Create a client object. The client can be reused for multiple calls.
861
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
862
+ #
863
+ # # Create a request. To set request fields, pass in keyword arguments.
864
+ # request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new
865
+ #
866
+ # # Call the create_cloud_vm_cluster method.
867
+ # result = client.create_cloud_vm_cluster request
868
+ #
869
+ # # The returned object is of type Gapic::Operation. You can use it to
870
+ # # check the status of an operation, cancel it, or wait for results.
871
+ # # Here is how to wait for a response.
872
+ # result.wait_until_done! timeout: 60
873
+ # if result.response?
874
+ # p result.response
875
+ # else
876
+ # puts "No response received."
877
+ # end
878
+ #
879
+ def create_cloud_vm_cluster request, options = nil
880
+ raise ::ArgumentError, "request must be provided" if request.nil?
881
+
882
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest
883
+
884
+ # Converts hash and nil to an options object
885
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
886
+
887
+ # Customize the options with defaults
888
+ call_metadata = @config.rpcs.create_cloud_vm_cluster.metadata.to_h
889
+
890
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
891
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
893
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
894
+ transports_version_send: [:rest]
895
+
896
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
897
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
898
+
899
+ options.apply_defaults timeout: @config.rpcs.create_cloud_vm_cluster.timeout,
900
+ metadata: call_metadata,
901
+ retry_policy: @config.rpcs.create_cloud_vm_cluster.retry_policy
902
+
903
+ options.apply_defaults timeout: @config.timeout,
904
+ metadata: @config.metadata,
905
+ retry_policy: @config.retry_policy
906
+
907
+ @oracle_database_stub.create_cloud_vm_cluster request, options do |result, operation|
908
+ result = ::Gapic::Operation.new result, @operations_client, options: options
909
+ yield result, operation if block_given?
910
+ return result
911
+ end
912
+ rescue ::Gapic::Rest::Error => e
913
+ raise ::Google::Cloud::Error.from_error(e)
914
+ end
915
+
916
+ ##
917
+ # Deletes a single VM Cluster.
918
+ #
919
+ # @overload delete_cloud_vm_cluster(request, options = nil)
920
+ # Pass arguments to `delete_cloud_vm_cluster` via a request object, either of type
921
+ # {::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest} or an equivalent Hash.
922
+ #
923
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Hash]
924
+ # A request object representing the call parameters. Required. To specify no
925
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
926
+ # @param options [::Gapic::CallOptions, ::Hash]
927
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
928
+ #
929
+ # @overload delete_cloud_vm_cluster(name: nil, request_id: nil, force: nil)
930
+ # Pass arguments to `delete_cloud_vm_cluster` via keyword arguments. Note that at
931
+ # least one keyword argument is required. To specify no parameters, or to keep all
932
+ # the default parameter values, pass an empty Hash as a request object (see above).
933
+ #
934
+ # @param name [::String]
935
+ # Required. The name of the Cloud VM Cluster in the following format:
936
+ # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}.
937
+ # @param request_id [::String]
938
+ # Optional. An optional ID to identify the request. This value is used to
939
+ # identify duplicate requests. If you make a request with the same request ID
940
+ # and the original request is still in progress or completed, the server
941
+ # ignores the second request. This prevents clients from
942
+ # accidentally creating duplicate commitments.
943
+ #
944
+ # The request ID must be a valid UUID with the exception that zero UUID is
945
+ # not supported (00000000-0000-0000-0000-000000000000).
946
+ # @param force [::Boolean]
947
+ # Optional. If set to true, all child resources for the VM Cluster will be
948
+ # deleted. A VM Cluster can only be deleted once all its child resources have
949
+ # been deleted.
950
+ # @yield [result, operation] Access the result along with the TransportOperation object
951
+ # @yieldparam result [::Gapic::Operation]
952
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
953
+ #
954
+ # @return [::Gapic::Operation]
955
+ #
956
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
957
+ #
958
+ # @example Basic example
959
+ # require "google/cloud/oracle_database/v1"
960
+ #
961
+ # # Create a client object. The client can be reused for multiple calls.
962
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
963
+ #
964
+ # # Create a request. To set request fields, pass in keyword arguments.
965
+ # request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new
966
+ #
967
+ # # Call the delete_cloud_vm_cluster method.
968
+ # result = client.delete_cloud_vm_cluster request
969
+ #
970
+ # # The returned object is of type Gapic::Operation. You can use it to
971
+ # # check the status of an operation, cancel it, or wait for results.
972
+ # # Here is how to wait for a response.
973
+ # result.wait_until_done! timeout: 60
974
+ # if result.response?
975
+ # p result.response
976
+ # else
977
+ # puts "No response received."
978
+ # end
979
+ #
980
+ def delete_cloud_vm_cluster request, options = nil
981
+ raise ::ArgumentError, "request must be provided" if request.nil?
982
+
983
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest
984
+
985
+ # Converts hash and nil to an options object
986
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
987
+
988
+ # Customize the options with defaults
989
+ call_metadata = @config.rpcs.delete_cloud_vm_cluster.metadata.to_h
990
+
991
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
992
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
993
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
994
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
995
+ transports_version_send: [:rest]
996
+
997
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
998
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
999
+
1000
+ options.apply_defaults timeout: @config.rpcs.delete_cloud_vm_cluster.timeout,
1001
+ metadata: call_metadata,
1002
+ retry_policy: @config.rpcs.delete_cloud_vm_cluster.retry_policy
1003
+
1004
+ options.apply_defaults timeout: @config.timeout,
1005
+ metadata: @config.metadata,
1006
+ retry_policy: @config.retry_policy
1007
+
1008
+ @oracle_database_stub.delete_cloud_vm_cluster request, options do |result, operation|
1009
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1010
+ yield result, operation if block_given?
1011
+ return result
1012
+ end
1013
+ rescue ::Gapic::Rest::Error => e
1014
+ raise ::Google::Cloud::Error.from_error(e)
1015
+ end
1016
+
1017
+ ##
1018
+ # Lists the entitlements in a given project.
1019
+ #
1020
+ # @overload list_entitlements(request, options = nil)
1021
+ # Pass arguments to `list_entitlements` via a request object, either of type
1022
+ # {::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest} or an equivalent Hash.
1023
+ #
1024
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Hash]
1025
+ # A request object representing the call parameters. Required. To specify no
1026
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1027
+ # @param options [::Gapic::CallOptions, ::Hash]
1028
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1029
+ #
1030
+ # @overload list_entitlements(parent: nil, page_size: nil, page_token: nil)
1031
+ # Pass arguments to `list_entitlements` via keyword arguments. Note that at
1032
+ # least one keyword argument is required. To specify no parameters, or to keep all
1033
+ # the default parameter values, pass an empty Hash as a request object (see above).
1034
+ #
1035
+ # @param parent [::String]
1036
+ # Required. The parent value for the entitlement in the following format:
1037
+ # projects/\\{project}/locations/\\{location}.
1038
+ # @param page_size [::Integer]
1039
+ # Optional. The maximum number of items to return.
1040
+ # If unspecified, a maximum of 50 entitlements will be returned.
1041
+ # The maximum value is 1000.
1042
+ # @param page_token [::String]
1043
+ # Optional. A token identifying a page of results the server should return.
1044
+ # @yield [result, operation] Access the result along with the TransportOperation object
1045
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>]
1046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
+ #
1048
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>]
1049
+ #
1050
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1051
+ #
1052
+ # @example Basic example
1053
+ # require "google/cloud/oracle_database/v1"
1054
+ #
1055
+ # # Create a client object. The client can be reused for multiple calls.
1056
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1057
+ #
1058
+ # # Create a request. To set request fields, pass in keyword arguments.
1059
+ # request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new
1060
+ #
1061
+ # # Call the list_entitlements method.
1062
+ # result = client.list_entitlements request
1063
+ #
1064
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1065
+ # # over elements, and API calls will be issued to fetch pages as needed.
1066
+ # result.each do |item|
1067
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement.
1068
+ # p item
1069
+ # end
1070
+ #
1071
+ def list_entitlements request, options = nil
1072
+ raise ::ArgumentError, "request must be provided" if request.nil?
1073
+
1074
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest
1075
+
1076
+ # Converts hash and nil to an options object
1077
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1078
+
1079
+ # Customize the options with defaults
1080
+ call_metadata = @config.rpcs.list_entitlements.metadata.to_h
1081
+
1082
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1083
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1084
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1085
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1086
+ transports_version_send: [:rest]
1087
+
1088
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
+
1091
+ options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout,
1092
+ metadata: call_metadata,
1093
+ retry_policy: @config.rpcs.list_entitlements.retry_policy
1094
+
1095
+ options.apply_defaults timeout: @config.timeout,
1096
+ metadata: @config.metadata,
1097
+ retry_policy: @config.retry_policy
1098
+
1099
+ @oracle_database_stub.list_entitlements request, options do |result, operation|
1100
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_entitlements, "entitlements", request, result, options
1101
+ yield result, operation if block_given?
1102
+ return result
1103
+ end
1104
+ rescue ::Gapic::Rest::Error => e
1105
+ raise ::Google::Cloud::Error.from_error(e)
1106
+ end
1107
+
1108
+ ##
1109
+ # Lists the database servers of an Exadata Infrastructure instance.
1110
+ #
1111
+ # @overload list_db_servers(request, options = nil)
1112
+ # Pass arguments to `list_db_servers` via a request object, either of type
1113
+ # {::Google::Cloud::OracleDatabase::V1::ListDbServersRequest} or an equivalent Hash.
1114
+ #
1115
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Hash]
1116
+ # A request object representing the call parameters. Required. To specify no
1117
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1118
+ # @param options [::Gapic::CallOptions, ::Hash]
1119
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1120
+ #
1121
+ # @overload list_db_servers(parent: nil, page_size: nil, page_token: nil)
1122
+ # Pass arguments to `list_db_servers` via keyword arguments. Note that at
1123
+ # least one keyword argument is required. To specify no parameters, or to keep all
1124
+ # the default parameter values, pass an empty Hash as a request object (see above).
1125
+ #
1126
+ # @param parent [::String]
1127
+ # Required. The parent value for database server in the following format:
1128
+ # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}.
1129
+ # @param page_size [::Integer]
1130
+ # Optional. The maximum number of items to return.
1131
+ # If unspecified, a maximum of 50 db servers will be returned.
1132
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
1133
+ # @param page_token [::String]
1134
+ # Optional. A token identifying a page of results the server should return.
1135
+ # @yield [result, operation] Access the result along with the TransportOperation object
1136
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>]
1137
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1138
+ #
1139
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>]
1140
+ #
1141
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1142
+ #
1143
+ # @example Basic example
1144
+ # require "google/cloud/oracle_database/v1"
1145
+ #
1146
+ # # Create a client object. The client can be reused for multiple calls.
1147
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1148
+ #
1149
+ # # Create a request. To set request fields, pass in keyword arguments.
1150
+ # request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new
1151
+ #
1152
+ # # Call the list_db_servers method.
1153
+ # result = client.list_db_servers request
1154
+ #
1155
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1156
+ # # over elements, and API calls will be issued to fetch pages as needed.
1157
+ # result.each do |item|
1158
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer.
1159
+ # p item
1160
+ # end
1161
+ #
1162
+ def list_db_servers request, options = nil
1163
+ raise ::ArgumentError, "request must be provided" if request.nil?
1164
+
1165
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest
1166
+
1167
+ # Converts hash and nil to an options object
1168
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1169
+
1170
+ # Customize the options with defaults
1171
+ call_metadata = @config.rpcs.list_db_servers.metadata.to_h
1172
+
1173
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1174
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1175
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1176
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1177
+ transports_version_send: [:rest]
1178
+
1179
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1180
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1181
+
1182
+ options.apply_defaults timeout: @config.rpcs.list_db_servers.timeout,
1183
+ metadata: call_metadata,
1184
+ retry_policy: @config.rpcs.list_db_servers.retry_policy
1185
+
1186
+ options.apply_defaults timeout: @config.timeout,
1187
+ metadata: @config.metadata,
1188
+ retry_policy: @config.retry_policy
1189
+
1190
+ @oracle_database_stub.list_db_servers request, options do |result, operation|
1191
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_servers, "db_servers", request, result, options
1192
+ yield result, operation if block_given?
1193
+ return result
1194
+ end
1195
+ rescue ::Gapic::Rest::Error => e
1196
+ raise ::Google::Cloud::Error.from_error(e)
1197
+ end
1198
+
1199
+ ##
1200
+ # Lists the database nodes of a VM Cluster.
1201
+ #
1202
+ # @overload list_db_nodes(request, options = nil)
1203
+ # Pass arguments to `list_db_nodes` via a request object, either of type
1204
+ # {::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest} or an equivalent Hash.
1205
+ #
1206
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Hash]
1207
+ # A request object representing the call parameters. Required. To specify no
1208
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1209
+ # @param options [::Gapic::CallOptions, ::Hash]
1210
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1211
+ #
1212
+ # @overload list_db_nodes(parent: nil, page_size: nil, page_token: nil)
1213
+ # Pass arguments to `list_db_nodes` via keyword arguments. Note that at
1214
+ # least one keyword argument is required. To specify no parameters, or to keep all
1215
+ # the default parameter values, pass an empty Hash as a request object (see above).
1216
+ #
1217
+ # @param parent [::String]
1218
+ # Required. The parent value for database node in the following format:
1219
+ # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}.
1220
+ # @param page_size [::Integer]
1221
+ # Optional. The maximum number of items to return.
1222
+ # If unspecified, at most 50 db nodes will be returned.
1223
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
1224
+ # @param page_token [::String]
1225
+ # Optional. A token identifying a page of results the node should return.
1226
+ # @yield [result, operation] Access the result along with the TransportOperation object
1227
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>]
1228
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1229
+ #
1230
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>]
1231
+ #
1232
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1233
+ #
1234
+ # @example Basic example
1235
+ # require "google/cloud/oracle_database/v1"
1236
+ #
1237
+ # # Create a client object. The client can be reused for multiple calls.
1238
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1239
+ #
1240
+ # # Create a request. To set request fields, pass in keyword arguments.
1241
+ # request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new
1242
+ #
1243
+ # # Call the list_db_nodes method.
1244
+ # result = client.list_db_nodes request
1245
+ #
1246
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1247
+ # # over elements, and API calls will be issued to fetch pages as needed.
1248
+ # result.each do |item|
1249
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode.
1250
+ # p item
1251
+ # end
1252
+ #
1253
+ def list_db_nodes request, options = nil
1254
+ raise ::ArgumentError, "request must be provided" if request.nil?
1255
+
1256
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest
1257
+
1258
+ # Converts hash and nil to an options object
1259
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1260
+
1261
+ # Customize the options with defaults
1262
+ call_metadata = @config.rpcs.list_db_nodes.metadata.to_h
1263
+
1264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1265
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1266
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1267
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1268
+ transports_version_send: [:rest]
1269
+
1270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1271
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1272
+
1273
+ options.apply_defaults timeout: @config.rpcs.list_db_nodes.timeout,
1274
+ metadata: call_metadata,
1275
+ retry_policy: @config.rpcs.list_db_nodes.retry_policy
1276
+
1277
+ options.apply_defaults timeout: @config.timeout,
1278
+ metadata: @config.metadata,
1279
+ retry_policy: @config.retry_policy
1280
+
1281
+ @oracle_database_stub.list_db_nodes request, options do |result, operation|
1282
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_nodes, "db_nodes", request, result, options
1283
+ yield result, operation if block_given?
1284
+ return result
1285
+ end
1286
+ rescue ::Gapic::Rest::Error => e
1287
+ raise ::Google::Cloud::Error.from_error(e)
1288
+ end
1289
+
1290
+ ##
1291
+ # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given
1292
+ # project and location.
1293
+ #
1294
+ # @overload list_gi_versions(request, options = nil)
1295
+ # Pass arguments to `list_gi_versions` via a request object, either of type
1296
+ # {::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest} or an equivalent Hash.
1297
+ #
1298
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Hash]
1299
+ # A request object representing the call parameters. Required. To specify no
1300
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1301
+ # @param options [::Gapic::CallOptions, ::Hash]
1302
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1303
+ #
1304
+ # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil)
1305
+ # Pass arguments to `list_gi_versions` via keyword arguments. Note that at
1306
+ # least one keyword argument is required. To specify no parameters, or to keep all
1307
+ # the default parameter values, pass an empty Hash as a request object (see above).
1308
+ #
1309
+ # @param parent [::String]
1310
+ # Required. The parent value for Grid Infrastructure Version in the following
1311
+ # format: Format: projects/\\{project}/locations/\\{location}.
1312
+ # @param page_size [::Integer]
1313
+ # Optional. The maximum number of items to return.
1314
+ # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions
1315
+ # will be returned. The maximum value is 1000; values above 1000 will be
1316
+ # reset to 1000.
1317
+ # @param page_token [::String]
1318
+ # Optional. A token identifying a page of results the server should return.
1319
+ # @yield [result, operation] Access the result along with the TransportOperation object
1320
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
1321
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1322
+ #
1323
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
1324
+ #
1325
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1326
+ #
1327
+ # @example Basic example
1328
+ # require "google/cloud/oracle_database/v1"
1329
+ #
1330
+ # # Create a client object. The client can be reused for multiple calls.
1331
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1332
+ #
1333
+ # # Create a request. To set request fields, pass in keyword arguments.
1334
+ # request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new
1335
+ #
1336
+ # # Call the list_gi_versions method.
1337
+ # result = client.list_gi_versions request
1338
+ #
1339
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1340
+ # # over elements, and API calls will be issued to fetch pages as needed.
1341
+ # result.each do |item|
1342
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion.
1343
+ # p item
1344
+ # end
1345
+ #
1346
+ def list_gi_versions request, options = nil
1347
+ raise ::ArgumentError, "request must be provided" if request.nil?
1348
+
1349
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest
1350
+
1351
+ # Converts hash and nil to an options object
1352
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1353
+
1354
+ # Customize the options with defaults
1355
+ call_metadata = @config.rpcs.list_gi_versions.metadata.to_h
1356
+
1357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1358
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1359
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1360
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1361
+ transports_version_send: [:rest]
1362
+
1363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1364
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1365
+
1366
+ options.apply_defaults timeout: @config.rpcs.list_gi_versions.timeout,
1367
+ metadata: call_metadata,
1368
+ retry_policy: @config.rpcs.list_gi_versions.retry_policy
1369
+
1370
+ options.apply_defaults timeout: @config.timeout,
1371
+ metadata: @config.metadata,
1372
+ retry_policy: @config.retry_policy
1373
+
1374
+ @oracle_database_stub.list_gi_versions request, options do |result, operation|
1375
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_gi_versions, "gi_versions", request, result, options
1376
+ yield result, operation if block_given?
1377
+ return result
1378
+ end
1379
+ rescue ::Gapic::Rest::Error => e
1380
+ raise ::Google::Cloud::Error.from_error(e)
1381
+ end
1382
+
1383
+ ##
1384
+ # Lists the database system shapes available for the project and location.
1385
+ #
1386
+ # @overload list_db_system_shapes(request, options = nil)
1387
+ # Pass arguments to `list_db_system_shapes` via a request object, either of type
1388
+ # {::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest} or an equivalent Hash.
1389
+ #
1390
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Hash]
1391
+ # A request object representing the call parameters. Required. To specify no
1392
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1393
+ # @param options [::Gapic::CallOptions, ::Hash]
1394
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1395
+ #
1396
+ # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil)
1397
+ # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at
1398
+ # least one keyword argument is required. To specify no parameters, or to keep all
1399
+ # the default parameter values, pass an empty Hash as a request object (see above).
1400
+ #
1401
+ # @param parent [::String]
1402
+ # Required. The parent value for Database System Shapes in the following
1403
+ # format: projects/\\{project}/locations/\\{location}.
1404
+ # @param page_size [::Integer]
1405
+ # Optional. The maximum number of items to return.
1406
+ # If unspecified, at most 50 database system shapes will be returned.
1407
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
1408
+ # @param page_token [::String]
1409
+ # Optional. A token identifying a page of results the server should return.
1410
+ # @yield [result, operation] Access the result along with the TransportOperation object
1411
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
1412
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1413
+ #
1414
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
1415
+ #
1416
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1417
+ #
1418
+ # @example Basic example
1419
+ # require "google/cloud/oracle_database/v1"
1420
+ #
1421
+ # # Create a client object. The client can be reused for multiple calls.
1422
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1423
+ #
1424
+ # # Create a request. To set request fields, pass in keyword arguments.
1425
+ # request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new
1426
+ #
1427
+ # # Call the list_db_system_shapes method.
1428
+ # result = client.list_db_system_shapes request
1429
+ #
1430
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1431
+ # # over elements, and API calls will be issued to fetch pages as needed.
1432
+ # result.each do |item|
1433
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape.
1434
+ # p item
1435
+ # end
1436
+ #
1437
+ def list_db_system_shapes request, options = nil
1438
+ raise ::ArgumentError, "request must be provided" if request.nil?
1439
+
1440
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest
1441
+
1442
+ # Converts hash and nil to an options object
1443
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1444
+
1445
+ # Customize the options with defaults
1446
+ call_metadata = @config.rpcs.list_db_system_shapes.metadata.to_h
1447
+
1448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1449
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1450
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1451
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1452
+ transports_version_send: [:rest]
1453
+
1454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1455
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1456
+
1457
+ options.apply_defaults timeout: @config.rpcs.list_db_system_shapes.timeout,
1458
+ metadata: call_metadata,
1459
+ retry_policy: @config.rpcs.list_db_system_shapes.retry_policy
1460
+
1461
+ options.apply_defaults timeout: @config.timeout,
1462
+ metadata: @config.metadata,
1463
+ retry_policy: @config.retry_policy
1464
+
1465
+ @oracle_database_stub.list_db_system_shapes request, options do |result, operation|
1466
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_shapes, "db_system_shapes", request, result, options
1467
+ yield result, operation if block_given?
1468
+ return result
1469
+ end
1470
+ rescue ::Gapic::Rest::Error => e
1471
+ raise ::Google::Cloud::Error.from_error(e)
1472
+ end
1473
+
1474
+ ##
1475
+ # Lists the Autonomous Databases in a given project and location.
1476
+ #
1477
+ # @overload list_autonomous_databases(request, options = nil)
1478
+ # Pass arguments to `list_autonomous_databases` via a request object, either of type
1479
+ # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest} or an equivalent Hash.
1480
+ #
1481
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Hash]
1482
+ # A request object representing the call parameters. Required. To specify no
1483
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1484
+ # @param options [::Gapic::CallOptions, ::Hash]
1485
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1486
+ #
1487
+ # @overload list_autonomous_databases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1488
+ # Pass arguments to `list_autonomous_databases` via keyword arguments. Note that at
1489
+ # least one keyword argument is required. To specify no parameters, or to keep all
1490
+ # the default parameter values, pass an empty Hash as a request object (see above).
1491
+ #
1492
+ # @param parent [::String]
1493
+ # Required. The parent value for the Autonomous Database in the following
1494
+ # format: projects/\\{project}/locations/\\{location}.
1495
+ # @param page_size [::Integer]
1496
+ # Optional. The maximum number of items to return.
1497
+ # If unspecified, at most 50 Autonomous Database will be returned.
1498
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
1499
+ # @param page_token [::String]
1500
+ # Optional. A token identifying a page of results the server should return.
1501
+ # @param filter [::String]
1502
+ # Optional. An expression for filtering the results of the request.
1503
+ # @param order_by [::String]
1504
+ # Optional. An expression for ordering the results of the request.
1505
+ # @yield [result, operation] Access the result along with the TransportOperation object
1506
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>]
1507
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1508
+ #
1509
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>]
1510
+ #
1511
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1512
+ #
1513
+ # @example Basic example
1514
+ # require "google/cloud/oracle_database/v1"
1515
+ #
1516
+ # # Create a client object. The client can be reused for multiple calls.
1517
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1518
+ #
1519
+ # # Create a request. To set request fields, pass in keyword arguments.
1520
+ # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new
1521
+ #
1522
+ # # Call the list_autonomous_databases method.
1523
+ # result = client.list_autonomous_databases request
1524
+ #
1525
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1526
+ # # over elements, and API calls will be issued to fetch pages as needed.
1527
+ # result.each do |item|
1528
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.
1529
+ # p item
1530
+ # end
1531
+ #
1532
+ def list_autonomous_databases request, options = nil
1533
+ raise ::ArgumentError, "request must be provided" if request.nil?
1534
+
1535
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest
1536
+
1537
+ # Converts hash and nil to an options object
1538
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1539
+
1540
+ # Customize the options with defaults
1541
+ call_metadata = @config.rpcs.list_autonomous_databases.metadata.to_h
1542
+
1543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1544
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1545
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1546
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1547
+ transports_version_send: [:rest]
1548
+
1549
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1550
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1551
+
1552
+ options.apply_defaults timeout: @config.rpcs.list_autonomous_databases.timeout,
1553
+ metadata: call_metadata,
1554
+ retry_policy: @config.rpcs.list_autonomous_databases.retry_policy
1555
+
1556
+ options.apply_defaults timeout: @config.timeout,
1557
+ metadata: @config.metadata,
1558
+ retry_policy: @config.retry_policy
1559
+
1560
+ @oracle_database_stub.list_autonomous_databases request, options do |result, operation|
1561
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_databases, "autonomous_databases", request, result, options
1562
+ yield result, operation if block_given?
1563
+ return result
1564
+ end
1565
+ rescue ::Gapic::Rest::Error => e
1566
+ raise ::Google::Cloud::Error.from_error(e)
1567
+ end
1568
+
1569
+ ##
1570
+ # Gets the details of a single Autonomous Database.
1571
+ #
1572
+ # @overload get_autonomous_database(request, options = nil)
1573
+ # Pass arguments to `get_autonomous_database` via a request object, either of type
1574
+ # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest} or an equivalent Hash.
1575
+ #
1576
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Hash]
1577
+ # A request object representing the call parameters. Required. To specify no
1578
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1579
+ # @param options [::Gapic::CallOptions, ::Hash]
1580
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1581
+ #
1582
+ # @overload get_autonomous_database(name: nil)
1583
+ # Pass arguments to `get_autonomous_database` via keyword arguments. Note that at
1584
+ # least one keyword argument is required. To specify no parameters, or to keep all
1585
+ # the default parameter values, pass an empty Hash as a request object (see above).
1586
+ #
1587
+ # @param name [::String]
1588
+ # Required. The name of the Autonomous Database in the following format:
1589
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
1590
+ # @yield [result, operation] Access the result along with the TransportOperation object
1591
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase]
1592
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1593
+ #
1594
+ # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase]
1595
+ #
1596
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1597
+ #
1598
+ # @example Basic example
1599
+ # require "google/cloud/oracle_database/v1"
1600
+ #
1601
+ # # Create a client object. The client can be reused for multiple calls.
1602
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1603
+ #
1604
+ # # Create a request. To set request fields, pass in keyword arguments.
1605
+ # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new
1606
+ #
1607
+ # # Call the get_autonomous_database method.
1608
+ # result = client.get_autonomous_database request
1609
+ #
1610
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase.
1611
+ # p result
1612
+ #
1613
+ def get_autonomous_database request, options = nil
1614
+ raise ::ArgumentError, "request must be provided" if request.nil?
1615
+
1616
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest
1617
+
1618
+ # Converts hash and nil to an options object
1619
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1620
+
1621
+ # Customize the options with defaults
1622
+ call_metadata = @config.rpcs.get_autonomous_database.metadata.to_h
1623
+
1624
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1625
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1626
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1627
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1628
+ transports_version_send: [:rest]
1629
+
1630
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1631
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1632
+
1633
+ options.apply_defaults timeout: @config.rpcs.get_autonomous_database.timeout,
1634
+ metadata: call_metadata,
1635
+ retry_policy: @config.rpcs.get_autonomous_database.retry_policy
1636
+
1637
+ options.apply_defaults timeout: @config.timeout,
1638
+ metadata: @config.metadata,
1639
+ retry_policy: @config.retry_policy
1640
+
1641
+ @oracle_database_stub.get_autonomous_database request, options do |result, operation|
1642
+ yield result, operation if block_given?
1643
+ return result
1644
+ end
1645
+ rescue ::Gapic::Rest::Error => e
1646
+ raise ::Google::Cloud::Error.from_error(e)
1647
+ end
1648
+
1649
+ ##
1650
+ # Creates a new Autonomous Database in a given project and location.
1651
+ #
1652
+ # @overload create_autonomous_database(request, options = nil)
1653
+ # Pass arguments to `create_autonomous_database` via a request object, either of type
1654
+ # {::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest} or an equivalent Hash.
1655
+ #
1656
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Hash]
1657
+ # A request object representing the call parameters. Required. To specify no
1658
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1659
+ # @param options [::Gapic::CallOptions, ::Hash]
1660
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1661
+ #
1662
+ # @overload create_autonomous_database(parent: nil, autonomous_database_id: nil, autonomous_database: nil, request_id: nil)
1663
+ # Pass arguments to `create_autonomous_database` via keyword arguments. Note that at
1664
+ # least one keyword argument is required. To specify no parameters, or to keep all
1665
+ # the default parameter values, pass an empty Hash as a request object (see above).
1666
+ #
1667
+ # @param parent [::String]
1668
+ # Required. The name of the parent in the following format:
1669
+ # projects/\\{project}/locations/\\{location}.
1670
+ # @param autonomous_database_id [::String]
1671
+ # Required. The ID of the Autonomous Database to create. This value is
1672
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
1673
+ # 63 characters in length. The value must start with a letter and end with a
1674
+ # letter or a number.
1675
+ # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash]
1676
+ # Required. The Autonomous Database being created.
1677
+ # @param request_id [::String]
1678
+ # Optional. An optional ID to identify the request. This value is used to
1679
+ # identify duplicate requests. If you make a request with the same request ID
1680
+ # and the original request is still in progress or completed, the server
1681
+ # ignores the second request. This prevents clients from
1682
+ # accidentally creating duplicate commitments.
1683
+ #
1684
+ # The request ID must be a valid UUID with the exception that zero UUID is
1685
+ # not supported (00000000-0000-0000-0000-000000000000).
1686
+ # @yield [result, operation] Access the result along with the TransportOperation object
1687
+ # @yieldparam result [::Gapic::Operation]
1688
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1689
+ #
1690
+ # @return [::Gapic::Operation]
1691
+ #
1692
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1693
+ #
1694
+ # @example Basic example
1695
+ # require "google/cloud/oracle_database/v1"
1696
+ #
1697
+ # # Create a client object. The client can be reused for multiple calls.
1698
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1699
+ #
1700
+ # # Create a request. To set request fields, pass in keyword arguments.
1701
+ # request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new
1702
+ #
1703
+ # # Call the create_autonomous_database method.
1704
+ # result = client.create_autonomous_database request
1705
+ #
1706
+ # # The returned object is of type Gapic::Operation. You can use it to
1707
+ # # check the status of an operation, cancel it, or wait for results.
1708
+ # # Here is how to wait for a response.
1709
+ # result.wait_until_done! timeout: 60
1710
+ # if result.response?
1711
+ # p result.response
1712
+ # else
1713
+ # puts "No response received."
1714
+ # end
1715
+ #
1716
+ def create_autonomous_database request, options = nil
1717
+ raise ::ArgumentError, "request must be provided" if request.nil?
1718
+
1719
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest
1720
+
1721
+ # Converts hash and nil to an options object
1722
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1723
+
1724
+ # Customize the options with defaults
1725
+ call_metadata = @config.rpcs.create_autonomous_database.metadata.to_h
1726
+
1727
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1728
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1729
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1730
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1731
+ transports_version_send: [:rest]
1732
+
1733
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1734
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1735
+
1736
+ options.apply_defaults timeout: @config.rpcs.create_autonomous_database.timeout,
1737
+ metadata: call_metadata,
1738
+ retry_policy: @config.rpcs.create_autonomous_database.retry_policy
1739
+
1740
+ options.apply_defaults timeout: @config.timeout,
1741
+ metadata: @config.metadata,
1742
+ retry_policy: @config.retry_policy
1743
+
1744
+ @oracle_database_stub.create_autonomous_database request, options do |result, operation|
1745
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1746
+ yield result, operation if block_given?
1747
+ return result
1748
+ end
1749
+ rescue ::Gapic::Rest::Error => e
1750
+ raise ::Google::Cloud::Error.from_error(e)
1751
+ end
1752
+
1753
+ ##
1754
+ # Deletes a single Autonomous Database.
1755
+ #
1756
+ # @overload delete_autonomous_database(request, options = nil)
1757
+ # Pass arguments to `delete_autonomous_database` via a request object, either of type
1758
+ # {::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest} or an equivalent Hash.
1759
+ #
1760
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Hash]
1761
+ # A request object representing the call parameters. Required. To specify no
1762
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1763
+ # @param options [::Gapic::CallOptions, ::Hash]
1764
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1765
+ #
1766
+ # @overload delete_autonomous_database(name: nil, request_id: nil)
1767
+ # Pass arguments to `delete_autonomous_database` via keyword arguments. Note that at
1768
+ # least one keyword argument is required. To specify no parameters, or to keep all
1769
+ # the default parameter values, pass an empty Hash as a request object (see above).
1770
+ #
1771
+ # @param name [::String]
1772
+ # Required. The name of the resource in the following format:
1773
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
1774
+ # @param request_id [::String]
1775
+ # Optional. An optional ID to identify the request. This value is used to
1776
+ # identify duplicate requests. If you make a request with the same request ID
1777
+ # and the original request is still in progress or completed, the server
1778
+ # ignores the second request. This prevents clients from
1779
+ # accidentally creating duplicate commitments.
1780
+ #
1781
+ # The request ID must be a valid UUID with the exception that zero UUID is
1782
+ # not supported (00000000-0000-0000-0000-000000000000).
1783
+ # @yield [result, operation] Access the result along with the TransportOperation object
1784
+ # @yieldparam result [::Gapic::Operation]
1785
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1786
+ #
1787
+ # @return [::Gapic::Operation]
1788
+ #
1789
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1790
+ #
1791
+ # @example Basic example
1792
+ # require "google/cloud/oracle_database/v1"
1793
+ #
1794
+ # # Create a client object. The client can be reused for multiple calls.
1795
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1796
+ #
1797
+ # # Create a request. To set request fields, pass in keyword arguments.
1798
+ # request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new
1799
+ #
1800
+ # # Call the delete_autonomous_database method.
1801
+ # result = client.delete_autonomous_database request
1802
+ #
1803
+ # # The returned object is of type Gapic::Operation. You can use it to
1804
+ # # check the status of an operation, cancel it, or wait for results.
1805
+ # # Here is how to wait for a response.
1806
+ # result.wait_until_done! timeout: 60
1807
+ # if result.response?
1808
+ # p result.response
1809
+ # else
1810
+ # puts "No response received."
1811
+ # end
1812
+ #
1813
+ def delete_autonomous_database request, options = nil
1814
+ raise ::ArgumentError, "request must be provided" if request.nil?
1815
+
1816
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest
1817
+
1818
+ # Converts hash and nil to an options object
1819
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1820
+
1821
+ # Customize the options with defaults
1822
+ call_metadata = @config.rpcs.delete_autonomous_database.metadata.to_h
1823
+
1824
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1825
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1826
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1827
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1828
+ transports_version_send: [:rest]
1829
+
1830
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1831
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1832
+
1833
+ options.apply_defaults timeout: @config.rpcs.delete_autonomous_database.timeout,
1834
+ metadata: call_metadata,
1835
+ retry_policy: @config.rpcs.delete_autonomous_database.retry_policy
1836
+
1837
+ options.apply_defaults timeout: @config.timeout,
1838
+ metadata: @config.metadata,
1839
+ retry_policy: @config.retry_policy
1840
+
1841
+ @oracle_database_stub.delete_autonomous_database request, options do |result, operation|
1842
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1843
+ yield result, operation if block_given?
1844
+ return result
1845
+ end
1846
+ rescue ::Gapic::Rest::Error => e
1847
+ raise ::Google::Cloud::Error.from_error(e)
1848
+ end
1849
+
1850
+ ##
1851
+ # Restores a single Autonomous Database.
1852
+ #
1853
+ # @overload restore_autonomous_database(request, options = nil)
1854
+ # Pass arguments to `restore_autonomous_database` via a request object, either of type
1855
+ # {::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest} or an equivalent Hash.
1856
+ #
1857
+ # @param request [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Hash]
1858
+ # A request object representing the call parameters. Required. To specify no
1859
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1860
+ # @param options [::Gapic::CallOptions, ::Hash]
1861
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1862
+ #
1863
+ # @overload restore_autonomous_database(name: nil, restore_time: nil)
1864
+ # Pass arguments to `restore_autonomous_database` via keyword arguments. Note that at
1865
+ # least one keyword argument is required. To specify no parameters, or to keep all
1866
+ # the default parameter values, pass an empty Hash as a request object (see above).
1867
+ #
1868
+ # @param name [::String]
1869
+ # Required. The name of the Autonomous Database in the following format:
1870
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
1871
+ # @param restore_time [::Google::Protobuf::Timestamp, ::Hash]
1872
+ # Required. The time and date to restore the database to.
1873
+ # @yield [result, operation] Access the result along with the TransportOperation object
1874
+ # @yieldparam result [::Gapic::Operation]
1875
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1876
+ #
1877
+ # @return [::Gapic::Operation]
1878
+ #
1879
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1880
+ #
1881
+ # @example Basic example
1882
+ # require "google/cloud/oracle_database/v1"
1883
+ #
1884
+ # # Create a client object. The client can be reused for multiple calls.
1885
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1886
+ #
1887
+ # # Create a request. To set request fields, pass in keyword arguments.
1888
+ # request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new
1889
+ #
1890
+ # # Call the restore_autonomous_database method.
1891
+ # result = client.restore_autonomous_database request
1892
+ #
1893
+ # # The returned object is of type Gapic::Operation. You can use it to
1894
+ # # check the status of an operation, cancel it, or wait for results.
1895
+ # # Here is how to wait for a response.
1896
+ # result.wait_until_done! timeout: 60
1897
+ # if result.response?
1898
+ # p result.response
1899
+ # else
1900
+ # puts "No response received."
1901
+ # end
1902
+ #
1903
+ def restore_autonomous_database request, options = nil
1904
+ raise ::ArgumentError, "request must be provided" if request.nil?
1905
+
1906
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest
1907
+
1908
+ # Converts hash and nil to an options object
1909
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1910
+
1911
+ # Customize the options with defaults
1912
+ call_metadata = @config.rpcs.restore_autonomous_database.metadata.to_h
1913
+
1914
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1915
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1916
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1917
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1918
+ transports_version_send: [:rest]
1919
+
1920
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1921
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1922
+
1923
+ options.apply_defaults timeout: @config.rpcs.restore_autonomous_database.timeout,
1924
+ metadata: call_metadata,
1925
+ retry_policy: @config.rpcs.restore_autonomous_database.retry_policy
1926
+
1927
+ options.apply_defaults timeout: @config.timeout,
1928
+ metadata: @config.metadata,
1929
+ retry_policy: @config.retry_policy
1930
+
1931
+ @oracle_database_stub.restore_autonomous_database request, options do |result, operation|
1932
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1933
+ yield result, operation if block_given?
1934
+ return result
1935
+ end
1936
+ rescue ::Gapic::Rest::Error => e
1937
+ raise ::Google::Cloud::Error.from_error(e)
1938
+ end
1939
+
1940
+ ##
1941
+ # Generates a wallet for an Autonomous Database.
1942
+ #
1943
+ # @overload generate_autonomous_database_wallet(request, options = nil)
1944
+ # Pass arguments to `generate_autonomous_database_wallet` via a request object, either of type
1945
+ # {::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest} or an equivalent Hash.
1946
+ #
1947
+ # @param request [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Hash]
1948
+ # A request object representing the call parameters. Required. To specify no
1949
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1950
+ # @param options [::Gapic::CallOptions, ::Hash]
1951
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1952
+ #
1953
+ # @overload generate_autonomous_database_wallet(name: nil, type: nil, is_regional: nil, password: nil)
1954
+ # Pass arguments to `generate_autonomous_database_wallet` via keyword arguments. Note that at
1955
+ # least one keyword argument is required. To specify no parameters, or to keep all
1956
+ # the default parameter values, pass an empty Hash as a request object (see above).
1957
+ #
1958
+ # @param name [::String]
1959
+ # Required. The name of the Autonomous Database in the following format:
1960
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
1961
+ # @param type [::Google::Cloud::OracleDatabase::V1::GenerateType]
1962
+ # Optional. The type of wallet generation for the Autonomous Database. The
1963
+ # default value is SINGLE.
1964
+ # @param is_regional [::Boolean]
1965
+ # Optional. True when requesting regional connection strings in PDB connect
1966
+ # info, applicable to cross-region Data Guard only.
1967
+ # @param password [::String]
1968
+ # Required. The password used to encrypt the keys inside the wallet. The
1969
+ # password must be a minimum of 8 characters.
1970
+ # @yield [result, operation] Access the result along with the TransportOperation object
1971
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse]
1972
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1973
+ #
1974
+ # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse]
1975
+ #
1976
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1977
+ #
1978
+ # @example Basic example
1979
+ # require "google/cloud/oracle_database/v1"
1980
+ #
1981
+ # # Create a client object. The client can be reused for multiple calls.
1982
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1983
+ #
1984
+ # # Create a request. To set request fields, pass in keyword arguments.
1985
+ # request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new
1986
+ #
1987
+ # # Call the generate_autonomous_database_wallet method.
1988
+ # result = client.generate_autonomous_database_wallet request
1989
+ #
1990
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.
1991
+ # p result
1992
+ #
1993
+ def generate_autonomous_database_wallet request, options = nil
1994
+ raise ::ArgumentError, "request must be provided" if request.nil?
1995
+
1996
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest
1997
+
1998
+ # Converts hash and nil to an options object
1999
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2000
+
2001
+ # Customize the options with defaults
2002
+ call_metadata = @config.rpcs.generate_autonomous_database_wallet.metadata.to_h
2003
+
2004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2005
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2006
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2007
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2008
+ transports_version_send: [:rest]
2009
+
2010
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2011
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2012
+
2013
+ options.apply_defaults timeout: @config.rpcs.generate_autonomous_database_wallet.timeout,
2014
+ metadata: call_metadata,
2015
+ retry_policy: @config.rpcs.generate_autonomous_database_wallet.retry_policy
2016
+
2017
+ options.apply_defaults timeout: @config.timeout,
2018
+ metadata: @config.metadata,
2019
+ retry_policy: @config.retry_policy
2020
+
2021
+ @oracle_database_stub.generate_autonomous_database_wallet request, options do |result, operation|
2022
+ yield result, operation if block_given?
2023
+ return result
2024
+ end
2025
+ rescue ::Gapic::Rest::Error => e
2026
+ raise ::Google::Cloud::Error.from_error(e)
2027
+ end
2028
+
2029
+ ##
2030
+ # Lists all the available Autonomous Database versions for a project and
2031
+ # location.
2032
+ #
2033
+ # @overload list_autonomous_db_versions(request, options = nil)
2034
+ # Pass arguments to `list_autonomous_db_versions` via a request object, either of type
2035
+ # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest} or an equivalent Hash.
2036
+ #
2037
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Hash]
2038
+ # A request object representing the call parameters. Required. To specify no
2039
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2040
+ # @param options [::Gapic::CallOptions, ::Hash]
2041
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2042
+ #
2043
+ # @overload list_autonomous_db_versions(parent: nil, page_size: nil, page_token: nil)
2044
+ # Pass arguments to `list_autonomous_db_versions` via keyword arguments. Note that at
2045
+ # least one keyword argument is required. To specify no parameters, or to keep all
2046
+ # the default parameter values, pass an empty Hash as a request object (see above).
2047
+ #
2048
+ # @param parent [::String]
2049
+ # Required. The parent value for the Autonomous Database in the following
2050
+ # format: projects/\\{project}/locations/\\{location}.
2051
+ # @param page_size [::Integer]
2052
+ # Optional. The maximum number of items to return.
2053
+ # If unspecified, at most 50 Autonomous DB Versions will be returned.
2054
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2055
+ # @param page_token [::String]
2056
+ # Optional. A token identifying a page of results the server should return.
2057
+ # @yield [result, operation] Access the result along with the TransportOperation object
2058
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>]
2059
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2060
+ #
2061
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>]
2062
+ #
2063
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2064
+ #
2065
+ # @example Basic example
2066
+ # require "google/cloud/oracle_database/v1"
2067
+ #
2068
+ # # Create a client object. The client can be reused for multiple calls.
2069
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
2070
+ #
2071
+ # # Create a request. To set request fields, pass in keyword arguments.
2072
+ # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new
2073
+ #
2074
+ # # Call the list_autonomous_db_versions method.
2075
+ # result = client.list_autonomous_db_versions request
2076
+ #
2077
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2078
+ # # over elements, and API calls will be issued to fetch pages as needed.
2079
+ # result.each do |item|
2080
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion.
2081
+ # p item
2082
+ # end
2083
+ #
2084
+ def list_autonomous_db_versions request, options = nil
2085
+ raise ::ArgumentError, "request must be provided" if request.nil?
2086
+
2087
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest
2088
+
2089
+ # Converts hash and nil to an options object
2090
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2091
+
2092
+ # Customize the options with defaults
2093
+ call_metadata = @config.rpcs.list_autonomous_db_versions.metadata.to_h
2094
+
2095
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2096
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2097
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2098
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2099
+ transports_version_send: [:rest]
2100
+
2101
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2102
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2103
+
2104
+ options.apply_defaults timeout: @config.rpcs.list_autonomous_db_versions.timeout,
2105
+ metadata: call_metadata,
2106
+ retry_policy: @config.rpcs.list_autonomous_db_versions.retry_policy
2107
+
2108
+ options.apply_defaults timeout: @config.timeout,
2109
+ metadata: @config.metadata,
2110
+ retry_policy: @config.retry_policy
2111
+
2112
+ @oracle_database_stub.list_autonomous_db_versions request, options do |result, operation|
2113
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_db_versions, "autonomous_db_versions", request, result, options
2114
+ yield result, operation if block_given?
2115
+ return result
2116
+ end
2117
+ rescue ::Gapic::Rest::Error => e
2118
+ raise ::Google::Cloud::Error.from_error(e)
2119
+ end
2120
+
2121
+ ##
2122
+ # Lists Autonomous Database Character Sets in a given project and location.
2123
+ #
2124
+ # @overload list_autonomous_database_character_sets(request, options = nil)
2125
+ # Pass arguments to `list_autonomous_database_character_sets` via a request object, either of type
2126
+ # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest} or an equivalent Hash.
2127
+ #
2128
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Hash]
2129
+ # A request object representing the call parameters. Required. To specify no
2130
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2131
+ # @param options [::Gapic::CallOptions, ::Hash]
2132
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2133
+ #
2134
+ # @overload list_autonomous_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil)
2135
+ # Pass arguments to `list_autonomous_database_character_sets` via keyword arguments. Note that at
2136
+ # least one keyword argument is required. To specify no parameters, or to keep all
2137
+ # the default parameter values, pass an empty Hash as a request object (see above).
2138
+ #
2139
+ # @param parent [::String]
2140
+ # Required. The parent value for the Autonomous Database in the following
2141
+ # format: projects/\\{project}/locations/\\{location}.
2142
+ # @param page_size [::Integer]
2143
+ # Optional. The maximum number of items to return.
2144
+ # If unspecified, at most 50 Autonomous DB Character Sets will be returned.
2145
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2146
+ # @param page_token [::String]
2147
+ # Optional. A token identifying a page of results the server should return.
2148
+ # @param filter [::String]
2149
+ # Optional. An expression for filtering the results of the request. Only the
2150
+ # **character_set_type** field is supported in the following format:
2151
+ # `character_set_type="{characterSetType}"`. Accepted values include
2152
+ # `DATABASE` and `NATIONAL`.
2153
+ # @yield [result, operation] Access the result along with the TransportOperation object
2154
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>]
2155
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2156
+ #
2157
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>]
2158
+ #
2159
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2160
+ #
2161
+ # @example Basic example
2162
+ # require "google/cloud/oracle_database/v1"
2163
+ #
2164
+ # # Create a client object. The client can be reused for multiple calls.
2165
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
2166
+ #
2167
+ # # Create a request. To set request fields, pass in keyword arguments.
2168
+ # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new
2169
+ #
2170
+ # # Call the list_autonomous_database_character_sets method.
2171
+ # result = client.list_autonomous_database_character_sets request
2172
+ #
2173
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2174
+ # # over elements, and API calls will be issued to fetch pages as needed.
2175
+ # result.each do |item|
2176
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet.
2177
+ # p item
2178
+ # end
2179
+ #
2180
+ def list_autonomous_database_character_sets request, options = nil
2181
+ raise ::ArgumentError, "request must be provided" if request.nil?
2182
+
2183
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest
2184
+
2185
+ # Converts hash and nil to an options object
2186
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2187
+
2188
+ # Customize the options with defaults
2189
+ call_metadata = @config.rpcs.list_autonomous_database_character_sets.metadata.to_h
2190
+
2191
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2192
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2193
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2194
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2195
+ transports_version_send: [:rest]
2196
+
2197
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2198
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2199
+
2200
+ options.apply_defaults timeout: @config.rpcs.list_autonomous_database_character_sets.timeout,
2201
+ metadata: call_metadata,
2202
+ retry_policy: @config.rpcs.list_autonomous_database_character_sets.retry_policy
2203
+
2204
+ options.apply_defaults timeout: @config.timeout,
2205
+ metadata: @config.metadata,
2206
+ retry_policy: @config.retry_policy
2207
+
2208
+ @oracle_database_stub.list_autonomous_database_character_sets request, options do |result, operation|
2209
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_character_sets, "autonomous_database_character_sets", request, result, options
2210
+ yield result, operation if block_given?
2211
+ return result
2212
+ end
2213
+ rescue ::Gapic::Rest::Error => e
2214
+ raise ::Google::Cloud::Error.from_error(e)
2215
+ end
2216
+
2217
+ ##
2218
+ # Lists the long-term and automatic backups of an Autonomous Database.
2219
+ #
2220
+ # @overload list_autonomous_database_backups(request, options = nil)
2221
+ # Pass arguments to `list_autonomous_database_backups` via a request object, either of type
2222
+ # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest} or an equivalent Hash.
2223
+ #
2224
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Hash]
2225
+ # A request object representing the call parameters. Required. To specify no
2226
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2227
+ # @param options [::Gapic::CallOptions, ::Hash]
2228
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2229
+ #
2230
+ # @overload list_autonomous_database_backups(parent: nil, filter: nil, page_size: nil, page_token: nil)
2231
+ # Pass arguments to `list_autonomous_database_backups` via keyword arguments. Note that at
2232
+ # least one keyword argument is required. To specify no parameters, or to keep all
2233
+ # the default parameter values, pass an empty Hash as a request object (see above).
2234
+ #
2235
+ # @param parent [::String]
2236
+ # Required. The parent value for ListAutonomousDatabaseBackups in the
2237
+ # following format: projects/\\{project}/locations/\\{location}.
2238
+ # @param filter [::String]
2239
+ # Optional. An expression for filtering the results of the request. Only the
2240
+ # **autonomous_database_id** field is supported in the following format:
2241
+ # `autonomous_database_id="{autonomous_database_id}"`. The accepted values
2242
+ # must be a valid Autonomous Database ID, limited to the naming
2243
+ # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
2244
+ # The ID must start with a letter, end with a letter or a number, and be
2245
+ # a maximum of 63 characters.
2246
+ # @param page_size [::Integer]
2247
+ # Optional. The maximum number of items to return.
2248
+ # If unspecified, at most 50 Autonomous DB Backups will be returned.
2249
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2250
+ # @param page_token [::String]
2251
+ # Optional. A token identifying a page of results the server should return.
2252
+ # @yield [result, operation] Access the result along with the TransportOperation object
2253
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>]
2254
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2255
+ #
2256
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>]
2257
+ #
2258
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2259
+ #
2260
+ # @example Basic example
2261
+ # require "google/cloud/oracle_database/v1"
2262
+ #
2263
+ # # Create a client object. The client can be reused for multiple calls.
2264
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
2265
+ #
2266
+ # # Create a request. To set request fields, pass in keyword arguments.
2267
+ # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new
2268
+ #
2269
+ # # Call the list_autonomous_database_backups method.
2270
+ # result = client.list_autonomous_database_backups request
2271
+ #
2272
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2273
+ # # over elements, and API calls will be issued to fetch pages as needed.
2274
+ # result.each do |item|
2275
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup.
2276
+ # p item
2277
+ # end
2278
+ #
2279
+ def list_autonomous_database_backups request, options = nil
2280
+ raise ::ArgumentError, "request must be provided" if request.nil?
2281
+
2282
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest
2283
+
2284
+ # Converts hash and nil to an options object
2285
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2286
+
2287
+ # Customize the options with defaults
2288
+ call_metadata = @config.rpcs.list_autonomous_database_backups.metadata.to_h
2289
+
2290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2291
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2292
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2293
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2294
+ transports_version_send: [:rest]
2295
+
2296
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2297
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2298
+
2299
+ options.apply_defaults timeout: @config.rpcs.list_autonomous_database_backups.timeout,
2300
+ metadata: call_metadata,
2301
+ retry_policy: @config.rpcs.list_autonomous_database_backups.retry_policy
2302
+
2303
+ options.apply_defaults timeout: @config.timeout,
2304
+ metadata: @config.metadata,
2305
+ retry_policy: @config.retry_policy
2306
+
2307
+ @oracle_database_stub.list_autonomous_database_backups request, options do |result, operation|
2308
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_backups, "autonomous_database_backups", request, result, options
2309
+ yield result, operation if block_given?
2310
+ return result
2311
+ end
2312
+ rescue ::Gapic::Rest::Error => e
2313
+ raise ::Google::Cloud::Error.from_error(e)
2314
+ end
2315
+
2316
+ ##
2317
+ # Configuration class for the OracleDatabase REST API.
2318
+ #
2319
+ # This class represents the configuration for OracleDatabase REST,
2320
+ # providing control over timeouts, retry behavior, logging, transport
2321
+ # parameters, and other low-level controls. Certain parameters can also be
2322
+ # applied individually to specific RPCs. See
2323
+ # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs}
2324
+ # for a list of RPCs that can be configured independently.
2325
+ #
2326
+ # Configuration can be applied globally to all clients, or to a single client
2327
+ # on construction.
2328
+ #
2329
+ # @example
2330
+ #
2331
+ # # Modify the global config, setting the timeout for
2332
+ # # list_cloud_exadata_infrastructures to 20 seconds,
2333
+ # # and all remaining timeouts to 10 seconds.
2334
+ # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config|
2335
+ # config.timeout = 10.0
2336
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2337
+ # end
2338
+ #
2339
+ # # Apply the above configuration only to a new client.
2340
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config|
2341
+ # config.timeout = 10.0
2342
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2343
+ # end
2344
+ #
2345
+ # @!attribute [rw] endpoint
2346
+ # A custom service endpoint, as a hostname or hostname:port. The default is
2347
+ # nil, indicating to use the default endpoint in the current universe domain.
2348
+ # @return [::String,nil]
2349
+ # @!attribute [rw] credentials
2350
+ # Credentials to send with calls. You may provide any of the following types:
2351
+ # * (`String`) The path to a service account key file in JSON format
2352
+ # * (`Hash`) A service account key as a Hash
2353
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
2354
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2355
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2356
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2357
+ # * (`nil`) indicating no credentials
2358
+ # @return [::Object]
2359
+ # @!attribute [rw] scope
2360
+ # The OAuth scopes
2361
+ # @return [::Array<::String>]
2362
+ # @!attribute [rw] lib_name
2363
+ # The library name as recorded in instrumentation and logging
2364
+ # @return [::String]
2365
+ # @!attribute [rw] lib_version
2366
+ # The library version as recorded in instrumentation and logging
2367
+ # @return [::String]
2368
+ # @!attribute [rw] timeout
2369
+ # The call timeout in seconds.
2370
+ # @return [::Numeric]
2371
+ # @!attribute [rw] metadata
2372
+ # Additional headers to be sent with the call.
2373
+ # @return [::Hash{::Symbol=>::String}]
2374
+ # @!attribute [rw] retry_policy
2375
+ # The retry policy. The value is a hash with the following keys:
2376
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2377
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2378
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2379
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2380
+ # trigger a retry.
2381
+ # @return [::Hash]
2382
+ # @!attribute [rw] quota_project
2383
+ # A separate project against which to charge quota.
2384
+ # @return [::String]
2385
+ # @!attribute [rw] universe_domain
2386
+ # The universe domain within which to make requests. This determines the
2387
+ # default endpoint URL. The default value of nil uses the environment
2388
+ # universe (usually the default "googleapis.com" universe).
2389
+ # @return [::String,nil]
2390
+ #
2391
+ class Configuration
2392
+ extend ::Gapic::Config
2393
+
2394
+ # @private
2395
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2396
+ DEFAULT_ENDPOINT = "oracledatabase.googleapis.com"
2397
+
2398
+ config_attr :endpoint, nil, ::String, nil
2399
+ config_attr :credentials, nil do |value|
2400
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2401
+ allowed.any? { |klass| klass === value }
2402
+ end
2403
+ config_attr :scope, nil, ::String, ::Array, nil
2404
+ config_attr :lib_name, nil, ::String, nil
2405
+ config_attr :lib_version, nil, ::String, nil
2406
+ config_attr :timeout, nil, ::Numeric, nil
2407
+ config_attr :metadata, nil, ::Hash, nil
2408
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2409
+ config_attr :quota_project, nil, ::String, nil
2410
+ config_attr :universe_domain, nil, ::String, nil
2411
+
2412
+ # @private
2413
+ # Overrides for http bindings for the RPCs of this service
2414
+ # are only used when this service is used as mixin, and only
2415
+ # by the host service.
2416
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
2417
+ config_attr :bindings_override, {}, ::Hash, nil
2418
+
2419
+ # @private
2420
+ def initialize parent_config = nil
2421
+ @parent_config = parent_config unless parent_config.nil?
2422
+
2423
+ yield self if block_given?
2424
+ end
2425
+
2426
+ ##
2427
+ # Configurations for individual RPCs
2428
+ # @return [Rpcs]
2429
+ #
2430
+ def rpcs
2431
+ @rpcs ||= begin
2432
+ parent_rpcs = nil
2433
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2434
+ Rpcs.new parent_rpcs
2435
+ end
2436
+ end
2437
+
2438
+ ##
2439
+ # Configuration RPC class for the OracleDatabase API.
2440
+ #
2441
+ # Includes fields providing the configuration for each RPC in this service.
2442
+ # Each configuration object is of type `Gapic::Config::Method` and includes
2443
+ # the following configuration fields:
2444
+ #
2445
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2446
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
2447
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2448
+ # include the following keys:
2449
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2450
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2451
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2452
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2453
+ # trigger a retry.
2454
+ #
2455
+ class Rpcs
2456
+ ##
2457
+ # RPC-specific configuration for `list_cloud_exadata_infrastructures`
2458
+ # @return [::Gapic::Config::Method]
2459
+ #
2460
+ attr_reader :list_cloud_exadata_infrastructures
2461
+ ##
2462
+ # RPC-specific configuration for `get_cloud_exadata_infrastructure`
2463
+ # @return [::Gapic::Config::Method]
2464
+ #
2465
+ attr_reader :get_cloud_exadata_infrastructure
2466
+ ##
2467
+ # RPC-specific configuration for `create_cloud_exadata_infrastructure`
2468
+ # @return [::Gapic::Config::Method]
2469
+ #
2470
+ attr_reader :create_cloud_exadata_infrastructure
2471
+ ##
2472
+ # RPC-specific configuration for `delete_cloud_exadata_infrastructure`
2473
+ # @return [::Gapic::Config::Method]
2474
+ #
2475
+ attr_reader :delete_cloud_exadata_infrastructure
2476
+ ##
2477
+ # RPC-specific configuration for `list_cloud_vm_clusters`
2478
+ # @return [::Gapic::Config::Method]
2479
+ #
2480
+ attr_reader :list_cloud_vm_clusters
2481
+ ##
2482
+ # RPC-specific configuration for `get_cloud_vm_cluster`
2483
+ # @return [::Gapic::Config::Method]
2484
+ #
2485
+ attr_reader :get_cloud_vm_cluster
2486
+ ##
2487
+ # RPC-specific configuration for `create_cloud_vm_cluster`
2488
+ # @return [::Gapic::Config::Method]
2489
+ #
2490
+ attr_reader :create_cloud_vm_cluster
2491
+ ##
2492
+ # RPC-specific configuration for `delete_cloud_vm_cluster`
2493
+ # @return [::Gapic::Config::Method]
2494
+ #
2495
+ attr_reader :delete_cloud_vm_cluster
2496
+ ##
2497
+ # RPC-specific configuration for `list_entitlements`
2498
+ # @return [::Gapic::Config::Method]
2499
+ #
2500
+ attr_reader :list_entitlements
2501
+ ##
2502
+ # RPC-specific configuration for `list_db_servers`
2503
+ # @return [::Gapic::Config::Method]
2504
+ #
2505
+ attr_reader :list_db_servers
2506
+ ##
2507
+ # RPC-specific configuration for `list_db_nodes`
2508
+ # @return [::Gapic::Config::Method]
2509
+ #
2510
+ attr_reader :list_db_nodes
2511
+ ##
2512
+ # RPC-specific configuration for `list_gi_versions`
2513
+ # @return [::Gapic::Config::Method]
2514
+ #
2515
+ attr_reader :list_gi_versions
2516
+ ##
2517
+ # RPC-specific configuration for `list_db_system_shapes`
2518
+ # @return [::Gapic::Config::Method]
2519
+ #
2520
+ attr_reader :list_db_system_shapes
2521
+ ##
2522
+ # RPC-specific configuration for `list_autonomous_databases`
2523
+ # @return [::Gapic::Config::Method]
2524
+ #
2525
+ attr_reader :list_autonomous_databases
2526
+ ##
2527
+ # RPC-specific configuration for `get_autonomous_database`
2528
+ # @return [::Gapic::Config::Method]
2529
+ #
2530
+ attr_reader :get_autonomous_database
2531
+ ##
2532
+ # RPC-specific configuration for `create_autonomous_database`
2533
+ # @return [::Gapic::Config::Method]
2534
+ #
2535
+ attr_reader :create_autonomous_database
2536
+ ##
2537
+ # RPC-specific configuration for `delete_autonomous_database`
2538
+ # @return [::Gapic::Config::Method]
2539
+ #
2540
+ attr_reader :delete_autonomous_database
2541
+ ##
2542
+ # RPC-specific configuration for `restore_autonomous_database`
2543
+ # @return [::Gapic::Config::Method]
2544
+ #
2545
+ attr_reader :restore_autonomous_database
2546
+ ##
2547
+ # RPC-specific configuration for `generate_autonomous_database_wallet`
2548
+ # @return [::Gapic::Config::Method]
2549
+ #
2550
+ attr_reader :generate_autonomous_database_wallet
2551
+ ##
2552
+ # RPC-specific configuration for `list_autonomous_db_versions`
2553
+ # @return [::Gapic::Config::Method]
2554
+ #
2555
+ attr_reader :list_autonomous_db_versions
2556
+ ##
2557
+ # RPC-specific configuration for `list_autonomous_database_character_sets`
2558
+ # @return [::Gapic::Config::Method]
2559
+ #
2560
+ attr_reader :list_autonomous_database_character_sets
2561
+ ##
2562
+ # RPC-specific configuration for `list_autonomous_database_backups`
2563
+ # @return [::Gapic::Config::Method]
2564
+ #
2565
+ attr_reader :list_autonomous_database_backups
2566
+
2567
+ # @private
2568
+ def initialize parent_rpcs = nil
2569
+ list_cloud_exadata_infrastructures_config = parent_rpcs.list_cloud_exadata_infrastructures if parent_rpcs.respond_to? :list_cloud_exadata_infrastructures
2570
+ @list_cloud_exadata_infrastructures = ::Gapic::Config::Method.new list_cloud_exadata_infrastructures_config
2571
+ get_cloud_exadata_infrastructure_config = parent_rpcs.get_cloud_exadata_infrastructure if parent_rpcs.respond_to? :get_cloud_exadata_infrastructure
2572
+ @get_cloud_exadata_infrastructure = ::Gapic::Config::Method.new get_cloud_exadata_infrastructure_config
2573
+ create_cloud_exadata_infrastructure_config = parent_rpcs.create_cloud_exadata_infrastructure if parent_rpcs.respond_to? :create_cloud_exadata_infrastructure
2574
+ @create_cloud_exadata_infrastructure = ::Gapic::Config::Method.new create_cloud_exadata_infrastructure_config
2575
+ delete_cloud_exadata_infrastructure_config = parent_rpcs.delete_cloud_exadata_infrastructure if parent_rpcs.respond_to? :delete_cloud_exadata_infrastructure
2576
+ @delete_cloud_exadata_infrastructure = ::Gapic::Config::Method.new delete_cloud_exadata_infrastructure_config
2577
+ list_cloud_vm_clusters_config = parent_rpcs.list_cloud_vm_clusters if parent_rpcs.respond_to? :list_cloud_vm_clusters
2578
+ @list_cloud_vm_clusters = ::Gapic::Config::Method.new list_cloud_vm_clusters_config
2579
+ get_cloud_vm_cluster_config = parent_rpcs.get_cloud_vm_cluster if parent_rpcs.respond_to? :get_cloud_vm_cluster
2580
+ @get_cloud_vm_cluster = ::Gapic::Config::Method.new get_cloud_vm_cluster_config
2581
+ create_cloud_vm_cluster_config = parent_rpcs.create_cloud_vm_cluster if parent_rpcs.respond_to? :create_cloud_vm_cluster
2582
+ @create_cloud_vm_cluster = ::Gapic::Config::Method.new create_cloud_vm_cluster_config
2583
+ delete_cloud_vm_cluster_config = parent_rpcs.delete_cloud_vm_cluster if parent_rpcs.respond_to? :delete_cloud_vm_cluster
2584
+ @delete_cloud_vm_cluster = ::Gapic::Config::Method.new delete_cloud_vm_cluster_config
2585
+ list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements
2586
+ @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config
2587
+ list_db_servers_config = parent_rpcs.list_db_servers if parent_rpcs.respond_to? :list_db_servers
2588
+ @list_db_servers = ::Gapic::Config::Method.new list_db_servers_config
2589
+ list_db_nodes_config = parent_rpcs.list_db_nodes if parent_rpcs.respond_to? :list_db_nodes
2590
+ @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config
2591
+ list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions
2592
+ @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config
2593
+ list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes
2594
+ @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config
2595
+ list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases
2596
+ @list_autonomous_databases = ::Gapic::Config::Method.new list_autonomous_databases_config
2597
+ get_autonomous_database_config = parent_rpcs.get_autonomous_database if parent_rpcs.respond_to? :get_autonomous_database
2598
+ @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config
2599
+ create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database
2600
+ @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config
2601
+ delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database
2602
+ @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config
2603
+ restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database
2604
+ @restore_autonomous_database = ::Gapic::Config::Method.new restore_autonomous_database_config
2605
+ generate_autonomous_database_wallet_config = parent_rpcs.generate_autonomous_database_wallet if parent_rpcs.respond_to? :generate_autonomous_database_wallet
2606
+ @generate_autonomous_database_wallet = ::Gapic::Config::Method.new generate_autonomous_database_wallet_config
2607
+ list_autonomous_db_versions_config = parent_rpcs.list_autonomous_db_versions if parent_rpcs.respond_to? :list_autonomous_db_versions
2608
+ @list_autonomous_db_versions = ::Gapic::Config::Method.new list_autonomous_db_versions_config
2609
+ list_autonomous_database_character_sets_config = parent_rpcs.list_autonomous_database_character_sets if parent_rpcs.respond_to? :list_autonomous_database_character_sets
2610
+ @list_autonomous_database_character_sets = ::Gapic::Config::Method.new list_autonomous_database_character_sets_config
2611
+ list_autonomous_database_backups_config = parent_rpcs.list_autonomous_database_backups if parent_rpcs.respond_to? :list_autonomous_database_backups
2612
+ @list_autonomous_database_backups = ::Gapic::Config::Method.new list_autonomous_database_backups_config
2613
+
2614
+ yield self if block_given?
2615
+ end
2616
+ end
2617
+ end
2618
+ end
2619
+ end
2620
+ end
2621
+ end
2622
+ end
2623
+ end
2624
+ end