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