google-cloud-oracle_database-v1 0.10.0 → 0.11.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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +3752 -56
  3. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +175 -0
  4. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +3532 -67
  5. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +2234 -204
  6. data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
  7. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +5 -1
  8. data/lib/google/cloud/oracledatabase/v1/common_pb.rb +5 -1
  9. data/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb +48 -0
  10. data/lib/google/cloud/oracledatabase/v1/database_pb.rb +61 -0
  11. data/lib/google/cloud/oracledatabase/v1/db_node_pb.rb +3 -1
  12. data/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb +51 -0
  13. data/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +66 -0
  14. data/lib/google/cloud/oracledatabase/v1/db_version_pb.rb +48 -0
  15. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +1 -1
  16. data/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb +56 -0
  17. data/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +59 -0
  18. data/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb +47 -0
  19. data/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb +54 -0
  20. data/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb +55 -0
  21. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +25 -1
  22. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +74 -0
  23. data/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb +60 -0
  24. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +3 -1
  25. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +104 -1
  26. data/proto_docs/google/cloud/oracledatabase/v1/common.rb +64 -0
  27. data/proto_docs/google/cloud/oracledatabase/v1/database.rb +326 -0
  28. data/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb +99 -0
  29. data/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +3 -0
  30. data/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +381 -0
  31. data/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb +126 -0
  32. data/proto_docs/google/cloud/oracledatabase/v1/db_version.rb +102 -0
  33. data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +12 -1
  34. data/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb +229 -0
  35. data/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +271 -0
  36. data/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb +81 -0
  37. data/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb +184 -0
  38. data/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb +189 -0
  39. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +219 -0
  40. data/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb +366 -0
  41. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +32 -7
  42. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  43. metadata +24 -1
@@ -77,72 +77,162 @@ module Google
77
77
 
78
78
  default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0
79
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]
80
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
81
81
  }
82
82
 
83
83
  default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0
84
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]
85
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
86
86
  }
87
87
 
88
88
  default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0
89
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]
90
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
91
91
  }
92
92
 
93
93
  default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0
94
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]
95
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
96
96
  }
97
97
 
98
98
  default_config.rpcs.list_entitlements.timeout = 60.0
99
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]
100
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
101
101
  }
102
102
 
103
103
  default_config.rpcs.list_db_servers.timeout = 60.0
104
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]
105
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
106
106
  }
107
107
 
108
108
  default_config.rpcs.list_db_nodes.timeout = 60.0
109
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]
110
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
111
111
  }
112
112
 
113
113
  default_config.rpcs.list_gi_versions.timeout = 60.0
114
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]
115
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
116
+ }
117
+
118
+ default_config.rpcs.list_minor_versions.timeout = 60.0
119
+ default_config.rpcs.list_minor_versions.retry_policy = {
120
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
116
121
  }
117
122
 
118
123
  default_config.rpcs.list_db_system_shapes.timeout = 60.0
119
124
  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]
125
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
121
126
  }
122
127
 
123
128
  default_config.rpcs.list_autonomous_databases.timeout = 60.0
124
129
  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]
130
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
126
131
  }
127
132
 
128
133
  default_config.rpcs.get_autonomous_database.timeout = 60.0
129
134
  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]
135
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
131
136
  }
132
137
 
133
138
  default_config.rpcs.list_autonomous_db_versions.timeout = 60.0
134
139
  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]
140
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
136
141
  }
137
142
 
138
143
  default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0
139
144
  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]
145
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
141
146
  }
142
147
 
143
148
  default_config.rpcs.list_autonomous_database_backups.timeout = 60.0
144
149
  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]
150
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
151
+ }
152
+
153
+ default_config.rpcs.list_odb_networks.timeout = 60.0
154
+ default_config.rpcs.list_odb_networks.retry_policy = {
155
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
156
+ }
157
+
158
+ default_config.rpcs.get_odb_network.timeout = 60.0
159
+ default_config.rpcs.get_odb_network.retry_policy = {
160
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
161
+ }
162
+
163
+ default_config.rpcs.list_odb_subnets.timeout = 60.0
164
+ default_config.rpcs.list_odb_subnets.retry_policy = {
165
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
166
+ }
167
+
168
+ default_config.rpcs.get_odb_subnet.timeout = 60.0
169
+ default_config.rpcs.get_odb_subnet.retry_policy = {
170
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
171
+ }
172
+
173
+ default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0
174
+ default_config.rpcs.list_exadb_vm_clusters.retry_policy = {
175
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
176
+ }
177
+
178
+ default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0
179
+ default_config.rpcs.get_exadb_vm_cluster.retry_policy = {
180
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
181
+ }
182
+
183
+ default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0
184
+ default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = {
185
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
186
+ }
187
+
188
+ default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0
189
+ default_config.rpcs.get_exascale_db_storage_vault.retry_policy = {
190
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
191
+ }
192
+
193
+ default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0
194
+ default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = {
195
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
196
+ }
197
+
198
+ default_config.rpcs.list_databases.timeout = 60.0
199
+ default_config.rpcs.list_databases.retry_policy = {
200
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
201
+ }
202
+
203
+ default_config.rpcs.get_database.timeout = 60.0
204
+ default_config.rpcs.get_database.retry_policy = {
205
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
206
+ }
207
+
208
+ default_config.rpcs.list_pluggable_databases.timeout = 60.0
209
+ default_config.rpcs.list_pluggable_databases.retry_policy = {
210
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
211
+ }
212
+
213
+ default_config.rpcs.get_pluggable_database.timeout = 60.0
214
+ default_config.rpcs.get_pluggable_database.retry_policy = {
215
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
216
+ }
217
+
218
+ default_config.rpcs.list_db_systems.timeout = 60.0
219
+ default_config.rpcs.list_db_systems.retry_policy = {
220
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
221
+ }
222
+
223
+ default_config.rpcs.get_db_system.timeout = 60.0
224
+ default_config.rpcs.get_db_system.retry_policy = {
225
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
226
+ }
227
+
228
+ default_config.rpcs.list_db_versions.timeout = 60.0
229
+ default_config.rpcs.list_db_versions.retry_policy = {
230
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
231
+ }
232
+
233
+ default_config.rpcs.list_database_character_sets.timeout = 60.0
234
+ default_config.rpcs.list_database_character_sets.retry_policy = {
235
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
146
236
  }
147
237
 
148
238
  default_config
@@ -292,7 +382,7 @@ module Google
292
382
  # @param options [::Gapic::CallOptions, ::Hash]
293
383
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
294
384
  #
295
- # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil)
385
+ # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
296
386
  # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at
297
387
  # least one keyword argument is required. To specify no parameters, or to keep all
298
388
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -306,6 +396,10 @@ module Google
306
396
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
307
397
  # @param page_token [::String]
308
398
  # Optional. A token identifying a page of results the server should return.
399
+ # @param filter [::String]
400
+ # Optional. An expression for filtering the results of the request.
401
+ # @param order_by [::String]
402
+ # Optional. An expression for ordering the results of the request.
309
403
  # @yield [result, operation] Access the result along with the TransportOperation object
310
404
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>]
311
405
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1236,6 +1330,7 @@ module Google
1236
1330
  # @param parent [::String]
1237
1331
  # Required. The parent value for database node in the following format:
1238
1332
  # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}.
1333
+ # .
1239
1334
  # @param page_size [::Integer]
1240
1335
  # Optional. The maximum number of items to return.
1241
1336
  # If unspecified, at most 50 db nodes will be returned.
@@ -1320,7 +1415,7 @@ module Google
1320
1415
  # @param options [::Gapic::CallOptions, ::Hash]
1321
1416
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1322
1417
  #
1323
- # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil)
1418
+ # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
1324
1419
  # Pass arguments to `list_gi_versions` via keyword arguments. Note that at
1325
1420
  # least one keyword argument is required. To specify no parameters, or to keep all
1326
1421
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1335,6 +1430,10 @@ module Google
1335
1430
  # reset to 1000.
1336
1431
  # @param page_token [::String]
1337
1432
  # Optional. A token identifying a page of results the server should return.
1433
+ # @param filter [::String]
1434
+ # Optional. An expression for filtering the results of the request. Only the
1435
+ # shape, gcp_oracle_zone and gi_version fields are supported in this format:
1436
+ # `shape="{shape}"`.
1338
1437
  # @yield [result, operation] Access the result along with the TransportOperation object
1339
1438
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
1340
1439
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1399,6 +1498,105 @@ module Google
1399
1498
  raise ::Google::Cloud::Error.from_error(e)
1400
1499
  end
1401
1500
 
1501
+ ##
1502
+ # Lists all the valid minor versions for the given
1503
+ # project, location, gi version and shape family.
1504
+ #
1505
+ # @overload list_minor_versions(request, options = nil)
1506
+ # Pass arguments to `list_minor_versions` via a request object, either of type
1507
+ # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash.
1508
+ #
1509
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash]
1510
+ # A request object representing the call parameters. Required. To specify no
1511
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1512
+ # @param options [::Gapic::CallOptions, ::Hash]
1513
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1514
+ #
1515
+ # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
1516
+ # Pass arguments to `list_minor_versions` via keyword arguments. Note that at
1517
+ # least one keyword argument is required. To specify no parameters, or to keep all
1518
+ # the default parameter values, pass an empty Hash as a request object (see above).
1519
+ #
1520
+ # @param parent [::String]
1521
+ # Required. The parent value for the MinorVersion resource with the format:
1522
+ # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version}
1523
+ # @param page_size [::Integer]
1524
+ # Optional. The maximum number of items to return.
1525
+ # If unspecified, a maximum of 50 System Versions will be returned.
1526
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
1527
+ # @param page_token [::String]
1528
+ # Optional. A token identifying the requested page of results to return. All
1529
+ # fields except the filter should remain the same as in the request that
1530
+ # provided this page token.
1531
+ # @param filter [::String]
1532
+ # Optional. An expression for filtering the results of the request.
1533
+ # Only shapeFamily and gcp_oracle_zone_id are supported in this format:
1534
+ # `shape_family="{shapeFamily}" AND
1535
+ # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`.
1536
+ # @yield [result, operation] Access the result along with the TransportOperation object
1537
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>]
1538
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1539
+ #
1540
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>]
1541
+ #
1542
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1543
+ #
1544
+ # @example Basic example
1545
+ # require "google/cloud/oracle_database/v1"
1546
+ #
1547
+ # # Create a client object. The client can be reused for multiple calls.
1548
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
1549
+ #
1550
+ # # Create a request. To set request fields, pass in keyword arguments.
1551
+ # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new
1552
+ #
1553
+ # # Call the list_minor_versions method.
1554
+ # result = client.list_minor_versions request
1555
+ #
1556
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1557
+ # # over elements, and API calls will be issued to fetch pages as needed.
1558
+ # result.each do |item|
1559
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion.
1560
+ # p item
1561
+ # end
1562
+ #
1563
+ def list_minor_versions request, options = nil
1564
+ raise ::ArgumentError, "request must be provided" if request.nil?
1565
+
1566
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest
1567
+
1568
+ # Converts hash and nil to an options object
1569
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1570
+
1571
+ # Customize the options with defaults
1572
+ call_metadata = @config.rpcs.list_minor_versions.metadata.to_h
1573
+
1574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1575
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1576
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1577
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
1578
+ transports_version_send: [:rest]
1579
+
1580
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1581
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1582
+
1583
+ options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout,
1584
+ metadata: call_metadata,
1585
+ retry_policy: @config.rpcs.list_minor_versions.retry_policy
1586
+
1587
+ options.apply_defaults timeout: @config.timeout,
1588
+ metadata: @config.metadata,
1589
+ retry_policy: @config.retry_policy
1590
+
1591
+ @oracle_database_stub.list_minor_versions request, options do |result, operation|
1592
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, "minor_versions", request, result, options
1593
+ yield result, operation if block_given?
1594
+ throw :response, result
1595
+ end
1596
+ rescue ::Gapic::Rest::Error => e
1597
+ raise ::Google::Cloud::Error.from_error(e)
1598
+ end
1599
+
1402
1600
  ##
1403
1601
  # Lists the database system shapes available for the project and location.
1404
1602
  #
@@ -1412,7 +1610,7 @@ module Google
1412
1610
  # @param options [::Gapic::CallOptions, ::Hash]
1413
1611
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1414
1612
  #
1415
- # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil)
1613
+ # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil)
1416
1614
  # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at
1417
1615
  # least one keyword argument is required. To specify no parameters, or to keep all
1418
1616
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1426,6 +1624,10 @@ module Google
1426
1624
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
1427
1625
  # @param page_token [::String]
1428
1626
  # Optional. A token identifying a page of results the server should return.
1627
+ # @param filter [::String]
1628
+ # Optional. An expression for filtering the results of the request. Only the
1629
+ # gcp_oracle_zone_id field is supported in this format:
1630
+ # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1429
1631
  # @yield [result, operation] Access the result along with the TransportOperation object
1430
1632
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
1431
1633
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1768,6 +1970,108 @@ module Google
1768
1970
  raise ::Google::Cloud::Error.from_error(e)
1769
1971
  end
1770
1972
 
1973
+ ##
1974
+ # Updates the parameters of a single Autonomous Database.
1975
+ #
1976
+ # @overload update_autonomous_database(request, options = nil)
1977
+ # Pass arguments to `update_autonomous_database` via a request object, either of type
1978
+ # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash.
1979
+ #
1980
+ # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash]
1981
+ # A request object representing the call parameters. Required. To specify no
1982
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1983
+ # @param options [::Gapic::CallOptions, ::Hash]
1984
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1985
+ #
1986
+ # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil)
1987
+ # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at
1988
+ # least one keyword argument is required. To specify no parameters, or to keep all
1989
+ # the default parameter values, pass an empty Hash as a request object (see above).
1990
+ #
1991
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1992
+ # Optional. Field mask is used to specify the fields to be overwritten in the
1993
+ # Exadata resource by the update. The fields specified in the update_mask are
1994
+ # relative to the resource, not the full request. A field will be overwritten
1995
+ # if it is in the mask. If the user does not provide a mask then all fields
1996
+ # will be overwritten.
1997
+ # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash]
1998
+ # Required. The resource being updated
1999
+ # @param request_id [::String]
2000
+ # Optional. An optional ID to identify the request. This value is used to
2001
+ # identify duplicate requests. If you make a request with the same request ID
2002
+ # and the original request is still in progress or completed, the server
2003
+ # ignores the second request. This prevents clients from
2004
+ # accidentally creating duplicate commitments.
2005
+ #
2006
+ # The request ID must be a valid UUID with the exception that zero UUID is
2007
+ # not supported (00000000-0000-0000-0000-000000000000).
2008
+ # @yield [result, operation] Access the result along with the TransportOperation object
2009
+ # @yieldparam result [::Gapic::Operation]
2010
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2011
+ #
2012
+ # @return [::Gapic::Operation]
2013
+ #
2014
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2015
+ #
2016
+ # @example Basic example
2017
+ # require "google/cloud/oracle_database/v1"
2018
+ #
2019
+ # # Create a client object. The client can be reused for multiple calls.
2020
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
2021
+ #
2022
+ # # Create a request. To set request fields, pass in keyword arguments.
2023
+ # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new
2024
+ #
2025
+ # # Call the update_autonomous_database method.
2026
+ # result = client.update_autonomous_database request
2027
+ #
2028
+ # # The returned object is of type Gapic::Operation. You can use it to
2029
+ # # check the status of an operation, cancel it, or wait for results.
2030
+ # # Here is how to wait for a response.
2031
+ # result.wait_until_done! timeout: 60
2032
+ # if result.response?
2033
+ # p result.response
2034
+ # else
2035
+ # puts "No response received."
2036
+ # end
2037
+ #
2038
+ def update_autonomous_database request, options = nil
2039
+ raise ::ArgumentError, "request must be provided" if request.nil?
2040
+
2041
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest
2042
+
2043
+ # Converts hash and nil to an options object
2044
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2045
+
2046
+ # Customize the options with defaults
2047
+ call_metadata = @config.rpcs.update_autonomous_database.metadata.to_h
2048
+
2049
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2050
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2051
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2052
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2053
+ transports_version_send: [:rest]
2054
+
2055
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2056
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2057
+
2058
+ options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout,
2059
+ metadata: call_metadata,
2060
+ retry_policy: @config.rpcs.update_autonomous_database.retry_policy
2061
+
2062
+ options.apply_defaults timeout: @config.timeout,
2063
+ metadata: @config.metadata,
2064
+ retry_policy: @config.retry_policy
2065
+
2066
+ @oracle_database_stub.update_autonomous_database request, options do |result, operation|
2067
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2068
+ yield result, operation if block_given?
2069
+ throw :response, result
2070
+ end
2071
+ rescue ::Gapic::Rest::Error => e
2072
+ raise ::Google::Cloud::Error.from_error(e)
2073
+ end
2074
+
1771
2075
  ##
1772
2076
  # Deletes a single Autonomous Database.
1773
2077
  #
@@ -2595,63 +2899,2993 @@ module Google
2595
2899
  end
2596
2900
 
2597
2901
  ##
2598
- # Configuration class for the OracleDatabase REST API.
2902
+ # Initiates a switchover of specified autonomous database to the associated
2903
+ # peer database.
2599
2904
  #
2600
- # This class represents the configuration for OracleDatabase REST,
2601
- # providing control over timeouts, retry behavior, logging, transport
2602
- # parameters, and other low-level controls. Certain parameters can also be
2603
- # applied individually to specific RPCs. See
2604
- # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs}
2605
- # for a list of RPCs that can be configured independently.
2905
+ # @overload switchover_autonomous_database(request, options = nil)
2906
+ # Pass arguments to `switchover_autonomous_database` via a request object, either of type
2907
+ # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash.
2606
2908
  #
2607
- # Configuration can be applied globally to all clients, or to a single client
2608
- # on construction.
2909
+ # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash]
2910
+ # A request object representing the call parameters. Required. To specify no
2911
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2912
+ # @param options [::Gapic::CallOptions, ::Hash]
2913
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2609
2914
  #
2610
- # @example
2915
+ # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil)
2916
+ # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at
2917
+ # least one keyword argument is required. To specify no parameters, or to keep all
2918
+ # the default parameter values, pass an empty Hash as a request object (see above).
2611
2919
  #
2612
- # # Modify the global config, setting the timeout for
2613
- # # list_cloud_exadata_infrastructures to 20 seconds,
2614
- # # and all remaining timeouts to 10 seconds.
2615
- # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config|
2616
- # config.timeout = 10.0
2617
- # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2618
- # end
2920
+ # @param name [::String]
2921
+ # Required. The name of the Autonomous Database in the following format:
2922
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
2923
+ # @param peer_autonomous_database [::String]
2924
+ # Required. The peer database name to switch over to.
2925
+ # @yield [result, operation] Access the result along with the TransportOperation object
2926
+ # @yieldparam result [::Gapic::Operation]
2927
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2619
2928
  #
2620
- # # Apply the above configuration only to a new client.
2621
- # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config|
2622
- # config.timeout = 10.0
2623
- # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2624
- # end
2929
+ # @return [::Gapic::Operation]
2625
2930
  #
2626
- # @!attribute [rw] endpoint
2627
- # A custom service endpoint, as a hostname or hostname:port. The default is
2628
- # nil, indicating to use the default endpoint in the current universe domain.
2629
- # @return [::String,nil]
2630
- # @!attribute [rw] credentials
2631
- # Credentials to send with calls. You may provide any of the following types:
2632
- # * (`String`) The path to a service account key file in JSON format
2633
- # * (`Hash`) A service account key as a Hash
2634
- # * (`Google::Auth::Credentials`) A googleauth credentials object
2635
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2636
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2637
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2638
- # * (`nil`) indicating no credentials
2931
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2639
2932
  #
2640
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2641
- # external source for authentication to Google Cloud, you must validate it before
2642
- # providing it to a Google API client library. Providing an unvalidated credential
2643
- # configuration to Google APIs can compromise the security of your systems and data.
2644
- # For more information, refer to [Validate credential configurations from external
2645
- # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2646
- # @return [::Object]
2647
- # @!attribute [rw] scope
2648
- # The OAuth scopes
2649
- # @return [::Array<::String>]
2650
- # @!attribute [rw] lib_name
2651
- # The library name as recorded in instrumentation and logging
2652
- # @return [::String]
2653
- # @!attribute [rw] lib_version
2654
- # The library version as recorded in instrumentation and logging
2933
+ # @example Basic example
2934
+ # require "google/cloud/oracle_database/v1"
2935
+ #
2936
+ # # Create a client object. The client can be reused for multiple calls.
2937
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
2938
+ #
2939
+ # # Create a request. To set request fields, pass in keyword arguments.
2940
+ # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new
2941
+ #
2942
+ # # Call the switchover_autonomous_database method.
2943
+ # result = client.switchover_autonomous_database request
2944
+ #
2945
+ # # The returned object is of type Gapic::Operation. You can use it to
2946
+ # # check the status of an operation, cancel it, or wait for results.
2947
+ # # Here is how to wait for a response.
2948
+ # result.wait_until_done! timeout: 60
2949
+ # if result.response?
2950
+ # p result.response
2951
+ # else
2952
+ # puts "No response received."
2953
+ # end
2954
+ #
2955
+ def switchover_autonomous_database request, options = nil
2956
+ raise ::ArgumentError, "request must be provided" if request.nil?
2957
+
2958
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest
2959
+
2960
+ # Converts hash and nil to an options object
2961
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2962
+
2963
+ # Customize the options with defaults
2964
+ call_metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h
2965
+
2966
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2967
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2968
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2969
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
2970
+ transports_version_send: [:rest]
2971
+
2972
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2973
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2974
+
2975
+ options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout,
2976
+ metadata: call_metadata,
2977
+ retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy
2978
+
2979
+ options.apply_defaults timeout: @config.timeout,
2980
+ metadata: @config.metadata,
2981
+ retry_policy: @config.retry_policy
2982
+
2983
+ @oracle_database_stub.switchover_autonomous_database request, options do |result, operation|
2984
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2985
+ yield result, operation if block_given?
2986
+ throw :response, result
2987
+ end
2988
+ rescue ::Gapic::Rest::Error => e
2989
+ raise ::Google::Cloud::Error.from_error(e)
2990
+ end
2991
+
2992
+ ##
2993
+ # Initiates a failover to target autonomous database from the associated
2994
+ # primary database.
2995
+ #
2996
+ # @overload failover_autonomous_database(request, options = nil)
2997
+ # Pass arguments to `failover_autonomous_database` via a request object, either of type
2998
+ # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash.
2999
+ #
3000
+ # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash]
3001
+ # A request object representing the call parameters. Required. To specify no
3002
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3003
+ # @param options [::Gapic::CallOptions, ::Hash]
3004
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3005
+ #
3006
+ # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil)
3007
+ # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at
3008
+ # least one keyword argument is required. To specify no parameters, or to keep all
3009
+ # the default parameter values, pass an empty Hash as a request object (see above).
3010
+ #
3011
+ # @param name [::String]
3012
+ # Required. The name of the Autonomous Database in the following format:
3013
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
3014
+ # @param peer_autonomous_database [::String]
3015
+ # Required. The peer database name to fail over to.
3016
+ # @yield [result, operation] Access the result along with the TransportOperation object
3017
+ # @yieldparam result [::Gapic::Operation]
3018
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3019
+ #
3020
+ # @return [::Gapic::Operation]
3021
+ #
3022
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3023
+ #
3024
+ # @example Basic example
3025
+ # require "google/cloud/oracle_database/v1"
3026
+ #
3027
+ # # Create a client object. The client can be reused for multiple calls.
3028
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3029
+ #
3030
+ # # Create a request. To set request fields, pass in keyword arguments.
3031
+ # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new
3032
+ #
3033
+ # # Call the failover_autonomous_database method.
3034
+ # result = client.failover_autonomous_database request
3035
+ #
3036
+ # # The returned object is of type Gapic::Operation. You can use it to
3037
+ # # check the status of an operation, cancel it, or wait for results.
3038
+ # # Here is how to wait for a response.
3039
+ # result.wait_until_done! timeout: 60
3040
+ # if result.response?
3041
+ # p result.response
3042
+ # else
3043
+ # puts "No response received."
3044
+ # end
3045
+ #
3046
+ def failover_autonomous_database request, options = nil
3047
+ raise ::ArgumentError, "request must be provided" if request.nil?
3048
+
3049
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest
3050
+
3051
+ # Converts hash and nil to an options object
3052
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3053
+
3054
+ # Customize the options with defaults
3055
+ call_metadata = @config.rpcs.failover_autonomous_database.metadata.to_h
3056
+
3057
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3058
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3059
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3060
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3061
+ transports_version_send: [:rest]
3062
+
3063
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3064
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3065
+
3066
+ options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout,
3067
+ metadata: call_metadata,
3068
+ retry_policy: @config.rpcs.failover_autonomous_database.retry_policy
3069
+
3070
+ options.apply_defaults timeout: @config.timeout,
3071
+ metadata: @config.metadata,
3072
+ retry_policy: @config.retry_policy
3073
+
3074
+ @oracle_database_stub.failover_autonomous_database request, options do |result, operation|
3075
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3076
+ yield result, operation if block_given?
3077
+ throw :response, result
3078
+ end
3079
+ rescue ::Gapic::Rest::Error => e
3080
+ raise ::Google::Cloud::Error.from_error(e)
3081
+ end
3082
+
3083
+ ##
3084
+ # Lists the ODB Networks in a given project and location.
3085
+ #
3086
+ # @overload list_odb_networks(request, options = nil)
3087
+ # Pass arguments to `list_odb_networks` via a request object, either of type
3088
+ # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash.
3089
+ #
3090
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash]
3091
+ # A request object representing the call parameters. Required. To specify no
3092
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3093
+ # @param options [::Gapic::CallOptions, ::Hash]
3094
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3095
+ #
3096
+ # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3097
+ # Pass arguments to `list_odb_networks` via keyword arguments. Note that at
3098
+ # least one keyword argument is required. To specify no parameters, or to keep all
3099
+ # the default parameter values, pass an empty Hash as a request object (see above).
3100
+ #
3101
+ # @param parent [::String]
3102
+ # Required. The parent value for the ODB Network in the following format:
3103
+ # projects/\\{project}/locations/\\{location}.
3104
+ # @param page_size [::Integer]
3105
+ # Optional. The maximum number of items to return.
3106
+ # If unspecified, at most 50 ODB Networks will be returned.
3107
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3108
+ # @param page_token [::String]
3109
+ # Optional. A token identifying a page of results the server should return.
3110
+ # @param filter [::String]
3111
+ # Optional. An expression for filtering the results of the request.
3112
+ # @param order_by [::String]
3113
+ # Optional. An expression for ordering the results of the request.
3114
+ # @yield [result, operation] Access the result along with the TransportOperation object
3115
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>]
3116
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3117
+ #
3118
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>]
3119
+ #
3120
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3121
+ #
3122
+ # @example Basic example
3123
+ # require "google/cloud/oracle_database/v1"
3124
+ #
3125
+ # # Create a client object. The client can be reused for multiple calls.
3126
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3127
+ #
3128
+ # # Create a request. To set request fields, pass in keyword arguments.
3129
+ # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new
3130
+ #
3131
+ # # Call the list_odb_networks method.
3132
+ # result = client.list_odb_networks request
3133
+ #
3134
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3135
+ # # over elements, and API calls will be issued to fetch pages as needed.
3136
+ # result.each do |item|
3137
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork.
3138
+ # p item
3139
+ # end
3140
+ #
3141
+ def list_odb_networks request, options = nil
3142
+ raise ::ArgumentError, "request must be provided" if request.nil?
3143
+
3144
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest
3145
+
3146
+ # Converts hash and nil to an options object
3147
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3148
+
3149
+ # Customize the options with defaults
3150
+ call_metadata = @config.rpcs.list_odb_networks.metadata.to_h
3151
+
3152
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3153
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3154
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3155
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3156
+ transports_version_send: [:rest]
3157
+
3158
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3159
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3160
+
3161
+ options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout,
3162
+ metadata: call_metadata,
3163
+ retry_policy: @config.rpcs.list_odb_networks.retry_policy
3164
+
3165
+ options.apply_defaults timeout: @config.timeout,
3166
+ metadata: @config.metadata,
3167
+ retry_policy: @config.retry_policy
3168
+
3169
+ @oracle_database_stub.list_odb_networks request, options do |result, operation|
3170
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, "odb_networks", request, result, options
3171
+ yield result, operation if block_given?
3172
+ throw :response, result
3173
+ end
3174
+ rescue ::Gapic::Rest::Error => e
3175
+ raise ::Google::Cloud::Error.from_error(e)
3176
+ end
3177
+
3178
+ ##
3179
+ # Gets details of a single ODB Network.
3180
+ #
3181
+ # @overload get_odb_network(request, options = nil)
3182
+ # Pass arguments to `get_odb_network` via a request object, either of type
3183
+ # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash.
3184
+ #
3185
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash]
3186
+ # A request object representing the call parameters. Required. To specify no
3187
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3188
+ # @param options [::Gapic::CallOptions, ::Hash]
3189
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3190
+ #
3191
+ # @overload get_odb_network(name: nil)
3192
+ # Pass arguments to `get_odb_network` via keyword arguments. Note that at
3193
+ # least one keyword argument is required. To specify no parameters, or to keep all
3194
+ # the default parameter values, pass an empty Hash as a request object (see above).
3195
+ #
3196
+ # @param name [::String]
3197
+ # Required. The name of the OdbNetwork in the following format:
3198
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3199
+ # @yield [result, operation] Access the result along with the TransportOperation object
3200
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbNetwork]
3201
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3202
+ #
3203
+ # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork]
3204
+ #
3205
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3206
+ #
3207
+ # @example Basic example
3208
+ # require "google/cloud/oracle_database/v1"
3209
+ #
3210
+ # # Create a client object. The client can be reused for multiple calls.
3211
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3212
+ #
3213
+ # # Create a request. To set request fields, pass in keyword arguments.
3214
+ # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new
3215
+ #
3216
+ # # Call the get_odb_network method.
3217
+ # result = client.get_odb_network request
3218
+ #
3219
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork.
3220
+ # p result
3221
+ #
3222
+ def get_odb_network request, options = nil
3223
+ raise ::ArgumentError, "request must be provided" if request.nil?
3224
+
3225
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest
3226
+
3227
+ # Converts hash and nil to an options object
3228
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3229
+
3230
+ # Customize the options with defaults
3231
+ call_metadata = @config.rpcs.get_odb_network.metadata.to_h
3232
+
3233
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3234
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3235
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3236
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3237
+ transports_version_send: [:rest]
3238
+
3239
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3240
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3241
+
3242
+ options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout,
3243
+ metadata: call_metadata,
3244
+ retry_policy: @config.rpcs.get_odb_network.retry_policy
3245
+
3246
+ options.apply_defaults timeout: @config.timeout,
3247
+ metadata: @config.metadata,
3248
+ retry_policy: @config.retry_policy
3249
+
3250
+ @oracle_database_stub.get_odb_network request, options do |result, operation|
3251
+ yield result, operation if block_given?
3252
+ end
3253
+ rescue ::Gapic::Rest::Error => e
3254
+ raise ::Google::Cloud::Error.from_error(e)
3255
+ end
3256
+
3257
+ ##
3258
+ # Creates a new ODB Network in a given project and location.
3259
+ #
3260
+ # @overload create_odb_network(request, options = nil)
3261
+ # Pass arguments to `create_odb_network` via a request object, either of type
3262
+ # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash.
3263
+ #
3264
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash]
3265
+ # A request object representing the call parameters. Required. To specify no
3266
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3267
+ # @param options [::Gapic::CallOptions, ::Hash]
3268
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3269
+ #
3270
+ # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil)
3271
+ # Pass arguments to `create_odb_network` via keyword arguments. Note that at
3272
+ # least one keyword argument is required. To specify no parameters, or to keep all
3273
+ # the default parameter values, pass an empty Hash as a request object (see above).
3274
+ #
3275
+ # @param parent [::String]
3276
+ # Required. The parent value for the OdbNetwork in the following format:
3277
+ # projects/\\{project}/locations/\\{location}.
3278
+ # @param odb_network_id [::String]
3279
+ # Required. The ID of the OdbNetwork to create. This value is restricted
3280
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
3281
+ # characters in length. The value must start with a letter and end with
3282
+ # a letter or a number.
3283
+ # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash]
3284
+ # Required. Details of the OdbNetwork instance to create.
3285
+ # @param request_id [::String]
3286
+ # Optional. An optional ID to identify the request. This value is used to
3287
+ # identify duplicate requests. If you make a request with the same request ID
3288
+ # and the original request is still in progress or completed, the server
3289
+ # ignores the second request. This prevents clients from
3290
+ # accidentally creating duplicate commitments.
3291
+ #
3292
+ # The request ID must be a valid UUID with the exception that zero UUID is
3293
+ # not supported (00000000-0000-0000-0000-000000000000).
3294
+ # @yield [result, operation] Access the result along with the TransportOperation object
3295
+ # @yieldparam result [::Gapic::Operation]
3296
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3297
+ #
3298
+ # @return [::Gapic::Operation]
3299
+ #
3300
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3301
+ #
3302
+ # @example Basic example
3303
+ # require "google/cloud/oracle_database/v1"
3304
+ #
3305
+ # # Create a client object. The client can be reused for multiple calls.
3306
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3307
+ #
3308
+ # # Create a request. To set request fields, pass in keyword arguments.
3309
+ # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new
3310
+ #
3311
+ # # Call the create_odb_network method.
3312
+ # result = client.create_odb_network request
3313
+ #
3314
+ # # The returned object is of type Gapic::Operation. You can use it to
3315
+ # # check the status of an operation, cancel it, or wait for results.
3316
+ # # Here is how to wait for a response.
3317
+ # result.wait_until_done! timeout: 60
3318
+ # if result.response?
3319
+ # p result.response
3320
+ # else
3321
+ # puts "No response received."
3322
+ # end
3323
+ #
3324
+ def create_odb_network request, options = nil
3325
+ raise ::ArgumentError, "request must be provided" if request.nil?
3326
+
3327
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest
3328
+
3329
+ # Converts hash and nil to an options object
3330
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3331
+
3332
+ # Customize the options with defaults
3333
+ call_metadata = @config.rpcs.create_odb_network.metadata.to_h
3334
+
3335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3336
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3337
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3338
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3339
+ transports_version_send: [:rest]
3340
+
3341
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3342
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3343
+
3344
+ options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout,
3345
+ metadata: call_metadata,
3346
+ retry_policy: @config.rpcs.create_odb_network.retry_policy
3347
+
3348
+ options.apply_defaults timeout: @config.timeout,
3349
+ metadata: @config.metadata,
3350
+ retry_policy: @config.retry_policy
3351
+
3352
+ @oracle_database_stub.create_odb_network request, options do |result, operation|
3353
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3354
+ yield result, operation if block_given?
3355
+ throw :response, result
3356
+ end
3357
+ rescue ::Gapic::Rest::Error => e
3358
+ raise ::Google::Cloud::Error.from_error(e)
3359
+ end
3360
+
3361
+ ##
3362
+ # Deletes a single ODB Network.
3363
+ #
3364
+ # @overload delete_odb_network(request, options = nil)
3365
+ # Pass arguments to `delete_odb_network` via a request object, either of type
3366
+ # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash.
3367
+ #
3368
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash]
3369
+ # A request object representing the call parameters. Required. To specify no
3370
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3371
+ # @param options [::Gapic::CallOptions, ::Hash]
3372
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3373
+ #
3374
+ # @overload delete_odb_network(name: nil, request_id: nil)
3375
+ # Pass arguments to `delete_odb_network` via keyword arguments. Note that at
3376
+ # least one keyword argument is required. To specify no parameters, or to keep all
3377
+ # the default parameter values, pass an empty Hash as a request object (see above).
3378
+ #
3379
+ # @param name [::String]
3380
+ # Required. The name of the resource in the following format:
3381
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3382
+ # @param request_id [::String]
3383
+ # Optional. An optional ID to identify the request. This value is used to
3384
+ # identify duplicate requests. If you make a request with the same request ID
3385
+ # and the original request is still in progress or completed, the server
3386
+ # ignores the second request. This prevents clients from
3387
+ # accidentally creating duplicate commitments.
3388
+ #
3389
+ # The request ID must be a valid UUID with the exception that zero UUID is
3390
+ # not supported (00000000-0000-0000-0000-000000000000).
3391
+ # @yield [result, operation] Access the result along with the TransportOperation object
3392
+ # @yieldparam result [::Gapic::Operation]
3393
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3394
+ #
3395
+ # @return [::Gapic::Operation]
3396
+ #
3397
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3398
+ #
3399
+ # @example Basic example
3400
+ # require "google/cloud/oracle_database/v1"
3401
+ #
3402
+ # # Create a client object. The client can be reused for multiple calls.
3403
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3404
+ #
3405
+ # # Create a request. To set request fields, pass in keyword arguments.
3406
+ # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new
3407
+ #
3408
+ # # Call the delete_odb_network method.
3409
+ # result = client.delete_odb_network request
3410
+ #
3411
+ # # The returned object is of type Gapic::Operation. You can use it to
3412
+ # # check the status of an operation, cancel it, or wait for results.
3413
+ # # Here is how to wait for a response.
3414
+ # result.wait_until_done! timeout: 60
3415
+ # if result.response?
3416
+ # p result.response
3417
+ # else
3418
+ # puts "No response received."
3419
+ # end
3420
+ #
3421
+ def delete_odb_network request, options = nil
3422
+ raise ::ArgumentError, "request must be provided" if request.nil?
3423
+
3424
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest
3425
+
3426
+ # Converts hash and nil to an options object
3427
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3428
+
3429
+ # Customize the options with defaults
3430
+ call_metadata = @config.rpcs.delete_odb_network.metadata.to_h
3431
+
3432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3433
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3434
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3435
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3436
+ transports_version_send: [:rest]
3437
+
3438
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3439
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3440
+
3441
+ options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout,
3442
+ metadata: call_metadata,
3443
+ retry_policy: @config.rpcs.delete_odb_network.retry_policy
3444
+
3445
+ options.apply_defaults timeout: @config.timeout,
3446
+ metadata: @config.metadata,
3447
+ retry_policy: @config.retry_policy
3448
+
3449
+ @oracle_database_stub.delete_odb_network request, options do |result, operation|
3450
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3451
+ yield result, operation if block_given?
3452
+ throw :response, result
3453
+ end
3454
+ rescue ::Gapic::Rest::Error => e
3455
+ raise ::Google::Cloud::Error.from_error(e)
3456
+ end
3457
+
3458
+ ##
3459
+ # Lists all the ODB Subnets in a given ODB Network.
3460
+ #
3461
+ # @overload list_odb_subnets(request, options = nil)
3462
+ # Pass arguments to `list_odb_subnets` via a request object, either of type
3463
+ # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash.
3464
+ #
3465
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash]
3466
+ # A request object representing the call parameters. Required. To specify no
3467
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3468
+ # @param options [::Gapic::CallOptions, ::Hash]
3469
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3470
+ #
3471
+ # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3472
+ # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at
3473
+ # least one keyword argument is required. To specify no parameters, or to keep all
3474
+ # the default parameter values, pass an empty Hash as a request object (see above).
3475
+ #
3476
+ # @param parent [::String]
3477
+ # Required. The parent value for the OdbSubnet in the following format:
3478
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3479
+ # @param page_size [::Integer]
3480
+ # Optional. The maximum number of items to return.
3481
+ # If unspecified, at most 50 ODB Networks will be returned.
3482
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3483
+ # @param page_token [::String]
3484
+ # Optional. A token identifying a page of results the server should return.
3485
+ # @param filter [::String]
3486
+ # Optional. An expression for filtering the results of the request.
3487
+ # @param order_by [::String]
3488
+ # Optional. An expression for ordering the results of the request.
3489
+ # @yield [result, operation] Access the result along with the TransportOperation object
3490
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>]
3491
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3492
+ #
3493
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>]
3494
+ #
3495
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3496
+ #
3497
+ # @example Basic example
3498
+ # require "google/cloud/oracle_database/v1"
3499
+ #
3500
+ # # Create a client object. The client can be reused for multiple calls.
3501
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3502
+ #
3503
+ # # Create a request. To set request fields, pass in keyword arguments.
3504
+ # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new
3505
+ #
3506
+ # # Call the list_odb_subnets method.
3507
+ # result = client.list_odb_subnets request
3508
+ #
3509
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3510
+ # # over elements, and API calls will be issued to fetch pages as needed.
3511
+ # result.each do |item|
3512
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet.
3513
+ # p item
3514
+ # end
3515
+ #
3516
+ def list_odb_subnets request, options = nil
3517
+ raise ::ArgumentError, "request must be provided" if request.nil?
3518
+
3519
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest
3520
+
3521
+ # Converts hash and nil to an options object
3522
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3523
+
3524
+ # Customize the options with defaults
3525
+ call_metadata = @config.rpcs.list_odb_subnets.metadata.to_h
3526
+
3527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3528
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3529
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3530
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3531
+ transports_version_send: [:rest]
3532
+
3533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3534
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3535
+
3536
+ options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout,
3537
+ metadata: call_metadata,
3538
+ retry_policy: @config.rpcs.list_odb_subnets.retry_policy
3539
+
3540
+ options.apply_defaults timeout: @config.timeout,
3541
+ metadata: @config.metadata,
3542
+ retry_policy: @config.retry_policy
3543
+
3544
+ @oracle_database_stub.list_odb_subnets request, options do |result, operation|
3545
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, "odb_subnets", request, result, options
3546
+ yield result, operation if block_given?
3547
+ throw :response, result
3548
+ end
3549
+ rescue ::Gapic::Rest::Error => e
3550
+ raise ::Google::Cloud::Error.from_error(e)
3551
+ end
3552
+
3553
+ ##
3554
+ # Gets details of a single ODB Subnet.
3555
+ #
3556
+ # @overload get_odb_subnet(request, options = nil)
3557
+ # Pass arguments to `get_odb_subnet` via a request object, either of type
3558
+ # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash.
3559
+ #
3560
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash]
3561
+ # A request object representing the call parameters. Required. To specify no
3562
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3563
+ # @param options [::Gapic::CallOptions, ::Hash]
3564
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3565
+ #
3566
+ # @overload get_odb_subnet(name: nil)
3567
+ # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at
3568
+ # least one keyword argument is required. To specify no parameters, or to keep all
3569
+ # the default parameter values, pass an empty Hash as a request object (see above).
3570
+ #
3571
+ # @param name [::String]
3572
+ # Required. The name of the OdbSubnet in the following format:
3573
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}.
3574
+ # @yield [result, operation] Access the result along with the TransportOperation object
3575
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbSubnet]
3576
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3577
+ #
3578
+ # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet]
3579
+ #
3580
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3581
+ #
3582
+ # @example Basic example
3583
+ # require "google/cloud/oracle_database/v1"
3584
+ #
3585
+ # # Create a client object. The client can be reused for multiple calls.
3586
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3587
+ #
3588
+ # # Create a request. To set request fields, pass in keyword arguments.
3589
+ # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new
3590
+ #
3591
+ # # Call the get_odb_subnet method.
3592
+ # result = client.get_odb_subnet request
3593
+ #
3594
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet.
3595
+ # p result
3596
+ #
3597
+ def get_odb_subnet request, options = nil
3598
+ raise ::ArgumentError, "request must be provided" if request.nil?
3599
+
3600
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest
3601
+
3602
+ # Converts hash and nil to an options object
3603
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3604
+
3605
+ # Customize the options with defaults
3606
+ call_metadata = @config.rpcs.get_odb_subnet.metadata.to_h
3607
+
3608
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3609
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3610
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3611
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3612
+ transports_version_send: [:rest]
3613
+
3614
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3615
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3616
+
3617
+ options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout,
3618
+ metadata: call_metadata,
3619
+ retry_policy: @config.rpcs.get_odb_subnet.retry_policy
3620
+
3621
+ options.apply_defaults timeout: @config.timeout,
3622
+ metadata: @config.metadata,
3623
+ retry_policy: @config.retry_policy
3624
+
3625
+ @oracle_database_stub.get_odb_subnet request, options do |result, operation|
3626
+ yield result, operation if block_given?
3627
+ end
3628
+ rescue ::Gapic::Rest::Error => e
3629
+ raise ::Google::Cloud::Error.from_error(e)
3630
+ end
3631
+
3632
+ ##
3633
+ # Creates a new ODB Subnet in a given ODB Network.
3634
+ #
3635
+ # @overload create_odb_subnet(request, options = nil)
3636
+ # Pass arguments to `create_odb_subnet` via a request object, either of type
3637
+ # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash.
3638
+ #
3639
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash]
3640
+ # A request object representing the call parameters. Required. To specify no
3641
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3642
+ # @param options [::Gapic::CallOptions, ::Hash]
3643
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3644
+ #
3645
+ # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil)
3646
+ # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at
3647
+ # least one keyword argument is required. To specify no parameters, or to keep all
3648
+ # the default parameter values, pass an empty Hash as a request object (see above).
3649
+ #
3650
+ # @param parent [::String]
3651
+ # Required. The parent value for the OdbSubnet in the following format:
3652
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3653
+ # @param odb_subnet_id [::String]
3654
+ # Required. The ID of the OdbSubnet to create. This value is restricted
3655
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
3656
+ # characters in length. The value must start with a letter and end with
3657
+ # a letter or a number.
3658
+ # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash]
3659
+ # Required. Details of the OdbSubnet instance to create.
3660
+ # @param request_id [::String]
3661
+ # Optional. An optional ID to identify the request. This value is used to
3662
+ # identify duplicate requests. If you make a request with the same request ID
3663
+ # and the original request is still in progress or completed, the server
3664
+ # ignores the second request. This prevents clients from
3665
+ # accidentally creating duplicate commitments.
3666
+ #
3667
+ # The request ID must be a valid UUID with the exception that zero UUID is
3668
+ # not supported (00000000-0000-0000-0000-000000000000).
3669
+ # @yield [result, operation] Access the result along with the TransportOperation object
3670
+ # @yieldparam result [::Gapic::Operation]
3671
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3672
+ #
3673
+ # @return [::Gapic::Operation]
3674
+ #
3675
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3676
+ #
3677
+ # @example Basic example
3678
+ # require "google/cloud/oracle_database/v1"
3679
+ #
3680
+ # # Create a client object. The client can be reused for multiple calls.
3681
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3682
+ #
3683
+ # # Create a request. To set request fields, pass in keyword arguments.
3684
+ # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new
3685
+ #
3686
+ # # Call the create_odb_subnet method.
3687
+ # result = client.create_odb_subnet request
3688
+ #
3689
+ # # The returned object is of type Gapic::Operation. You can use it to
3690
+ # # check the status of an operation, cancel it, or wait for results.
3691
+ # # Here is how to wait for a response.
3692
+ # result.wait_until_done! timeout: 60
3693
+ # if result.response?
3694
+ # p result.response
3695
+ # else
3696
+ # puts "No response received."
3697
+ # end
3698
+ #
3699
+ def create_odb_subnet request, options = nil
3700
+ raise ::ArgumentError, "request must be provided" if request.nil?
3701
+
3702
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest
3703
+
3704
+ # Converts hash and nil to an options object
3705
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3706
+
3707
+ # Customize the options with defaults
3708
+ call_metadata = @config.rpcs.create_odb_subnet.metadata.to_h
3709
+
3710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3711
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3712
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3713
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3714
+ transports_version_send: [:rest]
3715
+
3716
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3717
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3718
+
3719
+ options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout,
3720
+ metadata: call_metadata,
3721
+ retry_policy: @config.rpcs.create_odb_subnet.retry_policy
3722
+
3723
+ options.apply_defaults timeout: @config.timeout,
3724
+ metadata: @config.metadata,
3725
+ retry_policy: @config.retry_policy
3726
+
3727
+ @oracle_database_stub.create_odb_subnet request, options do |result, operation|
3728
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3729
+ yield result, operation if block_given?
3730
+ throw :response, result
3731
+ end
3732
+ rescue ::Gapic::Rest::Error => e
3733
+ raise ::Google::Cloud::Error.from_error(e)
3734
+ end
3735
+
3736
+ ##
3737
+ # Deletes a single ODB Subnet.
3738
+ #
3739
+ # @overload delete_odb_subnet(request, options = nil)
3740
+ # Pass arguments to `delete_odb_subnet` via a request object, either of type
3741
+ # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash.
3742
+ #
3743
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash]
3744
+ # A request object representing the call parameters. Required. To specify no
3745
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3746
+ # @param options [::Gapic::CallOptions, ::Hash]
3747
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3748
+ #
3749
+ # @overload delete_odb_subnet(name: nil, request_id: nil)
3750
+ # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at
3751
+ # least one keyword argument is required. To specify no parameters, or to keep all
3752
+ # the default parameter values, pass an empty Hash as a request object (see above).
3753
+ #
3754
+ # @param name [::String]
3755
+ # Required. The name of the resource in the following format:
3756
+ # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}.
3757
+ # @param request_id [::String]
3758
+ # Optional. An optional ID to identify the request. This value is used to
3759
+ # identify duplicate requests. If you make a request with the same request ID
3760
+ # and the original request is still in progress or completed, the server
3761
+ # ignores the second request. This prevents clients from
3762
+ # accidentally creating duplicate commitments.
3763
+ #
3764
+ # The request ID must be a valid UUID with the exception that zero UUID is
3765
+ # not supported (00000000-0000-0000-0000-000000000000).
3766
+ # @yield [result, operation] Access the result along with the TransportOperation object
3767
+ # @yieldparam result [::Gapic::Operation]
3768
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3769
+ #
3770
+ # @return [::Gapic::Operation]
3771
+ #
3772
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3773
+ #
3774
+ # @example Basic example
3775
+ # require "google/cloud/oracle_database/v1"
3776
+ #
3777
+ # # Create a client object. The client can be reused for multiple calls.
3778
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3779
+ #
3780
+ # # Create a request. To set request fields, pass in keyword arguments.
3781
+ # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new
3782
+ #
3783
+ # # Call the delete_odb_subnet method.
3784
+ # result = client.delete_odb_subnet request
3785
+ #
3786
+ # # The returned object is of type Gapic::Operation. You can use it to
3787
+ # # check the status of an operation, cancel it, or wait for results.
3788
+ # # Here is how to wait for a response.
3789
+ # result.wait_until_done! timeout: 60
3790
+ # if result.response?
3791
+ # p result.response
3792
+ # else
3793
+ # puts "No response received."
3794
+ # end
3795
+ #
3796
+ def delete_odb_subnet request, options = nil
3797
+ raise ::ArgumentError, "request must be provided" if request.nil?
3798
+
3799
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest
3800
+
3801
+ # Converts hash and nil to an options object
3802
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3803
+
3804
+ # Customize the options with defaults
3805
+ call_metadata = @config.rpcs.delete_odb_subnet.metadata.to_h
3806
+
3807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3808
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3809
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3810
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3811
+ transports_version_send: [:rest]
3812
+
3813
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3814
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3815
+
3816
+ options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout,
3817
+ metadata: call_metadata,
3818
+ retry_policy: @config.rpcs.delete_odb_subnet.retry_policy
3819
+
3820
+ options.apply_defaults timeout: @config.timeout,
3821
+ metadata: @config.metadata,
3822
+ retry_policy: @config.retry_policy
3823
+
3824
+ @oracle_database_stub.delete_odb_subnet request, options do |result, operation|
3825
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3826
+ yield result, operation if block_given?
3827
+ throw :response, result
3828
+ end
3829
+ rescue ::Gapic::Rest::Error => e
3830
+ raise ::Google::Cloud::Error.from_error(e)
3831
+ end
3832
+
3833
+ ##
3834
+ # Lists all the Exadb (Exascale) VM Clusters for the given project and
3835
+ # location.
3836
+ #
3837
+ # @overload list_exadb_vm_clusters(request, options = nil)
3838
+ # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type
3839
+ # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash.
3840
+ #
3841
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash]
3842
+ # A request object representing the call parameters. Required. To specify no
3843
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3844
+ # @param options [::Gapic::CallOptions, ::Hash]
3845
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3846
+ #
3847
+ # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3848
+ # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at
3849
+ # least one keyword argument is required. To specify no parameters, or to keep all
3850
+ # the default parameter values, pass an empty Hash as a request object (see above).
3851
+ #
3852
+ # @param parent [::String]
3853
+ # Required. The parent value for ExadbVmClusters in the following format:
3854
+ # projects/\\{project}/locations/\\{location}.
3855
+ # @param page_size [::Integer]
3856
+ # Optional. The maximum number of items to return.
3857
+ # If unspecified, at most 50 ExadbVmClusters will be returned.
3858
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3859
+ # @param page_token [::String]
3860
+ # Optional. A token identifying a page of results the server should return.
3861
+ # @param filter [::String]
3862
+ # Optional. An expression for filtering the results of the request.
3863
+ # @param order_by [::String]
3864
+ # Optional. An expression for ordering the results of the request.
3865
+ # @yield [result, operation] Access the result along with the TransportOperation object
3866
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>]
3867
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3868
+ #
3869
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>]
3870
+ #
3871
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3872
+ #
3873
+ # @example Basic example
3874
+ # require "google/cloud/oracle_database/v1"
3875
+ #
3876
+ # # Create a client object. The client can be reused for multiple calls.
3877
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3878
+ #
3879
+ # # Create a request. To set request fields, pass in keyword arguments.
3880
+ # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new
3881
+ #
3882
+ # # Call the list_exadb_vm_clusters method.
3883
+ # result = client.list_exadb_vm_clusters request
3884
+ #
3885
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3886
+ # # over elements, and API calls will be issued to fetch pages as needed.
3887
+ # result.each do |item|
3888
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.
3889
+ # p item
3890
+ # end
3891
+ #
3892
+ def list_exadb_vm_clusters request, options = nil
3893
+ raise ::ArgumentError, "request must be provided" if request.nil?
3894
+
3895
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest
3896
+
3897
+ # Converts hash and nil to an options object
3898
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3899
+
3900
+ # Customize the options with defaults
3901
+ call_metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h
3902
+
3903
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3904
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3905
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3906
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3907
+ transports_version_send: [:rest]
3908
+
3909
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3910
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3911
+
3912
+ options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout,
3913
+ metadata: call_metadata,
3914
+ retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy
3915
+
3916
+ options.apply_defaults timeout: @config.timeout,
3917
+ metadata: @config.metadata,
3918
+ retry_policy: @config.retry_policy
3919
+
3920
+ @oracle_database_stub.list_exadb_vm_clusters request, options do |result, operation|
3921
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, "exadb_vm_clusters", request, result, options
3922
+ yield result, operation if block_given?
3923
+ throw :response, result
3924
+ end
3925
+ rescue ::Gapic::Rest::Error => e
3926
+ raise ::Google::Cloud::Error.from_error(e)
3927
+ end
3928
+
3929
+ ##
3930
+ # Gets details of a single Exadb (Exascale) VM Cluster.
3931
+ #
3932
+ # @overload get_exadb_vm_cluster(request, options = nil)
3933
+ # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type
3934
+ # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash.
3935
+ #
3936
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash]
3937
+ # A request object representing the call parameters. Required. To specify no
3938
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3939
+ # @param options [::Gapic::CallOptions, ::Hash]
3940
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3941
+ #
3942
+ # @overload get_exadb_vm_cluster(name: nil)
3943
+ # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at
3944
+ # least one keyword argument is required. To specify no parameters, or to keep all
3945
+ # the default parameter values, pass an empty Hash as a request object (see above).
3946
+ #
3947
+ # @param name [::String]
3948
+ # Required. The name of the ExadbVmCluster in the following format:
3949
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
3950
+ # @yield [result, operation] Access the result along with the TransportOperation object
3951
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster]
3952
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3953
+ #
3954
+ # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster]
3955
+ #
3956
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3957
+ #
3958
+ # @example Basic example
3959
+ # require "google/cloud/oracle_database/v1"
3960
+ #
3961
+ # # Create a client object. The client can be reused for multiple calls.
3962
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3963
+ #
3964
+ # # Create a request. To set request fields, pass in keyword arguments.
3965
+ # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new
3966
+ #
3967
+ # # Call the get_exadb_vm_cluster method.
3968
+ # result = client.get_exadb_vm_cluster request
3969
+ #
3970
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster.
3971
+ # p result
3972
+ #
3973
+ def get_exadb_vm_cluster request, options = nil
3974
+ raise ::ArgumentError, "request must be provided" if request.nil?
3975
+
3976
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest
3977
+
3978
+ # Converts hash and nil to an options object
3979
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3980
+
3981
+ # Customize the options with defaults
3982
+ call_metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h
3983
+
3984
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3985
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3986
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3987
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3988
+ transports_version_send: [:rest]
3989
+
3990
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3991
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3992
+
3993
+ options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout,
3994
+ metadata: call_metadata,
3995
+ retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy
3996
+
3997
+ options.apply_defaults timeout: @config.timeout,
3998
+ metadata: @config.metadata,
3999
+ retry_policy: @config.retry_policy
4000
+
4001
+ @oracle_database_stub.get_exadb_vm_cluster request, options do |result, operation|
4002
+ yield result, operation if block_given?
4003
+ end
4004
+ rescue ::Gapic::Rest::Error => e
4005
+ raise ::Google::Cloud::Error.from_error(e)
4006
+ end
4007
+
4008
+ ##
4009
+ # Creates a new Exadb (Exascale) VM Cluster resource.
4010
+ #
4011
+ # @overload create_exadb_vm_cluster(request, options = nil)
4012
+ # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type
4013
+ # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash.
4014
+ #
4015
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash]
4016
+ # A request object representing the call parameters. Required. To specify no
4017
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4018
+ # @param options [::Gapic::CallOptions, ::Hash]
4019
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4020
+ #
4021
+ # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil)
4022
+ # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at
4023
+ # least one keyword argument is required. To specify no parameters, or to keep all
4024
+ # the default parameter values, pass an empty Hash as a request object (see above).
4025
+ #
4026
+ # @param parent [::String]
4027
+ # Required. The value for parent of the ExadbVmCluster in the following
4028
+ # format: projects/\\{project}/locations/\\{location}.
4029
+ # @param exadb_vm_cluster_id [::String]
4030
+ # Required. The ID of the ExadbVmCluster to create. This value is
4031
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
4032
+ # 63 characters in length. The value must start with a letter and end with a
4033
+ # letter or a number.
4034
+ # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash]
4035
+ # Required. The resource being created.
4036
+ # @param request_id [::String]
4037
+ # Optional. An optional request ID to identify requests. Specify a unique
4038
+ # request ID so that if you must retry your request, the server will know to
4039
+ # ignore the request if it has already been completed. The server will
4040
+ # guarantee that for at least 60 minutes since the first request.
4041
+ #
4042
+ # For example, consider a situation where you make an initial request and the
4043
+ # request times out. If you make the request again with the same request
4044
+ # ID, the server can check if original operation with the same request ID
4045
+ # was received, and if so, will ignore the second request. This prevents
4046
+ # clients from accidentally creating duplicate commitments.
4047
+ #
4048
+ # The request ID must be a valid UUID with the exception that zero UUID is
4049
+ # not supported (00000000-0000-0000-0000-000000000000).
4050
+ # @yield [result, operation] Access the result along with the TransportOperation object
4051
+ # @yieldparam result [::Gapic::Operation]
4052
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4053
+ #
4054
+ # @return [::Gapic::Operation]
4055
+ #
4056
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4057
+ #
4058
+ # @example Basic example
4059
+ # require "google/cloud/oracle_database/v1"
4060
+ #
4061
+ # # Create a client object. The client can be reused for multiple calls.
4062
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4063
+ #
4064
+ # # Create a request. To set request fields, pass in keyword arguments.
4065
+ # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new
4066
+ #
4067
+ # # Call the create_exadb_vm_cluster method.
4068
+ # result = client.create_exadb_vm_cluster request
4069
+ #
4070
+ # # The returned object is of type Gapic::Operation. You can use it to
4071
+ # # check the status of an operation, cancel it, or wait for results.
4072
+ # # Here is how to wait for a response.
4073
+ # result.wait_until_done! timeout: 60
4074
+ # if result.response?
4075
+ # p result.response
4076
+ # else
4077
+ # puts "No response received."
4078
+ # end
4079
+ #
4080
+ def create_exadb_vm_cluster request, options = nil
4081
+ raise ::ArgumentError, "request must be provided" if request.nil?
4082
+
4083
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest
4084
+
4085
+ # Converts hash and nil to an options object
4086
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4087
+
4088
+ # Customize the options with defaults
4089
+ call_metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h
4090
+
4091
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4092
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4093
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4094
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4095
+ transports_version_send: [:rest]
4096
+
4097
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4098
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4099
+
4100
+ options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout,
4101
+ metadata: call_metadata,
4102
+ retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy
4103
+
4104
+ options.apply_defaults timeout: @config.timeout,
4105
+ metadata: @config.metadata,
4106
+ retry_policy: @config.retry_policy
4107
+
4108
+ @oracle_database_stub.create_exadb_vm_cluster request, options do |result, operation|
4109
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4110
+ yield result, operation if block_given?
4111
+ throw :response, result
4112
+ end
4113
+ rescue ::Gapic::Rest::Error => e
4114
+ raise ::Google::Cloud::Error.from_error(e)
4115
+ end
4116
+
4117
+ ##
4118
+ # Deletes a single Exadb (Exascale) VM Cluster.
4119
+ #
4120
+ # @overload delete_exadb_vm_cluster(request, options = nil)
4121
+ # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type
4122
+ # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash.
4123
+ #
4124
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash]
4125
+ # A request object representing the call parameters. Required. To specify no
4126
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4127
+ # @param options [::Gapic::CallOptions, ::Hash]
4128
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4129
+ #
4130
+ # @overload delete_exadb_vm_cluster(name: nil, request_id: nil)
4131
+ # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at
4132
+ # least one keyword argument is required. To specify no parameters, or to keep all
4133
+ # the default parameter values, pass an empty Hash as a request object (see above).
4134
+ #
4135
+ # @param name [::String]
4136
+ # Required. The name of the ExadbVmCluster in the following format:
4137
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
4138
+ # @param request_id [::String]
4139
+ # Optional. An optional ID to identify the request. This value is used to
4140
+ # identify duplicate requests. If you make a request with the same request ID
4141
+ # and the original request is still in progress or completed, the server
4142
+ # ignores the second request. This prevents clients from
4143
+ # accidentally creating duplicate commitments.
4144
+ #
4145
+ # The request ID must be a valid UUID with the exception that zero UUID is
4146
+ # not supported (00000000-0000-0000-0000-000000000000).
4147
+ # @yield [result, operation] Access the result along with the TransportOperation object
4148
+ # @yieldparam result [::Gapic::Operation]
4149
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4150
+ #
4151
+ # @return [::Gapic::Operation]
4152
+ #
4153
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4154
+ #
4155
+ # @example Basic example
4156
+ # require "google/cloud/oracle_database/v1"
4157
+ #
4158
+ # # Create a client object. The client can be reused for multiple calls.
4159
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4160
+ #
4161
+ # # Create a request. To set request fields, pass in keyword arguments.
4162
+ # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new
4163
+ #
4164
+ # # Call the delete_exadb_vm_cluster method.
4165
+ # result = client.delete_exadb_vm_cluster request
4166
+ #
4167
+ # # The returned object is of type Gapic::Operation. You can use it to
4168
+ # # check the status of an operation, cancel it, or wait for results.
4169
+ # # Here is how to wait for a response.
4170
+ # result.wait_until_done! timeout: 60
4171
+ # if result.response?
4172
+ # p result.response
4173
+ # else
4174
+ # puts "No response received."
4175
+ # end
4176
+ #
4177
+ def delete_exadb_vm_cluster request, options = nil
4178
+ raise ::ArgumentError, "request must be provided" if request.nil?
4179
+
4180
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest
4181
+
4182
+ # Converts hash and nil to an options object
4183
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4184
+
4185
+ # Customize the options with defaults
4186
+ call_metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h
4187
+
4188
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4189
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4190
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4191
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4192
+ transports_version_send: [:rest]
4193
+
4194
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4195
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4196
+
4197
+ options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout,
4198
+ metadata: call_metadata,
4199
+ retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy
4200
+
4201
+ options.apply_defaults timeout: @config.timeout,
4202
+ metadata: @config.metadata,
4203
+ retry_policy: @config.retry_policy
4204
+
4205
+ @oracle_database_stub.delete_exadb_vm_cluster request, options do |result, operation|
4206
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4207
+ yield result, operation if block_given?
4208
+ throw :response, result
4209
+ end
4210
+ rescue ::Gapic::Rest::Error => e
4211
+ raise ::Google::Cloud::Error.from_error(e)
4212
+ end
4213
+
4214
+ ##
4215
+ # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
4216
+ # existing exadb vm cluster, only pass the node count.
4217
+ #
4218
+ # @overload update_exadb_vm_cluster(request, options = nil)
4219
+ # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type
4220
+ # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash.
4221
+ #
4222
+ # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash]
4223
+ # A request object representing the call parameters. Required. To specify no
4224
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4225
+ # @param options [::Gapic::CallOptions, ::Hash]
4226
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4227
+ #
4228
+ # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil)
4229
+ # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at
4230
+ # least one keyword argument is required. To specify no parameters, or to keep all
4231
+ # the default parameter values, pass an empty Hash as a request object (see above).
4232
+ #
4233
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4234
+ # Optional. A mask specifying which fields in th VM Cluster should be
4235
+ # updated. A field specified in the mask is overwritten. If a mask isn't
4236
+ # provided then all the fields in the VM Cluster are overwritten.
4237
+ # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash]
4238
+ # Required. The resource being updated.
4239
+ # @param request_id [::String]
4240
+ # Optional. An optional ID to identify the request. This value is used to
4241
+ # identify duplicate requests. If you make a request with the same request ID
4242
+ # and the original request is still in progress or completed, the server
4243
+ # ignores the second request. This prevents clients from
4244
+ # accidentally creating duplicate commitments.
4245
+ #
4246
+ # The request ID must be a valid UUID with the exception that zero UUID is
4247
+ # not supported (00000000-0000-0000-0000-000000000000).
4248
+ # @yield [result, operation] Access the result along with the TransportOperation object
4249
+ # @yieldparam result [::Gapic::Operation]
4250
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4251
+ #
4252
+ # @return [::Gapic::Operation]
4253
+ #
4254
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4255
+ #
4256
+ # @example Basic example
4257
+ # require "google/cloud/oracle_database/v1"
4258
+ #
4259
+ # # Create a client object. The client can be reused for multiple calls.
4260
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4261
+ #
4262
+ # # Create a request. To set request fields, pass in keyword arguments.
4263
+ # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new
4264
+ #
4265
+ # # Call the update_exadb_vm_cluster method.
4266
+ # result = client.update_exadb_vm_cluster request
4267
+ #
4268
+ # # The returned object is of type Gapic::Operation. You can use it to
4269
+ # # check the status of an operation, cancel it, or wait for results.
4270
+ # # Here is how to wait for a response.
4271
+ # result.wait_until_done! timeout: 60
4272
+ # if result.response?
4273
+ # p result.response
4274
+ # else
4275
+ # puts "No response received."
4276
+ # end
4277
+ #
4278
+ def update_exadb_vm_cluster request, options = nil
4279
+ raise ::ArgumentError, "request must be provided" if request.nil?
4280
+
4281
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest
4282
+
4283
+ # Converts hash and nil to an options object
4284
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4285
+
4286
+ # Customize the options with defaults
4287
+ call_metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h
4288
+
4289
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4290
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4291
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4292
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4293
+ transports_version_send: [:rest]
4294
+
4295
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4296
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4297
+
4298
+ options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout,
4299
+ metadata: call_metadata,
4300
+ retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy
4301
+
4302
+ options.apply_defaults timeout: @config.timeout,
4303
+ metadata: @config.metadata,
4304
+ retry_policy: @config.retry_policy
4305
+
4306
+ @oracle_database_stub.update_exadb_vm_cluster request, options do |result, operation|
4307
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4308
+ yield result, operation if block_given?
4309
+ throw :response, result
4310
+ end
4311
+ rescue ::Gapic::Rest::Error => e
4312
+ raise ::Google::Cloud::Error.from_error(e)
4313
+ end
4314
+
4315
+ ##
4316
+ # Removes virtual machines from an existing exadb vm cluster.
4317
+ #
4318
+ # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil)
4319
+ # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type
4320
+ # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash.
4321
+ #
4322
+ # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash]
4323
+ # A request object representing the call parameters. Required. To specify no
4324
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4325
+ # @param options [::Gapic::CallOptions, ::Hash]
4326
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4327
+ #
4328
+ # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil)
4329
+ # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at
4330
+ # least one keyword argument is required. To specify no parameters, or to keep all
4331
+ # the default parameter values, pass an empty Hash as a request object (see above).
4332
+ #
4333
+ # @param name [::String]
4334
+ # Required. The name of the ExadbVmCluster in the following format:
4335
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
4336
+ # @param request_id [::String]
4337
+ # Optional. An optional ID to identify the request. This value is used to
4338
+ # identify duplicate requests. If you make a request with the same request ID
4339
+ # and the original request is still in progress or completed, the server
4340
+ # ignores the second request. This prevents clients from
4341
+ # accidentally creating duplicate commitments.
4342
+ #
4343
+ # The request ID must be a valid UUID with the exception that zero UUID is
4344
+ # not supported (00000000-0000-0000-0000-000000000000).
4345
+ # @param hostnames [::Array<::String>]
4346
+ # Required. The list of host names of db nodes to be removed from the
4347
+ # ExadbVmCluster.
4348
+ # @yield [result, operation] Access the result along with the TransportOperation object
4349
+ # @yieldparam result [::Gapic::Operation]
4350
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4351
+ #
4352
+ # @return [::Gapic::Operation]
4353
+ #
4354
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4355
+ #
4356
+ # @example Basic example
4357
+ # require "google/cloud/oracle_database/v1"
4358
+ #
4359
+ # # Create a client object. The client can be reused for multiple calls.
4360
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4361
+ #
4362
+ # # Create a request. To set request fields, pass in keyword arguments.
4363
+ # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new
4364
+ #
4365
+ # # Call the remove_virtual_machine_exadb_vm_cluster method.
4366
+ # result = client.remove_virtual_machine_exadb_vm_cluster request
4367
+ #
4368
+ # # The returned object is of type Gapic::Operation. You can use it to
4369
+ # # check the status of an operation, cancel it, or wait for results.
4370
+ # # Here is how to wait for a response.
4371
+ # result.wait_until_done! timeout: 60
4372
+ # if result.response?
4373
+ # p result.response
4374
+ # else
4375
+ # puts "No response received."
4376
+ # end
4377
+ #
4378
+ def remove_virtual_machine_exadb_vm_cluster request, options = nil
4379
+ raise ::ArgumentError, "request must be provided" if request.nil?
4380
+
4381
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest
4382
+
4383
+ # Converts hash and nil to an options object
4384
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4385
+
4386
+ # Customize the options with defaults
4387
+ call_metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h
4388
+
4389
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4390
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4391
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4392
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4393
+ transports_version_send: [:rest]
4394
+
4395
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4396
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4397
+
4398
+ options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout,
4399
+ metadata: call_metadata,
4400
+ retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy
4401
+
4402
+ options.apply_defaults timeout: @config.timeout,
4403
+ metadata: @config.metadata,
4404
+ retry_policy: @config.retry_policy
4405
+
4406
+ @oracle_database_stub.remove_virtual_machine_exadb_vm_cluster request, options do |result, operation|
4407
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4408
+ yield result, operation if block_given?
4409
+ throw :response, result
4410
+ end
4411
+ rescue ::Gapic::Rest::Error => e
4412
+ raise ::Google::Cloud::Error.from_error(e)
4413
+ end
4414
+
4415
+ ##
4416
+ # Lists all the ExascaleDB Storage Vaults for the given project and
4417
+ # location.
4418
+ #
4419
+ # @overload list_exascale_db_storage_vaults(request, options = nil)
4420
+ # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type
4421
+ # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash.
4422
+ #
4423
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash]
4424
+ # A request object representing the call parameters. Required. To specify no
4425
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4426
+ # @param options [::Gapic::CallOptions, ::Hash]
4427
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4428
+ #
4429
+ # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
4430
+ # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at
4431
+ # least one keyword argument is required. To specify no parameters, or to keep all
4432
+ # the default parameter values, pass an empty Hash as a request object (see above).
4433
+ #
4434
+ # @param parent [::String]
4435
+ # Required. The parent value for ExascaleDbStorageVault in the following
4436
+ # format: projects/\\{project}/locations/\\{location}.
4437
+ # @param page_size [::Integer]
4438
+ # Optional. The maximum number of items to return.
4439
+ # If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
4440
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
4441
+ # @param page_token [::String]
4442
+ # Optional. A token identifying a page of results the server should return.
4443
+ # @param filter [::String]
4444
+ # Optional. An expression for filtering the results of the request. Filter
4445
+ # the list as specified in https://google.aip.dev/160.
4446
+ # @param order_by [::String]
4447
+ # Optional. An expression for ordering the results of the request. Order
4448
+ # results as specified in https://google.aip.dev/132.
4449
+ # @yield [result, operation] Access the result along with the TransportOperation object
4450
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>]
4451
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4452
+ #
4453
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>]
4454
+ #
4455
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4456
+ #
4457
+ # @example Basic example
4458
+ # require "google/cloud/oracle_database/v1"
4459
+ #
4460
+ # # Create a client object. The client can be reused for multiple calls.
4461
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4462
+ #
4463
+ # # Create a request. To set request fields, pass in keyword arguments.
4464
+ # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new
4465
+ #
4466
+ # # Call the list_exascale_db_storage_vaults method.
4467
+ # result = client.list_exascale_db_storage_vaults request
4468
+ #
4469
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4470
+ # # over elements, and API calls will be issued to fetch pages as needed.
4471
+ # result.each do |item|
4472
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.
4473
+ # p item
4474
+ # end
4475
+ #
4476
+ def list_exascale_db_storage_vaults request, options = nil
4477
+ raise ::ArgumentError, "request must be provided" if request.nil?
4478
+
4479
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest
4480
+
4481
+ # Converts hash and nil to an options object
4482
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4483
+
4484
+ # Customize the options with defaults
4485
+ call_metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h
4486
+
4487
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4488
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4489
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4490
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4491
+ transports_version_send: [:rest]
4492
+
4493
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4494
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4495
+
4496
+ options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout,
4497
+ metadata: call_metadata,
4498
+ retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy
4499
+
4500
+ options.apply_defaults timeout: @config.timeout,
4501
+ metadata: @config.metadata,
4502
+ retry_policy: @config.retry_policy
4503
+
4504
+ @oracle_database_stub.list_exascale_db_storage_vaults request, options do |result, operation|
4505
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, "exascale_db_storage_vaults", request, result, options
4506
+ yield result, operation if block_given?
4507
+ throw :response, result
4508
+ end
4509
+ rescue ::Gapic::Rest::Error => e
4510
+ raise ::Google::Cloud::Error.from_error(e)
4511
+ end
4512
+
4513
+ ##
4514
+ # Gets details of a single ExascaleDB Storage Vault.
4515
+ #
4516
+ # @overload get_exascale_db_storage_vault(request, options = nil)
4517
+ # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type
4518
+ # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash.
4519
+ #
4520
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash]
4521
+ # A request object representing the call parameters. Required. To specify no
4522
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4523
+ # @param options [::Gapic::CallOptions, ::Hash]
4524
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4525
+ #
4526
+ # @overload get_exascale_db_storage_vault(name: nil)
4527
+ # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at
4528
+ # least one keyword argument is required. To specify no parameters, or to keep all
4529
+ # the default parameter values, pass an empty Hash as a request object (see above).
4530
+ #
4531
+ # @param name [::String]
4532
+ # Required. The name of the ExascaleDbStorageVault in the following format:
4533
+ # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}.
4534
+ # @yield [result, operation] Access the result along with the TransportOperation object
4535
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault]
4536
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4537
+ #
4538
+ # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault]
4539
+ #
4540
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4541
+ #
4542
+ # @example Basic example
4543
+ # require "google/cloud/oracle_database/v1"
4544
+ #
4545
+ # # Create a client object. The client can be reused for multiple calls.
4546
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4547
+ #
4548
+ # # Create a request. To set request fields, pass in keyword arguments.
4549
+ # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new
4550
+ #
4551
+ # # Call the get_exascale_db_storage_vault method.
4552
+ # result = client.get_exascale_db_storage_vault request
4553
+ #
4554
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.
4555
+ # p result
4556
+ #
4557
+ def get_exascale_db_storage_vault request, options = nil
4558
+ raise ::ArgumentError, "request must be provided" if request.nil?
4559
+
4560
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest
4561
+
4562
+ # Converts hash and nil to an options object
4563
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4564
+
4565
+ # Customize the options with defaults
4566
+ call_metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h
4567
+
4568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4569
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4570
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4571
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4572
+ transports_version_send: [:rest]
4573
+
4574
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4575
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4576
+
4577
+ options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout,
4578
+ metadata: call_metadata,
4579
+ retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy
4580
+
4581
+ options.apply_defaults timeout: @config.timeout,
4582
+ metadata: @config.metadata,
4583
+ retry_policy: @config.retry_policy
4584
+
4585
+ @oracle_database_stub.get_exascale_db_storage_vault request, options do |result, operation|
4586
+ yield result, operation if block_given?
4587
+ end
4588
+ rescue ::Gapic::Rest::Error => e
4589
+ raise ::Google::Cloud::Error.from_error(e)
4590
+ end
4591
+
4592
+ ##
4593
+ # Creates a new ExascaleDB Storage Vault resource.
4594
+ #
4595
+ # @overload create_exascale_db_storage_vault(request, options = nil)
4596
+ # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type
4597
+ # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash.
4598
+ #
4599
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash]
4600
+ # A request object representing the call parameters. Required. To specify no
4601
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4602
+ # @param options [::Gapic::CallOptions, ::Hash]
4603
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4604
+ #
4605
+ # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil)
4606
+ # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at
4607
+ # least one keyword argument is required. To specify no parameters, or to keep all
4608
+ # the default parameter values, pass an empty Hash as a request object (see above).
4609
+ #
4610
+ # @param parent [::String]
4611
+ # Required. The value for parent of the ExascaleDbStorageVault in the
4612
+ # following format: projects/\\{project}/locations/\\{location}.
4613
+ # @param exascale_db_storage_vault_id [::String]
4614
+ # Required. The ID of the ExascaleDbStorageVault to create. This value is
4615
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
4616
+ # 63 characters in length. The value must start with a letter and end with a
4617
+ # letter or a number.
4618
+ # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash]
4619
+ # Required. The resource being created.
4620
+ # @param request_id [::String]
4621
+ # Optional. An optional request ID to identify requests. Specify a unique
4622
+ # request ID so that if you must retry your request, the server will know to
4623
+ # ignore the request if it has already been completed. The server will
4624
+ # guarantee that for at least 60 minutes since the first request.
4625
+ #
4626
+ # For example, consider a situation where you make an initial request and the
4627
+ # request times out. If you make the request again with the same request
4628
+ # ID, the server can check if original operation with the same request ID
4629
+ # was received, and if so, will ignore the second request. This prevents
4630
+ # clients from accidentally creating duplicate commitments.
4631
+ #
4632
+ # The request ID must be a valid UUID with the exception that zero UUID is
4633
+ # not supported (00000000-0000-0000-0000-000000000000).
4634
+ # @yield [result, operation] Access the result along with the TransportOperation object
4635
+ # @yieldparam result [::Gapic::Operation]
4636
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4637
+ #
4638
+ # @return [::Gapic::Operation]
4639
+ #
4640
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4641
+ #
4642
+ # @example Basic example
4643
+ # require "google/cloud/oracle_database/v1"
4644
+ #
4645
+ # # Create a client object. The client can be reused for multiple calls.
4646
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4647
+ #
4648
+ # # Create a request. To set request fields, pass in keyword arguments.
4649
+ # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new
4650
+ #
4651
+ # # Call the create_exascale_db_storage_vault method.
4652
+ # result = client.create_exascale_db_storage_vault request
4653
+ #
4654
+ # # The returned object is of type Gapic::Operation. You can use it to
4655
+ # # check the status of an operation, cancel it, or wait for results.
4656
+ # # Here is how to wait for a response.
4657
+ # result.wait_until_done! timeout: 60
4658
+ # if result.response?
4659
+ # p result.response
4660
+ # else
4661
+ # puts "No response received."
4662
+ # end
4663
+ #
4664
+ def create_exascale_db_storage_vault request, options = nil
4665
+ raise ::ArgumentError, "request must be provided" if request.nil?
4666
+
4667
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest
4668
+
4669
+ # Converts hash and nil to an options object
4670
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4671
+
4672
+ # Customize the options with defaults
4673
+ call_metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h
4674
+
4675
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4676
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4677
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4678
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4679
+ transports_version_send: [:rest]
4680
+
4681
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4682
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4683
+
4684
+ options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout,
4685
+ metadata: call_metadata,
4686
+ retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy
4687
+
4688
+ options.apply_defaults timeout: @config.timeout,
4689
+ metadata: @config.metadata,
4690
+ retry_policy: @config.retry_policy
4691
+
4692
+ @oracle_database_stub.create_exascale_db_storage_vault request, options do |result, operation|
4693
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4694
+ yield result, operation if block_given?
4695
+ throw :response, result
4696
+ end
4697
+ rescue ::Gapic::Rest::Error => e
4698
+ raise ::Google::Cloud::Error.from_error(e)
4699
+ end
4700
+
4701
+ ##
4702
+ # Deletes a single ExascaleDB Storage Vault.
4703
+ #
4704
+ # @overload delete_exascale_db_storage_vault(request, options = nil)
4705
+ # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type
4706
+ # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash.
4707
+ #
4708
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash]
4709
+ # A request object representing the call parameters. Required. To specify no
4710
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4711
+ # @param options [::Gapic::CallOptions, ::Hash]
4712
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4713
+ #
4714
+ # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil)
4715
+ # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at
4716
+ # least one keyword argument is required. To specify no parameters, or to keep all
4717
+ # the default parameter values, pass an empty Hash as a request object (see above).
4718
+ #
4719
+ # @param name [::String]
4720
+ # Required. The name of the ExascaleDbStorageVault in the following format:
4721
+ # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}.
4722
+ # @param request_id [::String]
4723
+ # Optional. An optional ID to identify the request. This value is used to
4724
+ # identify duplicate requests. If you make a request with the same request ID
4725
+ # and the original request is still in progress or completed, the server
4726
+ # ignores the second request. This prevents clients from
4727
+ # accidentally creating duplicate commitments.
4728
+ #
4729
+ # The request ID must be a valid UUID with the exception that zero UUID is
4730
+ # not supported (00000000-0000-0000-0000-000000000000).
4731
+ # @yield [result, operation] Access the result along with the TransportOperation object
4732
+ # @yieldparam result [::Gapic::Operation]
4733
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4734
+ #
4735
+ # @return [::Gapic::Operation]
4736
+ #
4737
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4738
+ #
4739
+ # @example Basic example
4740
+ # require "google/cloud/oracle_database/v1"
4741
+ #
4742
+ # # Create a client object. The client can be reused for multiple calls.
4743
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4744
+ #
4745
+ # # Create a request. To set request fields, pass in keyword arguments.
4746
+ # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new
4747
+ #
4748
+ # # Call the delete_exascale_db_storage_vault method.
4749
+ # result = client.delete_exascale_db_storage_vault request
4750
+ #
4751
+ # # The returned object is of type Gapic::Operation. You can use it to
4752
+ # # check the status of an operation, cancel it, or wait for results.
4753
+ # # Here is how to wait for a response.
4754
+ # result.wait_until_done! timeout: 60
4755
+ # if result.response?
4756
+ # p result.response
4757
+ # else
4758
+ # puts "No response received."
4759
+ # end
4760
+ #
4761
+ def delete_exascale_db_storage_vault request, options = nil
4762
+ raise ::ArgumentError, "request must be provided" if request.nil?
4763
+
4764
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest
4765
+
4766
+ # Converts hash and nil to an options object
4767
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4768
+
4769
+ # Customize the options with defaults
4770
+ call_metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h
4771
+
4772
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4773
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4774
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4775
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4776
+ transports_version_send: [:rest]
4777
+
4778
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4779
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4780
+
4781
+ options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout,
4782
+ metadata: call_metadata,
4783
+ retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy
4784
+
4785
+ options.apply_defaults timeout: @config.timeout,
4786
+ metadata: @config.metadata,
4787
+ retry_policy: @config.retry_policy
4788
+
4789
+ @oracle_database_stub.delete_exascale_db_storage_vault request, options do |result, operation|
4790
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4791
+ yield result, operation if block_given?
4792
+ throw :response, result
4793
+ end
4794
+ rescue ::Gapic::Rest::Error => e
4795
+ raise ::Google::Cloud::Error.from_error(e)
4796
+ end
4797
+
4798
+ ##
4799
+ # Lists all the DbSystemInitialStorageSizes for the given project and
4800
+ # location.
4801
+ #
4802
+ # @overload list_db_system_initial_storage_sizes(request, options = nil)
4803
+ # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type
4804
+ # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash.
4805
+ #
4806
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash]
4807
+ # A request object representing the call parameters. Required. To specify no
4808
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4809
+ # @param options [::Gapic::CallOptions, ::Hash]
4810
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4811
+ #
4812
+ # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil)
4813
+ # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at
4814
+ # least one keyword argument is required. To specify no parameters, or to keep all
4815
+ # the default parameter values, pass an empty Hash as a request object (see above).
4816
+ #
4817
+ # @param parent [::String]
4818
+ # Required. The parent value for the DbSystemInitialStorageSize resource with
4819
+ # the format: projects/\\{project}/locations/\\{location}
4820
+ # @param page_size [::Integer]
4821
+ # Optional. The maximum number of items to return.
4822
+ # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
4823
+ # returned. The maximum value is 1000; values above 1000 will be reset to
4824
+ # 1000.
4825
+ # @param page_token [::String]
4826
+ # Optional. A token identifying the requested page of results to return. All
4827
+ # fields except the filter should remain the same as in the request that
4828
+ # provided this page token.
4829
+ # @yield [result, operation] Access the result along with the TransportOperation object
4830
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>]
4831
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4832
+ #
4833
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>]
4834
+ #
4835
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4836
+ #
4837
+ # @example Basic example
4838
+ # require "google/cloud/oracle_database/v1"
4839
+ #
4840
+ # # Create a client object. The client can be reused for multiple calls.
4841
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4842
+ #
4843
+ # # Create a request. To set request fields, pass in keyword arguments.
4844
+ # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new
4845
+ #
4846
+ # # Call the list_db_system_initial_storage_sizes method.
4847
+ # result = client.list_db_system_initial_storage_sizes request
4848
+ #
4849
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4850
+ # # over elements, and API calls will be issued to fetch pages as needed.
4851
+ # result.each do |item|
4852
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize.
4853
+ # p item
4854
+ # end
4855
+ #
4856
+ def list_db_system_initial_storage_sizes request, options = nil
4857
+ raise ::ArgumentError, "request must be provided" if request.nil?
4858
+
4859
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest
4860
+
4861
+ # Converts hash and nil to an options object
4862
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4863
+
4864
+ # Customize the options with defaults
4865
+ call_metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h
4866
+
4867
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4868
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4869
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4870
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4871
+ transports_version_send: [:rest]
4872
+
4873
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4874
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4875
+
4876
+ options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout,
4877
+ metadata: call_metadata,
4878
+ retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy
4879
+
4880
+ options.apply_defaults timeout: @config.timeout,
4881
+ metadata: @config.metadata,
4882
+ retry_policy: @config.retry_policy
4883
+
4884
+ @oracle_database_stub.list_db_system_initial_storage_sizes request, options do |result, operation|
4885
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, "db_system_initial_storage_sizes", request, result, options
4886
+ yield result, operation if block_given?
4887
+ throw :response, result
4888
+ end
4889
+ rescue ::Gapic::Rest::Error => e
4890
+ raise ::Google::Cloud::Error.from_error(e)
4891
+ end
4892
+
4893
+ ##
4894
+ # Lists all the Databases for the given project, location and DbSystem.
4895
+ #
4896
+ # @overload list_databases(request, options = nil)
4897
+ # Pass arguments to `list_databases` via a request object, either of type
4898
+ # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash.
4899
+ #
4900
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash]
4901
+ # A request object representing the call parameters. Required. To specify no
4902
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4903
+ # @param options [::Gapic::CallOptions, ::Hash]
4904
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4905
+ #
4906
+ # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
4907
+ # Pass arguments to `list_databases` via keyword arguments. Note that at
4908
+ # least one keyword argument is required. To specify no parameters, or to keep all
4909
+ # the default parameter values, pass an empty Hash as a request object (see above).
4910
+ #
4911
+ # @param parent [::String]
4912
+ # Required. The parent resource name in the following format:
4913
+ # projects/\\{project}/locations/\\{region}
4914
+ # @param page_size [::Integer]
4915
+ # Optional. The maximum number of items to return.
4916
+ # If unspecified, a maximum of 50 Databases will be returned.
4917
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
4918
+ # @param page_token [::String]
4919
+ # Optional. A token identifying the requested page of results to return. All
4920
+ # fields except the filter should remain the same as in the request that
4921
+ # provided this page token.
4922
+ # @param filter [::String]
4923
+ # Optional. An expression for filtering the results of the request. list for
4924
+ # container databases is supported only with a valid dbSystem (full resource
4925
+ # name) filter in this format:
4926
+ # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
4927
+ # @yield [result, operation] Access the result along with the TransportOperation object
4928
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>]
4929
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4930
+ #
4931
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>]
4932
+ #
4933
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4934
+ #
4935
+ # @example Basic example
4936
+ # require "google/cloud/oracle_database/v1"
4937
+ #
4938
+ # # Create a client object. The client can be reused for multiple calls.
4939
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
4940
+ #
4941
+ # # Create a request. To set request fields, pass in keyword arguments.
4942
+ # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new
4943
+ #
4944
+ # # Call the list_databases method.
4945
+ # result = client.list_databases request
4946
+ #
4947
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4948
+ # # over elements, and API calls will be issued to fetch pages as needed.
4949
+ # result.each do |item|
4950
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database.
4951
+ # p item
4952
+ # end
4953
+ #
4954
+ def list_databases request, options = nil
4955
+ raise ::ArgumentError, "request must be provided" if request.nil?
4956
+
4957
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest
4958
+
4959
+ # Converts hash and nil to an options object
4960
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4961
+
4962
+ # Customize the options with defaults
4963
+ call_metadata = @config.rpcs.list_databases.metadata.to_h
4964
+
4965
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4966
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4967
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4968
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
4969
+ transports_version_send: [:rest]
4970
+
4971
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4972
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4973
+
4974
+ options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
4975
+ metadata: call_metadata,
4976
+ retry_policy: @config.rpcs.list_databases.retry_policy
4977
+
4978
+ options.apply_defaults timeout: @config.timeout,
4979
+ metadata: @config.metadata,
4980
+ retry_policy: @config.retry_policy
4981
+
4982
+ @oracle_database_stub.list_databases request, options do |result, operation|
4983
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_databases, "databases", request, result, options
4984
+ yield result, operation if block_given?
4985
+ throw :response, result
4986
+ end
4987
+ rescue ::Gapic::Rest::Error => e
4988
+ raise ::Google::Cloud::Error.from_error(e)
4989
+ end
4990
+
4991
+ ##
4992
+ # Gets details of a single Database.
4993
+ #
4994
+ # @overload get_database(request, options = nil)
4995
+ # Pass arguments to `get_database` via a request object, either of type
4996
+ # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash.
4997
+ #
4998
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash]
4999
+ # A request object representing the call parameters. Required. To specify no
5000
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5001
+ # @param options [::Gapic::CallOptions, ::Hash]
5002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5003
+ #
5004
+ # @overload get_database(name: nil)
5005
+ # Pass arguments to `get_database` via keyword arguments. Note that at
5006
+ # least one keyword argument is required. To specify no parameters, or to keep all
5007
+ # the default parameter values, pass an empty Hash as a request object (see above).
5008
+ #
5009
+ # @param name [::String]
5010
+ # Required. The name of the Database resource in the following format:
5011
+ # projects/\\{project}/locations/\\{region}/databases/\\{database}
5012
+ # @yield [result, operation] Access the result along with the TransportOperation object
5013
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::Database]
5014
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5015
+ #
5016
+ # @return [::Google::Cloud::OracleDatabase::V1::Database]
5017
+ #
5018
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5019
+ #
5020
+ # @example Basic example
5021
+ # require "google/cloud/oracle_database/v1"
5022
+ #
5023
+ # # Create a client object. The client can be reused for multiple calls.
5024
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5025
+ #
5026
+ # # Create a request. To set request fields, pass in keyword arguments.
5027
+ # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new
5028
+ #
5029
+ # # Call the get_database method.
5030
+ # result = client.get_database request
5031
+ #
5032
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database.
5033
+ # p result
5034
+ #
5035
+ def get_database request, options = nil
5036
+ raise ::ArgumentError, "request must be provided" if request.nil?
5037
+
5038
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest
5039
+
5040
+ # Converts hash and nil to an options object
5041
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5042
+
5043
+ # Customize the options with defaults
5044
+ call_metadata = @config.rpcs.get_database.metadata.to_h
5045
+
5046
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5047
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5048
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5049
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5050
+ transports_version_send: [:rest]
5051
+
5052
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5053
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5054
+
5055
+ options.apply_defaults timeout: @config.rpcs.get_database.timeout,
5056
+ metadata: call_metadata,
5057
+ retry_policy: @config.rpcs.get_database.retry_policy
5058
+
5059
+ options.apply_defaults timeout: @config.timeout,
5060
+ metadata: @config.metadata,
5061
+ retry_policy: @config.retry_policy
5062
+
5063
+ @oracle_database_stub.get_database request, options do |result, operation|
5064
+ yield result, operation if block_given?
5065
+ end
5066
+ rescue ::Gapic::Rest::Error => e
5067
+ raise ::Google::Cloud::Error.from_error(e)
5068
+ end
5069
+
5070
+ ##
5071
+ # Lists all the PluggableDatabases for the given project, location and
5072
+ # Container Database.
5073
+ #
5074
+ # @overload list_pluggable_databases(request, options = nil)
5075
+ # Pass arguments to `list_pluggable_databases` via a request object, either of type
5076
+ # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash.
5077
+ #
5078
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash]
5079
+ # A request object representing the call parameters. Required. To specify no
5080
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5081
+ # @param options [::Gapic::CallOptions, ::Hash]
5082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5083
+ #
5084
+ # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
5085
+ # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at
5086
+ # least one keyword argument is required. To specify no parameters, or to keep all
5087
+ # the default parameter values, pass an empty Hash as a request object (see above).
5088
+ #
5089
+ # @param parent [::String]
5090
+ # Required. The parent, which owns this collection of PluggableDatabases.
5091
+ # Format: projects/\\{project}/locations/\\{location}
5092
+ # @param page_size [::Integer]
5093
+ # Optional. The maximum number of PluggableDatabases to return. The service
5094
+ # may return fewer than this value.
5095
+ # @param page_token [::String]
5096
+ # Optional. A page token, received from a previous `ListPluggableDatabases`
5097
+ # call. Provide this to retrieve the subsequent page.
5098
+ #
5099
+ # When paginating, all other parameters provided to `ListPluggableDatabases`
5100
+ # must match the call that provided the page token.
5101
+ # @param filter [::String]
5102
+ # Optional. An expression for filtering the results of the request. List for
5103
+ # pluggable databases is supported only with a valid container database (full
5104
+ # resource name) filter in this format:
5105
+ # `database="projects/{project}/locations/{location}/databases/{database}"`
5106
+ # @yield [result, operation] Access the result along with the TransportOperation object
5107
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>]
5108
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5109
+ #
5110
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>]
5111
+ #
5112
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5113
+ #
5114
+ # @example Basic example
5115
+ # require "google/cloud/oracle_database/v1"
5116
+ #
5117
+ # # Create a client object. The client can be reused for multiple calls.
5118
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5119
+ #
5120
+ # # Create a request. To set request fields, pass in keyword arguments.
5121
+ # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new
5122
+ #
5123
+ # # Call the list_pluggable_databases method.
5124
+ # result = client.list_pluggable_databases request
5125
+ #
5126
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5127
+ # # over elements, and API calls will be issued to fetch pages as needed.
5128
+ # result.each do |item|
5129
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.
5130
+ # p item
5131
+ # end
5132
+ #
5133
+ def list_pluggable_databases request, options = nil
5134
+ raise ::ArgumentError, "request must be provided" if request.nil?
5135
+
5136
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest
5137
+
5138
+ # Converts hash and nil to an options object
5139
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5140
+
5141
+ # Customize the options with defaults
5142
+ call_metadata = @config.rpcs.list_pluggable_databases.metadata.to_h
5143
+
5144
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5145
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5146
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5147
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5148
+ transports_version_send: [:rest]
5149
+
5150
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5151
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5152
+
5153
+ options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout,
5154
+ metadata: call_metadata,
5155
+ retry_policy: @config.rpcs.list_pluggable_databases.retry_policy
5156
+
5157
+ options.apply_defaults timeout: @config.timeout,
5158
+ metadata: @config.metadata,
5159
+ retry_policy: @config.retry_policy
5160
+
5161
+ @oracle_database_stub.list_pluggable_databases request, options do |result, operation|
5162
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, "pluggable_databases", request, result, options
5163
+ yield result, operation if block_given?
5164
+ throw :response, result
5165
+ end
5166
+ rescue ::Gapic::Rest::Error => e
5167
+ raise ::Google::Cloud::Error.from_error(e)
5168
+ end
5169
+
5170
+ ##
5171
+ # Gets details of a single PluggableDatabase.
5172
+ #
5173
+ # @overload get_pluggable_database(request, options = nil)
5174
+ # Pass arguments to `get_pluggable_database` via a request object, either of type
5175
+ # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash.
5176
+ #
5177
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Hash]
5178
+ # A request object representing the call parameters. Required. To specify no
5179
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5180
+ # @param options [::Gapic::CallOptions, ::Hash]
5181
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5182
+ #
5183
+ # @overload get_pluggable_database(name: nil)
5184
+ # Pass arguments to `get_pluggable_database` via keyword arguments. Note that at
5185
+ # least one keyword argument is required. To specify no parameters, or to keep all
5186
+ # the default parameter values, pass an empty Hash as a request object (see above).
5187
+ #
5188
+ # @param name [::String]
5189
+ # Required. The name of the PluggableDatabase resource in the following
5190
+ # format:
5191
+ # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database}
5192
+ # @yield [result, operation] Access the result along with the TransportOperation object
5193
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::PluggableDatabase]
5194
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5195
+ #
5196
+ # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase]
5197
+ #
5198
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5199
+ #
5200
+ # @example Basic example
5201
+ # require "google/cloud/oracle_database/v1"
5202
+ #
5203
+ # # Create a client object. The client can be reused for multiple calls.
5204
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5205
+ #
5206
+ # # Create a request. To set request fields, pass in keyword arguments.
5207
+ # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new
5208
+ #
5209
+ # # Call the get_pluggable_database method.
5210
+ # result = client.get_pluggable_database request
5211
+ #
5212
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase.
5213
+ # p result
5214
+ #
5215
+ def get_pluggable_database request, options = nil
5216
+ raise ::ArgumentError, "request must be provided" if request.nil?
5217
+
5218
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest
5219
+
5220
+ # Converts hash and nil to an options object
5221
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5222
+
5223
+ # Customize the options with defaults
5224
+ call_metadata = @config.rpcs.get_pluggable_database.metadata.to_h
5225
+
5226
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5227
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5228
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5229
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5230
+ transports_version_send: [:rest]
5231
+
5232
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5233
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5234
+
5235
+ options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout,
5236
+ metadata: call_metadata,
5237
+ retry_policy: @config.rpcs.get_pluggable_database.retry_policy
5238
+
5239
+ options.apply_defaults timeout: @config.timeout,
5240
+ metadata: @config.metadata,
5241
+ retry_policy: @config.retry_policy
5242
+
5243
+ @oracle_database_stub.get_pluggable_database request, options do |result, operation|
5244
+ yield result, operation if block_given?
5245
+ end
5246
+ rescue ::Gapic::Rest::Error => e
5247
+ raise ::Google::Cloud::Error.from_error(e)
5248
+ end
5249
+
5250
+ ##
5251
+ # Lists all the DbSystems for the given project and location.
5252
+ #
5253
+ # @overload list_db_systems(request, options = nil)
5254
+ # Pass arguments to `list_db_systems` via a request object, either of type
5255
+ # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash.
5256
+ #
5257
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash]
5258
+ # A request object representing the call parameters. Required. To specify no
5259
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5260
+ # @param options [::Gapic::CallOptions, ::Hash]
5261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5262
+ #
5263
+ # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
5264
+ # Pass arguments to `list_db_systems` via keyword arguments. Note that at
5265
+ # least one keyword argument is required. To specify no parameters, or to keep all
5266
+ # the default parameter values, pass an empty Hash as a request object (see above).
5267
+ #
5268
+ # @param parent [::String]
5269
+ # Required. The parent value for DbSystems in the following format:
5270
+ # projects/\\{project}/locations/\\{location}.
5271
+ # @param page_size [::Integer]
5272
+ # Optional. The maximum number of items to return.
5273
+ # If unspecified, at most 50 DbSystems will be returned.
5274
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
5275
+ # @param page_token [::String]
5276
+ # Optional. A token identifying a page of results the server should return.
5277
+ # @param filter [::String]
5278
+ # Optional. An expression for filtering the results of the request.
5279
+ # @param order_by [::String]
5280
+ # Optional. An expression for ordering the results of the request.
5281
+ # @yield [result, operation] Access the result along with the TransportOperation object
5282
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>]
5283
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5284
+ #
5285
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>]
5286
+ #
5287
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5288
+ #
5289
+ # @example Basic example
5290
+ # require "google/cloud/oracle_database/v1"
5291
+ #
5292
+ # # Create a client object. The client can be reused for multiple calls.
5293
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5294
+ #
5295
+ # # Create a request. To set request fields, pass in keyword arguments.
5296
+ # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new
5297
+ #
5298
+ # # Call the list_db_systems method.
5299
+ # result = client.list_db_systems request
5300
+ #
5301
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5302
+ # # over elements, and API calls will be issued to fetch pages as needed.
5303
+ # result.each do |item|
5304
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem.
5305
+ # p item
5306
+ # end
5307
+ #
5308
+ def list_db_systems request, options = nil
5309
+ raise ::ArgumentError, "request must be provided" if request.nil?
5310
+
5311
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest
5312
+
5313
+ # Converts hash and nil to an options object
5314
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5315
+
5316
+ # Customize the options with defaults
5317
+ call_metadata = @config.rpcs.list_db_systems.metadata.to_h
5318
+
5319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5320
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5321
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5322
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5323
+ transports_version_send: [:rest]
5324
+
5325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5326
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5327
+
5328
+ options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout,
5329
+ metadata: call_metadata,
5330
+ retry_policy: @config.rpcs.list_db_systems.retry_policy
5331
+
5332
+ options.apply_defaults timeout: @config.timeout,
5333
+ metadata: @config.metadata,
5334
+ retry_policy: @config.retry_policy
5335
+
5336
+ @oracle_database_stub.list_db_systems request, options do |result, operation|
5337
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_systems, "db_systems", request, result, options
5338
+ yield result, operation if block_given?
5339
+ throw :response, result
5340
+ end
5341
+ rescue ::Gapic::Rest::Error => e
5342
+ raise ::Google::Cloud::Error.from_error(e)
5343
+ end
5344
+
5345
+ ##
5346
+ # Gets details of a single DbSystem.
5347
+ #
5348
+ # @overload get_db_system(request, options = nil)
5349
+ # Pass arguments to `get_db_system` via a request object, either of type
5350
+ # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash.
5351
+ #
5352
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash]
5353
+ # A request object representing the call parameters. Required. To specify no
5354
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5355
+ # @param options [::Gapic::CallOptions, ::Hash]
5356
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5357
+ #
5358
+ # @overload get_db_system(name: nil)
5359
+ # Pass arguments to `get_db_system` via keyword arguments. Note that at
5360
+ # least one keyword argument is required. To specify no parameters, or to keep all
5361
+ # the default parameter values, pass an empty Hash as a request object (see above).
5362
+ #
5363
+ # @param name [::String]
5364
+ # Required. The name of the DbSystem in the following format:
5365
+ # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}.
5366
+ # @yield [result, operation] Access the result along with the TransportOperation object
5367
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DbSystem]
5368
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5369
+ #
5370
+ # @return [::Google::Cloud::OracleDatabase::V1::DbSystem]
5371
+ #
5372
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5373
+ #
5374
+ # @example Basic example
5375
+ # require "google/cloud/oracle_database/v1"
5376
+ #
5377
+ # # Create a client object. The client can be reused for multiple calls.
5378
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5379
+ #
5380
+ # # Create a request. To set request fields, pass in keyword arguments.
5381
+ # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new
5382
+ #
5383
+ # # Call the get_db_system method.
5384
+ # result = client.get_db_system request
5385
+ #
5386
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem.
5387
+ # p result
5388
+ #
5389
+ def get_db_system request, options = nil
5390
+ raise ::ArgumentError, "request must be provided" if request.nil?
5391
+
5392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest
5393
+
5394
+ # Converts hash and nil to an options object
5395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5396
+
5397
+ # Customize the options with defaults
5398
+ call_metadata = @config.rpcs.get_db_system.metadata.to_h
5399
+
5400
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5401
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5402
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5403
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5404
+ transports_version_send: [:rest]
5405
+
5406
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5407
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5408
+
5409
+ options.apply_defaults timeout: @config.rpcs.get_db_system.timeout,
5410
+ metadata: call_metadata,
5411
+ retry_policy: @config.rpcs.get_db_system.retry_policy
5412
+
5413
+ options.apply_defaults timeout: @config.timeout,
5414
+ metadata: @config.metadata,
5415
+ retry_policy: @config.retry_policy
5416
+
5417
+ @oracle_database_stub.get_db_system request, options do |result, operation|
5418
+ yield result, operation if block_given?
5419
+ end
5420
+ rescue ::Gapic::Rest::Error => e
5421
+ raise ::Google::Cloud::Error.from_error(e)
5422
+ end
5423
+
5424
+ ##
5425
+ # Creates a new DbSystem in a given project and location.
5426
+ #
5427
+ # @overload create_db_system(request, options = nil)
5428
+ # Pass arguments to `create_db_system` via a request object, either of type
5429
+ # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash.
5430
+ #
5431
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash]
5432
+ # A request object representing the call parameters. Required. To specify no
5433
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5434
+ # @param options [::Gapic::CallOptions, ::Hash]
5435
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5436
+ #
5437
+ # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil)
5438
+ # Pass arguments to `create_db_system` via keyword arguments. Note that at
5439
+ # least one keyword argument is required. To specify no parameters, or to keep all
5440
+ # the default parameter values, pass an empty Hash as a request object (see above).
5441
+ #
5442
+ # @param parent [::String]
5443
+ # Required. The value for parent of the DbSystem in the following format:
5444
+ # projects/\\{project}/locations/\\{location}.
5445
+ # @param db_system_id [::String]
5446
+ # Required. The ID of the DbSystem to create. This value is
5447
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
5448
+ # 63 characters in length. The value must start with a letter and end with a
5449
+ # letter or a number.
5450
+ # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash]
5451
+ # Required. The resource being created.
5452
+ # @param request_id [::String]
5453
+ # Optional. An optional request ID to identify requests. Specify a unique
5454
+ # request ID so that if you must retry your request, the server will know to
5455
+ # ignore the request if it has already been completed. The server will
5456
+ # guarantee that for at least 60 minutes since the first request.
5457
+ #
5458
+ # For example, consider a situation where you make an initial request and the
5459
+ # request times out. If you make the request again with the same request
5460
+ # ID, the server can check if original operation with the same request ID
5461
+ # was received, and if so, will ignore the second request. This prevents
5462
+ # clients from accidentally creating duplicate commitments.
5463
+ #
5464
+ # The request ID must be a valid UUID with the exception that zero UUID is
5465
+ # not supported (00000000-0000-0000-0000-000000000000).
5466
+ # @yield [result, operation] Access the result along with the TransportOperation object
5467
+ # @yieldparam result [::Gapic::Operation]
5468
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5469
+ #
5470
+ # @return [::Gapic::Operation]
5471
+ #
5472
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5473
+ #
5474
+ # @example Basic example
5475
+ # require "google/cloud/oracle_database/v1"
5476
+ #
5477
+ # # Create a client object. The client can be reused for multiple calls.
5478
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5479
+ #
5480
+ # # Create a request. To set request fields, pass in keyword arguments.
5481
+ # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new
5482
+ #
5483
+ # # Call the create_db_system method.
5484
+ # result = client.create_db_system request
5485
+ #
5486
+ # # The returned object is of type Gapic::Operation. You can use it to
5487
+ # # check the status of an operation, cancel it, or wait for results.
5488
+ # # Here is how to wait for a response.
5489
+ # result.wait_until_done! timeout: 60
5490
+ # if result.response?
5491
+ # p result.response
5492
+ # else
5493
+ # puts "No response received."
5494
+ # end
5495
+ #
5496
+ def create_db_system request, options = nil
5497
+ raise ::ArgumentError, "request must be provided" if request.nil?
5498
+
5499
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest
5500
+
5501
+ # Converts hash and nil to an options object
5502
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5503
+
5504
+ # Customize the options with defaults
5505
+ call_metadata = @config.rpcs.create_db_system.metadata.to_h
5506
+
5507
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5508
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5509
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5510
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5511
+ transports_version_send: [:rest]
5512
+
5513
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5514
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5515
+
5516
+ options.apply_defaults timeout: @config.rpcs.create_db_system.timeout,
5517
+ metadata: call_metadata,
5518
+ retry_policy: @config.rpcs.create_db_system.retry_policy
5519
+
5520
+ options.apply_defaults timeout: @config.timeout,
5521
+ metadata: @config.metadata,
5522
+ retry_policy: @config.retry_policy
5523
+
5524
+ @oracle_database_stub.create_db_system request, options do |result, operation|
5525
+ result = ::Gapic::Operation.new result, @operations_client, options: options
5526
+ yield result, operation if block_given?
5527
+ throw :response, result
5528
+ end
5529
+ rescue ::Gapic::Rest::Error => e
5530
+ raise ::Google::Cloud::Error.from_error(e)
5531
+ end
5532
+
5533
+ ##
5534
+ # Deletes a single DbSystem.
5535
+ #
5536
+ # @overload delete_db_system(request, options = nil)
5537
+ # Pass arguments to `delete_db_system` via a request object, either of type
5538
+ # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash.
5539
+ #
5540
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash]
5541
+ # A request object representing the call parameters. Required. To specify no
5542
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5543
+ # @param options [::Gapic::CallOptions, ::Hash]
5544
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5545
+ #
5546
+ # @overload delete_db_system(name: nil, request_id: nil)
5547
+ # Pass arguments to `delete_db_system` via keyword arguments. Note that at
5548
+ # least one keyword argument is required. To specify no parameters, or to keep all
5549
+ # the default parameter values, pass an empty Hash as a request object (see above).
5550
+ #
5551
+ # @param name [::String]
5552
+ # Required. The name of the DbSystem in the following format:
5553
+ # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}.
5554
+ # @param request_id [::String]
5555
+ # Optional. An optional ID to identify the request. This value is used to
5556
+ # identify duplicate requests. If you make a request with the same request ID
5557
+ # and the original request is still in progress or completed, the server
5558
+ # ignores the second request. This prevents clients from
5559
+ # accidentally creating duplicate commitments.
5560
+ #
5561
+ # The request ID must be a valid UUID with the exception that zero UUID is
5562
+ # not supported (00000000-0000-0000-0000-000000000000).
5563
+ # @yield [result, operation] Access the result along with the TransportOperation object
5564
+ # @yieldparam result [::Gapic::Operation]
5565
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5566
+ #
5567
+ # @return [::Gapic::Operation]
5568
+ #
5569
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5570
+ #
5571
+ # @example Basic example
5572
+ # require "google/cloud/oracle_database/v1"
5573
+ #
5574
+ # # Create a client object. The client can be reused for multiple calls.
5575
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5576
+ #
5577
+ # # Create a request. To set request fields, pass in keyword arguments.
5578
+ # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new
5579
+ #
5580
+ # # Call the delete_db_system method.
5581
+ # result = client.delete_db_system request
5582
+ #
5583
+ # # The returned object is of type Gapic::Operation. You can use it to
5584
+ # # check the status of an operation, cancel it, or wait for results.
5585
+ # # Here is how to wait for a response.
5586
+ # result.wait_until_done! timeout: 60
5587
+ # if result.response?
5588
+ # p result.response
5589
+ # else
5590
+ # puts "No response received."
5591
+ # end
5592
+ #
5593
+ def delete_db_system request, options = nil
5594
+ raise ::ArgumentError, "request must be provided" if request.nil?
5595
+
5596
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest
5597
+
5598
+ # Converts hash and nil to an options object
5599
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5600
+
5601
+ # Customize the options with defaults
5602
+ call_metadata = @config.rpcs.delete_db_system.metadata.to_h
5603
+
5604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5605
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5606
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5607
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5608
+ transports_version_send: [:rest]
5609
+
5610
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5611
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5612
+
5613
+ options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout,
5614
+ metadata: call_metadata,
5615
+ retry_policy: @config.rpcs.delete_db_system.retry_policy
5616
+
5617
+ options.apply_defaults timeout: @config.timeout,
5618
+ metadata: @config.metadata,
5619
+ retry_policy: @config.retry_policy
5620
+
5621
+ @oracle_database_stub.delete_db_system request, options do |result, operation|
5622
+ result = ::Gapic::Operation.new result, @operations_client, options: options
5623
+ yield result, operation if block_given?
5624
+ throw :response, result
5625
+ end
5626
+ rescue ::Gapic::Rest::Error => e
5627
+ raise ::Google::Cloud::Error.from_error(e)
5628
+ end
5629
+
5630
+ ##
5631
+ # List DbVersions for the given project and location.
5632
+ #
5633
+ # @overload list_db_versions(request, options = nil)
5634
+ # Pass arguments to `list_db_versions` via a request object, either of type
5635
+ # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash.
5636
+ #
5637
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash]
5638
+ # A request object representing the call parameters. Required. To specify no
5639
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5640
+ # @param options [::Gapic::CallOptions, ::Hash]
5641
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5642
+ #
5643
+ # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
5644
+ # Pass arguments to `list_db_versions` via keyword arguments. Note that at
5645
+ # least one keyword argument is required. To specify no parameters, or to keep all
5646
+ # the default parameter values, pass an empty Hash as a request object (see above).
5647
+ #
5648
+ # @param parent [::String]
5649
+ # Required. The parent value for the DbVersion resource with the
5650
+ # format: projects/\\{project}/locations/\\{location}
5651
+ # @param page_size [::Integer]
5652
+ # Optional. The maximum number of items to return.
5653
+ # If unspecified, a maximum of 50 DbVersions will be returned.
5654
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
5655
+ # @param page_token [::String]
5656
+ # Optional. A token identifying the requested page of results to return. All
5657
+ # fields except the filter should remain the same as in the request that
5658
+ # provided this page token.
5659
+ # @param filter [::String]
5660
+ # Optional. Filter expression that matches a subset of the DbVersions to
5661
+ # show. The supported filter for dbSystem creation is `db_system_shape =
5662
+ # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no
5663
+ # filter is provided, all DbVersions will be returned.
5664
+ # @yield [result, operation] Access the result along with the TransportOperation object
5665
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
5666
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5667
+ #
5668
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
5669
+ #
5670
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5671
+ #
5672
+ # @example Basic example
5673
+ # require "google/cloud/oracle_database/v1"
5674
+ #
5675
+ # # Create a client object. The client can be reused for multiple calls.
5676
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5677
+ #
5678
+ # # Create a request. To set request fields, pass in keyword arguments.
5679
+ # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new
5680
+ #
5681
+ # # Call the list_db_versions method.
5682
+ # result = client.list_db_versions request
5683
+ #
5684
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5685
+ # # over elements, and API calls will be issued to fetch pages as needed.
5686
+ # result.each do |item|
5687
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion.
5688
+ # p item
5689
+ # end
5690
+ #
5691
+ def list_db_versions request, options = nil
5692
+ raise ::ArgumentError, "request must be provided" if request.nil?
5693
+
5694
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest
5695
+
5696
+ # Converts hash and nil to an options object
5697
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5698
+
5699
+ # Customize the options with defaults
5700
+ call_metadata = @config.rpcs.list_db_versions.metadata.to_h
5701
+
5702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5703
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5704
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5705
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5706
+ transports_version_send: [:rest]
5707
+
5708
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5709
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5710
+
5711
+ options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout,
5712
+ metadata: call_metadata,
5713
+ retry_policy: @config.rpcs.list_db_versions.retry_policy
5714
+
5715
+ options.apply_defaults timeout: @config.timeout,
5716
+ metadata: @config.metadata,
5717
+ retry_policy: @config.retry_policy
5718
+
5719
+ @oracle_database_stub.list_db_versions request, options do |result, operation|
5720
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_versions, "db_versions", request, result, options
5721
+ yield result, operation if block_given?
5722
+ throw :response, result
5723
+ end
5724
+ rescue ::Gapic::Rest::Error => e
5725
+ raise ::Google::Cloud::Error.from_error(e)
5726
+ end
5727
+
5728
+ ##
5729
+ # List DatabaseCharacterSets for the given project and location.
5730
+ #
5731
+ # @overload list_database_character_sets(request, options = nil)
5732
+ # Pass arguments to `list_database_character_sets` via a request object, either of type
5733
+ # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash.
5734
+ #
5735
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash]
5736
+ # A request object representing the call parameters. Required. To specify no
5737
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5738
+ # @param options [::Gapic::CallOptions, ::Hash]
5739
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5740
+ #
5741
+ # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil)
5742
+ # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at
5743
+ # least one keyword argument is required. To specify no parameters, or to keep all
5744
+ # the default parameter values, pass an empty Hash as a request object (see above).
5745
+ #
5746
+ # @param parent [::String]
5747
+ # Required. The parent value for DatabaseCharacterSets in the following
5748
+ # format: projects/\\{project}/locations/\\{location}.
5749
+ # @param page_size [::Integer]
5750
+ # Optional. The maximum number of DatabaseCharacterSets to return. The
5751
+ # service may return fewer than this value. If unspecified, at most 50
5752
+ # DatabaseCharacterSets will be returned. The maximum value is 1000; values
5753
+ # above 1000 will be coerced to 1000.
5754
+ # @param page_token [::String]
5755
+ # Optional. A page token, received from a previous
5756
+ # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
5757
+ # page.
5758
+ #
5759
+ # When paginating, all other parameters provided to
5760
+ # `ListDatabaseCharacterSets` must match the call that provided the page
5761
+ # token.
5762
+ # @param filter [::String]
5763
+ # Optional. An expression for filtering the results of the request. Only the
5764
+ # **character_set_type** field is supported in the following format:
5765
+ # `character_set_type="{characterSetType}"`. Accepted values include
5766
+ # `DATABASE` and `NATIONAL`.
5767
+ # @yield [result, operation] Access the result along with the TransportOperation object
5768
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
5769
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
5770
+ #
5771
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
5772
+ #
5773
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
5774
+ #
5775
+ # @example Basic example
5776
+ # require "google/cloud/oracle_database/v1"
5777
+ #
5778
+ # # Create a client object. The client can be reused for multiple calls.
5779
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
5780
+ #
5781
+ # # Create a request. To set request fields, pass in keyword arguments.
5782
+ # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new
5783
+ #
5784
+ # # Call the list_database_character_sets method.
5785
+ # result = client.list_database_character_sets request
5786
+ #
5787
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5788
+ # # over elements, and API calls will be issued to fetch pages as needed.
5789
+ # result.each do |item|
5790
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet.
5791
+ # p item
5792
+ # end
5793
+ #
5794
+ def list_database_character_sets request, options = nil
5795
+ raise ::ArgumentError, "request must be provided" if request.nil?
5796
+
5797
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest
5798
+
5799
+ # Converts hash and nil to an options object
5800
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5801
+
5802
+ # Customize the options with defaults
5803
+ call_metadata = @config.rpcs.list_database_character_sets.metadata.to_h
5804
+
5805
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5806
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5807
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5808
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
5809
+ transports_version_send: [:rest]
5810
+
5811
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5812
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5813
+
5814
+ options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout,
5815
+ metadata: call_metadata,
5816
+ retry_policy: @config.rpcs.list_database_character_sets.retry_policy
5817
+
5818
+ options.apply_defaults timeout: @config.timeout,
5819
+ metadata: @config.metadata,
5820
+ retry_policy: @config.retry_policy
5821
+
5822
+ @oracle_database_stub.list_database_character_sets request, options do |result, operation|
5823
+ result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, "database_character_sets", request, result, options
5824
+ yield result, operation if block_given?
5825
+ throw :response, result
5826
+ end
5827
+ rescue ::Gapic::Rest::Error => e
5828
+ raise ::Google::Cloud::Error.from_error(e)
5829
+ end
5830
+
5831
+ ##
5832
+ # Configuration class for the OracleDatabase REST API.
5833
+ #
5834
+ # This class represents the configuration for OracleDatabase REST,
5835
+ # providing control over timeouts, retry behavior, logging, transport
5836
+ # parameters, and other low-level controls. Certain parameters can also be
5837
+ # applied individually to specific RPCs. See
5838
+ # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs}
5839
+ # for a list of RPCs that can be configured independently.
5840
+ #
5841
+ # Configuration can be applied globally to all clients, or to a single client
5842
+ # on construction.
5843
+ #
5844
+ # @example
5845
+ #
5846
+ # # Modify the global config, setting the timeout for
5847
+ # # list_cloud_exadata_infrastructures to 20 seconds,
5848
+ # # and all remaining timeouts to 10 seconds.
5849
+ # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config|
5850
+ # config.timeout = 10.0
5851
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
5852
+ # end
5853
+ #
5854
+ # # Apply the above configuration only to a new client.
5855
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config|
5856
+ # config.timeout = 10.0
5857
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
5858
+ # end
5859
+ #
5860
+ # @!attribute [rw] endpoint
5861
+ # A custom service endpoint, as a hostname or hostname:port. The default is
5862
+ # nil, indicating to use the default endpoint in the current universe domain.
5863
+ # @return [::String,nil]
5864
+ # @!attribute [rw] credentials
5865
+ # Credentials to send with calls. You may provide any of the following types:
5866
+ # * (`String`) The path to a service account key file in JSON format
5867
+ # * (`Hash`) A service account key as a Hash
5868
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
5869
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
5870
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
5871
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
5872
+ # * (`nil`) indicating no credentials
5873
+ #
5874
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
5875
+ # external source for authentication to Google Cloud, you must validate it before
5876
+ # providing it to a Google API client library. Providing an unvalidated credential
5877
+ # configuration to Google APIs can compromise the security of your systems and data.
5878
+ # For more information, refer to [Validate credential configurations from external
5879
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
5880
+ # @return [::Object]
5881
+ # @!attribute [rw] scope
5882
+ # The OAuth scopes
5883
+ # @return [::Array<::String>]
5884
+ # @!attribute [rw] lib_name
5885
+ # The library name as recorded in instrumentation and logging
5886
+ # @return [::String]
5887
+ # @!attribute [rw] lib_version
5888
+ # The library version as recorded in instrumentation and logging
2655
5889
  # @return [::String]
2656
5890
  # @!attribute [rw] timeout
2657
5891
  # The call timeout in seconds.
@@ -2808,6 +6042,11 @@ module Google
2808
6042
  #
2809
6043
  attr_reader :list_gi_versions
2810
6044
  ##
6045
+ # RPC-specific configuration for `list_minor_versions`
6046
+ # @return [::Gapic::Config::Method]
6047
+ #
6048
+ attr_reader :list_minor_versions
6049
+ ##
2811
6050
  # RPC-specific configuration for `list_db_system_shapes`
2812
6051
  # @return [::Gapic::Config::Method]
2813
6052
  #
@@ -2828,6 +6067,11 @@ module Google
2828
6067
  #
2829
6068
  attr_reader :create_autonomous_database
2830
6069
  ##
6070
+ # RPC-specific configuration for `update_autonomous_database`
6071
+ # @return [::Gapic::Config::Method]
6072
+ #
6073
+ attr_reader :update_autonomous_database
6074
+ ##
2831
6075
  # RPC-specific configuration for `delete_autonomous_database`
2832
6076
  # @return [::Gapic::Config::Method]
2833
6077
  #
@@ -2872,6 +6116,161 @@ module Google
2872
6116
  # @return [::Gapic::Config::Method]
2873
6117
  #
2874
6118
  attr_reader :restart_autonomous_database
6119
+ ##
6120
+ # RPC-specific configuration for `switchover_autonomous_database`
6121
+ # @return [::Gapic::Config::Method]
6122
+ #
6123
+ attr_reader :switchover_autonomous_database
6124
+ ##
6125
+ # RPC-specific configuration for `failover_autonomous_database`
6126
+ # @return [::Gapic::Config::Method]
6127
+ #
6128
+ attr_reader :failover_autonomous_database
6129
+ ##
6130
+ # RPC-specific configuration for `list_odb_networks`
6131
+ # @return [::Gapic::Config::Method]
6132
+ #
6133
+ attr_reader :list_odb_networks
6134
+ ##
6135
+ # RPC-specific configuration for `get_odb_network`
6136
+ # @return [::Gapic::Config::Method]
6137
+ #
6138
+ attr_reader :get_odb_network
6139
+ ##
6140
+ # RPC-specific configuration for `create_odb_network`
6141
+ # @return [::Gapic::Config::Method]
6142
+ #
6143
+ attr_reader :create_odb_network
6144
+ ##
6145
+ # RPC-specific configuration for `delete_odb_network`
6146
+ # @return [::Gapic::Config::Method]
6147
+ #
6148
+ attr_reader :delete_odb_network
6149
+ ##
6150
+ # RPC-specific configuration for `list_odb_subnets`
6151
+ # @return [::Gapic::Config::Method]
6152
+ #
6153
+ attr_reader :list_odb_subnets
6154
+ ##
6155
+ # RPC-specific configuration for `get_odb_subnet`
6156
+ # @return [::Gapic::Config::Method]
6157
+ #
6158
+ attr_reader :get_odb_subnet
6159
+ ##
6160
+ # RPC-specific configuration for `create_odb_subnet`
6161
+ # @return [::Gapic::Config::Method]
6162
+ #
6163
+ attr_reader :create_odb_subnet
6164
+ ##
6165
+ # RPC-specific configuration for `delete_odb_subnet`
6166
+ # @return [::Gapic::Config::Method]
6167
+ #
6168
+ attr_reader :delete_odb_subnet
6169
+ ##
6170
+ # RPC-specific configuration for `list_exadb_vm_clusters`
6171
+ # @return [::Gapic::Config::Method]
6172
+ #
6173
+ attr_reader :list_exadb_vm_clusters
6174
+ ##
6175
+ # RPC-specific configuration for `get_exadb_vm_cluster`
6176
+ # @return [::Gapic::Config::Method]
6177
+ #
6178
+ attr_reader :get_exadb_vm_cluster
6179
+ ##
6180
+ # RPC-specific configuration for `create_exadb_vm_cluster`
6181
+ # @return [::Gapic::Config::Method]
6182
+ #
6183
+ attr_reader :create_exadb_vm_cluster
6184
+ ##
6185
+ # RPC-specific configuration for `delete_exadb_vm_cluster`
6186
+ # @return [::Gapic::Config::Method]
6187
+ #
6188
+ attr_reader :delete_exadb_vm_cluster
6189
+ ##
6190
+ # RPC-specific configuration for `update_exadb_vm_cluster`
6191
+ # @return [::Gapic::Config::Method]
6192
+ #
6193
+ attr_reader :update_exadb_vm_cluster
6194
+ ##
6195
+ # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster`
6196
+ # @return [::Gapic::Config::Method]
6197
+ #
6198
+ attr_reader :remove_virtual_machine_exadb_vm_cluster
6199
+ ##
6200
+ # RPC-specific configuration for `list_exascale_db_storage_vaults`
6201
+ # @return [::Gapic::Config::Method]
6202
+ #
6203
+ attr_reader :list_exascale_db_storage_vaults
6204
+ ##
6205
+ # RPC-specific configuration for `get_exascale_db_storage_vault`
6206
+ # @return [::Gapic::Config::Method]
6207
+ #
6208
+ attr_reader :get_exascale_db_storage_vault
6209
+ ##
6210
+ # RPC-specific configuration for `create_exascale_db_storage_vault`
6211
+ # @return [::Gapic::Config::Method]
6212
+ #
6213
+ attr_reader :create_exascale_db_storage_vault
6214
+ ##
6215
+ # RPC-specific configuration for `delete_exascale_db_storage_vault`
6216
+ # @return [::Gapic::Config::Method]
6217
+ #
6218
+ attr_reader :delete_exascale_db_storage_vault
6219
+ ##
6220
+ # RPC-specific configuration for `list_db_system_initial_storage_sizes`
6221
+ # @return [::Gapic::Config::Method]
6222
+ #
6223
+ attr_reader :list_db_system_initial_storage_sizes
6224
+ ##
6225
+ # RPC-specific configuration for `list_databases`
6226
+ # @return [::Gapic::Config::Method]
6227
+ #
6228
+ attr_reader :list_databases
6229
+ ##
6230
+ # RPC-specific configuration for `get_database`
6231
+ # @return [::Gapic::Config::Method]
6232
+ #
6233
+ attr_reader :get_database
6234
+ ##
6235
+ # RPC-specific configuration for `list_pluggable_databases`
6236
+ # @return [::Gapic::Config::Method]
6237
+ #
6238
+ attr_reader :list_pluggable_databases
6239
+ ##
6240
+ # RPC-specific configuration for `get_pluggable_database`
6241
+ # @return [::Gapic::Config::Method]
6242
+ #
6243
+ attr_reader :get_pluggable_database
6244
+ ##
6245
+ # RPC-specific configuration for `list_db_systems`
6246
+ # @return [::Gapic::Config::Method]
6247
+ #
6248
+ attr_reader :list_db_systems
6249
+ ##
6250
+ # RPC-specific configuration for `get_db_system`
6251
+ # @return [::Gapic::Config::Method]
6252
+ #
6253
+ attr_reader :get_db_system
6254
+ ##
6255
+ # RPC-specific configuration for `create_db_system`
6256
+ # @return [::Gapic::Config::Method]
6257
+ #
6258
+ attr_reader :create_db_system
6259
+ ##
6260
+ # RPC-specific configuration for `delete_db_system`
6261
+ # @return [::Gapic::Config::Method]
6262
+ #
6263
+ attr_reader :delete_db_system
6264
+ ##
6265
+ # RPC-specific configuration for `list_db_versions`
6266
+ # @return [::Gapic::Config::Method]
6267
+ #
6268
+ attr_reader :list_db_versions
6269
+ ##
6270
+ # RPC-specific configuration for `list_database_character_sets`
6271
+ # @return [::Gapic::Config::Method]
6272
+ #
6273
+ attr_reader :list_database_character_sets
2875
6274
 
2876
6275
  # @private
2877
6276
  def initialize parent_rpcs = nil
@@ -2899,6 +6298,8 @@ module Google
2899
6298
  @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config
2900
6299
  list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions
2901
6300
  @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config
6301
+ list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions
6302
+ @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config
2902
6303
  list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes
2903
6304
  @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config
2904
6305
  list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases
@@ -2907,6 +6308,8 @@ module Google
2907
6308
  @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config
2908
6309
  create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database
2909
6310
  @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config
6311
+ update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database
6312
+ @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config
2910
6313
  delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database
2911
6314
  @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config
2912
6315
  restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database
@@ -2925,6 +6328,68 @@ module Google
2925
6328
  @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config
2926
6329
  restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database
2927
6330
  @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config
6331
+ switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database
6332
+ @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config
6333
+ failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database
6334
+ @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config
6335
+ list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks
6336
+ @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config
6337
+ get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network
6338
+ @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config
6339
+ create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network
6340
+ @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config
6341
+ delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network
6342
+ @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config
6343
+ list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets
6344
+ @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config
6345
+ get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet
6346
+ @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config
6347
+ create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet
6348
+ @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config
6349
+ delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet
6350
+ @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config
6351
+ list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters
6352
+ @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config
6353
+ get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster
6354
+ @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config
6355
+ create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster
6356
+ @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config
6357
+ delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster
6358
+ @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config
6359
+ update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster
6360
+ @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config
6361
+ remove_virtual_machine_exadb_vm_cluster_config = parent_rpcs.remove_virtual_machine_exadb_vm_cluster if parent_rpcs.respond_to? :remove_virtual_machine_exadb_vm_cluster
6362
+ @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config
6363
+ list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults
6364
+ @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config
6365
+ get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault
6366
+ @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config
6367
+ create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault
6368
+ @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config
6369
+ delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault
6370
+ @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config
6371
+ list_db_system_initial_storage_sizes_config = parent_rpcs.list_db_system_initial_storage_sizes if parent_rpcs.respond_to? :list_db_system_initial_storage_sizes
6372
+ @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config
6373
+ list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
6374
+ @list_databases = ::Gapic::Config::Method.new list_databases_config
6375
+ get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database
6376
+ @get_database = ::Gapic::Config::Method.new get_database_config
6377
+ list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases
6378
+ @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config
6379
+ get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database
6380
+ @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config
6381
+ list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems
6382
+ @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config
6383
+ get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system
6384
+ @get_db_system = ::Gapic::Config::Method.new get_db_system_config
6385
+ create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system
6386
+ @create_db_system = ::Gapic::Config::Method.new create_db_system_config
6387
+ delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system
6388
+ @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config
6389
+ list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions
6390
+ @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config
6391
+ list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets
6392
+ @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config
2928
6393
 
2929
6394
  yield self if block_given?
2930
6395
  end