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
@@ -75,72 +75,162 @@ module Google
75
75
 
76
76
  default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0
77
77
  default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = {
78
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
78
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
79
79
  }
80
80
 
81
81
  default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0
82
82
  default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = {
83
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
83
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
84
84
  }
85
85
 
86
86
  default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0
87
87
  default_config.rpcs.list_cloud_vm_clusters.retry_policy = {
88
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
88
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
89
89
  }
90
90
 
91
91
  default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0
92
92
  default_config.rpcs.get_cloud_vm_cluster.retry_policy = {
93
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
93
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
94
94
  }
95
95
 
96
96
  default_config.rpcs.list_entitlements.timeout = 60.0
97
97
  default_config.rpcs.list_entitlements.retry_policy = {
98
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
98
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
99
99
  }
100
100
 
101
101
  default_config.rpcs.list_db_servers.timeout = 60.0
102
102
  default_config.rpcs.list_db_servers.retry_policy = {
103
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
103
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
104
104
  }
105
105
 
106
106
  default_config.rpcs.list_db_nodes.timeout = 60.0
107
107
  default_config.rpcs.list_db_nodes.retry_policy = {
108
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
108
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
109
109
  }
110
110
 
111
111
  default_config.rpcs.list_gi_versions.timeout = 60.0
112
112
  default_config.rpcs.list_gi_versions.retry_policy = {
113
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
113
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
114
+ }
115
+
116
+ default_config.rpcs.list_minor_versions.timeout = 60.0
117
+ default_config.rpcs.list_minor_versions.retry_policy = {
118
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
114
119
  }
115
120
 
116
121
  default_config.rpcs.list_db_system_shapes.timeout = 60.0
117
122
  default_config.rpcs.list_db_system_shapes.retry_policy = {
118
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
123
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
119
124
  }
120
125
 
121
126
  default_config.rpcs.list_autonomous_databases.timeout = 60.0
122
127
  default_config.rpcs.list_autonomous_databases.retry_policy = {
123
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
128
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
124
129
  }
125
130
 
126
131
  default_config.rpcs.get_autonomous_database.timeout = 60.0
127
132
  default_config.rpcs.get_autonomous_database.retry_policy = {
128
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
133
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
129
134
  }
130
135
 
131
136
  default_config.rpcs.list_autonomous_db_versions.timeout = 60.0
132
137
  default_config.rpcs.list_autonomous_db_versions.retry_policy = {
133
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
138
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
134
139
  }
135
140
 
136
141
  default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0
137
142
  default_config.rpcs.list_autonomous_database_character_sets.retry_policy = {
138
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
143
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
139
144
  }
140
145
 
141
146
  default_config.rpcs.list_autonomous_database_backups.timeout = 60.0
142
147
  default_config.rpcs.list_autonomous_database_backups.retry_policy = {
143
- initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [8, 14, 13, 4]
148
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
149
+ }
150
+
151
+ default_config.rpcs.list_odb_networks.timeout = 60.0
152
+ default_config.rpcs.list_odb_networks.retry_policy = {
153
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
154
+ }
155
+
156
+ default_config.rpcs.get_odb_network.timeout = 60.0
157
+ default_config.rpcs.get_odb_network.retry_policy = {
158
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
159
+ }
160
+
161
+ default_config.rpcs.list_odb_subnets.timeout = 60.0
162
+ default_config.rpcs.list_odb_subnets.retry_policy = {
163
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
164
+ }
165
+
166
+ default_config.rpcs.get_odb_subnet.timeout = 60.0
167
+ default_config.rpcs.get_odb_subnet.retry_policy = {
168
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
169
+ }
170
+
171
+ default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0
172
+ default_config.rpcs.list_exadb_vm_clusters.retry_policy = {
173
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
174
+ }
175
+
176
+ default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0
177
+ default_config.rpcs.get_exadb_vm_cluster.retry_policy = {
178
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
179
+ }
180
+
181
+ default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0
182
+ default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = {
183
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
184
+ }
185
+
186
+ default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0
187
+ default_config.rpcs.get_exascale_db_storage_vault.retry_policy = {
188
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
189
+ }
190
+
191
+ default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0
192
+ default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = {
193
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
194
+ }
195
+
196
+ default_config.rpcs.list_databases.timeout = 60.0
197
+ default_config.rpcs.list_databases.retry_policy = {
198
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
199
+ }
200
+
201
+ default_config.rpcs.get_database.timeout = 60.0
202
+ default_config.rpcs.get_database.retry_policy = {
203
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
204
+ }
205
+
206
+ default_config.rpcs.list_pluggable_databases.timeout = 60.0
207
+ default_config.rpcs.list_pluggable_databases.retry_policy = {
208
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
209
+ }
210
+
211
+ default_config.rpcs.get_pluggable_database.timeout = 60.0
212
+ default_config.rpcs.get_pluggable_database.retry_policy = {
213
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
214
+ }
215
+
216
+ default_config.rpcs.list_db_systems.timeout = 60.0
217
+ default_config.rpcs.list_db_systems.retry_policy = {
218
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
219
+ }
220
+
221
+ default_config.rpcs.get_db_system.timeout = 60.0
222
+ default_config.rpcs.get_db_system.retry_policy = {
223
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
224
+ }
225
+
226
+ default_config.rpcs.list_db_versions.timeout = 60.0
227
+ default_config.rpcs.list_db_versions.retry_policy = {
228
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
229
+ }
230
+
231
+ default_config.rpcs.list_database_character_sets.timeout = 60.0
232
+ default_config.rpcs.list_database_character_sets.retry_policy = {
233
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
144
234
  }
145
235
 
146
236
  default_config
@@ -298,7 +388,7 @@ module Google
298
388
  # @param options [::Gapic::CallOptions, ::Hash]
299
389
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
300
390
  #
301
- # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil)
391
+ # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
302
392
  # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at
303
393
  # least one keyword argument is required. To specify no parameters, or to keep all
304
394
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -312,6 +402,10 @@ module Google
312
402
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
313
403
  # @param page_token [::String]
314
404
  # Optional. A token identifying a page of results the server should return.
405
+ # @param filter [::String]
406
+ # Optional. An expression for filtering the results of the request.
407
+ # @param order_by [::String]
408
+ # Optional. An expression for ordering the results of the request.
315
409
  #
316
410
  # @yield [response, operation] Access the result along with the RPC operation
317
411
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>]
@@ -1312,6 +1406,7 @@ module Google
1312
1406
  # @param parent [::String]
1313
1407
  # Required. The parent value for database node in the following format:
1314
1408
  # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}.
1409
+ # .
1315
1410
  # @param page_size [::Integer]
1316
1411
  # Optional. The maximum number of items to return.
1317
1412
  # If unspecified, at most 50 db nodes will be returned.
@@ -1403,7 +1498,7 @@ module Google
1403
1498
  # @param options [::Gapic::CallOptions, ::Hash]
1404
1499
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1405
1500
  #
1406
- # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil)
1501
+ # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
1407
1502
  # Pass arguments to `list_gi_versions` via keyword arguments. Note that at
1408
1503
  # least one keyword argument is required. To specify no parameters, or to keep all
1409
1504
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1418,6 +1513,10 @@ module Google
1418
1513
  # reset to 1000.
1419
1514
  # @param page_token [::String]
1420
1515
  # Optional. A token identifying a page of results the server should return.
1516
+ # @param filter [::String]
1517
+ # Optional. An expression for filtering the results of the request. Only the
1518
+ # shape, gcp_oracle_zone and gi_version fields are supported in this format:
1519
+ # `shape="{shape}"`.
1421
1520
  #
1422
1521
  # @yield [response, operation] Access the result along with the RPC operation
1423
1522
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
@@ -1489,6 +1588,112 @@ module Google
1489
1588
  raise ::Google::Cloud::Error.from_error(e)
1490
1589
  end
1491
1590
 
1591
+ ##
1592
+ # Lists all the valid minor versions for the given
1593
+ # project, location, gi version and shape family.
1594
+ #
1595
+ # @overload list_minor_versions(request, options = nil)
1596
+ # Pass arguments to `list_minor_versions` via a request object, either of type
1597
+ # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash.
1598
+ #
1599
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash]
1600
+ # A request object representing the call parameters. Required. To specify no
1601
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1602
+ # @param options [::Gapic::CallOptions, ::Hash]
1603
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1604
+ #
1605
+ # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
1606
+ # Pass arguments to `list_minor_versions` via keyword arguments. Note that at
1607
+ # least one keyword argument is required. To specify no parameters, or to keep all
1608
+ # the default parameter values, pass an empty Hash as a request object (see above).
1609
+ #
1610
+ # @param parent [::String]
1611
+ # Required. The parent value for the MinorVersion resource with the format:
1612
+ # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version}
1613
+ # @param page_size [::Integer]
1614
+ # Optional. The maximum number of items to return.
1615
+ # If unspecified, a maximum of 50 System Versions will be returned.
1616
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
1617
+ # @param page_token [::String]
1618
+ # Optional. A token identifying the requested page of results to return. All
1619
+ # fields except the filter should remain the same as in the request that
1620
+ # provided this page token.
1621
+ # @param filter [::String]
1622
+ # Optional. An expression for filtering the results of the request.
1623
+ # Only shapeFamily and gcp_oracle_zone_id are supported in this format:
1624
+ # `shape_family="{shapeFamily}" AND
1625
+ # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`.
1626
+ #
1627
+ # @yield [response, operation] Access the result along with the RPC operation
1628
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>]
1629
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1630
+ #
1631
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>]
1632
+ #
1633
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1634
+ #
1635
+ # @example Basic example
1636
+ # require "google/cloud/oracle_database/v1"
1637
+ #
1638
+ # # Create a client object. The client can be reused for multiple calls.
1639
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
1640
+ #
1641
+ # # Create a request. To set request fields, pass in keyword arguments.
1642
+ # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new
1643
+ #
1644
+ # # Call the list_minor_versions method.
1645
+ # result = client.list_minor_versions request
1646
+ #
1647
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1648
+ # # over elements, and API calls will be issued to fetch pages as needed.
1649
+ # result.each do |item|
1650
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion.
1651
+ # p item
1652
+ # end
1653
+ #
1654
+ def list_minor_versions request, options = nil
1655
+ raise ::ArgumentError, "request must be provided" if request.nil?
1656
+
1657
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest
1658
+
1659
+ # Converts hash and nil to an options object
1660
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1661
+
1662
+ # Customize the options with defaults
1663
+ metadata = @config.rpcs.list_minor_versions.metadata.to_h
1664
+
1665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1666
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1667
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1668
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
1669
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1670
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1671
+
1672
+ header_params = {}
1673
+ if request.parent
1674
+ header_params["parent"] = request.parent
1675
+ end
1676
+
1677
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1678
+ metadata[:"x-goog-request-params"] ||= request_params_header
1679
+
1680
+ options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout,
1681
+ metadata: metadata,
1682
+ retry_policy: @config.rpcs.list_minor_versions.retry_policy
1683
+
1684
+ options.apply_defaults timeout: @config.timeout,
1685
+ metadata: @config.metadata,
1686
+ retry_policy: @config.retry_policy
1687
+
1688
+ @oracle_database_stub.call_rpc :list_minor_versions, request, options: options do |response, operation|
1689
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, request, response, operation, options
1690
+ yield response, operation if block_given?
1691
+ throw :response, response
1692
+ end
1693
+ rescue ::GRPC::BadStatus => e
1694
+ raise ::Google::Cloud::Error.from_error(e)
1695
+ end
1696
+
1492
1697
  ##
1493
1698
  # Lists the database system shapes available for the project and location.
1494
1699
  #
@@ -1502,7 +1707,7 @@ module Google
1502
1707
  # @param options [::Gapic::CallOptions, ::Hash]
1503
1708
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1504
1709
  #
1505
- # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil)
1710
+ # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil)
1506
1711
  # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at
1507
1712
  # least one keyword argument is required. To specify no parameters, or to keep all
1508
1713
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1516,6 +1721,10 @@ module Google
1516
1721
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
1517
1722
  # @param page_token [::String]
1518
1723
  # Optional. A token identifying a page of results the server should return.
1724
+ # @param filter [::String]
1725
+ # Optional. An expression for filtering the results of the request. Only the
1726
+ # gcp_oracle_zone_id field is supported in this format:
1727
+ # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1519
1728
  #
1520
1729
  # @yield [response, operation] Access the result along with the RPC operation
1521
1730
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
@@ -1886,6 +2095,115 @@ module Google
1886
2095
  raise ::Google::Cloud::Error.from_error(e)
1887
2096
  end
1888
2097
 
2098
+ ##
2099
+ # Updates the parameters of a single Autonomous Database.
2100
+ #
2101
+ # @overload update_autonomous_database(request, options = nil)
2102
+ # Pass arguments to `update_autonomous_database` via a request object, either of type
2103
+ # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash.
2104
+ #
2105
+ # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash]
2106
+ # A request object representing the call parameters. Required. To specify no
2107
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2108
+ # @param options [::Gapic::CallOptions, ::Hash]
2109
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2110
+ #
2111
+ # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil)
2112
+ # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at
2113
+ # least one keyword argument is required. To specify no parameters, or to keep all
2114
+ # the default parameter values, pass an empty Hash as a request object (see above).
2115
+ #
2116
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2117
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2118
+ # Exadata resource by the update. The fields specified in the update_mask are
2119
+ # relative to the resource, not the full request. A field will be overwritten
2120
+ # if it is in the mask. If the user does not provide a mask then all fields
2121
+ # will be overwritten.
2122
+ # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash]
2123
+ # Required. The resource being updated
2124
+ # @param request_id [::String]
2125
+ # Optional. An optional ID to identify the request. This value is used to
2126
+ # identify duplicate requests. If you make a request with the same request ID
2127
+ # and the original request is still in progress or completed, the server
2128
+ # ignores the second request. This prevents clients from
2129
+ # accidentally creating duplicate commitments.
2130
+ #
2131
+ # The request ID must be a valid UUID with the exception that zero UUID is
2132
+ # not supported (00000000-0000-0000-0000-000000000000).
2133
+ #
2134
+ # @yield [response, operation] Access the result along with the RPC operation
2135
+ # @yieldparam response [::Gapic::Operation]
2136
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2137
+ #
2138
+ # @return [::Gapic::Operation]
2139
+ #
2140
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2141
+ #
2142
+ # @example Basic example
2143
+ # require "google/cloud/oracle_database/v1"
2144
+ #
2145
+ # # Create a client object. The client can be reused for multiple calls.
2146
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
2147
+ #
2148
+ # # Create a request. To set request fields, pass in keyword arguments.
2149
+ # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new
2150
+ #
2151
+ # # Call the update_autonomous_database method.
2152
+ # result = client.update_autonomous_database request
2153
+ #
2154
+ # # The returned object is of type Gapic::Operation. You can use it to
2155
+ # # check the status of an operation, cancel it, or wait for results.
2156
+ # # Here is how to wait for a response.
2157
+ # result.wait_until_done! timeout: 60
2158
+ # if result.response?
2159
+ # p result.response
2160
+ # else
2161
+ # puts "No response received."
2162
+ # end
2163
+ #
2164
+ def update_autonomous_database request, options = nil
2165
+ raise ::ArgumentError, "request must be provided" if request.nil?
2166
+
2167
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest
2168
+
2169
+ # Converts hash and nil to an options object
2170
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2171
+
2172
+ # Customize the options with defaults
2173
+ metadata = @config.rpcs.update_autonomous_database.metadata.to_h
2174
+
2175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2176
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2177
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2178
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
2179
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2180
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2181
+
2182
+ header_params = {}
2183
+ if request.autonomous_database&.name
2184
+ header_params["autonomous_database.name"] = request.autonomous_database.name
2185
+ end
2186
+
2187
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2188
+ metadata[:"x-goog-request-params"] ||= request_params_header
2189
+
2190
+ options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout,
2191
+ metadata: metadata,
2192
+ retry_policy: @config.rpcs.update_autonomous_database.retry_policy
2193
+
2194
+ options.apply_defaults timeout: @config.timeout,
2195
+ metadata: @config.metadata,
2196
+ retry_policy: @config.retry_policy
2197
+
2198
+ @oracle_database_stub.call_rpc :update_autonomous_database, request, options: options do |response, operation|
2199
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2200
+ yield response, operation if block_given?
2201
+ throw :response, response
2202
+ end
2203
+ rescue ::GRPC::BadStatus => e
2204
+ raise ::Google::Cloud::Error.from_error(e)
2205
+ end
2206
+
1889
2207
  ##
1890
2208
  # Deletes a single Autonomous Database.
1891
2209
  #
@@ -2776,52 +3094,3199 @@ module Google
2776
3094
  end
2777
3095
 
2778
3096
  ##
2779
- # Configuration class for the OracleDatabase API.
3097
+ # Initiates a switchover of specified autonomous database to the associated
3098
+ # peer database.
2780
3099
  #
2781
- # This class represents the configuration for OracleDatabase,
2782
- # providing control over timeouts, retry behavior, logging, transport
2783
- # parameters, and other low-level controls. Certain parameters can also be
2784
- # applied individually to specific RPCs. See
2785
- # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs}
2786
- # for a list of RPCs that can be configured independently.
3100
+ # @overload switchover_autonomous_database(request, options = nil)
3101
+ # Pass arguments to `switchover_autonomous_database` via a request object, either of type
3102
+ # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash.
2787
3103
  #
2788
- # Configuration can be applied globally to all clients, or to a single client
2789
- # on construction.
3104
+ # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash]
3105
+ # A request object representing the call parameters. Required. To specify no
3106
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3107
+ # @param options [::Gapic::CallOptions, ::Hash]
3108
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2790
3109
  #
2791
- # @example
3110
+ # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil)
3111
+ # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at
3112
+ # least one keyword argument is required. To specify no parameters, or to keep all
3113
+ # the default parameter values, pass an empty Hash as a request object (see above).
2792
3114
  #
2793
- # # Modify the global config, setting the timeout for
2794
- # # list_cloud_exadata_infrastructures to 20 seconds,
2795
- # # and all remaining timeouts to 10 seconds.
2796
- # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config|
2797
- # config.timeout = 10.0
2798
- # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2799
- # end
3115
+ # @param name [::String]
3116
+ # Required. The name of the Autonomous Database in the following format:
3117
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
3118
+ # @param peer_autonomous_database [::String]
3119
+ # Required. The peer database name to switch over to.
2800
3120
  #
2801
- # # Apply the above configuration only to a new client.
2802
- # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config|
2803
- # config.timeout = 10.0
2804
- # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
2805
- # end
3121
+ # @yield [response, operation] Access the result along with the RPC operation
3122
+ # @yieldparam response [::Gapic::Operation]
3123
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2806
3124
  #
2807
- # @!attribute [rw] endpoint
2808
- # A custom service endpoint, as a hostname or hostname:port. The default is
2809
- # nil, indicating to use the default endpoint in the current universe domain.
2810
- # @return [::String,nil]
2811
- # @!attribute [rw] credentials
2812
- # Credentials to send with calls. You may provide any of the following types:
2813
- # * (`String`) The path to a service account key file in JSON format
2814
- # * (`Hash`) A service account key as a Hash
2815
- # * (`Google::Auth::Credentials`) A googleauth credentials object
2816
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2817
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2818
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2819
- # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2820
- # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2821
- # * (`nil`) indicating no credentials
3125
+ # @return [::Gapic::Operation]
2822
3126
  #
2823
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2824
- # external source for authentication to Google Cloud, you must validate it before
3127
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3128
+ #
3129
+ # @example Basic example
3130
+ # require "google/cloud/oracle_database/v1"
3131
+ #
3132
+ # # Create a client object. The client can be reused for multiple calls.
3133
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3134
+ #
3135
+ # # Create a request. To set request fields, pass in keyword arguments.
3136
+ # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new
3137
+ #
3138
+ # # Call the switchover_autonomous_database method.
3139
+ # result = client.switchover_autonomous_database request
3140
+ #
3141
+ # # The returned object is of type Gapic::Operation. You can use it to
3142
+ # # check the status of an operation, cancel it, or wait for results.
3143
+ # # Here is how to wait for a response.
3144
+ # result.wait_until_done! timeout: 60
3145
+ # if result.response?
3146
+ # p result.response
3147
+ # else
3148
+ # puts "No response received."
3149
+ # end
3150
+ #
3151
+ def switchover_autonomous_database request, options = nil
3152
+ raise ::ArgumentError, "request must be provided" if request.nil?
3153
+
3154
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest
3155
+
3156
+ # Converts hash and nil to an options object
3157
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3158
+
3159
+ # Customize the options with defaults
3160
+ metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h
3161
+
3162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3163
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3164
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3165
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3166
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3167
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3168
+
3169
+ header_params = {}
3170
+ if request.name
3171
+ header_params["name"] = request.name
3172
+ end
3173
+
3174
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3175
+ metadata[:"x-goog-request-params"] ||= request_params_header
3176
+
3177
+ options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout,
3178
+ metadata: metadata,
3179
+ retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy
3180
+
3181
+ options.apply_defaults timeout: @config.timeout,
3182
+ metadata: @config.metadata,
3183
+ retry_policy: @config.retry_policy
3184
+
3185
+ @oracle_database_stub.call_rpc :switchover_autonomous_database, request, options: options do |response, operation|
3186
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3187
+ yield response, operation if block_given?
3188
+ throw :response, response
3189
+ end
3190
+ rescue ::GRPC::BadStatus => e
3191
+ raise ::Google::Cloud::Error.from_error(e)
3192
+ end
3193
+
3194
+ ##
3195
+ # Initiates a failover to target autonomous database from the associated
3196
+ # primary database.
3197
+ #
3198
+ # @overload failover_autonomous_database(request, options = nil)
3199
+ # Pass arguments to `failover_autonomous_database` via a request object, either of type
3200
+ # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash.
3201
+ #
3202
+ # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash]
3203
+ # A request object representing the call parameters. Required. To specify no
3204
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3205
+ # @param options [::Gapic::CallOptions, ::Hash]
3206
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3207
+ #
3208
+ # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil)
3209
+ # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at
3210
+ # least one keyword argument is required. To specify no parameters, or to keep all
3211
+ # the default parameter values, pass an empty Hash as a request object (see above).
3212
+ #
3213
+ # @param name [::String]
3214
+ # Required. The name of the Autonomous Database in the following format:
3215
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
3216
+ # @param peer_autonomous_database [::String]
3217
+ # Required. The peer database name to fail over to.
3218
+ #
3219
+ # @yield [response, operation] Access the result along with the RPC operation
3220
+ # @yieldparam response [::Gapic::Operation]
3221
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3222
+ #
3223
+ # @return [::Gapic::Operation]
3224
+ #
3225
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3226
+ #
3227
+ # @example Basic example
3228
+ # require "google/cloud/oracle_database/v1"
3229
+ #
3230
+ # # Create a client object. The client can be reused for multiple calls.
3231
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3232
+ #
3233
+ # # Create a request. To set request fields, pass in keyword arguments.
3234
+ # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new
3235
+ #
3236
+ # # Call the failover_autonomous_database method.
3237
+ # result = client.failover_autonomous_database request
3238
+ #
3239
+ # # The returned object is of type Gapic::Operation. You can use it to
3240
+ # # check the status of an operation, cancel it, or wait for results.
3241
+ # # Here is how to wait for a response.
3242
+ # result.wait_until_done! timeout: 60
3243
+ # if result.response?
3244
+ # p result.response
3245
+ # else
3246
+ # puts "No response received."
3247
+ # end
3248
+ #
3249
+ def failover_autonomous_database request, options = nil
3250
+ raise ::ArgumentError, "request must be provided" if request.nil?
3251
+
3252
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest
3253
+
3254
+ # Converts hash and nil to an options object
3255
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3256
+
3257
+ # Customize the options with defaults
3258
+ metadata = @config.rpcs.failover_autonomous_database.metadata.to_h
3259
+
3260
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3261
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3262
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3263
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3264
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3265
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3266
+
3267
+ header_params = {}
3268
+ if request.name
3269
+ header_params["name"] = request.name
3270
+ end
3271
+
3272
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3273
+ metadata[:"x-goog-request-params"] ||= request_params_header
3274
+
3275
+ options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout,
3276
+ metadata: metadata,
3277
+ retry_policy: @config.rpcs.failover_autonomous_database.retry_policy
3278
+
3279
+ options.apply_defaults timeout: @config.timeout,
3280
+ metadata: @config.metadata,
3281
+ retry_policy: @config.retry_policy
3282
+
3283
+ @oracle_database_stub.call_rpc :failover_autonomous_database, request, options: options do |response, operation|
3284
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3285
+ yield response, operation if block_given?
3286
+ throw :response, response
3287
+ end
3288
+ rescue ::GRPC::BadStatus => e
3289
+ raise ::Google::Cloud::Error.from_error(e)
3290
+ end
3291
+
3292
+ ##
3293
+ # Lists the ODB Networks in a given project and location.
3294
+ #
3295
+ # @overload list_odb_networks(request, options = nil)
3296
+ # Pass arguments to `list_odb_networks` via a request object, either of type
3297
+ # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash.
3298
+ #
3299
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash]
3300
+ # A request object representing the call parameters. Required. To specify no
3301
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3302
+ # @param options [::Gapic::CallOptions, ::Hash]
3303
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3304
+ #
3305
+ # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3306
+ # Pass arguments to `list_odb_networks` via keyword arguments. Note that at
3307
+ # least one keyword argument is required. To specify no parameters, or to keep all
3308
+ # the default parameter values, pass an empty Hash as a request object (see above).
3309
+ #
3310
+ # @param parent [::String]
3311
+ # Required. The parent value for the ODB Network in the following format:
3312
+ # projects/\\{project}/locations/\\{location}.
3313
+ # @param page_size [::Integer]
3314
+ # Optional. The maximum number of items to return.
3315
+ # If unspecified, at most 50 ODB Networks will be returned.
3316
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3317
+ # @param page_token [::String]
3318
+ # Optional. A token identifying a page of results the server should return.
3319
+ # @param filter [::String]
3320
+ # Optional. An expression for filtering the results of the request.
3321
+ # @param order_by [::String]
3322
+ # Optional. An expression for ordering the results of the request.
3323
+ #
3324
+ # @yield [response, operation] Access the result along with the RPC operation
3325
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>]
3326
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3327
+ #
3328
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>]
3329
+ #
3330
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3331
+ #
3332
+ # @example Basic example
3333
+ # require "google/cloud/oracle_database/v1"
3334
+ #
3335
+ # # Create a client object. The client can be reused for multiple calls.
3336
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3337
+ #
3338
+ # # Create a request. To set request fields, pass in keyword arguments.
3339
+ # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new
3340
+ #
3341
+ # # Call the list_odb_networks method.
3342
+ # result = client.list_odb_networks request
3343
+ #
3344
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3345
+ # # over elements, and API calls will be issued to fetch pages as needed.
3346
+ # result.each do |item|
3347
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork.
3348
+ # p item
3349
+ # end
3350
+ #
3351
+ def list_odb_networks request, options = nil
3352
+ raise ::ArgumentError, "request must be provided" if request.nil?
3353
+
3354
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest
3355
+
3356
+ # Converts hash and nil to an options object
3357
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3358
+
3359
+ # Customize the options with defaults
3360
+ metadata = @config.rpcs.list_odb_networks.metadata.to_h
3361
+
3362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3363
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3364
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3365
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3366
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3367
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3368
+
3369
+ header_params = {}
3370
+ if request.parent
3371
+ header_params["parent"] = request.parent
3372
+ end
3373
+
3374
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3375
+ metadata[:"x-goog-request-params"] ||= request_params_header
3376
+
3377
+ options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout,
3378
+ metadata: metadata,
3379
+ retry_policy: @config.rpcs.list_odb_networks.retry_policy
3380
+
3381
+ options.apply_defaults timeout: @config.timeout,
3382
+ metadata: @config.metadata,
3383
+ retry_policy: @config.retry_policy
3384
+
3385
+ @oracle_database_stub.call_rpc :list_odb_networks, request, options: options do |response, operation|
3386
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, request, response, operation, options
3387
+ yield response, operation if block_given?
3388
+ throw :response, response
3389
+ end
3390
+ rescue ::GRPC::BadStatus => e
3391
+ raise ::Google::Cloud::Error.from_error(e)
3392
+ end
3393
+
3394
+ ##
3395
+ # Gets details of a single ODB Network.
3396
+ #
3397
+ # @overload get_odb_network(request, options = nil)
3398
+ # Pass arguments to `get_odb_network` via a request object, either of type
3399
+ # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash.
3400
+ #
3401
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash]
3402
+ # A request object representing the call parameters. Required. To specify no
3403
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3404
+ # @param options [::Gapic::CallOptions, ::Hash]
3405
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3406
+ #
3407
+ # @overload get_odb_network(name: nil)
3408
+ # Pass arguments to `get_odb_network` via keyword arguments. Note that at
3409
+ # least one keyword argument is required. To specify no parameters, or to keep all
3410
+ # the default parameter values, pass an empty Hash as a request object (see above).
3411
+ #
3412
+ # @param name [::String]
3413
+ # Required. The name of the OdbNetwork in the following format:
3414
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3415
+ #
3416
+ # @yield [response, operation] Access the result along with the RPC operation
3417
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbNetwork]
3418
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3419
+ #
3420
+ # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork]
3421
+ #
3422
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3423
+ #
3424
+ # @example Basic example
3425
+ # require "google/cloud/oracle_database/v1"
3426
+ #
3427
+ # # Create a client object. The client can be reused for multiple calls.
3428
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3429
+ #
3430
+ # # Create a request. To set request fields, pass in keyword arguments.
3431
+ # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new
3432
+ #
3433
+ # # Call the get_odb_network method.
3434
+ # result = client.get_odb_network request
3435
+ #
3436
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork.
3437
+ # p result
3438
+ #
3439
+ def get_odb_network request, options = nil
3440
+ raise ::ArgumentError, "request must be provided" if request.nil?
3441
+
3442
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest
3443
+
3444
+ # Converts hash and nil to an options object
3445
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3446
+
3447
+ # Customize the options with defaults
3448
+ metadata = @config.rpcs.get_odb_network.metadata.to_h
3449
+
3450
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3451
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3452
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3453
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3454
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3455
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3456
+
3457
+ header_params = {}
3458
+ if request.name
3459
+ header_params["name"] = request.name
3460
+ end
3461
+
3462
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3463
+ metadata[:"x-goog-request-params"] ||= request_params_header
3464
+
3465
+ options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout,
3466
+ metadata: metadata,
3467
+ retry_policy: @config.rpcs.get_odb_network.retry_policy
3468
+
3469
+ options.apply_defaults timeout: @config.timeout,
3470
+ metadata: @config.metadata,
3471
+ retry_policy: @config.retry_policy
3472
+
3473
+ @oracle_database_stub.call_rpc :get_odb_network, request, options: options do |response, operation|
3474
+ yield response, operation if block_given?
3475
+ end
3476
+ rescue ::GRPC::BadStatus => e
3477
+ raise ::Google::Cloud::Error.from_error(e)
3478
+ end
3479
+
3480
+ ##
3481
+ # Creates a new ODB Network in a given project and location.
3482
+ #
3483
+ # @overload create_odb_network(request, options = nil)
3484
+ # Pass arguments to `create_odb_network` via a request object, either of type
3485
+ # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash.
3486
+ #
3487
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash]
3488
+ # A request object representing the call parameters. Required. To specify no
3489
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3490
+ # @param options [::Gapic::CallOptions, ::Hash]
3491
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3492
+ #
3493
+ # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil)
3494
+ # Pass arguments to `create_odb_network` via keyword arguments. Note that at
3495
+ # least one keyword argument is required. To specify no parameters, or to keep all
3496
+ # the default parameter values, pass an empty Hash as a request object (see above).
3497
+ #
3498
+ # @param parent [::String]
3499
+ # Required. The parent value for the OdbNetwork in the following format:
3500
+ # projects/\\{project}/locations/\\{location}.
3501
+ # @param odb_network_id [::String]
3502
+ # Required. The ID of the OdbNetwork to create. This value is restricted
3503
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
3504
+ # characters in length. The value must start with a letter and end with
3505
+ # a letter or a number.
3506
+ # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash]
3507
+ # Required. Details of the OdbNetwork instance to create.
3508
+ # @param request_id [::String]
3509
+ # Optional. An optional ID to identify the request. This value is used to
3510
+ # identify duplicate requests. If you make a request with the same request ID
3511
+ # and the original request is still in progress or completed, the server
3512
+ # ignores the second request. This prevents clients from
3513
+ # accidentally creating duplicate commitments.
3514
+ #
3515
+ # The request ID must be a valid UUID with the exception that zero UUID is
3516
+ # not supported (00000000-0000-0000-0000-000000000000).
3517
+ #
3518
+ # @yield [response, operation] Access the result along with the RPC operation
3519
+ # @yieldparam response [::Gapic::Operation]
3520
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3521
+ #
3522
+ # @return [::Gapic::Operation]
3523
+ #
3524
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3525
+ #
3526
+ # @example Basic example
3527
+ # require "google/cloud/oracle_database/v1"
3528
+ #
3529
+ # # Create a client object. The client can be reused for multiple calls.
3530
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3531
+ #
3532
+ # # Create a request. To set request fields, pass in keyword arguments.
3533
+ # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new
3534
+ #
3535
+ # # Call the create_odb_network method.
3536
+ # result = client.create_odb_network request
3537
+ #
3538
+ # # The returned object is of type Gapic::Operation. You can use it to
3539
+ # # check the status of an operation, cancel it, or wait for results.
3540
+ # # Here is how to wait for a response.
3541
+ # result.wait_until_done! timeout: 60
3542
+ # if result.response?
3543
+ # p result.response
3544
+ # else
3545
+ # puts "No response received."
3546
+ # end
3547
+ #
3548
+ def create_odb_network request, options = nil
3549
+ raise ::ArgumentError, "request must be provided" if request.nil?
3550
+
3551
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest
3552
+
3553
+ # Converts hash and nil to an options object
3554
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3555
+
3556
+ # Customize the options with defaults
3557
+ metadata = @config.rpcs.create_odb_network.metadata.to_h
3558
+
3559
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3560
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3561
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3562
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3563
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3564
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3565
+
3566
+ header_params = {}
3567
+ if request.parent
3568
+ header_params["parent"] = request.parent
3569
+ end
3570
+
3571
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3572
+ metadata[:"x-goog-request-params"] ||= request_params_header
3573
+
3574
+ options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout,
3575
+ metadata: metadata,
3576
+ retry_policy: @config.rpcs.create_odb_network.retry_policy
3577
+
3578
+ options.apply_defaults timeout: @config.timeout,
3579
+ metadata: @config.metadata,
3580
+ retry_policy: @config.retry_policy
3581
+
3582
+ @oracle_database_stub.call_rpc :create_odb_network, request, options: options do |response, operation|
3583
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3584
+ yield response, operation if block_given?
3585
+ throw :response, response
3586
+ end
3587
+ rescue ::GRPC::BadStatus => e
3588
+ raise ::Google::Cloud::Error.from_error(e)
3589
+ end
3590
+
3591
+ ##
3592
+ # Deletes a single ODB Network.
3593
+ #
3594
+ # @overload delete_odb_network(request, options = nil)
3595
+ # Pass arguments to `delete_odb_network` via a request object, either of type
3596
+ # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash.
3597
+ #
3598
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash]
3599
+ # A request object representing the call parameters. Required. To specify no
3600
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3601
+ # @param options [::Gapic::CallOptions, ::Hash]
3602
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3603
+ #
3604
+ # @overload delete_odb_network(name: nil, request_id: nil)
3605
+ # Pass arguments to `delete_odb_network` via keyword arguments. Note that at
3606
+ # least one keyword argument is required. To specify no parameters, or to keep all
3607
+ # the default parameter values, pass an empty Hash as a request object (see above).
3608
+ #
3609
+ # @param name [::String]
3610
+ # Required. The name of the resource in the following format:
3611
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3612
+ # @param request_id [::String]
3613
+ # Optional. An optional ID to identify the request. This value is used to
3614
+ # identify duplicate requests. If you make a request with the same request ID
3615
+ # and the original request is still in progress or completed, the server
3616
+ # ignores the second request. This prevents clients from
3617
+ # accidentally creating duplicate commitments.
3618
+ #
3619
+ # The request ID must be a valid UUID with the exception that zero UUID is
3620
+ # not supported (00000000-0000-0000-0000-000000000000).
3621
+ #
3622
+ # @yield [response, operation] Access the result along with the RPC operation
3623
+ # @yieldparam response [::Gapic::Operation]
3624
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3625
+ #
3626
+ # @return [::Gapic::Operation]
3627
+ #
3628
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3629
+ #
3630
+ # @example Basic example
3631
+ # require "google/cloud/oracle_database/v1"
3632
+ #
3633
+ # # Create a client object. The client can be reused for multiple calls.
3634
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3635
+ #
3636
+ # # Create a request. To set request fields, pass in keyword arguments.
3637
+ # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new
3638
+ #
3639
+ # # Call the delete_odb_network method.
3640
+ # result = client.delete_odb_network request
3641
+ #
3642
+ # # The returned object is of type Gapic::Operation. You can use it to
3643
+ # # check the status of an operation, cancel it, or wait for results.
3644
+ # # Here is how to wait for a response.
3645
+ # result.wait_until_done! timeout: 60
3646
+ # if result.response?
3647
+ # p result.response
3648
+ # else
3649
+ # puts "No response received."
3650
+ # end
3651
+ #
3652
+ def delete_odb_network request, options = nil
3653
+ raise ::ArgumentError, "request must be provided" if request.nil?
3654
+
3655
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest
3656
+
3657
+ # Converts hash and nil to an options object
3658
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3659
+
3660
+ # Customize the options with defaults
3661
+ metadata = @config.rpcs.delete_odb_network.metadata.to_h
3662
+
3663
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3664
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3665
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3666
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3667
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3668
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3669
+
3670
+ header_params = {}
3671
+ if request.name
3672
+ header_params["name"] = request.name
3673
+ end
3674
+
3675
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3676
+ metadata[:"x-goog-request-params"] ||= request_params_header
3677
+
3678
+ options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout,
3679
+ metadata: metadata,
3680
+ retry_policy: @config.rpcs.delete_odb_network.retry_policy
3681
+
3682
+ options.apply_defaults timeout: @config.timeout,
3683
+ metadata: @config.metadata,
3684
+ retry_policy: @config.retry_policy
3685
+
3686
+ @oracle_database_stub.call_rpc :delete_odb_network, request, options: options do |response, operation|
3687
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3688
+ yield response, operation if block_given?
3689
+ throw :response, response
3690
+ end
3691
+ rescue ::GRPC::BadStatus => e
3692
+ raise ::Google::Cloud::Error.from_error(e)
3693
+ end
3694
+
3695
+ ##
3696
+ # Lists all the ODB Subnets in a given ODB Network.
3697
+ #
3698
+ # @overload list_odb_subnets(request, options = nil)
3699
+ # Pass arguments to `list_odb_subnets` via a request object, either of type
3700
+ # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash.
3701
+ #
3702
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash]
3703
+ # A request object representing the call parameters. Required. To specify no
3704
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3705
+ # @param options [::Gapic::CallOptions, ::Hash]
3706
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3707
+ #
3708
+ # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
3709
+ # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at
3710
+ # least one keyword argument is required. To specify no parameters, or to keep all
3711
+ # the default parameter values, pass an empty Hash as a request object (see above).
3712
+ #
3713
+ # @param parent [::String]
3714
+ # Required. The parent value for the OdbSubnet in the following format:
3715
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3716
+ # @param page_size [::Integer]
3717
+ # Optional. The maximum number of items to return.
3718
+ # If unspecified, at most 50 ODB Networks will be returned.
3719
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
3720
+ # @param page_token [::String]
3721
+ # Optional. A token identifying a page of results the server should return.
3722
+ # @param filter [::String]
3723
+ # Optional. An expression for filtering the results of the request.
3724
+ # @param order_by [::String]
3725
+ # Optional. An expression for ordering the results of the request.
3726
+ #
3727
+ # @yield [response, operation] Access the result along with the RPC operation
3728
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>]
3729
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3730
+ #
3731
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>]
3732
+ #
3733
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3734
+ #
3735
+ # @example Basic example
3736
+ # require "google/cloud/oracle_database/v1"
3737
+ #
3738
+ # # Create a client object. The client can be reused for multiple calls.
3739
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3740
+ #
3741
+ # # Create a request. To set request fields, pass in keyword arguments.
3742
+ # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new
3743
+ #
3744
+ # # Call the list_odb_subnets method.
3745
+ # result = client.list_odb_subnets request
3746
+ #
3747
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3748
+ # # over elements, and API calls will be issued to fetch pages as needed.
3749
+ # result.each do |item|
3750
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet.
3751
+ # p item
3752
+ # end
3753
+ #
3754
+ def list_odb_subnets request, options = nil
3755
+ raise ::ArgumentError, "request must be provided" if request.nil?
3756
+
3757
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest
3758
+
3759
+ # Converts hash and nil to an options object
3760
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3761
+
3762
+ # Customize the options with defaults
3763
+ metadata = @config.rpcs.list_odb_subnets.metadata.to_h
3764
+
3765
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3766
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3767
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3768
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3769
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3770
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3771
+
3772
+ header_params = {}
3773
+ if request.parent
3774
+ header_params["parent"] = request.parent
3775
+ end
3776
+
3777
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3778
+ metadata[:"x-goog-request-params"] ||= request_params_header
3779
+
3780
+ options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout,
3781
+ metadata: metadata,
3782
+ retry_policy: @config.rpcs.list_odb_subnets.retry_policy
3783
+
3784
+ options.apply_defaults timeout: @config.timeout,
3785
+ metadata: @config.metadata,
3786
+ retry_policy: @config.retry_policy
3787
+
3788
+ @oracle_database_stub.call_rpc :list_odb_subnets, request, options: options do |response, operation|
3789
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, request, response, operation, options
3790
+ yield response, operation if block_given?
3791
+ throw :response, response
3792
+ end
3793
+ rescue ::GRPC::BadStatus => e
3794
+ raise ::Google::Cloud::Error.from_error(e)
3795
+ end
3796
+
3797
+ ##
3798
+ # Gets details of a single ODB Subnet.
3799
+ #
3800
+ # @overload get_odb_subnet(request, options = nil)
3801
+ # Pass arguments to `get_odb_subnet` via a request object, either of type
3802
+ # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash.
3803
+ #
3804
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash]
3805
+ # A request object representing the call parameters. Required. To specify no
3806
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3807
+ # @param options [::Gapic::CallOptions, ::Hash]
3808
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3809
+ #
3810
+ # @overload get_odb_subnet(name: nil)
3811
+ # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at
3812
+ # least one keyword argument is required. To specify no parameters, or to keep all
3813
+ # the default parameter values, pass an empty Hash as a request object (see above).
3814
+ #
3815
+ # @param name [::String]
3816
+ # Required. The name of the OdbSubnet in the following format:
3817
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}.
3818
+ #
3819
+ # @yield [response, operation] Access the result along with the RPC operation
3820
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbSubnet]
3821
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3822
+ #
3823
+ # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet]
3824
+ #
3825
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3826
+ #
3827
+ # @example Basic example
3828
+ # require "google/cloud/oracle_database/v1"
3829
+ #
3830
+ # # Create a client object. The client can be reused for multiple calls.
3831
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3832
+ #
3833
+ # # Create a request. To set request fields, pass in keyword arguments.
3834
+ # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new
3835
+ #
3836
+ # # Call the get_odb_subnet method.
3837
+ # result = client.get_odb_subnet request
3838
+ #
3839
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet.
3840
+ # p result
3841
+ #
3842
+ def get_odb_subnet request, options = nil
3843
+ raise ::ArgumentError, "request must be provided" if request.nil?
3844
+
3845
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest
3846
+
3847
+ # Converts hash and nil to an options object
3848
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3849
+
3850
+ # Customize the options with defaults
3851
+ metadata = @config.rpcs.get_odb_subnet.metadata.to_h
3852
+
3853
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3854
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3855
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3856
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3857
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3858
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3859
+
3860
+ header_params = {}
3861
+ if request.name
3862
+ header_params["name"] = request.name
3863
+ end
3864
+
3865
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3866
+ metadata[:"x-goog-request-params"] ||= request_params_header
3867
+
3868
+ options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout,
3869
+ metadata: metadata,
3870
+ retry_policy: @config.rpcs.get_odb_subnet.retry_policy
3871
+
3872
+ options.apply_defaults timeout: @config.timeout,
3873
+ metadata: @config.metadata,
3874
+ retry_policy: @config.retry_policy
3875
+
3876
+ @oracle_database_stub.call_rpc :get_odb_subnet, request, options: options do |response, operation|
3877
+ yield response, operation if block_given?
3878
+ end
3879
+ rescue ::GRPC::BadStatus => e
3880
+ raise ::Google::Cloud::Error.from_error(e)
3881
+ end
3882
+
3883
+ ##
3884
+ # Creates a new ODB Subnet in a given ODB Network.
3885
+ #
3886
+ # @overload create_odb_subnet(request, options = nil)
3887
+ # Pass arguments to `create_odb_subnet` via a request object, either of type
3888
+ # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash.
3889
+ #
3890
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash]
3891
+ # A request object representing the call parameters. Required. To specify no
3892
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3893
+ # @param options [::Gapic::CallOptions, ::Hash]
3894
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3895
+ #
3896
+ # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil)
3897
+ # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at
3898
+ # least one keyword argument is required. To specify no parameters, or to keep all
3899
+ # the default parameter values, pass an empty Hash as a request object (see above).
3900
+ #
3901
+ # @param parent [::String]
3902
+ # Required. The parent value for the OdbSubnet in the following format:
3903
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
3904
+ # @param odb_subnet_id [::String]
3905
+ # Required. The ID of the OdbSubnet to create. This value is restricted
3906
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
3907
+ # characters in length. The value must start with a letter and end with
3908
+ # a letter or a number.
3909
+ # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash]
3910
+ # Required. Details of the OdbSubnet instance to create.
3911
+ # @param request_id [::String]
3912
+ # Optional. An optional ID to identify the request. This value is used to
3913
+ # identify duplicate requests. If you make a request with the same request ID
3914
+ # and the original request is still in progress or completed, the server
3915
+ # ignores the second request. This prevents clients from
3916
+ # accidentally creating duplicate commitments.
3917
+ #
3918
+ # The request ID must be a valid UUID with the exception that zero UUID is
3919
+ # not supported (00000000-0000-0000-0000-000000000000).
3920
+ #
3921
+ # @yield [response, operation] Access the result along with the RPC operation
3922
+ # @yieldparam response [::Gapic::Operation]
3923
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3924
+ #
3925
+ # @return [::Gapic::Operation]
3926
+ #
3927
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3928
+ #
3929
+ # @example Basic example
3930
+ # require "google/cloud/oracle_database/v1"
3931
+ #
3932
+ # # Create a client object. The client can be reused for multiple calls.
3933
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3934
+ #
3935
+ # # Create a request. To set request fields, pass in keyword arguments.
3936
+ # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new
3937
+ #
3938
+ # # Call the create_odb_subnet method.
3939
+ # result = client.create_odb_subnet request
3940
+ #
3941
+ # # The returned object is of type Gapic::Operation. You can use it to
3942
+ # # check the status of an operation, cancel it, or wait for results.
3943
+ # # Here is how to wait for a response.
3944
+ # result.wait_until_done! timeout: 60
3945
+ # if result.response?
3946
+ # p result.response
3947
+ # else
3948
+ # puts "No response received."
3949
+ # end
3950
+ #
3951
+ def create_odb_subnet request, options = nil
3952
+ raise ::ArgumentError, "request must be provided" if request.nil?
3953
+
3954
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest
3955
+
3956
+ # Converts hash and nil to an options object
3957
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3958
+
3959
+ # Customize the options with defaults
3960
+ metadata = @config.rpcs.create_odb_subnet.metadata.to_h
3961
+
3962
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3963
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3964
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3965
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3966
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3967
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3968
+
3969
+ header_params = {}
3970
+ if request.parent
3971
+ header_params["parent"] = request.parent
3972
+ end
3973
+
3974
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3975
+ metadata[:"x-goog-request-params"] ||= request_params_header
3976
+
3977
+ options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout,
3978
+ metadata: metadata,
3979
+ retry_policy: @config.rpcs.create_odb_subnet.retry_policy
3980
+
3981
+ options.apply_defaults timeout: @config.timeout,
3982
+ metadata: @config.metadata,
3983
+ retry_policy: @config.retry_policy
3984
+
3985
+ @oracle_database_stub.call_rpc :create_odb_subnet, request, options: options do |response, operation|
3986
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3987
+ yield response, operation if block_given?
3988
+ throw :response, response
3989
+ end
3990
+ rescue ::GRPC::BadStatus => e
3991
+ raise ::Google::Cloud::Error.from_error(e)
3992
+ end
3993
+
3994
+ ##
3995
+ # Deletes a single ODB Subnet.
3996
+ #
3997
+ # @overload delete_odb_subnet(request, options = nil)
3998
+ # Pass arguments to `delete_odb_subnet` via a request object, either of type
3999
+ # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash.
4000
+ #
4001
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash]
4002
+ # A request object representing the call parameters. Required. To specify no
4003
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4004
+ # @param options [::Gapic::CallOptions, ::Hash]
4005
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4006
+ #
4007
+ # @overload delete_odb_subnet(name: nil, request_id: nil)
4008
+ # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at
4009
+ # least one keyword argument is required. To specify no parameters, or to keep all
4010
+ # the default parameter values, pass an empty Hash as a request object (see above).
4011
+ #
4012
+ # @param name [::String]
4013
+ # Required. The name of the resource in the following format:
4014
+ # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}.
4015
+ # @param request_id [::String]
4016
+ # Optional. An optional ID to identify the request. This value is used to
4017
+ # identify duplicate requests. If you make a request with the same request ID
4018
+ # and the original request is still in progress or completed, the server
4019
+ # ignores the second request. This prevents clients from
4020
+ # accidentally creating duplicate commitments.
4021
+ #
4022
+ # The request ID must be a valid UUID with the exception that zero UUID is
4023
+ # not supported (00000000-0000-0000-0000-000000000000).
4024
+ #
4025
+ # @yield [response, operation] Access the result along with the RPC operation
4026
+ # @yieldparam response [::Gapic::Operation]
4027
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4028
+ #
4029
+ # @return [::Gapic::Operation]
4030
+ #
4031
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4032
+ #
4033
+ # @example Basic example
4034
+ # require "google/cloud/oracle_database/v1"
4035
+ #
4036
+ # # Create a client object. The client can be reused for multiple calls.
4037
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4038
+ #
4039
+ # # Create a request. To set request fields, pass in keyword arguments.
4040
+ # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new
4041
+ #
4042
+ # # Call the delete_odb_subnet method.
4043
+ # result = client.delete_odb_subnet request
4044
+ #
4045
+ # # The returned object is of type Gapic::Operation. You can use it to
4046
+ # # check the status of an operation, cancel it, or wait for results.
4047
+ # # Here is how to wait for a response.
4048
+ # result.wait_until_done! timeout: 60
4049
+ # if result.response?
4050
+ # p result.response
4051
+ # else
4052
+ # puts "No response received."
4053
+ # end
4054
+ #
4055
+ def delete_odb_subnet request, options = nil
4056
+ raise ::ArgumentError, "request must be provided" if request.nil?
4057
+
4058
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest
4059
+
4060
+ # Converts hash and nil to an options object
4061
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4062
+
4063
+ # Customize the options with defaults
4064
+ metadata = @config.rpcs.delete_odb_subnet.metadata.to_h
4065
+
4066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4067
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4068
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4069
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4070
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4071
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4072
+
4073
+ header_params = {}
4074
+ if request.name
4075
+ header_params["name"] = request.name
4076
+ end
4077
+
4078
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4079
+ metadata[:"x-goog-request-params"] ||= request_params_header
4080
+
4081
+ options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout,
4082
+ metadata: metadata,
4083
+ retry_policy: @config.rpcs.delete_odb_subnet.retry_policy
4084
+
4085
+ options.apply_defaults timeout: @config.timeout,
4086
+ metadata: @config.metadata,
4087
+ retry_policy: @config.retry_policy
4088
+
4089
+ @oracle_database_stub.call_rpc :delete_odb_subnet, request, options: options do |response, operation|
4090
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4091
+ yield response, operation if block_given?
4092
+ throw :response, response
4093
+ end
4094
+ rescue ::GRPC::BadStatus => e
4095
+ raise ::Google::Cloud::Error.from_error(e)
4096
+ end
4097
+
4098
+ ##
4099
+ # Lists all the Exadb (Exascale) VM Clusters for the given project and
4100
+ # location.
4101
+ #
4102
+ # @overload list_exadb_vm_clusters(request, options = nil)
4103
+ # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type
4104
+ # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash.
4105
+ #
4106
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash]
4107
+ # A request object representing the call parameters. Required. To specify no
4108
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4109
+ # @param options [::Gapic::CallOptions, ::Hash]
4110
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4111
+ #
4112
+ # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
4113
+ # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at
4114
+ # least one keyword argument is required. To specify no parameters, or to keep all
4115
+ # the default parameter values, pass an empty Hash as a request object (see above).
4116
+ #
4117
+ # @param parent [::String]
4118
+ # Required. The parent value for ExadbVmClusters in the following format:
4119
+ # projects/\\{project}/locations/\\{location}.
4120
+ # @param page_size [::Integer]
4121
+ # Optional. The maximum number of items to return.
4122
+ # If unspecified, at most 50 ExadbVmClusters will be returned.
4123
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
4124
+ # @param page_token [::String]
4125
+ # Optional. A token identifying a page of results the server should return.
4126
+ # @param filter [::String]
4127
+ # Optional. An expression for filtering the results of the request.
4128
+ # @param order_by [::String]
4129
+ # Optional. An expression for ordering the results of the request.
4130
+ #
4131
+ # @yield [response, operation] Access the result along with the RPC operation
4132
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>]
4133
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4134
+ #
4135
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>]
4136
+ #
4137
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4138
+ #
4139
+ # @example Basic example
4140
+ # require "google/cloud/oracle_database/v1"
4141
+ #
4142
+ # # Create a client object. The client can be reused for multiple calls.
4143
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4144
+ #
4145
+ # # Create a request. To set request fields, pass in keyword arguments.
4146
+ # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new
4147
+ #
4148
+ # # Call the list_exadb_vm_clusters method.
4149
+ # result = client.list_exadb_vm_clusters request
4150
+ #
4151
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4152
+ # # over elements, and API calls will be issued to fetch pages as needed.
4153
+ # result.each do |item|
4154
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.
4155
+ # p item
4156
+ # end
4157
+ #
4158
+ def list_exadb_vm_clusters request, options = nil
4159
+ raise ::ArgumentError, "request must be provided" if request.nil?
4160
+
4161
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest
4162
+
4163
+ # Converts hash and nil to an options object
4164
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4165
+
4166
+ # Customize the options with defaults
4167
+ metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h
4168
+
4169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4170
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4171
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4172
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4173
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4174
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4175
+
4176
+ header_params = {}
4177
+ if request.parent
4178
+ header_params["parent"] = request.parent
4179
+ end
4180
+
4181
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4182
+ metadata[:"x-goog-request-params"] ||= request_params_header
4183
+
4184
+ options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout,
4185
+ metadata: metadata,
4186
+ retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy
4187
+
4188
+ options.apply_defaults timeout: @config.timeout,
4189
+ metadata: @config.metadata,
4190
+ retry_policy: @config.retry_policy
4191
+
4192
+ @oracle_database_stub.call_rpc :list_exadb_vm_clusters, request, options: options do |response, operation|
4193
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, request, response, operation, options
4194
+ yield response, operation if block_given?
4195
+ throw :response, response
4196
+ end
4197
+ rescue ::GRPC::BadStatus => e
4198
+ raise ::Google::Cloud::Error.from_error(e)
4199
+ end
4200
+
4201
+ ##
4202
+ # Gets details of a single Exadb (Exascale) VM Cluster.
4203
+ #
4204
+ # @overload get_exadb_vm_cluster(request, options = nil)
4205
+ # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type
4206
+ # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash.
4207
+ #
4208
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash]
4209
+ # A request object representing the call parameters. Required. To specify no
4210
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4211
+ # @param options [::Gapic::CallOptions, ::Hash]
4212
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4213
+ #
4214
+ # @overload get_exadb_vm_cluster(name: nil)
4215
+ # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at
4216
+ # least one keyword argument is required. To specify no parameters, or to keep all
4217
+ # the default parameter values, pass an empty Hash as a request object (see above).
4218
+ #
4219
+ # @param name [::String]
4220
+ # Required. The name of the ExadbVmCluster in the following format:
4221
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
4222
+ #
4223
+ # @yield [response, operation] Access the result along with the RPC operation
4224
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster]
4225
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4226
+ #
4227
+ # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster]
4228
+ #
4229
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4230
+ #
4231
+ # @example Basic example
4232
+ # require "google/cloud/oracle_database/v1"
4233
+ #
4234
+ # # Create a client object. The client can be reused for multiple calls.
4235
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4236
+ #
4237
+ # # Create a request. To set request fields, pass in keyword arguments.
4238
+ # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new
4239
+ #
4240
+ # # Call the get_exadb_vm_cluster method.
4241
+ # result = client.get_exadb_vm_cluster request
4242
+ #
4243
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster.
4244
+ # p result
4245
+ #
4246
+ def get_exadb_vm_cluster request, options = nil
4247
+ raise ::ArgumentError, "request must be provided" if request.nil?
4248
+
4249
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest
4250
+
4251
+ # Converts hash and nil to an options object
4252
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4253
+
4254
+ # Customize the options with defaults
4255
+ metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h
4256
+
4257
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4258
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4259
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4260
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4261
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4262
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4263
+
4264
+ header_params = {}
4265
+ if request.name
4266
+ header_params["name"] = request.name
4267
+ end
4268
+
4269
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4270
+ metadata[:"x-goog-request-params"] ||= request_params_header
4271
+
4272
+ options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout,
4273
+ metadata: metadata,
4274
+ retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy
4275
+
4276
+ options.apply_defaults timeout: @config.timeout,
4277
+ metadata: @config.metadata,
4278
+ retry_policy: @config.retry_policy
4279
+
4280
+ @oracle_database_stub.call_rpc :get_exadb_vm_cluster, request, options: options do |response, operation|
4281
+ yield response, operation if block_given?
4282
+ end
4283
+ rescue ::GRPC::BadStatus => e
4284
+ raise ::Google::Cloud::Error.from_error(e)
4285
+ end
4286
+
4287
+ ##
4288
+ # Creates a new Exadb (Exascale) VM Cluster resource.
4289
+ #
4290
+ # @overload create_exadb_vm_cluster(request, options = nil)
4291
+ # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type
4292
+ # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash.
4293
+ #
4294
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash]
4295
+ # A request object representing the call parameters. Required. To specify no
4296
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4297
+ # @param options [::Gapic::CallOptions, ::Hash]
4298
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4299
+ #
4300
+ # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil)
4301
+ # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at
4302
+ # least one keyword argument is required. To specify no parameters, or to keep all
4303
+ # the default parameter values, pass an empty Hash as a request object (see above).
4304
+ #
4305
+ # @param parent [::String]
4306
+ # Required. The value for parent of the ExadbVmCluster in the following
4307
+ # format: projects/\\{project}/locations/\\{location}.
4308
+ # @param exadb_vm_cluster_id [::String]
4309
+ # Required. The ID of the ExadbVmCluster to create. This value is
4310
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
4311
+ # 63 characters in length. The value must start with a letter and end with a
4312
+ # letter or a number.
4313
+ # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash]
4314
+ # Required. The resource being created.
4315
+ # @param request_id [::String]
4316
+ # Optional. An optional request ID to identify requests. Specify a unique
4317
+ # request ID so that if you must retry your request, the server will know to
4318
+ # ignore the request if it has already been completed. The server will
4319
+ # guarantee that for at least 60 minutes since the first request.
4320
+ #
4321
+ # For example, consider a situation where you make an initial request and the
4322
+ # request times out. If you make the request again with the same request
4323
+ # ID, the server can check if original operation with the same request ID
4324
+ # was received, and if so, will ignore the second request. This prevents
4325
+ # clients from accidentally creating duplicate commitments.
4326
+ #
4327
+ # The request ID must be a valid UUID with the exception that zero UUID is
4328
+ # not supported (00000000-0000-0000-0000-000000000000).
4329
+ #
4330
+ # @yield [response, operation] Access the result along with the RPC operation
4331
+ # @yieldparam response [::Gapic::Operation]
4332
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4333
+ #
4334
+ # @return [::Gapic::Operation]
4335
+ #
4336
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4337
+ #
4338
+ # @example Basic example
4339
+ # require "google/cloud/oracle_database/v1"
4340
+ #
4341
+ # # Create a client object. The client can be reused for multiple calls.
4342
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4343
+ #
4344
+ # # Create a request. To set request fields, pass in keyword arguments.
4345
+ # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new
4346
+ #
4347
+ # # Call the create_exadb_vm_cluster method.
4348
+ # result = client.create_exadb_vm_cluster request
4349
+ #
4350
+ # # The returned object is of type Gapic::Operation. You can use it to
4351
+ # # check the status of an operation, cancel it, or wait for results.
4352
+ # # Here is how to wait for a response.
4353
+ # result.wait_until_done! timeout: 60
4354
+ # if result.response?
4355
+ # p result.response
4356
+ # else
4357
+ # puts "No response received."
4358
+ # end
4359
+ #
4360
+ def create_exadb_vm_cluster request, options = nil
4361
+ raise ::ArgumentError, "request must be provided" if request.nil?
4362
+
4363
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest
4364
+
4365
+ # Converts hash and nil to an options object
4366
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4367
+
4368
+ # Customize the options with defaults
4369
+ metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h
4370
+
4371
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4372
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4373
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4374
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4375
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4376
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4377
+
4378
+ header_params = {}
4379
+ if request.parent
4380
+ header_params["parent"] = request.parent
4381
+ end
4382
+
4383
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4384
+ metadata[:"x-goog-request-params"] ||= request_params_header
4385
+
4386
+ options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout,
4387
+ metadata: metadata,
4388
+ retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy
4389
+
4390
+ options.apply_defaults timeout: @config.timeout,
4391
+ metadata: @config.metadata,
4392
+ retry_policy: @config.retry_policy
4393
+
4394
+ @oracle_database_stub.call_rpc :create_exadb_vm_cluster, request, options: options do |response, operation|
4395
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4396
+ yield response, operation if block_given?
4397
+ throw :response, response
4398
+ end
4399
+ rescue ::GRPC::BadStatus => e
4400
+ raise ::Google::Cloud::Error.from_error(e)
4401
+ end
4402
+
4403
+ ##
4404
+ # Deletes a single Exadb (Exascale) VM Cluster.
4405
+ #
4406
+ # @overload delete_exadb_vm_cluster(request, options = nil)
4407
+ # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type
4408
+ # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash.
4409
+ #
4410
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash]
4411
+ # A request object representing the call parameters. Required. To specify no
4412
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4413
+ # @param options [::Gapic::CallOptions, ::Hash]
4414
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4415
+ #
4416
+ # @overload delete_exadb_vm_cluster(name: nil, request_id: nil)
4417
+ # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at
4418
+ # least one keyword argument is required. To specify no parameters, or to keep all
4419
+ # the default parameter values, pass an empty Hash as a request object (see above).
4420
+ #
4421
+ # @param name [::String]
4422
+ # Required. The name of the ExadbVmCluster in the following format:
4423
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
4424
+ # @param request_id [::String]
4425
+ # Optional. An optional ID to identify the request. This value is used to
4426
+ # identify duplicate requests. If you make a request with the same request ID
4427
+ # and the original request is still in progress or completed, the server
4428
+ # ignores the second request. This prevents clients from
4429
+ # accidentally creating duplicate commitments.
4430
+ #
4431
+ # The request ID must be a valid UUID with the exception that zero UUID is
4432
+ # not supported (00000000-0000-0000-0000-000000000000).
4433
+ #
4434
+ # @yield [response, operation] Access the result along with the RPC operation
4435
+ # @yieldparam response [::Gapic::Operation]
4436
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4437
+ #
4438
+ # @return [::Gapic::Operation]
4439
+ #
4440
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4441
+ #
4442
+ # @example Basic example
4443
+ # require "google/cloud/oracle_database/v1"
4444
+ #
4445
+ # # Create a client object. The client can be reused for multiple calls.
4446
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4447
+ #
4448
+ # # Create a request. To set request fields, pass in keyword arguments.
4449
+ # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new
4450
+ #
4451
+ # # Call the delete_exadb_vm_cluster method.
4452
+ # result = client.delete_exadb_vm_cluster request
4453
+ #
4454
+ # # The returned object is of type Gapic::Operation. You can use it to
4455
+ # # check the status of an operation, cancel it, or wait for results.
4456
+ # # Here is how to wait for a response.
4457
+ # result.wait_until_done! timeout: 60
4458
+ # if result.response?
4459
+ # p result.response
4460
+ # else
4461
+ # puts "No response received."
4462
+ # end
4463
+ #
4464
+ def delete_exadb_vm_cluster request, options = nil
4465
+ raise ::ArgumentError, "request must be provided" if request.nil?
4466
+
4467
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest
4468
+
4469
+ # Converts hash and nil to an options object
4470
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4471
+
4472
+ # Customize the options with defaults
4473
+ metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h
4474
+
4475
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4476
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4477
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4478
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4479
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4480
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4481
+
4482
+ header_params = {}
4483
+ if request.name
4484
+ header_params["name"] = request.name
4485
+ end
4486
+
4487
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4488
+ metadata[:"x-goog-request-params"] ||= request_params_header
4489
+
4490
+ options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout,
4491
+ metadata: metadata,
4492
+ retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy
4493
+
4494
+ options.apply_defaults timeout: @config.timeout,
4495
+ metadata: @config.metadata,
4496
+ retry_policy: @config.retry_policy
4497
+
4498
+ @oracle_database_stub.call_rpc :delete_exadb_vm_cluster, request, options: options do |response, operation|
4499
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4500
+ yield response, operation if block_given?
4501
+ throw :response, response
4502
+ end
4503
+ rescue ::GRPC::BadStatus => e
4504
+ raise ::Google::Cloud::Error.from_error(e)
4505
+ end
4506
+
4507
+ ##
4508
+ # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to
4509
+ # existing exadb vm cluster, only pass the node count.
4510
+ #
4511
+ # @overload update_exadb_vm_cluster(request, options = nil)
4512
+ # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type
4513
+ # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash.
4514
+ #
4515
+ # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash]
4516
+ # A request object representing the call parameters. Required. To specify no
4517
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4518
+ # @param options [::Gapic::CallOptions, ::Hash]
4519
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4520
+ #
4521
+ # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil)
4522
+ # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at
4523
+ # least one keyword argument is required. To specify no parameters, or to keep all
4524
+ # the default parameter values, pass an empty Hash as a request object (see above).
4525
+ #
4526
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4527
+ # Optional. A mask specifying which fields in th VM Cluster should be
4528
+ # updated. A field specified in the mask is overwritten. If a mask isn't
4529
+ # provided then all the fields in the VM Cluster are overwritten.
4530
+ # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash]
4531
+ # Required. The resource being updated.
4532
+ # @param request_id [::String]
4533
+ # Optional. An optional ID to identify the request. This value is used to
4534
+ # identify duplicate requests. If you make a request with the same request ID
4535
+ # and the original request is still in progress or completed, the server
4536
+ # ignores the second request. This prevents clients from
4537
+ # accidentally creating duplicate commitments.
4538
+ #
4539
+ # The request ID must be a valid UUID with the exception that zero UUID is
4540
+ # not supported (00000000-0000-0000-0000-000000000000).
4541
+ #
4542
+ # @yield [response, operation] Access the result along with the RPC operation
4543
+ # @yieldparam response [::Gapic::Operation]
4544
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4545
+ #
4546
+ # @return [::Gapic::Operation]
4547
+ #
4548
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4549
+ #
4550
+ # @example Basic example
4551
+ # require "google/cloud/oracle_database/v1"
4552
+ #
4553
+ # # Create a client object. The client can be reused for multiple calls.
4554
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4555
+ #
4556
+ # # Create a request. To set request fields, pass in keyword arguments.
4557
+ # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new
4558
+ #
4559
+ # # Call the update_exadb_vm_cluster method.
4560
+ # result = client.update_exadb_vm_cluster request
4561
+ #
4562
+ # # The returned object is of type Gapic::Operation. You can use it to
4563
+ # # check the status of an operation, cancel it, or wait for results.
4564
+ # # Here is how to wait for a response.
4565
+ # result.wait_until_done! timeout: 60
4566
+ # if result.response?
4567
+ # p result.response
4568
+ # else
4569
+ # puts "No response received."
4570
+ # end
4571
+ #
4572
+ def update_exadb_vm_cluster request, options = nil
4573
+ raise ::ArgumentError, "request must be provided" if request.nil?
4574
+
4575
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest
4576
+
4577
+ # Converts hash and nil to an options object
4578
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4579
+
4580
+ # Customize the options with defaults
4581
+ metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h
4582
+
4583
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4584
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4585
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4586
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4587
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4588
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4589
+
4590
+ header_params = {}
4591
+ if request.exadb_vm_cluster&.name
4592
+ header_params["exadb_vm_cluster.name"] = request.exadb_vm_cluster.name
4593
+ end
4594
+
4595
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4596
+ metadata[:"x-goog-request-params"] ||= request_params_header
4597
+
4598
+ options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout,
4599
+ metadata: metadata,
4600
+ retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy
4601
+
4602
+ options.apply_defaults timeout: @config.timeout,
4603
+ metadata: @config.metadata,
4604
+ retry_policy: @config.retry_policy
4605
+
4606
+ @oracle_database_stub.call_rpc :update_exadb_vm_cluster, request, options: options do |response, operation|
4607
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4608
+ yield response, operation if block_given?
4609
+ throw :response, response
4610
+ end
4611
+ rescue ::GRPC::BadStatus => e
4612
+ raise ::Google::Cloud::Error.from_error(e)
4613
+ end
4614
+
4615
+ ##
4616
+ # Removes virtual machines from an existing exadb vm cluster.
4617
+ #
4618
+ # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil)
4619
+ # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type
4620
+ # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash.
4621
+ #
4622
+ # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash]
4623
+ # A request object representing the call parameters. Required. To specify no
4624
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4625
+ # @param options [::Gapic::CallOptions, ::Hash]
4626
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4627
+ #
4628
+ # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil)
4629
+ # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at
4630
+ # least one keyword argument is required. To specify no parameters, or to keep all
4631
+ # the default parameter values, pass an empty Hash as a request object (see above).
4632
+ #
4633
+ # @param name [::String]
4634
+ # Required. The name of the ExadbVmCluster in the following format:
4635
+ # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}.
4636
+ # @param request_id [::String]
4637
+ # Optional. An optional ID to identify the request. This value is used to
4638
+ # identify duplicate requests. If you make a request with the same request ID
4639
+ # and the original request is still in progress or completed, the server
4640
+ # ignores the second request. This prevents clients from
4641
+ # accidentally creating duplicate commitments.
4642
+ #
4643
+ # The request ID must be a valid UUID with the exception that zero UUID is
4644
+ # not supported (00000000-0000-0000-0000-000000000000).
4645
+ # @param hostnames [::Array<::String>]
4646
+ # Required. The list of host names of db nodes to be removed from the
4647
+ # ExadbVmCluster.
4648
+ #
4649
+ # @yield [response, operation] Access the result along with the RPC operation
4650
+ # @yieldparam response [::Gapic::Operation]
4651
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4652
+ #
4653
+ # @return [::Gapic::Operation]
4654
+ #
4655
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4656
+ #
4657
+ # @example Basic example
4658
+ # require "google/cloud/oracle_database/v1"
4659
+ #
4660
+ # # Create a client object. The client can be reused for multiple calls.
4661
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4662
+ #
4663
+ # # Create a request. To set request fields, pass in keyword arguments.
4664
+ # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new
4665
+ #
4666
+ # # Call the remove_virtual_machine_exadb_vm_cluster method.
4667
+ # result = client.remove_virtual_machine_exadb_vm_cluster request
4668
+ #
4669
+ # # The returned object is of type Gapic::Operation. You can use it to
4670
+ # # check the status of an operation, cancel it, or wait for results.
4671
+ # # Here is how to wait for a response.
4672
+ # result.wait_until_done! timeout: 60
4673
+ # if result.response?
4674
+ # p result.response
4675
+ # else
4676
+ # puts "No response received."
4677
+ # end
4678
+ #
4679
+ def remove_virtual_machine_exadb_vm_cluster request, options = nil
4680
+ raise ::ArgumentError, "request must be provided" if request.nil?
4681
+
4682
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest
4683
+
4684
+ # Converts hash and nil to an options object
4685
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4686
+
4687
+ # Customize the options with defaults
4688
+ metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h
4689
+
4690
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4691
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4692
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4693
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4694
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4695
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4696
+
4697
+ header_params = {}
4698
+ if request.name
4699
+ header_params["name"] = request.name
4700
+ end
4701
+
4702
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4703
+ metadata[:"x-goog-request-params"] ||= request_params_header
4704
+
4705
+ options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout,
4706
+ metadata: metadata,
4707
+ retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy
4708
+
4709
+ options.apply_defaults timeout: @config.timeout,
4710
+ metadata: @config.metadata,
4711
+ retry_policy: @config.retry_policy
4712
+
4713
+ @oracle_database_stub.call_rpc :remove_virtual_machine_exadb_vm_cluster, request, options: options do |response, operation|
4714
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4715
+ yield response, operation if block_given?
4716
+ throw :response, response
4717
+ end
4718
+ rescue ::GRPC::BadStatus => e
4719
+ raise ::Google::Cloud::Error.from_error(e)
4720
+ end
4721
+
4722
+ ##
4723
+ # Lists all the ExascaleDB Storage Vaults for the given project and
4724
+ # location.
4725
+ #
4726
+ # @overload list_exascale_db_storage_vaults(request, options = nil)
4727
+ # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type
4728
+ # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash.
4729
+ #
4730
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash]
4731
+ # A request object representing the call parameters. Required. To specify no
4732
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4733
+ # @param options [::Gapic::CallOptions, ::Hash]
4734
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4735
+ #
4736
+ # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
4737
+ # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at
4738
+ # least one keyword argument is required. To specify no parameters, or to keep all
4739
+ # the default parameter values, pass an empty Hash as a request object (see above).
4740
+ #
4741
+ # @param parent [::String]
4742
+ # Required. The parent value for ExascaleDbStorageVault in the following
4743
+ # format: projects/\\{project}/locations/\\{location}.
4744
+ # @param page_size [::Integer]
4745
+ # Optional. The maximum number of items to return.
4746
+ # If unspecified, at most 50 ExascaleDbStorageVaults will be returned.
4747
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
4748
+ # @param page_token [::String]
4749
+ # Optional. A token identifying a page of results the server should return.
4750
+ # @param filter [::String]
4751
+ # Optional. An expression for filtering the results of the request. Filter
4752
+ # the list as specified in https://google.aip.dev/160.
4753
+ # @param order_by [::String]
4754
+ # Optional. An expression for ordering the results of the request. Order
4755
+ # results as specified in https://google.aip.dev/132.
4756
+ #
4757
+ # @yield [response, operation] Access the result along with the RPC operation
4758
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>]
4759
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4760
+ #
4761
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>]
4762
+ #
4763
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4764
+ #
4765
+ # @example Basic example
4766
+ # require "google/cloud/oracle_database/v1"
4767
+ #
4768
+ # # Create a client object. The client can be reused for multiple calls.
4769
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4770
+ #
4771
+ # # Create a request. To set request fields, pass in keyword arguments.
4772
+ # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new
4773
+ #
4774
+ # # Call the list_exascale_db_storage_vaults method.
4775
+ # result = client.list_exascale_db_storage_vaults request
4776
+ #
4777
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4778
+ # # over elements, and API calls will be issued to fetch pages as needed.
4779
+ # result.each do |item|
4780
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.
4781
+ # p item
4782
+ # end
4783
+ #
4784
+ def list_exascale_db_storage_vaults request, options = nil
4785
+ raise ::ArgumentError, "request must be provided" if request.nil?
4786
+
4787
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest
4788
+
4789
+ # Converts hash and nil to an options object
4790
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4791
+
4792
+ # Customize the options with defaults
4793
+ metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h
4794
+
4795
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4796
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4797
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4798
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4799
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4800
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4801
+
4802
+ header_params = {}
4803
+ if request.parent
4804
+ header_params["parent"] = request.parent
4805
+ end
4806
+
4807
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4808
+ metadata[:"x-goog-request-params"] ||= request_params_header
4809
+
4810
+ options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout,
4811
+ metadata: metadata,
4812
+ retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy
4813
+
4814
+ options.apply_defaults timeout: @config.timeout,
4815
+ metadata: @config.metadata,
4816
+ retry_policy: @config.retry_policy
4817
+
4818
+ @oracle_database_stub.call_rpc :list_exascale_db_storage_vaults, request, options: options do |response, operation|
4819
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, request, response, operation, options
4820
+ yield response, operation if block_given?
4821
+ throw :response, response
4822
+ end
4823
+ rescue ::GRPC::BadStatus => e
4824
+ raise ::Google::Cloud::Error.from_error(e)
4825
+ end
4826
+
4827
+ ##
4828
+ # Gets details of a single ExascaleDB Storage Vault.
4829
+ #
4830
+ # @overload get_exascale_db_storage_vault(request, options = nil)
4831
+ # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type
4832
+ # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash.
4833
+ #
4834
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash]
4835
+ # A request object representing the call parameters. Required. To specify no
4836
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4837
+ # @param options [::Gapic::CallOptions, ::Hash]
4838
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4839
+ #
4840
+ # @overload get_exascale_db_storage_vault(name: nil)
4841
+ # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at
4842
+ # least one keyword argument is required. To specify no parameters, or to keep all
4843
+ # the default parameter values, pass an empty Hash as a request object (see above).
4844
+ #
4845
+ # @param name [::String]
4846
+ # Required. The name of the ExascaleDbStorageVault in the following format:
4847
+ # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}.
4848
+ #
4849
+ # @yield [response, operation] Access the result along with the RPC operation
4850
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault]
4851
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4852
+ #
4853
+ # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault]
4854
+ #
4855
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4856
+ #
4857
+ # @example Basic example
4858
+ # require "google/cloud/oracle_database/v1"
4859
+ #
4860
+ # # Create a client object. The client can be reused for multiple calls.
4861
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4862
+ #
4863
+ # # Create a request. To set request fields, pass in keyword arguments.
4864
+ # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new
4865
+ #
4866
+ # # Call the get_exascale_db_storage_vault method.
4867
+ # result = client.get_exascale_db_storage_vault request
4868
+ #
4869
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.
4870
+ # p result
4871
+ #
4872
+ def get_exascale_db_storage_vault request, options = nil
4873
+ raise ::ArgumentError, "request must be provided" if request.nil?
4874
+
4875
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest
4876
+
4877
+ # Converts hash and nil to an options object
4878
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4879
+
4880
+ # Customize the options with defaults
4881
+ metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h
4882
+
4883
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4884
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4885
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4886
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4887
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4888
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4889
+
4890
+ header_params = {}
4891
+ if request.name
4892
+ header_params["name"] = request.name
4893
+ end
4894
+
4895
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4896
+ metadata[:"x-goog-request-params"] ||= request_params_header
4897
+
4898
+ options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout,
4899
+ metadata: metadata,
4900
+ retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy
4901
+
4902
+ options.apply_defaults timeout: @config.timeout,
4903
+ metadata: @config.metadata,
4904
+ retry_policy: @config.retry_policy
4905
+
4906
+ @oracle_database_stub.call_rpc :get_exascale_db_storage_vault, request, options: options do |response, operation|
4907
+ yield response, operation if block_given?
4908
+ end
4909
+ rescue ::GRPC::BadStatus => e
4910
+ raise ::Google::Cloud::Error.from_error(e)
4911
+ end
4912
+
4913
+ ##
4914
+ # Creates a new ExascaleDB Storage Vault resource.
4915
+ #
4916
+ # @overload create_exascale_db_storage_vault(request, options = nil)
4917
+ # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type
4918
+ # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash.
4919
+ #
4920
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash]
4921
+ # A request object representing the call parameters. Required. To specify no
4922
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4923
+ # @param options [::Gapic::CallOptions, ::Hash]
4924
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4925
+ #
4926
+ # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil)
4927
+ # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at
4928
+ # least one keyword argument is required. To specify no parameters, or to keep all
4929
+ # the default parameter values, pass an empty Hash as a request object (see above).
4930
+ #
4931
+ # @param parent [::String]
4932
+ # Required. The value for parent of the ExascaleDbStorageVault in the
4933
+ # following format: projects/\\{project}/locations/\\{location}.
4934
+ # @param exascale_db_storage_vault_id [::String]
4935
+ # Required. The ID of the ExascaleDbStorageVault to create. This value is
4936
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
4937
+ # 63 characters in length. The value must start with a letter and end with a
4938
+ # letter or a number.
4939
+ # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash]
4940
+ # Required. The resource being created.
4941
+ # @param request_id [::String]
4942
+ # Optional. An optional request ID to identify requests. Specify a unique
4943
+ # request ID so that if you must retry your request, the server will know to
4944
+ # ignore the request if it has already been completed. The server will
4945
+ # guarantee that for at least 60 minutes since the first request.
4946
+ #
4947
+ # For example, consider a situation where you make an initial request and the
4948
+ # request times out. If you make the request again with the same request
4949
+ # ID, the server can check if original operation with the same request ID
4950
+ # was received, and if so, will ignore the second request. This prevents
4951
+ # clients from accidentally creating duplicate commitments.
4952
+ #
4953
+ # The request ID must be a valid UUID with the exception that zero UUID is
4954
+ # not supported (00000000-0000-0000-0000-000000000000).
4955
+ #
4956
+ # @yield [response, operation] Access the result along with the RPC operation
4957
+ # @yieldparam response [::Gapic::Operation]
4958
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4959
+ #
4960
+ # @return [::Gapic::Operation]
4961
+ #
4962
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4963
+ #
4964
+ # @example Basic example
4965
+ # require "google/cloud/oracle_database/v1"
4966
+ #
4967
+ # # Create a client object. The client can be reused for multiple calls.
4968
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4969
+ #
4970
+ # # Create a request. To set request fields, pass in keyword arguments.
4971
+ # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new
4972
+ #
4973
+ # # Call the create_exascale_db_storage_vault method.
4974
+ # result = client.create_exascale_db_storage_vault request
4975
+ #
4976
+ # # The returned object is of type Gapic::Operation. You can use it to
4977
+ # # check the status of an operation, cancel it, or wait for results.
4978
+ # # Here is how to wait for a response.
4979
+ # result.wait_until_done! timeout: 60
4980
+ # if result.response?
4981
+ # p result.response
4982
+ # else
4983
+ # puts "No response received."
4984
+ # end
4985
+ #
4986
+ def create_exascale_db_storage_vault request, options = nil
4987
+ raise ::ArgumentError, "request must be provided" if request.nil?
4988
+
4989
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest
4990
+
4991
+ # Converts hash and nil to an options object
4992
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4993
+
4994
+ # Customize the options with defaults
4995
+ metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h
4996
+
4997
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4998
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4999
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5000
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5001
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5002
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5003
+
5004
+ header_params = {}
5005
+ if request.parent
5006
+ header_params["parent"] = request.parent
5007
+ end
5008
+
5009
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5010
+ metadata[:"x-goog-request-params"] ||= request_params_header
5011
+
5012
+ options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout,
5013
+ metadata: metadata,
5014
+ retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy
5015
+
5016
+ options.apply_defaults timeout: @config.timeout,
5017
+ metadata: @config.metadata,
5018
+ retry_policy: @config.retry_policy
5019
+
5020
+ @oracle_database_stub.call_rpc :create_exascale_db_storage_vault, request, options: options do |response, operation|
5021
+ response = ::Gapic::Operation.new response, @operations_client, options: options
5022
+ yield response, operation if block_given?
5023
+ throw :response, response
5024
+ end
5025
+ rescue ::GRPC::BadStatus => e
5026
+ raise ::Google::Cloud::Error.from_error(e)
5027
+ end
5028
+
5029
+ ##
5030
+ # Deletes a single ExascaleDB Storage Vault.
5031
+ #
5032
+ # @overload delete_exascale_db_storage_vault(request, options = nil)
5033
+ # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type
5034
+ # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash.
5035
+ #
5036
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash]
5037
+ # A request object representing the call parameters. Required. To specify no
5038
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5039
+ # @param options [::Gapic::CallOptions, ::Hash]
5040
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5041
+ #
5042
+ # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil)
5043
+ # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at
5044
+ # least one keyword argument is required. To specify no parameters, or to keep all
5045
+ # the default parameter values, pass an empty Hash as a request object (see above).
5046
+ #
5047
+ # @param name [::String]
5048
+ # Required. The name of the ExascaleDbStorageVault in the following format:
5049
+ # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}.
5050
+ # @param request_id [::String]
5051
+ # Optional. An optional ID to identify the request. This value is used to
5052
+ # identify duplicate requests. If you make a request with the same request ID
5053
+ # and the original request is still in progress or completed, the server
5054
+ # ignores the second request. This prevents clients from
5055
+ # accidentally creating duplicate commitments.
5056
+ #
5057
+ # The request ID must be a valid UUID with the exception that zero UUID is
5058
+ # not supported (00000000-0000-0000-0000-000000000000).
5059
+ #
5060
+ # @yield [response, operation] Access the result along with the RPC operation
5061
+ # @yieldparam response [::Gapic::Operation]
5062
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5063
+ #
5064
+ # @return [::Gapic::Operation]
5065
+ #
5066
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5067
+ #
5068
+ # @example Basic example
5069
+ # require "google/cloud/oracle_database/v1"
5070
+ #
5071
+ # # Create a client object. The client can be reused for multiple calls.
5072
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5073
+ #
5074
+ # # Create a request. To set request fields, pass in keyword arguments.
5075
+ # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new
5076
+ #
5077
+ # # Call the delete_exascale_db_storage_vault method.
5078
+ # result = client.delete_exascale_db_storage_vault request
5079
+ #
5080
+ # # The returned object is of type Gapic::Operation. You can use it to
5081
+ # # check the status of an operation, cancel it, or wait for results.
5082
+ # # Here is how to wait for a response.
5083
+ # result.wait_until_done! timeout: 60
5084
+ # if result.response?
5085
+ # p result.response
5086
+ # else
5087
+ # puts "No response received."
5088
+ # end
5089
+ #
5090
+ def delete_exascale_db_storage_vault request, options = nil
5091
+ raise ::ArgumentError, "request must be provided" if request.nil?
5092
+
5093
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest
5094
+
5095
+ # Converts hash and nil to an options object
5096
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5097
+
5098
+ # Customize the options with defaults
5099
+ metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h
5100
+
5101
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5102
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5103
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5104
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5105
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5106
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5107
+
5108
+ header_params = {}
5109
+ if request.name
5110
+ header_params["name"] = request.name
5111
+ end
5112
+
5113
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5114
+ metadata[:"x-goog-request-params"] ||= request_params_header
5115
+
5116
+ options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout,
5117
+ metadata: metadata,
5118
+ retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy
5119
+
5120
+ options.apply_defaults timeout: @config.timeout,
5121
+ metadata: @config.metadata,
5122
+ retry_policy: @config.retry_policy
5123
+
5124
+ @oracle_database_stub.call_rpc :delete_exascale_db_storage_vault, request, options: options do |response, operation|
5125
+ response = ::Gapic::Operation.new response, @operations_client, options: options
5126
+ yield response, operation if block_given?
5127
+ throw :response, response
5128
+ end
5129
+ rescue ::GRPC::BadStatus => e
5130
+ raise ::Google::Cloud::Error.from_error(e)
5131
+ end
5132
+
5133
+ ##
5134
+ # Lists all the DbSystemInitialStorageSizes for the given project and
5135
+ # location.
5136
+ #
5137
+ # @overload list_db_system_initial_storage_sizes(request, options = nil)
5138
+ # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type
5139
+ # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash.
5140
+ #
5141
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash]
5142
+ # A request object representing the call parameters. Required. To specify no
5143
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5144
+ # @param options [::Gapic::CallOptions, ::Hash]
5145
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5146
+ #
5147
+ # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil)
5148
+ # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at
5149
+ # least one keyword argument is required. To specify no parameters, or to keep all
5150
+ # the default parameter values, pass an empty Hash as a request object (see above).
5151
+ #
5152
+ # @param parent [::String]
5153
+ # Required. The parent value for the DbSystemInitialStorageSize resource with
5154
+ # the format: projects/\\{project}/locations/\\{location}
5155
+ # @param page_size [::Integer]
5156
+ # Optional. The maximum number of items to return.
5157
+ # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be
5158
+ # returned. The maximum value is 1000; values above 1000 will be reset to
5159
+ # 1000.
5160
+ # @param page_token [::String]
5161
+ # Optional. A token identifying the requested page of results to return. All
5162
+ # fields except the filter should remain the same as in the request that
5163
+ # provided this page token.
5164
+ #
5165
+ # @yield [response, operation] Access the result along with the RPC operation
5166
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>]
5167
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5168
+ #
5169
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>]
5170
+ #
5171
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5172
+ #
5173
+ # @example Basic example
5174
+ # require "google/cloud/oracle_database/v1"
5175
+ #
5176
+ # # Create a client object. The client can be reused for multiple calls.
5177
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5178
+ #
5179
+ # # Create a request. To set request fields, pass in keyword arguments.
5180
+ # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new
5181
+ #
5182
+ # # Call the list_db_system_initial_storage_sizes method.
5183
+ # result = client.list_db_system_initial_storage_sizes request
5184
+ #
5185
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5186
+ # # over elements, and API calls will be issued to fetch pages as needed.
5187
+ # result.each do |item|
5188
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize.
5189
+ # p item
5190
+ # end
5191
+ #
5192
+ def list_db_system_initial_storage_sizes request, options = nil
5193
+ raise ::ArgumentError, "request must be provided" if request.nil?
5194
+
5195
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest
5196
+
5197
+ # Converts hash and nil to an options object
5198
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5199
+
5200
+ # Customize the options with defaults
5201
+ metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h
5202
+
5203
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5204
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5205
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5206
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5207
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5208
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5209
+
5210
+ header_params = {}
5211
+ if request.parent
5212
+ header_params["parent"] = request.parent
5213
+ end
5214
+
5215
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5216
+ metadata[:"x-goog-request-params"] ||= request_params_header
5217
+
5218
+ options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout,
5219
+ metadata: metadata,
5220
+ retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy
5221
+
5222
+ options.apply_defaults timeout: @config.timeout,
5223
+ metadata: @config.metadata,
5224
+ retry_policy: @config.retry_policy
5225
+
5226
+ @oracle_database_stub.call_rpc :list_db_system_initial_storage_sizes, request, options: options do |response, operation|
5227
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, request, response, operation, options
5228
+ yield response, operation if block_given?
5229
+ throw :response, response
5230
+ end
5231
+ rescue ::GRPC::BadStatus => e
5232
+ raise ::Google::Cloud::Error.from_error(e)
5233
+ end
5234
+
5235
+ ##
5236
+ # Lists all the Databases for the given project, location and DbSystem.
5237
+ #
5238
+ # @overload list_databases(request, options = nil)
5239
+ # Pass arguments to `list_databases` via a request object, either of type
5240
+ # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash.
5241
+ #
5242
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash]
5243
+ # A request object representing the call parameters. Required. To specify no
5244
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5245
+ # @param options [::Gapic::CallOptions, ::Hash]
5246
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5247
+ #
5248
+ # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
5249
+ # Pass arguments to `list_databases` via keyword arguments. Note that at
5250
+ # least one keyword argument is required. To specify no parameters, or to keep all
5251
+ # the default parameter values, pass an empty Hash as a request object (see above).
5252
+ #
5253
+ # @param parent [::String]
5254
+ # Required. The parent resource name in the following format:
5255
+ # projects/\\{project}/locations/\\{region}
5256
+ # @param page_size [::Integer]
5257
+ # Optional. The maximum number of items to return.
5258
+ # If unspecified, a maximum of 50 Databases will be returned.
5259
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
5260
+ # @param page_token [::String]
5261
+ # Optional. A token identifying the requested page of results to return. All
5262
+ # fields except the filter should remain the same as in the request that
5263
+ # provided this page token.
5264
+ # @param filter [::String]
5265
+ # Optional. An expression for filtering the results of the request. list for
5266
+ # container databases is supported only with a valid dbSystem (full resource
5267
+ # name) filter in this format:
5268
+ # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"`
5269
+ #
5270
+ # @yield [response, operation] Access the result along with the RPC operation
5271
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>]
5272
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5273
+ #
5274
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>]
5275
+ #
5276
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5277
+ #
5278
+ # @example Basic example
5279
+ # require "google/cloud/oracle_database/v1"
5280
+ #
5281
+ # # Create a client object. The client can be reused for multiple calls.
5282
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5283
+ #
5284
+ # # Create a request. To set request fields, pass in keyword arguments.
5285
+ # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new
5286
+ #
5287
+ # # Call the list_databases method.
5288
+ # result = client.list_databases request
5289
+ #
5290
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5291
+ # # over elements, and API calls will be issued to fetch pages as needed.
5292
+ # result.each do |item|
5293
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database.
5294
+ # p item
5295
+ # end
5296
+ #
5297
+ def list_databases request, options = nil
5298
+ raise ::ArgumentError, "request must be provided" if request.nil?
5299
+
5300
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest
5301
+
5302
+ # Converts hash and nil to an options object
5303
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5304
+
5305
+ # Customize the options with defaults
5306
+ metadata = @config.rpcs.list_databases.metadata.to_h
5307
+
5308
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5309
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5310
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5311
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5312
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5313
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5314
+
5315
+ header_params = {}
5316
+ if request.parent
5317
+ header_params["parent"] = request.parent
5318
+ end
5319
+
5320
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5321
+ metadata[:"x-goog-request-params"] ||= request_params_header
5322
+
5323
+ options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
5324
+ metadata: metadata,
5325
+ retry_policy: @config.rpcs.list_databases.retry_policy
5326
+
5327
+ options.apply_defaults timeout: @config.timeout,
5328
+ metadata: @config.metadata,
5329
+ retry_policy: @config.retry_policy
5330
+
5331
+ @oracle_database_stub.call_rpc :list_databases, request, options: options do |response, operation|
5332
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_databases, request, response, operation, options
5333
+ yield response, operation if block_given?
5334
+ throw :response, response
5335
+ end
5336
+ rescue ::GRPC::BadStatus => e
5337
+ raise ::Google::Cloud::Error.from_error(e)
5338
+ end
5339
+
5340
+ ##
5341
+ # Gets details of a single Database.
5342
+ #
5343
+ # @overload get_database(request, options = nil)
5344
+ # Pass arguments to `get_database` via a request object, either of type
5345
+ # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash.
5346
+ #
5347
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash]
5348
+ # A request object representing the call parameters. Required. To specify no
5349
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5350
+ # @param options [::Gapic::CallOptions, ::Hash]
5351
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5352
+ #
5353
+ # @overload get_database(name: nil)
5354
+ # Pass arguments to `get_database` via keyword arguments. Note that at
5355
+ # least one keyword argument is required. To specify no parameters, or to keep all
5356
+ # the default parameter values, pass an empty Hash as a request object (see above).
5357
+ #
5358
+ # @param name [::String]
5359
+ # Required. The name of the Database resource in the following format:
5360
+ # projects/\\{project}/locations/\\{region}/databases/\\{database}
5361
+ #
5362
+ # @yield [response, operation] Access the result along with the RPC operation
5363
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::Database]
5364
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5365
+ #
5366
+ # @return [::Google::Cloud::OracleDatabase::V1::Database]
5367
+ #
5368
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5369
+ #
5370
+ # @example Basic example
5371
+ # require "google/cloud/oracle_database/v1"
5372
+ #
5373
+ # # Create a client object. The client can be reused for multiple calls.
5374
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5375
+ #
5376
+ # # Create a request. To set request fields, pass in keyword arguments.
5377
+ # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new
5378
+ #
5379
+ # # Call the get_database method.
5380
+ # result = client.get_database request
5381
+ #
5382
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database.
5383
+ # p result
5384
+ #
5385
+ def get_database request, options = nil
5386
+ raise ::ArgumentError, "request must be provided" if request.nil?
5387
+
5388
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest
5389
+
5390
+ # Converts hash and nil to an options object
5391
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5392
+
5393
+ # Customize the options with defaults
5394
+ metadata = @config.rpcs.get_database.metadata.to_h
5395
+
5396
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5397
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5398
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5399
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5400
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5401
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5402
+
5403
+ header_params = {}
5404
+ if request.name
5405
+ header_params["name"] = request.name
5406
+ end
5407
+
5408
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5409
+ metadata[:"x-goog-request-params"] ||= request_params_header
5410
+
5411
+ options.apply_defaults timeout: @config.rpcs.get_database.timeout,
5412
+ metadata: metadata,
5413
+ retry_policy: @config.rpcs.get_database.retry_policy
5414
+
5415
+ options.apply_defaults timeout: @config.timeout,
5416
+ metadata: @config.metadata,
5417
+ retry_policy: @config.retry_policy
5418
+
5419
+ @oracle_database_stub.call_rpc :get_database, request, options: options do |response, operation|
5420
+ yield response, operation if block_given?
5421
+ end
5422
+ rescue ::GRPC::BadStatus => e
5423
+ raise ::Google::Cloud::Error.from_error(e)
5424
+ end
5425
+
5426
+ ##
5427
+ # Lists all the PluggableDatabases for the given project, location and
5428
+ # Container Database.
5429
+ #
5430
+ # @overload list_pluggable_databases(request, options = nil)
5431
+ # Pass arguments to `list_pluggable_databases` via a request object, either of type
5432
+ # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash.
5433
+ #
5434
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash]
5435
+ # A request object representing the call parameters. Required. To specify no
5436
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5437
+ # @param options [::Gapic::CallOptions, ::Hash]
5438
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5439
+ #
5440
+ # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
5441
+ # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at
5442
+ # least one keyword argument is required. To specify no parameters, or to keep all
5443
+ # the default parameter values, pass an empty Hash as a request object (see above).
5444
+ #
5445
+ # @param parent [::String]
5446
+ # Required. The parent, which owns this collection of PluggableDatabases.
5447
+ # Format: projects/\\{project}/locations/\\{location}
5448
+ # @param page_size [::Integer]
5449
+ # Optional. The maximum number of PluggableDatabases to return. The service
5450
+ # may return fewer than this value.
5451
+ # @param page_token [::String]
5452
+ # Optional. A page token, received from a previous `ListPluggableDatabases`
5453
+ # call. Provide this to retrieve the subsequent page.
5454
+ #
5455
+ # When paginating, all other parameters provided to `ListPluggableDatabases`
5456
+ # must match the call that provided the page token.
5457
+ # @param filter [::String]
5458
+ # Optional. An expression for filtering the results of the request. List for
5459
+ # pluggable databases is supported only with a valid container database (full
5460
+ # resource name) filter in this format:
5461
+ # `database="projects/{project}/locations/{location}/databases/{database}"`
5462
+ #
5463
+ # @yield [response, operation] Access the result along with the RPC operation
5464
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>]
5465
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5466
+ #
5467
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>]
5468
+ #
5469
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5470
+ #
5471
+ # @example Basic example
5472
+ # require "google/cloud/oracle_database/v1"
5473
+ #
5474
+ # # Create a client object. The client can be reused for multiple calls.
5475
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5476
+ #
5477
+ # # Create a request. To set request fields, pass in keyword arguments.
5478
+ # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new
5479
+ #
5480
+ # # Call the list_pluggable_databases method.
5481
+ # result = client.list_pluggable_databases request
5482
+ #
5483
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5484
+ # # over elements, and API calls will be issued to fetch pages as needed.
5485
+ # result.each do |item|
5486
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.
5487
+ # p item
5488
+ # end
5489
+ #
5490
+ def list_pluggable_databases request, options = nil
5491
+ raise ::ArgumentError, "request must be provided" if request.nil?
5492
+
5493
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest
5494
+
5495
+ # Converts hash and nil to an options object
5496
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5497
+
5498
+ # Customize the options with defaults
5499
+ metadata = @config.rpcs.list_pluggable_databases.metadata.to_h
5500
+
5501
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5502
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5503
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5504
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5505
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5506
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5507
+
5508
+ header_params = {}
5509
+ if request.parent
5510
+ header_params["parent"] = request.parent
5511
+ end
5512
+
5513
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5514
+ metadata[:"x-goog-request-params"] ||= request_params_header
5515
+
5516
+ options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout,
5517
+ metadata: metadata,
5518
+ retry_policy: @config.rpcs.list_pluggable_databases.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.call_rpc :list_pluggable_databases, request, options: options do |response, operation|
5525
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, request, response, operation, options
5526
+ yield response, operation if block_given?
5527
+ throw :response, response
5528
+ end
5529
+ rescue ::GRPC::BadStatus => e
5530
+ raise ::Google::Cloud::Error.from_error(e)
5531
+ end
5532
+
5533
+ ##
5534
+ # Gets details of a single PluggableDatabase.
5535
+ #
5536
+ # @overload get_pluggable_database(request, options = nil)
5537
+ # Pass arguments to `get_pluggable_database` via a request object, either of type
5538
+ # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash.
5539
+ #
5540
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::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 get_pluggable_database(name: nil)
5547
+ # Pass arguments to `get_pluggable_database` 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 PluggableDatabase resource in the following
5553
+ # format:
5554
+ # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database}
5555
+ #
5556
+ # @yield [response, operation] Access the result along with the RPC operation
5557
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::PluggableDatabase]
5558
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5559
+ #
5560
+ # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase]
5561
+ #
5562
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5563
+ #
5564
+ # @example Basic example
5565
+ # require "google/cloud/oracle_database/v1"
5566
+ #
5567
+ # # Create a client object. The client can be reused for multiple calls.
5568
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5569
+ #
5570
+ # # Create a request. To set request fields, pass in keyword arguments.
5571
+ # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new
5572
+ #
5573
+ # # Call the get_pluggable_database method.
5574
+ # result = client.get_pluggable_database request
5575
+ #
5576
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase.
5577
+ # p result
5578
+ #
5579
+ def get_pluggable_database request, options = nil
5580
+ raise ::ArgumentError, "request must be provided" if request.nil?
5581
+
5582
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest
5583
+
5584
+ # Converts hash and nil to an options object
5585
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5586
+
5587
+ # Customize the options with defaults
5588
+ metadata = @config.rpcs.get_pluggable_database.metadata.to_h
5589
+
5590
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5591
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5592
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5593
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5594
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5595
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5596
+
5597
+ header_params = {}
5598
+ if request.name
5599
+ header_params["name"] = request.name
5600
+ end
5601
+
5602
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5603
+ metadata[:"x-goog-request-params"] ||= request_params_header
5604
+
5605
+ options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout,
5606
+ metadata: metadata,
5607
+ retry_policy: @config.rpcs.get_pluggable_database.retry_policy
5608
+
5609
+ options.apply_defaults timeout: @config.timeout,
5610
+ metadata: @config.metadata,
5611
+ retry_policy: @config.retry_policy
5612
+
5613
+ @oracle_database_stub.call_rpc :get_pluggable_database, request, options: options do |response, operation|
5614
+ yield response, operation if block_given?
5615
+ end
5616
+ rescue ::GRPC::BadStatus => e
5617
+ raise ::Google::Cloud::Error.from_error(e)
5618
+ end
5619
+
5620
+ ##
5621
+ # Lists all the DbSystems for the given project and location.
5622
+ #
5623
+ # @overload list_db_systems(request, options = nil)
5624
+ # Pass arguments to `list_db_systems` via a request object, either of type
5625
+ # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash.
5626
+ #
5627
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash]
5628
+ # A request object representing the call parameters. Required. To specify no
5629
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5630
+ # @param options [::Gapic::CallOptions, ::Hash]
5631
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5632
+ #
5633
+ # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
5634
+ # Pass arguments to `list_db_systems` via keyword arguments. Note that at
5635
+ # least one keyword argument is required. To specify no parameters, or to keep all
5636
+ # the default parameter values, pass an empty Hash as a request object (see above).
5637
+ #
5638
+ # @param parent [::String]
5639
+ # Required. The parent value for DbSystems in the following format:
5640
+ # projects/\\{project}/locations/\\{location}.
5641
+ # @param page_size [::Integer]
5642
+ # Optional. The maximum number of items to return.
5643
+ # If unspecified, at most 50 DbSystems will be returned.
5644
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
5645
+ # @param page_token [::String]
5646
+ # Optional. A token identifying a page of results the server should return.
5647
+ # @param filter [::String]
5648
+ # Optional. An expression for filtering the results of the request.
5649
+ # @param order_by [::String]
5650
+ # Optional. An expression for ordering the results of the request.
5651
+ #
5652
+ # @yield [response, operation] Access the result along with the RPC operation
5653
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>]
5654
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5655
+ #
5656
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>]
5657
+ #
5658
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5659
+ #
5660
+ # @example Basic example
5661
+ # require "google/cloud/oracle_database/v1"
5662
+ #
5663
+ # # Create a client object. The client can be reused for multiple calls.
5664
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5665
+ #
5666
+ # # Create a request. To set request fields, pass in keyword arguments.
5667
+ # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new
5668
+ #
5669
+ # # Call the list_db_systems method.
5670
+ # result = client.list_db_systems request
5671
+ #
5672
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
5673
+ # # over elements, and API calls will be issued to fetch pages as needed.
5674
+ # result.each do |item|
5675
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem.
5676
+ # p item
5677
+ # end
5678
+ #
5679
+ def list_db_systems request, options = nil
5680
+ raise ::ArgumentError, "request must be provided" if request.nil?
5681
+
5682
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest
5683
+
5684
+ # Converts hash and nil to an options object
5685
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5686
+
5687
+ # Customize the options with defaults
5688
+ metadata = @config.rpcs.list_db_systems.metadata.to_h
5689
+
5690
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5691
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5692
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5693
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5694
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5695
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5696
+
5697
+ header_params = {}
5698
+ if request.parent
5699
+ header_params["parent"] = request.parent
5700
+ end
5701
+
5702
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5703
+ metadata[:"x-goog-request-params"] ||= request_params_header
5704
+
5705
+ options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout,
5706
+ metadata: metadata,
5707
+ retry_policy: @config.rpcs.list_db_systems.retry_policy
5708
+
5709
+ options.apply_defaults timeout: @config.timeout,
5710
+ metadata: @config.metadata,
5711
+ retry_policy: @config.retry_policy
5712
+
5713
+ @oracle_database_stub.call_rpc :list_db_systems, request, options: options do |response, operation|
5714
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_systems, request, response, operation, options
5715
+ yield response, operation if block_given?
5716
+ throw :response, response
5717
+ end
5718
+ rescue ::GRPC::BadStatus => e
5719
+ raise ::Google::Cloud::Error.from_error(e)
5720
+ end
5721
+
5722
+ ##
5723
+ # Gets details of a single DbSystem.
5724
+ #
5725
+ # @overload get_db_system(request, options = nil)
5726
+ # Pass arguments to `get_db_system` via a request object, either of type
5727
+ # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash.
5728
+ #
5729
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash]
5730
+ # A request object representing the call parameters. Required. To specify no
5731
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5732
+ # @param options [::Gapic::CallOptions, ::Hash]
5733
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5734
+ #
5735
+ # @overload get_db_system(name: nil)
5736
+ # Pass arguments to `get_db_system` via keyword arguments. Note that at
5737
+ # least one keyword argument is required. To specify no parameters, or to keep all
5738
+ # the default parameter values, pass an empty Hash as a request object (see above).
5739
+ #
5740
+ # @param name [::String]
5741
+ # Required. The name of the DbSystem in the following format:
5742
+ # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}.
5743
+ #
5744
+ # @yield [response, operation] Access the result along with the RPC operation
5745
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::DbSystem]
5746
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5747
+ #
5748
+ # @return [::Google::Cloud::OracleDatabase::V1::DbSystem]
5749
+ #
5750
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5751
+ #
5752
+ # @example Basic example
5753
+ # require "google/cloud/oracle_database/v1"
5754
+ #
5755
+ # # Create a client object. The client can be reused for multiple calls.
5756
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5757
+ #
5758
+ # # Create a request. To set request fields, pass in keyword arguments.
5759
+ # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new
5760
+ #
5761
+ # # Call the get_db_system method.
5762
+ # result = client.get_db_system request
5763
+ #
5764
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem.
5765
+ # p result
5766
+ #
5767
+ def get_db_system request, options = nil
5768
+ raise ::ArgumentError, "request must be provided" if request.nil?
5769
+
5770
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest
5771
+
5772
+ # Converts hash and nil to an options object
5773
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5774
+
5775
+ # Customize the options with defaults
5776
+ metadata = @config.rpcs.get_db_system.metadata.to_h
5777
+
5778
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5779
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5780
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5781
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5782
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5783
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5784
+
5785
+ header_params = {}
5786
+ if request.name
5787
+ header_params["name"] = request.name
5788
+ end
5789
+
5790
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5791
+ metadata[:"x-goog-request-params"] ||= request_params_header
5792
+
5793
+ options.apply_defaults timeout: @config.rpcs.get_db_system.timeout,
5794
+ metadata: metadata,
5795
+ retry_policy: @config.rpcs.get_db_system.retry_policy
5796
+
5797
+ options.apply_defaults timeout: @config.timeout,
5798
+ metadata: @config.metadata,
5799
+ retry_policy: @config.retry_policy
5800
+
5801
+ @oracle_database_stub.call_rpc :get_db_system, request, options: options do |response, operation|
5802
+ yield response, operation if block_given?
5803
+ end
5804
+ rescue ::GRPC::BadStatus => e
5805
+ raise ::Google::Cloud::Error.from_error(e)
5806
+ end
5807
+
5808
+ ##
5809
+ # Creates a new DbSystem in a given project and location.
5810
+ #
5811
+ # @overload create_db_system(request, options = nil)
5812
+ # Pass arguments to `create_db_system` via a request object, either of type
5813
+ # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash.
5814
+ #
5815
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash]
5816
+ # A request object representing the call parameters. Required. To specify no
5817
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5818
+ # @param options [::Gapic::CallOptions, ::Hash]
5819
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5820
+ #
5821
+ # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil)
5822
+ # Pass arguments to `create_db_system` via keyword arguments. Note that at
5823
+ # least one keyword argument is required. To specify no parameters, or to keep all
5824
+ # the default parameter values, pass an empty Hash as a request object (see above).
5825
+ #
5826
+ # @param parent [::String]
5827
+ # Required. The value for parent of the DbSystem in the following format:
5828
+ # projects/\\{project}/locations/\\{location}.
5829
+ # @param db_system_id [::String]
5830
+ # Required. The ID of the DbSystem to create. This value is
5831
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
5832
+ # 63 characters in length. The value must start with a letter and end with a
5833
+ # letter or a number.
5834
+ # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash]
5835
+ # Required. The resource being created.
5836
+ # @param request_id [::String]
5837
+ # Optional. An optional request ID to identify requests. Specify a unique
5838
+ # request ID so that if you must retry your request, the server will know to
5839
+ # ignore the request if it has already been completed. The server will
5840
+ # guarantee that for at least 60 minutes since the first request.
5841
+ #
5842
+ # For example, consider a situation where you make an initial request and the
5843
+ # request times out. If you make the request again with the same request
5844
+ # ID, the server can check if original operation with the same request ID
5845
+ # was received, and if so, will ignore the second request. This prevents
5846
+ # clients from accidentally creating duplicate commitments.
5847
+ #
5848
+ # The request ID must be a valid UUID with the exception that zero UUID is
5849
+ # not supported (00000000-0000-0000-0000-000000000000).
5850
+ #
5851
+ # @yield [response, operation] Access the result along with the RPC operation
5852
+ # @yieldparam response [::Gapic::Operation]
5853
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5854
+ #
5855
+ # @return [::Gapic::Operation]
5856
+ #
5857
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5858
+ #
5859
+ # @example Basic example
5860
+ # require "google/cloud/oracle_database/v1"
5861
+ #
5862
+ # # Create a client object. The client can be reused for multiple calls.
5863
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5864
+ #
5865
+ # # Create a request. To set request fields, pass in keyword arguments.
5866
+ # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new
5867
+ #
5868
+ # # Call the create_db_system method.
5869
+ # result = client.create_db_system request
5870
+ #
5871
+ # # The returned object is of type Gapic::Operation. You can use it to
5872
+ # # check the status of an operation, cancel it, or wait for results.
5873
+ # # Here is how to wait for a response.
5874
+ # result.wait_until_done! timeout: 60
5875
+ # if result.response?
5876
+ # p result.response
5877
+ # else
5878
+ # puts "No response received."
5879
+ # end
5880
+ #
5881
+ def create_db_system request, options = nil
5882
+ raise ::ArgumentError, "request must be provided" if request.nil?
5883
+
5884
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest
5885
+
5886
+ # Converts hash and nil to an options object
5887
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5888
+
5889
+ # Customize the options with defaults
5890
+ metadata = @config.rpcs.create_db_system.metadata.to_h
5891
+
5892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5893
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5894
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5895
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
5896
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
5897
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5898
+
5899
+ header_params = {}
5900
+ if request.parent
5901
+ header_params["parent"] = request.parent
5902
+ end
5903
+
5904
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5905
+ metadata[:"x-goog-request-params"] ||= request_params_header
5906
+
5907
+ options.apply_defaults timeout: @config.rpcs.create_db_system.timeout,
5908
+ metadata: metadata,
5909
+ retry_policy: @config.rpcs.create_db_system.retry_policy
5910
+
5911
+ options.apply_defaults timeout: @config.timeout,
5912
+ metadata: @config.metadata,
5913
+ retry_policy: @config.retry_policy
5914
+
5915
+ @oracle_database_stub.call_rpc :create_db_system, request, options: options do |response, operation|
5916
+ response = ::Gapic::Operation.new response, @operations_client, options: options
5917
+ yield response, operation if block_given?
5918
+ throw :response, response
5919
+ end
5920
+ rescue ::GRPC::BadStatus => e
5921
+ raise ::Google::Cloud::Error.from_error(e)
5922
+ end
5923
+
5924
+ ##
5925
+ # Deletes a single DbSystem.
5926
+ #
5927
+ # @overload delete_db_system(request, options = nil)
5928
+ # Pass arguments to `delete_db_system` via a request object, either of type
5929
+ # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash.
5930
+ #
5931
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash]
5932
+ # A request object representing the call parameters. Required. To specify no
5933
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5934
+ # @param options [::Gapic::CallOptions, ::Hash]
5935
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5936
+ #
5937
+ # @overload delete_db_system(name: nil, request_id: nil)
5938
+ # Pass arguments to `delete_db_system` via keyword arguments. Note that at
5939
+ # least one keyword argument is required. To specify no parameters, or to keep all
5940
+ # the default parameter values, pass an empty Hash as a request object (see above).
5941
+ #
5942
+ # @param name [::String]
5943
+ # Required. The name of the DbSystem in the following format:
5944
+ # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}.
5945
+ # @param request_id [::String]
5946
+ # Optional. An optional ID to identify the request. This value is used to
5947
+ # identify duplicate requests. If you make a request with the same request ID
5948
+ # and the original request is still in progress or completed, the server
5949
+ # ignores the second request. This prevents clients from
5950
+ # accidentally creating duplicate commitments.
5951
+ #
5952
+ # The request ID must be a valid UUID with the exception that zero UUID is
5953
+ # not supported (00000000-0000-0000-0000-000000000000).
5954
+ #
5955
+ # @yield [response, operation] Access the result along with the RPC operation
5956
+ # @yieldparam response [::Gapic::Operation]
5957
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5958
+ #
5959
+ # @return [::Gapic::Operation]
5960
+ #
5961
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5962
+ #
5963
+ # @example Basic example
5964
+ # require "google/cloud/oracle_database/v1"
5965
+ #
5966
+ # # Create a client object. The client can be reused for multiple calls.
5967
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
5968
+ #
5969
+ # # Create a request. To set request fields, pass in keyword arguments.
5970
+ # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new
5971
+ #
5972
+ # # Call the delete_db_system method.
5973
+ # result = client.delete_db_system request
5974
+ #
5975
+ # # The returned object is of type Gapic::Operation. You can use it to
5976
+ # # check the status of an operation, cancel it, or wait for results.
5977
+ # # Here is how to wait for a response.
5978
+ # result.wait_until_done! timeout: 60
5979
+ # if result.response?
5980
+ # p result.response
5981
+ # else
5982
+ # puts "No response received."
5983
+ # end
5984
+ #
5985
+ def delete_db_system request, options = nil
5986
+ raise ::ArgumentError, "request must be provided" if request.nil?
5987
+
5988
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest
5989
+
5990
+ # Converts hash and nil to an options object
5991
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5992
+
5993
+ # Customize the options with defaults
5994
+ metadata = @config.rpcs.delete_db_system.metadata.to_h
5995
+
5996
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
5997
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5998
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5999
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6000
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6001
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6002
+
6003
+ header_params = {}
6004
+ if request.name
6005
+ header_params["name"] = request.name
6006
+ end
6007
+
6008
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6009
+ metadata[:"x-goog-request-params"] ||= request_params_header
6010
+
6011
+ options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout,
6012
+ metadata: metadata,
6013
+ retry_policy: @config.rpcs.delete_db_system.retry_policy
6014
+
6015
+ options.apply_defaults timeout: @config.timeout,
6016
+ metadata: @config.metadata,
6017
+ retry_policy: @config.retry_policy
6018
+
6019
+ @oracle_database_stub.call_rpc :delete_db_system, request, options: options do |response, operation|
6020
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6021
+ yield response, operation if block_given?
6022
+ throw :response, response
6023
+ end
6024
+ rescue ::GRPC::BadStatus => e
6025
+ raise ::Google::Cloud::Error.from_error(e)
6026
+ end
6027
+
6028
+ ##
6029
+ # List DbVersions for the given project and location.
6030
+ #
6031
+ # @overload list_db_versions(request, options = nil)
6032
+ # Pass arguments to `list_db_versions` via a request object, either of type
6033
+ # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash.
6034
+ #
6035
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash]
6036
+ # A request object representing the call parameters. Required. To specify no
6037
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6038
+ # @param options [::Gapic::CallOptions, ::Hash]
6039
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6040
+ #
6041
+ # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
6042
+ # Pass arguments to `list_db_versions` via keyword arguments. Note that at
6043
+ # least one keyword argument is required. To specify no parameters, or to keep all
6044
+ # the default parameter values, pass an empty Hash as a request object (see above).
6045
+ #
6046
+ # @param parent [::String]
6047
+ # Required. The parent value for the DbVersion resource with the
6048
+ # format: projects/\\{project}/locations/\\{location}
6049
+ # @param page_size [::Integer]
6050
+ # Optional. The maximum number of items to return.
6051
+ # If unspecified, a maximum of 50 DbVersions will be returned.
6052
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
6053
+ # @param page_token [::String]
6054
+ # Optional. A token identifying the requested page of results to return. All
6055
+ # fields except the filter should remain the same as in the request that
6056
+ # provided this page token.
6057
+ # @param filter [::String]
6058
+ # Optional. Filter expression that matches a subset of the DbVersions to
6059
+ # show. The supported filter for dbSystem creation is `db_system_shape =
6060
+ # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no
6061
+ # filter is provided, all DbVersions will be returned.
6062
+ #
6063
+ # @yield [response, operation] Access the result along with the RPC operation
6064
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
6065
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6066
+ #
6067
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
6068
+ #
6069
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6070
+ #
6071
+ # @example Basic example
6072
+ # require "google/cloud/oracle_database/v1"
6073
+ #
6074
+ # # Create a client object. The client can be reused for multiple calls.
6075
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6076
+ #
6077
+ # # Create a request. To set request fields, pass in keyword arguments.
6078
+ # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new
6079
+ #
6080
+ # # Call the list_db_versions method.
6081
+ # result = client.list_db_versions request
6082
+ #
6083
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
6084
+ # # over elements, and API calls will be issued to fetch pages as needed.
6085
+ # result.each do |item|
6086
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion.
6087
+ # p item
6088
+ # end
6089
+ #
6090
+ def list_db_versions request, options = nil
6091
+ raise ::ArgumentError, "request must be provided" if request.nil?
6092
+
6093
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest
6094
+
6095
+ # Converts hash and nil to an options object
6096
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6097
+
6098
+ # Customize the options with defaults
6099
+ metadata = @config.rpcs.list_db_versions.metadata.to_h
6100
+
6101
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6102
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6103
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6104
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6105
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6106
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6107
+
6108
+ header_params = {}
6109
+ if request.parent
6110
+ header_params["parent"] = request.parent
6111
+ end
6112
+
6113
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6114
+ metadata[:"x-goog-request-params"] ||= request_params_header
6115
+
6116
+ options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout,
6117
+ metadata: metadata,
6118
+ retry_policy: @config.rpcs.list_db_versions.retry_policy
6119
+
6120
+ options.apply_defaults timeout: @config.timeout,
6121
+ metadata: @config.metadata,
6122
+ retry_policy: @config.retry_policy
6123
+
6124
+ @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation|
6125
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options
6126
+ yield response, operation if block_given?
6127
+ throw :response, response
6128
+ end
6129
+ rescue ::GRPC::BadStatus => e
6130
+ raise ::Google::Cloud::Error.from_error(e)
6131
+ end
6132
+
6133
+ ##
6134
+ # List DatabaseCharacterSets for the given project and location.
6135
+ #
6136
+ # @overload list_database_character_sets(request, options = nil)
6137
+ # Pass arguments to `list_database_character_sets` via a request object, either of type
6138
+ # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash.
6139
+ #
6140
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash]
6141
+ # A request object representing the call parameters. Required. To specify no
6142
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6143
+ # @param options [::Gapic::CallOptions, ::Hash]
6144
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6145
+ #
6146
+ # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil)
6147
+ # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at
6148
+ # least one keyword argument is required. To specify no parameters, or to keep all
6149
+ # the default parameter values, pass an empty Hash as a request object (see above).
6150
+ #
6151
+ # @param parent [::String]
6152
+ # Required. The parent value for DatabaseCharacterSets in the following
6153
+ # format: projects/\\{project}/locations/\\{location}.
6154
+ # @param page_size [::Integer]
6155
+ # Optional. The maximum number of DatabaseCharacterSets to return. The
6156
+ # service may return fewer than this value. If unspecified, at most 50
6157
+ # DatabaseCharacterSets will be returned. The maximum value is 1000; values
6158
+ # above 1000 will be coerced to 1000.
6159
+ # @param page_token [::String]
6160
+ # Optional. A page token, received from a previous
6161
+ # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
6162
+ # page.
6163
+ #
6164
+ # When paginating, all other parameters provided to
6165
+ # `ListDatabaseCharacterSets` must match the call that provided the page
6166
+ # token.
6167
+ # @param filter [::String]
6168
+ # Optional. An expression for filtering the results of the request. Only the
6169
+ # **character_set_type** field is supported in the following format:
6170
+ # `character_set_type="{characterSetType}"`. Accepted values include
6171
+ # `DATABASE` and `NATIONAL`.
6172
+ #
6173
+ # @yield [response, operation] Access the result along with the RPC operation
6174
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
6175
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6176
+ #
6177
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
6178
+ #
6179
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6180
+ #
6181
+ # @example Basic example
6182
+ # require "google/cloud/oracle_database/v1"
6183
+ #
6184
+ # # Create a client object. The client can be reused for multiple calls.
6185
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6186
+ #
6187
+ # # Create a request. To set request fields, pass in keyword arguments.
6188
+ # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new
6189
+ #
6190
+ # # Call the list_database_character_sets method.
6191
+ # result = client.list_database_character_sets request
6192
+ #
6193
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
6194
+ # # over elements, and API calls will be issued to fetch pages as needed.
6195
+ # result.each do |item|
6196
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet.
6197
+ # p item
6198
+ # end
6199
+ #
6200
+ def list_database_character_sets request, options = nil
6201
+ raise ::ArgumentError, "request must be provided" if request.nil?
6202
+
6203
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest
6204
+
6205
+ # Converts hash and nil to an options object
6206
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6207
+
6208
+ # Customize the options with defaults
6209
+ metadata = @config.rpcs.list_database_character_sets.metadata.to_h
6210
+
6211
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6212
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6213
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6214
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6215
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6216
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6217
+
6218
+ header_params = {}
6219
+ if request.parent
6220
+ header_params["parent"] = request.parent
6221
+ end
6222
+
6223
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6224
+ metadata[:"x-goog-request-params"] ||= request_params_header
6225
+
6226
+ options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout,
6227
+ metadata: metadata,
6228
+ retry_policy: @config.rpcs.list_database_character_sets.retry_policy
6229
+
6230
+ options.apply_defaults timeout: @config.timeout,
6231
+ metadata: @config.metadata,
6232
+ retry_policy: @config.retry_policy
6233
+
6234
+ @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation|
6235
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options
6236
+ yield response, operation if block_given?
6237
+ throw :response, response
6238
+ end
6239
+ rescue ::GRPC::BadStatus => e
6240
+ raise ::Google::Cloud::Error.from_error(e)
6241
+ end
6242
+
6243
+ ##
6244
+ # Configuration class for the OracleDatabase API.
6245
+ #
6246
+ # This class represents the configuration for OracleDatabase,
6247
+ # providing control over timeouts, retry behavior, logging, transport
6248
+ # parameters, and other low-level controls. Certain parameters can also be
6249
+ # applied individually to specific RPCs. See
6250
+ # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs}
6251
+ # for a list of RPCs that can be configured independently.
6252
+ #
6253
+ # Configuration can be applied globally to all clients, or to a single client
6254
+ # on construction.
6255
+ #
6256
+ # @example
6257
+ #
6258
+ # # Modify the global config, setting the timeout for
6259
+ # # list_cloud_exadata_infrastructures to 20 seconds,
6260
+ # # and all remaining timeouts to 10 seconds.
6261
+ # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config|
6262
+ # config.timeout = 10.0
6263
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
6264
+ # end
6265
+ #
6266
+ # # Apply the above configuration only to a new client.
6267
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config|
6268
+ # config.timeout = 10.0
6269
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
6270
+ # end
6271
+ #
6272
+ # @!attribute [rw] endpoint
6273
+ # A custom service endpoint, as a hostname or hostname:port. The default is
6274
+ # nil, indicating to use the default endpoint in the current universe domain.
6275
+ # @return [::String,nil]
6276
+ # @!attribute [rw] credentials
6277
+ # Credentials to send with calls. You may provide any of the following types:
6278
+ # * (`String`) The path to a service account key file in JSON format
6279
+ # * (`Hash`) A service account key as a Hash
6280
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
6281
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
6282
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
6283
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
6284
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
6285
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
6286
+ # * (`nil`) indicating no credentials
6287
+ #
6288
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
6289
+ # external source for authentication to Google Cloud, you must validate it before
2825
6290
  # providing it to a Google API client library. Providing an unvalidated credential
2826
6291
  # configuration to Google APIs can compromise the security of your systems and data.
2827
6292
  # For more information, refer to [Validate credential configurations from external
@@ -3002,6 +6467,11 @@ module Google
3002
6467
  #
3003
6468
  attr_reader :list_gi_versions
3004
6469
  ##
6470
+ # RPC-specific configuration for `list_minor_versions`
6471
+ # @return [::Gapic::Config::Method]
6472
+ #
6473
+ attr_reader :list_minor_versions
6474
+ ##
3005
6475
  # RPC-specific configuration for `list_db_system_shapes`
3006
6476
  # @return [::Gapic::Config::Method]
3007
6477
  #
@@ -3022,6 +6492,11 @@ module Google
3022
6492
  #
3023
6493
  attr_reader :create_autonomous_database
3024
6494
  ##
6495
+ # RPC-specific configuration for `update_autonomous_database`
6496
+ # @return [::Gapic::Config::Method]
6497
+ #
6498
+ attr_reader :update_autonomous_database
6499
+ ##
3025
6500
  # RPC-specific configuration for `delete_autonomous_database`
3026
6501
  # @return [::Gapic::Config::Method]
3027
6502
  #
@@ -3066,6 +6541,161 @@ module Google
3066
6541
  # @return [::Gapic::Config::Method]
3067
6542
  #
3068
6543
  attr_reader :restart_autonomous_database
6544
+ ##
6545
+ # RPC-specific configuration for `switchover_autonomous_database`
6546
+ # @return [::Gapic::Config::Method]
6547
+ #
6548
+ attr_reader :switchover_autonomous_database
6549
+ ##
6550
+ # RPC-specific configuration for `failover_autonomous_database`
6551
+ # @return [::Gapic::Config::Method]
6552
+ #
6553
+ attr_reader :failover_autonomous_database
6554
+ ##
6555
+ # RPC-specific configuration for `list_odb_networks`
6556
+ # @return [::Gapic::Config::Method]
6557
+ #
6558
+ attr_reader :list_odb_networks
6559
+ ##
6560
+ # RPC-specific configuration for `get_odb_network`
6561
+ # @return [::Gapic::Config::Method]
6562
+ #
6563
+ attr_reader :get_odb_network
6564
+ ##
6565
+ # RPC-specific configuration for `create_odb_network`
6566
+ # @return [::Gapic::Config::Method]
6567
+ #
6568
+ attr_reader :create_odb_network
6569
+ ##
6570
+ # RPC-specific configuration for `delete_odb_network`
6571
+ # @return [::Gapic::Config::Method]
6572
+ #
6573
+ attr_reader :delete_odb_network
6574
+ ##
6575
+ # RPC-specific configuration for `list_odb_subnets`
6576
+ # @return [::Gapic::Config::Method]
6577
+ #
6578
+ attr_reader :list_odb_subnets
6579
+ ##
6580
+ # RPC-specific configuration for `get_odb_subnet`
6581
+ # @return [::Gapic::Config::Method]
6582
+ #
6583
+ attr_reader :get_odb_subnet
6584
+ ##
6585
+ # RPC-specific configuration for `create_odb_subnet`
6586
+ # @return [::Gapic::Config::Method]
6587
+ #
6588
+ attr_reader :create_odb_subnet
6589
+ ##
6590
+ # RPC-specific configuration for `delete_odb_subnet`
6591
+ # @return [::Gapic::Config::Method]
6592
+ #
6593
+ attr_reader :delete_odb_subnet
6594
+ ##
6595
+ # RPC-specific configuration for `list_exadb_vm_clusters`
6596
+ # @return [::Gapic::Config::Method]
6597
+ #
6598
+ attr_reader :list_exadb_vm_clusters
6599
+ ##
6600
+ # RPC-specific configuration for `get_exadb_vm_cluster`
6601
+ # @return [::Gapic::Config::Method]
6602
+ #
6603
+ attr_reader :get_exadb_vm_cluster
6604
+ ##
6605
+ # RPC-specific configuration for `create_exadb_vm_cluster`
6606
+ # @return [::Gapic::Config::Method]
6607
+ #
6608
+ attr_reader :create_exadb_vm_cluster
6609
+ ##
6610
+ # RPC-specific configuration for `delete_exadb_vm_cluster`
6611
+ # @return [::Gapic::Config::Method]
6612
+ #
6613
+ attr_reader :delete_exadb_vm_cluster
6614
+ ##
6615
+ # RPC-specific configuration for `update_exadb_vm_cluster`
6616
+ # @return [::Gapic::Config::Method]
6617
+ #
6618
+ attr_reader :update_exadb_vm_cluster
6619
+ ##
6620
+ # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster`
6621
+ # @return [::Gapic::Config::Method]
6622
+ #
6623
+ attr_reader :remove_virtual_machine_exadb_vm_cluster
6624
+ ##
6625
+ # RPC-specific configuration for `list_exascale_db_storage_vaults`
6626
+ # @return [::Gapic::Config::Method]
6627
+ #
6628
+ attr_reader :list_exascale_db_storage_vaults
6629
+ ##
6630
+ # RPC-specific configuration for `get_exascale_db_storage_vault`
6631
+ # @return [::Gapic::Config::Method]
6632
+ #
6633
+ attr_reader :get_exascale_db_storage_vault
6634
+ ##
6635
+ # RPC-specific configuration for `create_exascale_db_storage_vault`
6636
+ # @return [::Gapic::Config::Method]
6637
+ #
6638
+ attr_reader :create_exascale_db_storage_vault
6639
+ ##
6640
+ # RPC-specific configuration for `delete_exascale_db_storage_vault`
6641
+ # @return [::Gapic::Config::Method]
6642
+ #
6643
+ attr_reader :delete_exascale_db_storage_vault
6644
+ ##
6645
+ # RPC-specific configuration for `list_db_system_initial_storage_sizes`
6646
+ # @return [::Gapic::Config::Method]
6647
+ #
6648
+ attr_reader :list_db_system_initial_storage_sizes
6649
+ ##
6650
+ # RPC-specific configuration for `list_databases`
6651
+ # @return [::Gapic::Config::Method]
6652
+ #
6653
+ attr_reader :list_databases
6654
+ ##
6655
+ # RPC-specific configuration for `get_database`
6656
+ # @return [::Gapic::Config::Method]
6657
+ #
6658
+ attr_reader :get_database
6659
+ ##
6660
+ # RPC-specific configuration for `list_pluggable_databases`
6661
+ # @return [::Gapic::Config::Method]
6662
+ #
6663
+ attr_reader :list_pluggable_databases
6664
+ ##
6665
+ # RPC-specific configuration for `get_pluggable_database`
6666
+ # @return [::Gapic::Config::Method]
6667
+ #
6668
+ attr_reader :get_pluggable_database
6669
+ ##
6670
+ # RPC-specific configuration for `list_db_systems`
6671
+ # @return [::Gapic::Config::Method]
6672
+ #
6673
+ attr_reader :list_db_systems
6674
+ ##
6675
+ # RPC-specific configuration for `get_db_system`
6676
+ # @return [::Gapic::Config::Method]
6677
+ #
6678
+ attr_reader :get_db_system
6679
+ ##
6680
+ # RPC-specific configuration for `create_db_system`
6681
+ # @return [::Gapic::Config::Method]
6682
+ #
6683
+ attr_reader :create_db_system
6684
+ ##
6685
+ # RPC-specific configuration for `delete_db_system`
6686
+ # @return [::Gapic::Config::Method]
6687
+ #
6688
+ attr_reader :delete_db_system
6689
+ ##
6690
+ # RPC-specific configuration for `list_db_versions`
6691
+ # @return [::Gapic::Config::Method]
6692
+ #
6693
+ attr_reader :list_db_versions
6694
+ ##
6695
+ # RPC-specific configuration for `list_database_character_sets`
6696
+ # @return [::Gapic::Config::Method]
6697
+ #
6698
+ attr_reader :list_database_character_sets
3069
6699
 
3070
6700
  # @private
3071
6701
  def initialize parent_rpcs = nil
@@ -3093,6 +6723,8 @@ module Google
3093
6723
  @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config
3094
6724
  list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions
3095
6725
  @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config
6726
+ list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions
6727
+ @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config
3096
6728
  list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes
3097
6729
  @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config
3098
6730
  list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases
@@ -3101,6 +6733,8 @@ module Google
3101
6733
  @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config
3102
6734
  create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database
3103
6735
  @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config
6736
+ update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database
6737
+ @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config
3104
6738
  delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database
3105
6739
  @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config
3106
6740
  restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database
@@ -3119,6 +6753,68 @@ module Google
3119
6753
  @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config
3120
6754
  restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database
3121
6755
  @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config
6756
+ switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database
6757
+ @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config
6758
+ failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database
6759
+ @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config
6760
+ list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks
6761
+ @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config
6762
+ get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network
6763
+ @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config
6764
+ create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network
6765
+ @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config
6766
+ delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network
6767
+ @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config
6768
+ list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets
6769
+ @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config
6770
+ get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet
6771
+ @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config
6772
+ create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet
6773
+ @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config
6774
+ delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet
6775
+ @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config
6776
+ list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters
6777
+ @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config
6778
+ get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster
6779
+ @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config
6780
+ create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster
6781
+ @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config
6782
+ delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster
6783
+ @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config
6784
+ update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster
6785
+ @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config
6786
+ 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
6787
+ @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config
6788
+ list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults
6789
+ @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config
6790
+ get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault
6791
+ @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config
6792
+ create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault
6793
+ @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config
6794
+ delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault
6795
+ @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config
6796
+ 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
6797
+ @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config
6798
+ list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
6799
+ @list_databases = ::Gapic::Config::Method.new list_databases_config
6800
+ get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database
6801
+ @get_database = ::Gapic::Config::Method.new get_database_config
6802
+ list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases
6803
+ @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config
6804
+ get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database
6805
+ @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config
6806
+ list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems
6807
+ @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config
6808
+ get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system
6809
+ @get_db_system = ::Gapic::Config::Method.new get_db_system_config
6810
+ create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system
6811
+ @create_db_system = ::Gapic::Config::Method.new create_db_system_config
6812
+ delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system
6813
+ @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config
6814
+ list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions
6815
+ @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config
6816
+ list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets
6817
+ @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config
3122
6818
 
3123
6819
  yield self if block_given?
3124
6820
  end