google-cloud-oracle_database-v1 0.13.0 → 0.14.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +2672 -184
  4. data/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb +2 -0
  5. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +152 -0
  6. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +2444 -117
  7. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb +2 -0
  8. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +1782 -373
  9. data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
  10. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +1 -1
  11. data/lib/google/cloud/oracledatabase/v1/database_pb.rb +1 -1
  12. data/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +1 -1
  13. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +2 -1
  14. data/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +1 -1
  15. data/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb +38 -0
  16. data/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb +98 -0
  17. data/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb +28 -0
  18. data/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb +29 -0
  19. data/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb +54 -0
  20. data/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb +29 -0
  21. data/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb +31 -0
  22. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +8 -1
  23. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +47 -0
  24. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +1 -1
  25. data/proto_docs/google/api/client.rb +4 -0
  26. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +84 -48
  27. data/proto_docs/google/cloud/oracledatabase/v1/database.rb +27 -1
  28. data/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +6 -1
  29. data/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +4 -0
  30. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb +2238 -0
  31. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb +300 -0
  32. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb +186 -0
  33. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb +712 -0
  34. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb +145 -0
  35. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb +177 -0
  36. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb +175 -0
  37. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +20 -2
  38. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +4 -4
  39. metadata +17 -3
@@ -223,6 +223,46 @@ module Google
223
223
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
224
224
  }
225
225
 
226
+ default_config.rpcs.list_goldengate_deployments.timeout = 60.0
227
+ default_config.rpcs.list_goldengate_deployments.retry_policy = {
228
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
229
+ }
230
+
231
+ default_config.rpcs.get_goldengate_deployment.timeout = 60.0
232
+ default_config.rpcs.get_goldengate_deployment.retry_policy = {
233
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
234
+ }
235
+
236
+ default_config.rpcs.list_goldengate_connections.timeout = 60.0
237
+ default_config.rpcs.list_goldengate_connections.retry_policy = {
238
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
239
+ }
240
+
241
+ default_config.rpcs.get_goldengate_connection.timeout = 60.0
242
+ default_config.rpcs.get_goldengate_connection.retry_policy = {
243
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
244
+ }
245
+
246
+ default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0
247
+ default_config.rpcs.list_goldengate_deployment_versions.retry_policy = {
248
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
249
+ }
250
+
251
+ default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0
252
+ default_config.rpcs.list_goldengate_deployment_types.retry_policy = {
253
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
254
+ }
255
+
256
+ default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0
257
+ default_config.rpcs.list_goldengate_deployment_environments.retry_policy = {
258
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
259
+ }
260
+
261
+ default_config.rpcs.list_goldengate_connection_types.timeout = 60.0
262
+ default_config.rpcs.list_goldengate_connection_types.retry_policy = {
263
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
264
+ }
265
+
226
266
  default_config.rpcs.list_db_versions.timeout = 60.0
227
267
  default_config.rpcs.list_db_versions.retry_policy = {
228
268
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
@@ -233,6 +273,16 @@ module Google
233
273
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
234
274
  }
235
275
 
276
+ default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0
277
+ default_config.rpcs.list_goldengate_connection_assignments.retry_policy = {
278
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
279
+ }
280
+
281
+ default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0
282
+ default_config.rpcs.get_goldengate_connection_assignment.retry_policy = {
283
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
284
+ }
285
+
236
286
  default_config
237
287
  end
238
288
  yield @configure if block_given?
@@ -3116,7 +3166,8 @@ module Google
3116
3166
  # Required. The name of the Autonomous Database in the following format:
3117
3167
  # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
3118
3168
  # @param peer_autonomous_database [::String]
3119
- # Required. The peer database name to switch over to.
3169
+ # Optional. The peer database name to switch over to. Required for
3170
+ # cross-region standby, and must be omitted for in-region Data Guard.
3120
3171
  #
3121
3172
  # @yield [response, operation] Access the result along with the RPC operation
3122
3173
  # @yieldparam response [::Gapic::Operation]
@@ -3214,7 +3265,8 @@ module Google
3214
3265
  # Required. The name of the Autonomous Database in the following format:
3215
3266
  # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}.
3216
3267
  # @param peer_autonomous_database [::String]
3217
- # Required. The peer database name to fail over to.
3268
+ # Optional. The peer database name to fail over to. Required for cross-region
3269
+ # standby, and must be omitted for in-region Data Guard.
3218
3270
  #
3219
3271
  # @yield [response, operation] Access the result along with the RPC operation
3220
3272
  # @yieldparam response [::Gapic::Operation]
@@ -6026,45 +6078,43 @@ module Google
6026
6078
  end
6027
6079
 
6028
6080
  ##
6029
- # List DbVersions for the given project and location.
6081
+ # Lists all the GoldengateDeployments for the given project and location.
6030
6082
  #
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.
6083
+ # @overload list_goldengate_deployments(request, options = nil)
6084
+ # Pass arguments to `list_goldengate_deployments` via a request object, either of type
6085
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash.
6034
6086
  #
6035
- # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash]
6087
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash]
6036
6088
  # A request object representing the call parameters. Required. To specify no
6037
6089
  # parameters, or to keep all the default parameter values, pass an empty Hash.
6038
6090
  # @param options [::Gapic::CallOptions, ::Hash]
6039
6091
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6040
6092
  #
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
6093
+ # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
6094
+ # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at
6043
6095
  # least one keyword argument is required. To specify no parameters, or to keep all
6044
6096
  # the default parameter values, pass an empty Hash as a request object (see above).
6045
6097
  #
6046
6098
  # @param parent [::String]
6047
- # Required. The parent value for the DbVersion resource with the
6048
- # format: projects/\\{project}/locations/\\{location}
6099
+ # Required. The parent value for GoldengateDeployments in the following
6100
+ # format: projects/\\{project}/locations/\\{location}.
6049
6101
  # @param page_size [::Integer]
6050
6102
  # 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.
6103
+ # If unspecified, at most 50 GoldengateDeployments will be returned.
6104
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
6053
6105
  # @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.
6106
+ # Optional. A page token, received from a previous ListGoldengateDeployments
6107
+ # call. Provide this to retrieve the subsequent page.
6057
6108
  # @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.
6109
+ # Optional. An expression for filtering the results of the request.
6110
+ # @param order_by [::String]
6111
+ # Optional. An expression for ordering the results of the request.
6062
6112
  #
6063
6113
  # @yield [response, operation] Access the result along with the RPC operation
6064
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
6114
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>]
6065
6115
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
6066
6116
  #
6067
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
6117
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>]
6068
6118
  #
6069
6119
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
6070
6120
  #
@@ -6075,28 +6125,28 @@ module Google
6075
6125
  # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6076
6126
  #
6077
6127
  # # Create a request. To set request fields, pass in keyword arguments.
6078
- # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new
6128
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new
6079
6129
  #
6080
- # # Call the list_db_versions method.
6081
- # result = client.list_db_versions request
6130
+ # # Call the list_goldengate_deployments method.
6131
+ # result = client.list_goldengate_deployments request
6082
6132
  #
6083
6133
  # # The returned object is of type Gapic::PagedEnumerable. You can iterate
6084
6134
  # # over elements, and API calls will be issued to fetch pages as needed.
6085
6135
  # result.each do |item|
6086
- # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion.
6136
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.
6087
6137
  # p item
6088
6138
  # end
6089
6139
  #
6090
- def list_db_versions request, options = nil
6140
+ def list_goldengate_deployments request, options = nil
6091
6141
  raise ::ArgumentError, "request must be provided" if request.nil?
6092
6142
 
6093
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest
6143
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest
6094
6144
 
6095
6145
  # Converts hash and nil to an options object
6096
6146
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6097
6147
 
6098
6148
  # Customize the options with defaults
6099
- metadata = @config.rpcs.list_db_versions.metadata.to_h
6149
+ metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h
6100
6150
 
6101
6151
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6102
6152
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -6113,16 +6163,16 @@ module Google
6113
6163
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6114
6164
  metadata[:"x-goog-request-params"] ||= request_params_header
6115
6165
 
6116
- options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout,
6166
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout,
6117
6167
  metadata: metadata,
6118
- retry_policy: @config.rpcs.list_db_versions.retry_policy
6168
+ retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy
6119
6169
 
6120
6170
  options.apply_defaults timeout: @config.timeout,
6121
6171
  metadata: @config.metadata,
6122
6172
  retry_policy: @config.retry_policy
6123
6173
 
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
6174
+ @oracle_database_stub.call_rpc :list_goldengate_deployments, request, options: options do |response, operation|
6175
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, request, response, operation, options
6126
6176
  yield response, operation if block_given?
6127
6177
  throw :response, response
6128
6178
  end
@@ -6131,50 +6181,32 @@ module Google
6131
6181
  end
6132
6182
 
6133
6183
  ##
6134
- # List DatabaseCharacterSets for the given project and location.
6184
+ # Gets details of a single GoldengateDeployment.
6135
6185
  #
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.
6186
+ # @overload get_goldengate_deployment(request, options = nil)
6187
+ # Pass arguments to `get_goldengate_deployment` via a request object, either of type
6188
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash.
6139
6189
  #
6140
- # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash]
6190
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash]
6141
6191
  # A request object representing the call parameters. Required. To specify no
6142
6192
  # parameters, or to keep all the default parameter values, pass an empty Hash.
6143
6193
  # @param options [::Gapic::CallOptions, ::Hash]
6144
6194
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6145
6195
  #
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
6196
+ # @overload get_goldengate_deployment(name: nil)
6197
+ # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at
6148
6198
  # least one keyword argument is required. To specify no parameters, or to keep all
6149
6199
  # the default parameter values, pass an empty Hash as a request object (see above).
6150
6200
  #
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`.
6201
+ # @param name [::String]
6202
+ # Required. The name of the GoldengateDeployment in the following format:
6203
+ # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}.
6172
6204
  #
6173
6205
  # @yield [response, operation] Access the result along with the RPC operation
6174
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
6206
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment]
6175
6207
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
6176
6208
  #
6177
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
6209
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment]
6178
6210
  #
6179
6211
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
6180
6212
  #
@@ -6185,28 +6217,24 @@ module Google
6185
6217
  # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6186
6218
  #
6187
6219
  # # Create a request. To set request fields, pass in keyword arguments.
6188
- # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new
6220
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new
6189
6221
  #
6190
- # # Call the list_database_character_sets method.
6191
- # result = client.list_database_character_sets request
6222
+ # # Call the get_goldengate_deployment method.
6223
+ # result = client.get_goldengate_deployment request
6192
6224
  #
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
6225
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment.
6226
+ # p result
6199
6227
  #
6200
- def list_database_character_sets request, options = nil
6228
+ def get_goldengate_deployment request, options = nil
6201
6229
  raise ::ArgumentError, "request must be provided" if request.nil?
6202
6230
 
6203
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest
6231
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest
6204
6232
 
6205
6233
  # Converts hash and nil to an options object
6206
6234
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6207
6235
 
6208
6236
  # Customize the options with defaults
6209
- metadata = @config.rpcs.list_database_character_sets.metadata.to_h
6237
+ metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h
6210
6238
 
6211
6239
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6212
6240
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -6216,147 +6244,2445 @@ module Google
6216
6244
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6217
6245
 
6218
6246
  header_params = {}
6219
- if request.parent
6220
- header_params["parent"] = request.parent
6247
+ if request.name
6248
+ header_params["name"] = request.name
6221
6249
  end
6222
6250
 
6223
6251
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6224
6252
  metadata[:"x-goog-request-params"] ||= request_params_header
6225
6253
 
6226
- options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout,
6254
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout,
6227
6255
  metadata: metadata,
6228
- retry_policy: @config.rpcs.list_database_character_sets.retry_policy
6256
+ retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy
6229
6257
 
6230
6258
  options.apply_defaults timeout: @config.timeout,
6231
6259
  metadata: @config.metadata,
6232
6260
  retry_policy: @config.retry_policy
6233
6261
 
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
6262
+ @oracle_database_stub.call_rpc :get_goldengate_deployment, request, options: options do |response, operation|
6236
6263
  yield response, operation if block_given?
6237
- throw :response, response
6238
6264
  end
6239
6265
  rescue ::GRPC::BadStatus => e
6240
6266
  raise ::Google::Cloud::Error.from_error(e)
6241
6267
  end
6242
6268
 
6243
6269
  ##
6244
- # Configuration class for the OracleDatabase API.
6270
+ # Creates a new GoldengateDeployment in a given project and location.
6245
6271
  #
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.
6272
+ # @overload create_goldengate_deployment(request, options = nil)
6273
+ # Pass arguments to `create_goldengate_deployment` via a request object, either of type
6274
+ # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash.
6252
6275
  #
6253
- # Configuration can be applied globally to all clients, or to a single client
6254
- # on construction.
6276
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash]
6277
+ # A request object representing the call parameters. Required. To specify no
6278
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6279
+ # @param options [::Gapic::CallOptions, ::Hash]
6280
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6255
6281
  #
6256
- # @example
6282
+ # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil)
6283
+ # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at
6284
+ # least one keyword argument is required. To specify no parameters, or to keep all
6285
+ # the default parameter values, pass an empty Hash as a request object (see above).
6257
6286
  #
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
6287
+ # @param parent [::String]
6288
+ # Required. The value for parent of the GoldengateDeployment in the following
6289
+ # format: projects/\\{project}/locations/\\{location}.
6290
+ # @param goldengate_deployment_id [::String]
6291
+ # Required. The ID of the GoldengateDeployment to create. This value is
6292
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
6293
+ # 63 characters in length. The value must start with a letter and end with a
6294
+ # letter or a number.
6295
+ # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash]
6296
+ # Required. The resource being created.
6297
+ # @param request_id [::String]
6298
+ # Optional. An optional request ID to identify requests. Specify a unique
6299
+ # request ID so that if you must retry your request, the server will know to
6300
+ # ignore the request if it has already been completed. The server will
6301
+ # guarantee that for at least 60 minutes since the first request.
6265
6302
  #
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
6303
+ # For example, consider a situation where you make an initial request and the
6304
+ # request times out. If you make the request again with the same request
6305
+ # ID, the server can check if original operation with the same request ID
6306
+ # was received, and if so, will ignore the second request. This prevents
6307
+ # clients from accidentally creating duplicate commitments.
6271
6308
  #
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
- # * (`Google::Auth::Credentials`) A googleauth credentials object
6279
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
6280
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
6281
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
6282
- # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
6283
- # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
6284
- # * (`nil`) indicating no credentials
6309
+ # The request ID must be a valid UUID with the exception that zero UUID is
6310
+ # not supported (00000000-0000-0000-0000-000000000000).
6285
6311
  #
6286
- # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
6287
- # is deprecated. Providing an unvalidated credential configuration to
6288
- # Google APIs can compromise the security of your systems and data.
6312
+ # @yield [response, operation] Access the result along with the RPC operation
6313
+ # @yieldparam response [::Gapic::Operation]
6314
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6289
6315
  #
6290
- # @example
6316
+ # @return [::Gapic::Operation]
6291
6317
  #
6292
- # # The recommended way to provide credentials is to use the `make_creds` method
6293
- # # on the appropriate credentials class for your environment.
6318
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6294
6319
  #
6295
- # require "googleauth"
6320
+ # @example Basic example
6321
+ # require "google/cloud/oracle_database/v1"
6296
6322
  #
6297
- # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
6298
- # json_key_io: ::File.open("/path/to/keyfile.json")
6299
- # )
6323
+ # # Create a client object. The client can be reused for multiple calls.
6324
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6300
6325
  #
6301
- # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config|
6302
- # config.credentials = credentials
6303
- # end
6326
+ # # Create a request. To set request fields, pass in keyword arguments.
6327
+ # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new
6304
6328
  #
6305
- # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
6306
- # external source for authentication to Google Cloud, you must validate it before
6307
- # providing it to a Google API client library. Providing an unvalidated credential
6308
- # configuration to Google APIs can compromise the security of your systems and data.
6309
- # For more information, refer to [Validate credential configurations from external
6310
- # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
6311
- # @return [::Object]
6312
- # @!attribute [rw] scope
6313
- # The OAuth scopes
6314
- # @return [::Array<::String>]
6315
- # @!attribute [rw] lib_name
6316
- # The library name as recorded in instrumentation and logging
6317
- # @return [::String]
6318
- # @!attribute [rw] lib_version
6319
- # The library version as recorded in instrumentation and logging
6320
- # @return [::String]
6321
- # @!attribute [rw] channel_args
6322
- # Extra parameters passed to the gRPC channel. Note: this is ignored if a
6323
- # `GRPC::Core::Channel` object is provided as the credential.
6324
- # @return [::Hash]
6325
- # @!attribute [rw] interceptors
6326
- # An array of interceptors that are run before calls are executed.
6327
- # @return [::Array<::GRPC::ClientInterceptor>]
6328
- # @!attribute [rw] timeout
6329
- # The call timeout in seconds.
6330
- # @return [::Numeric]
6331
- # @!attribute [rw] metadata
6332
- # Additional gRPC headers to be sent with the call.
6333
- # @return [::Hash{::Symbol=>::String}]
6334
- # @!attribute [rw] retry_policy
6335
- # The retry policy. The value is a hash with the following keys:
6336
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
6337
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
6338
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
6339
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
6340
- # trigger a retry.
6341
- # @return [::Hash]
6342
- # @!attribute [rw] quota_project
6343
- # A separate project against which to charge quota.
6344
- # @return [::String]
6345
- # @!attribute [rw] universe_domain
6346
- # The universe domain within which to make requests. This determines the
6347
- # default endpoint URL. The default value of nil uses the environment
6348
- # universe (usually the default "googleapis.com" universe).
6349
- # @return [::String,nil]
6350
- # @!attribute [rw] logger
6351
- # A custom logger to use for request/response debug logging, or the value
6352
- # `:default` (the default) to construct a default logger, or `nil` to
6353
- # explicitly disable logging.
6354
- # @return [::Logger,:default,nil]
6329
+ # # Call the create_goldengate_deployment method.
6330
+ # result = client.create_goldengate_deployment request
6355
6331
  #
6356
- class Configuration
6357
- extend ::Gapic::Config
6358
-
6359
- # @private
6332
+ # # The returned object is of type Gapic::Operation. You can use it to
6333
+ # # check the status of an operation, cancel it, or wait for results.
6334
+ # # Here is how to wait for a response.
6335
+ # result.wait_until_done! timeout: 60
6336
+ # if result.response?
6337
+ # p result.response
6338
+ # else
6339
+ # puts "No response received."
6340
+ # end
6341
+ #
6342
+ def create_goldengate_deployment request, options = nil
6343
+ raise ::ArgumentError, "request must be provided" if request.nil?
6344
+
6345
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest
6346
+
6347
+ # Converts hash and nil to an options object
6348
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6349
+
6350
+ # Customize the options with defaults
6351
+ metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h
6352
+
6353
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6354
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6355
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6356
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6357
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6358
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6359
+
6360
+ header_params = {}
6361
+ if request.parent
6362
+ header_params["parent"] = request.parent
6363
+ end
6364
+
6365
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6366
+ metadata[:"x-goog-request-params"] ||= request_params_header
6367
+
6368
+ options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout,
6369
+ metadata: metadata,
6370
+ retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy
6371
+
6372
+ options.apply_defaults timeout: @config.timeout,
6373
+ metadata: @config.metadata,
6374
+ retry_policy: @config.retry_policy
6375
+
6376
+ @oracle_database_stub.call_rpc :create_goldengate_deployment, request, options: options do |response, operation|
6377
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6378
+ yield response, operation if block_given?
6379
+ throw :response, response
6380
+ end
6381
+ rescue ::GRPC::BadStatus => e
6382
+ raise ::Google::Cloud::Error.from_error(e)
6383
+ end
6384
+
6385
+ ##
6386
+ # Deletes a single GoldengateDeployment.
6387
+ #
6388
+ # @overload delete_goldengate_deployment(request, options = nil)
6389
+ # Pass arguments to `delete_goldengate_deployment` via a request object, either of type
6390
+ # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash.
6391
+ #
6392
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash]
6393
+ # A request object representing the call parameters. Required. To specify no
6394
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6395
+ # @param options [::Gapic::CallOptions, ::Hash]
6396
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6397
+ #
6398
+ # @overload delete_goldengate_deployment(name: nil, request_id: nil)
6399
+ # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at
6400
+ # least one keyword argument is required. To specify no parameters, or to keep all
6401
+ # the default parameter values, pass an empty Hash as a request object (see above).
6402
+ #
6403
+ # @param name [::String]
6404
+ # Required. The name of the GoldengateDeployment in the following format:
6405
+ # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}.
6406
+ # @param request_id [::String]
6407
+ # Optional. An optional ID to identify the request. This value is used to
6408
+ # identify duplicate requests. If you make a request with the same request ID
6409
+ # and the original request is still in progress or completed, the server
6410
+ # ignores the second request. This prevents clients from
6411
+ # accidentally creating duplicate commitments.
6412
+ #
6413
+ # The request ID must be a valid UUID with the exception that zero UUID is
6414
+ # not supported (00000000-0000-0000-0000-000000000000).
6415
+ #
6416
+ # @yield [response, operation] Access the result along with the RPC operation
6417
+ # @yieldparam response [::Gapic::Operation]
6418
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6419
+ #
6420
+ # @return [::Gapic::Operation]
6421
+ #
6422
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6423
+ #
6424
+ # @example Basic example
6425
+ # require "google/cloud/oracle_database/v1"
6426
+ #
6427
+ # # Create a client object. The client can be reused for multiple calls.
6428
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6429
+ #
6430
+ # # Create a request. To set request fields, pass in keyword arguments.
6431
+ # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new
6432
+ #
6433
+ # # Call the delete_goldengate_deployment method.
6434
+ # result = client.delete_goldengate_deployment request
6435
+ #
6436
+ # # The returned object is of type Gapic::Operation. You can use it to
6437
+ # # check the status of an operation, cancel it, or wait for results.
6438
+ # # Here is how to wait for a response.
6439
+ # result.wait_until_done! timeout: 60
6440
+ # if result.response?
6441
+ # p result.response
6442
+ # else
6443
+ # puts "No response received."
6444
+ # end
6445
+ #
6446
+ def delete_goldengate_deployment request, options = nil
6447
+ raise ::ArgumentError, "request must be provided" if request.nil?
6448
+
6449
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest
6450
+
6451
+ # Converts hash and nil to an options object
6452
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6453
+
6454
+ # Customize the options with defaults
6455
+ metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h
6456
+
6457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6458
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6459
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6460
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6461
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6462
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6463
+
6464
+ header_params = {}
6465
+ if request.name
6466
+ header_params["name"] = request.name
6467
+ end
6468
+
6469
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6470
+ metadata[:"x-goog-request-params"] ||= request_params_header
6471
+
6472
+ options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout,
6473
+ metadata: metadata,
6474
+ retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy
6475
+
6476
+ options.apply_defaults timeout: @config.timeout,
6477
+ metadata: @config.metadata,
6478
+ retry_policy: @config.retry_policy
6479
+
6480
+ @oracle_database_stub.call_rpc :delete_goldengate_deployment, request, options: options do |response, operation|
6481
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6482
+ yield response, operation if block_given?
6483
+ throw :response, response
6484
+ end
6485
+ rescue ::GRPC::BadStatus => e
6486
+ raise ::Google::Cloud::Error.from_error(e)
6487
+ end
6488
+
6489
+ ##
6490
+ # Stops a single GoldengateDeployment.
6491
+ #
6492
+ # @overload stop_goldengate_deployment(request, options = nil)
6493
+ # Pass arguments to `stop_goldengate_deployment` via a request object, either of type
6494
+ # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash.
6495
+ #
6496
+ # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash]
6497
+ # A request object representing the call parameters. Required. To specify no
6498
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6499
+ # @param options [::Gapic::CallOptions, ::Hash]
6500
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6501
+ #
6502
+ # @overload stop_goldengate_deployment(name: nil)
6503
+ # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at
6504
+ # least one keyword argument is required. To specify no parameters, or to keep all
6505
+ # the default parameter values, pass an empty Hash as a request object (see above).
6506
+ #
6507
+ # @param name [::String]
6508
+ # Required. The name of the Goldengate Deployment in the following format:
6509
+ # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}.
6510
+ #
6511
+ # @yield [response, operation] Access the result along with the RPC operation
6512
+ # @yieldparam response [::Gapic::Operation]
6513
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6514
+ #
6515
+ # @return [::Gapic::Operation]
6516
+ #
6517
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6518
+ #
6519
+ # @example Basic example
6520
+ # require "google/cloud/oracle_database/v1"
6521
+ #
6522
+ # # Create a client object. The client can be reused for multiple calls.
6523
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6524
+ #
6525
+ # # Create a request. To set request fields, pass in keyword arguments.
6526
+ # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new
6527
+ #
6528
+ # # Call the stop_goldengate_deployment method.
6529
+ # result = client.stop_goldengate_deployment request
6530
+ #
6531
+ # # The returned object is of type Gapic::Operation. You can use it to
6532
+ # # check the status of an operation, cancel it, or wait for results.
6533
+ # # Here is how to wait for a response.
6534
+ # result.wait_until_done! timeout: 60
6535
+ # if result.response?
6536
+ # p result.response
6537
+ # else
6538
+ # puts "No response received."
6539
+ # end
6540
+ #
6541
+ def stop_goldengate_deployment request, options = nil
6542
+ raise ::ArgumentError, "request must be provided" if request.nil?
6543
+
6544
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest
6545
+
6546
+ # Converts hash and nil to an options object
6547
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6548
+
6549
+ # Customize the options with defaults
6550
+ metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h
6551
+
6552
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6553
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6554
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6555
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6556
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6557
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6558
+
6559
+ header_params = {}
6560
+ if request.name
6561
+ header_params["name"] = request.name
6562
+ end
6563
+
6564
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6565
+ metadata[:"x-goog-request-params"] ||= request_params_header
6566
+
6567
+ options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout,
6568
+ metadata: metadata,
6569
+ retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy
6570
+
6571
+ options.apply_defaults timeout: @config.timeout,
6572
+ metadata: @config.metadata,
6573
+ retry_policy: @config.retry_policy
6574
+
6575
+ @oracle_database_stub.call_rpc :stop_goldengate_deployment, request, options: options do |response, operation|
6576
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6577
+ yield response, operation if block_given?
6578
+ throw :response, response
6579
+ end
6580
+ rescue ::GRPC::BadStatus => e
6581
+ raise ::Google::Cloud::Error.from_error(e)
6582
+ end
6583
+
6584
+ ##
6585
+ # Starts a single GoldengateDeployment.
6586
+ #
6587
+ # @overload start_goldengate_deployment(request, options = nil)
6588
+ # Pass arguments to `start_goldengate_deployment` via a request object, either of type
6589
+ # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash.
6590
+ #
6591
+ # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash]
6592
+ # A request object representing the call parameters. Required. To specify no
6593
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6594
+ # @param options [::Gapic::CallOptions, ::Hash]
6595
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6596
+ #
6597
+ # @overload start_goldengate_deployment(name: nil)
6598
+ # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at
6599
+ # least one keyword argument is required. To specify no parameters, or to keep all
6600
+ # the default parameter values, pass an empty Hash as a request object (see above).
6601
+ #
6602
+ # @param name [::String]
6603
+ # Required. The name of the Goldengate Deployment in the following format:
6604
+ # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}.
6605
+ #
6606
+ # @yield [response, operation] Access the result along with the RPC operation
6607
+ # @yieldparam response [::Gapic::Operation]
6608
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6609
+ #
6610
+ # @return [::Gapic::Operation]
6611
+ #
6612
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6613
+ #
6614
+ # @example Basic example
6615
+ # require "google/cloud/oracle_database/v1"
6616
+ #
6617
+ # # Create a client object. The client can be reused for multiple calls.
6618
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6619
+ #
6620
+ # # Create a request. To set request fields, pass in keyword arguments.
6621
+ # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new
6622
+ #
6623
+ # # Call the start_goldengate_deployment method.
6624
+ # result = client.start_goldengate_deployment request
6625
+ #
6626
+ # # The returned object is of type Gapic::Operation. You can use it to
6627
+ # # check the status of an operation, cancel it, or wait for results.
6628
+ # # Here is how to wait for a response.
6629
+ # result.wait_until_done! timeout: 60
6630
+ # if result.response?
6631
+ # p result.response
6632
+ # else
6633
+ # puts "No response received."
6634
+ # end
6635
+ #
6636
+ def start_goldengate_deployment request, options = nil
6637
+ raise ::ArgumentError, "request must be provided" if request.nil?
6638
+
6639
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest
6640
+
6641
+ # Converts hash and nil to an options object
6642
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6643
+
6644
+ # Customize the options with defaults
6645
+ metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h
6646
+
6647
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6648
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6649
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6650
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6651
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6652
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6653
+
6654
+ header_params = {}
6655
+ if request.name
6656
+ header_params["name"] = request.name
6657
+ end
6658
+
6659
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6660
+ metadata[:"x-goog-request-params"] ||= request_params_header
6661
+
6662
+ options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout,
6663
+ metadata: metadata,
6664
+ retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy
6665
+
6666
+ options.apply_defaults timeout: @config.timeout,
6667
+ metadata: @config.metadata,
6668
+ retry_policy: @config.retry_policy
6669
+
6670
+ @oracle_database_stub.call_rpc :start_goldengate_deployment, request, options: options do |response, operation|
6671
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6672
+ yield response, operation if block_given?
6673
+ throw :response, response
6674
+ end
6675
+ rescue ::GRPC::BadStatus => e
6676
+ raise ::Google::Cloud::Error.from_error(e)
6677
+ end
6678
+
6679
+ ##
6680
+ # Lists all the GoldengateConnections for the given project and location.
6681
+ #
6682
+ # @overload list_goldengate_connections(request, options = nil)
6683
+ # Pass arguments to `list_goldengate_connections` via a request object, either of type
6684
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash.
6685
+ #
6686
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash]
6687
+ # A request object representing the call parameters. Required. To specify no
6688
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6689
+ # @param options [::Gapic::CallOptions, ::Hash]
6690
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6691
+ #
6692
+ # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
6693
+ # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at
6694
+ # least one keyword argument is required. To specify no parameters, or to keep all
6695
+ # the default parameter values, pass an empty Hash as a request object (see above).
6696
+ #
6697
+ # @param parent [::String]
6698
+ # Required. The parent value for GoldengateConnections in the following
6699
+ # format: projects/\\{project}/locations/\\{location}.
6700
+ # @param page_size [::Integer]
6701
+ # Optional. The maximum number of items to return.
6702
+ # If unspecified, at most 50 GoldengateConnections will be returned.
6703
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
6704
+ # @param page_token [::String]
6705
+ # Optional. A page token, received from a previous ListGoldengateConnections
6706
+ # call. Provide this to retrieve the subsequent page.
6707
+ # @param filter [::String]
6708
+ # Optional. An expression for filtering the results of the request.
6709
+ # @param order_by [::String]
6710
+ # Optional. An expression for ordering the results of the request.
6711
+ #
6712
+ # @yield [response, operation] Access the result along with the RPC operation
6713
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>]
6714
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6715
+ #
6716
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>]
6717
+ #
6718
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6719
+ #
6720
+ # @example Basic example
6721
+ # require "google/cloud/oracle_database/v1"
6722
+ #
6723
+ # # Create a client object. The client can be reused for multiple calls.
6724
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6725
+ #
6726
+ # # Create a request. To set request fields, pass in keyword arguments.
6727
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new
6728
+ #
6729
+ # # Call the list_goldengate_connections method.
6730
+ # result = client.list_goldengate_connections request
6731
+ #
6732
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
6733
+ # # over elements, and API calls will be issued to fetch pages as needed.
6734
+ # result.each do |item|
6735
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.
6736
+ # p item
6737
+ # end
6738
+ #
6739
+ def list_goldengate_connections request, options = nil
6740
+ raise ::ArgumentError, "request must be provided" if request.nil?
6741
+
6742
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest
6743
+
6744
+ # Converts hash and nil to an options object
6745
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6746
+
6747
+ # Customize the options with defaults
6748
+ metadata = @config.rpcs.list_goldengate_connections.metadata.to_h
6749
+
6750
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6751
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6752
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6753
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6754
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6755
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6756
+
6757
+ header_params = {}
6758
+ if request.parent
6759
+ header_params["parent"] = request.parent
6760
+ end
6761
+
6762
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6763
+ metadata[:"x-goog-request-params"] ||= request_params_header
6764
+
6765
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout,
6766
+ metadata: metadata,
6767
+ retry_policy: @config.rpcs.list_goldengate_connections.retry_policy
6768
+
6769
+ options.apply_defaults timeout: @config.timeout,
6770
+ metadata: @config.metadata,
6771
+ retry_policy: @config.retry_policy
6772
+
6773
+ @oracle_database_stub.call_rpc :list_goldengate_connections, request, options: options do |response, operation|
6774
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, request, response, operation, options
6775
+ yield response, operation if block_given?
6776
+ throw :response, response
6777
+ end
6778
+ rescue ::GRPC::BadStatus => e
6779
+ raise ::Google::Cloud::Error.from_error(e)
6780
+ end
6781
+
6782
+ ##
6783
+ # Gets details of a single GoldengateConnection.
6784
+ #
6785
+ # @overload get_goldengate_connection(request, options = nil)
6786
+ # Pass arguments to `get_goldengate_connection` via a request object, either of type
6787
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash.
6788
+ #
6789
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash]
6790
+ # A request object representing the call parameters. Required. To specify no
6791
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6792
+ # @param options [::Gapic::CallOptions, ::Hash]
6793
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6794
+ #
6795
+ # @overload get_goldengate_connection(name: nil)
6796
+ # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at
6797
+ # least one keyword argument is required. To specify no parameters, or to keep all
6798
+ # the default parameter values, pass an empty Hash as a request object (see above).
6799
+ #
6800
+ # @param name [::String]
6801
+ # Required. The name of the GoldengateConnection in the following format:
6802
+ # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}.
6803
+ #
6804
+ # @yield [response, operation] Access the result along with the RPC operation
6805
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnection]
6806
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6807
+ #
6808
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection]
6809
+ #
6810
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6811
+ #
6812
+ # @example Basic example
6813
+ # require "google/cloud/oracle_database/v1"
6814
+ #
6815
+ # # Create a client object. The client can be reused for multiple calls.
6816
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6817
+ #
6818
+ # # Create a request. To set request fields, pass in keyword arguments.
6819
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new
6820
+ #
6821
+ # # Call the get_goldengate_connection method.
6822
+ # result = client.get_goldengate_connection request
6823
+ #
6824
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection.
6825
+ # p result
6826
+ #
6827
+ def get_goldengate_connection request, options = nil
6828
+ raise ::ArgumentError, "request must be provided" if request.nil?
6829
+
6830
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest
6831
+
6832
+ # Converts hash and nil to an options object
6833
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6834
+
6835
+ # Customize the options with defaults
6836
+ metadata = @config.rpcs.get_goldengate_connection.metadata.to_h
6837
+
6838
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6839
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6840
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6841
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6842
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6843
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6844
+
6845
+ header_params = {}
6846
+ if request.name
6847
+ header_params["name"] = request.name
6848
+ end
6849
+
6850
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6851
+ metadata[:"x-goog-request-params"] ||= request_params_header
6852
+
6853
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout,
6854
+ metadata: metadata,
6855
+ retry_policy: @config.rpcs.get_goldengate_connection.retry_policy
6856
+
6857
+ options.apply_defaults timeout: @config.timeout,
6858
+ metadata: @config.metadata,
6859
+ retry_policy: @config.retry_policy
6860
+
6861
+ @oracle_database_stub.call_rpc :get_goldengate_connection, request, options: options do |response, operation|
6862
+ yield response, operation if block_given?
6863
+ end
6864
+ rescue ::GRPC::BadStatus => e
6865
+ raise ::Google::Cloud::Error.from_error(e)
6866
+ end
6867
+
6868
+ ##
6869
+ # Creates a new GoldengateConnection in a given project and location.
6870
+ #
6871
+ # @overload create_goldengate_connection(request, options = nil)
6872
+ # Pass arguments to `create_goldengate_connection` via a request object, either of type
6873
+ # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash.
6874
+ #
6875
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash]
6876
+ # A request object representing the call parameters. Required. To specify no
6877
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6878
+ # @param options [::Gapic::CallOptions, ::Hash]
6879
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6880
+ #
6881
+ # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil)
6882
+ # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at
6883
+ # least one keyword argument is required. To specify no parameters, or to keep all
6884
+ # the default parameter values, pass an empty Hash as a request object (see above).
6885
+ #
6886
+ # @param parent [::String]
6887
+ # Required. The value for parent of the GoldengateConnection in the following
6888
+ # format: projects/\\{project}/locations/\\{location}.
6889
+ # @param goldengate_connection_id [::String]
6890
+ # Required. The ID of the GoldengateConnection to create. This value is
6891
+ # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of
6892
+ # 63 characters in length. The value must start with a letter and end with a
6893
+ # letter or a number.
6894
+ # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash]
6895
+ # Required. The resource being created.
6896
+ # @param request_id [::String]
6897
+ # Optional. An optional request ID to identify requests. Specify a unique
6898
+ # request ID so that if you must retry your request, the server will know to
6899
+ # ignore the request if it has already been completed. The server will
6900
+ # guarantee that for at least 60 minutes since the first request.
6901
+ #
6902
+ # For example, consider a situation where you make an initial request and the
6903
+ # request times out. If you make the request again with the same request
6904
+ # ID, the server can check if original operation with the same request ID
6905
+ # was received, and if so, will ignore the second request. This prevents
6906
+ # clients from accidentally creating duplicate commitments.
6907
+ #
6908
+ # The request ID must be a valid UUID with the exception that zero UUID is
6909
+ # not supported (00000000-0000-0000-0000-000000000000).
6910
+ #
6911
+ # @yield [response, operation] Access the result along with the RPC operation
6912
+ # @yieldparam response [::Gapic::Operation]
6913
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
6914
+ #
6915
+ # @return [::Gapic::Operation]
6916
+ #
6917
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
6918
+ #
6919
+ # @example Basic example
6920
+ # require "google/cloud/oracle_database/v1"
6921
+ #
6922
+ # # Create a client object. The client can be reused for multiple calls.
6923
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
6924
+ #
6925
+ # # Create a request. To set request fields, pass in keyword arguments.
6926
+ # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new
6927
+ #
6928
+ # # Call the create_goldengate_connection method.
6929
+ # result = client.create_goldengate_connection request
6930
+ #
6931
+ # # The returned object is of type Gapic::Operation. You can use it to
6932
+ # # check the status of an operation, cancel it, or wait for results.
6933
+ # # Here is how to wait for a response.
6934
+ # result.wait_until_done! timeout: 60
6935
+ # if result.response?
6936
+ # p result.response
6937
+ # else
6938
+ # puts "No response received."
6939
+ # end
6940
+ #
6941
+ def create_goldengate_connection request, options = nil
6942
+ raise ::ArgumentError, "request must be provided" if request.nil?
6943
+
6944
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest
6945
+
6946
+ # Converts hash and nil to an options object
6947
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6948
+
6949
+ # Customize the options with defaults
6950
+ metadata = @config.rpcs.create_goldengate_connection.metadata.to_h
6951
+
6952
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
6953
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6954
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6955
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
6956
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
6957
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6958
+
6959
+ header_params = {}
6960
+ if request.parent
6961
+ header_params["parent"] = request.parent
6962
+ end
6963
+
6964
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6965
+ metadata[:"x-goog-request-params"] ||= request_params_header
6966
+
6967
+ options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout,
6968
+ metadata: metadata,
6969
+ retry_policy: @config.rpcs.create_goldengate_connection.retry_policy
6970
+
6971
+ options.apply_defaults timeout: @config.timeout,
6972
+ metadata: @config.metadata,
6973
+ retry_policy: @config.retry_policy
6974
+
6975
+ @oracle_database_stub.call_rpc :create_goldengate_connection, request, options: options do |response, operation|
6976
+ response = ::Gapic::Operation.new response, @operations_client, options: options
6977
+ yield response, operation if block_given?
6978
+ throw :response, response
6979
+ end
6980
+ rescue ::GRPC::BadStatus => e
6981
+ raise ::Google::Cloud::Error.from_error(e)
6982
+ end
6983
+
6984
+ ##
6985
+ # Deletes a single GoldengateConnection.
6986
+ #
6987
+ # @overload delete_goldengate_connection(request, options = nil)
6988
+ # Pass arguments to `delete_goldengate_connection` via a request object, either of type
6989
+ # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash.
6990
+ #
6991
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash]
6992
+ # A request object representing the call parameters. Required. To specify no
6993
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6994
+ # @param options [::Gapic::CallOptions, ::Hash]
6995
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
6996
+ #
6997
+ # @overload delete_goldengate_connection(name: nil, request_id: nil)
6998
+ # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at
6999
+ # least one keyword argument is required. To specify no parameters, or to keep all
7000
+ # the default parameter values, pass an empty Hash as a request object (see above).
7001
+ #
7002
+ # @param name [::String]
7003
+ # Required. The name of the GoldengateConnection in the following format:
7004
+ # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}.
7005
+ # @param request_id [::String]
7006
+ # Optional. An optional ID to identify the request. This value is used to
7007
+ # identify duplicate requests. If you make a request with the same request ID
7008
+ # and the original request is still in progress or completed, the server
7009
+ # ignores the second request. This prevents clients from
7010
+ # accidentally creating duplicate commitments.
7011
+ #
7012
+ # The request ID must be a valid UUID with the exception that zero UUID is
7013
+ # not supported (00000000-0000-0000-0000-000000000000).
7014
+ #
7015
+ # @yield [response, operation] Access the result along with the RPC operation
7016
+ # @yieldparam response [::Gapic::Operation]
7017
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7018
+ #
7019
+ # @return [::Gapic::Operation]
7020
+ #
7021
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7022
+ #
7023
+ # @example Basic example
7024
+ # require "google/cloud/oracle_database/v1"
7025
+ #
7026
+ # # Create a client object. The client can be reused for multiple calls.
7027
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7028
+ #
7029
+ # # Create a request. To set request fields, pass in keyword arguments.
7030
+ # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new
7031
+ #
7032
+ # # Call the delete_goldengate_connection method.
7033
+ # result = client.delete_goldengate_connection request
7034
+ #
7035
+ # # The returned object is of type Gapic::Operation. You can use it to
7036
+ # # check the status of an operation, cancel it, or wait for results.
7037
+ # # Here is how to wait for a response.
7038
+ # result.wait_until_done! timeout: 60
7039
+ # if result.response?
7040
+ # p result.response
7041
+ # else
7042
+ # puts "No response received."
7043
+ # end
7044
+ #
7045
+ def delete_goldengate_connection request, options = nil
7046
+ raise ::ArgumentError, "request must be provided" if request.nil?
7047
+
7048
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest
7049
+
7050
+ # Converts hash and nil to an options object
7051
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7052
+
7053
+ # Customize the options with defaults
7054
+ metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h
7055
+
7056
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7057
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7058
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7059
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7060
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7061
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7062
+
7063
+ header_params = {}
7064
+ if request.name
7065
+ header_params["name"] = request.name
7066
+ end
7067
+
7068
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7069
+ metadata[:"x-goog-request-params"] ||= request_params_header
7070
+
7071
+ options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout,
7072
+ metadata: metadata,
7073
+ retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy
7074
+
7075
+ options.apply_defaults timeout: @config.timeout,
7076
+ metadata: @config.metadata,
7077
+ retry_policy: @config.retry_policy
7078
+
7079
+ @oracle_database_stub.call_rpc :delete_goldengate_connection, request, options: options do |response, operation|
7080
+ response = ::Gapic::Operation.new response, @operations_client, options: options
7081
+ yield response, operation if block_given?
7082
+ throw :response, response
7083
+ end
7084
+ rescue ::GRPC::BadStatus => e
7085
+ raise ::Google::Cloud::Error.from_error(e)
7086
+ end
7087
+
7088
+ ##
7089
+ # Gets details of a single GoldengateDeploymentVersion.
7090
+ #
7091
+ # @overload get_goldengate_deployment_version(request, options = nil)
7092
+ # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type
7093
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash.
7094
+ #
7095
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash]
7096
+ # A request object representing the call parameters. Required. To specify no
7097
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7098
+ # @param options [::Gapic::CallOptions, ::Hash]
7099
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7100
+ #
7101
+ # @overload get_goldengate_deployment_version(name: nil)
7102
+ # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at
7103
+ # least one keyword argument is required. To specify no parameters, or to keep all
7104
+ # the default parameter values, pass an empty Hash as a request object (see above).
7105
+ #
7106
+ # @param name [::String]
7107
+ # Required. The name of the GoldengateDeploymentVersion to retrieve.
7108
+ # Format:
7109
+ # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version}
7110
+ #
7111
+ # @yield [response, operation] Access the result along with the RPC operation
7112
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion]
7113
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7114
+ #
7115
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion]
7116
+ #
7117
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7118
+ #
7119
+ # @example Basic example
7120
+ # require "google/cloud/oracle_database/v1"
7121
+ #
7122
+ # # Create a client object. The client can be reused for multiple calls.
7123
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7124
+ #
7125
+ # # Create a request. To set request fields, pass in keyword arguments.
7126
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new
7127
+ #
7128
+ # # Call the get_goldengate_deployment_version method.
7129
+ # result = client.get_goldengate_deployment_version request
7130
+ #
7131
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.
7132
+ # p result
7133
+ #
7134
+ def get_goldengate_deployment_version request, options = nil
7135
+ raise ::ArgumentError, "request must be provided" if request.nil?
7136
+
7137
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest
7138
+
7139
+ # Converts hash and nil to an options object
7140
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7141
+
7142
+ # Customize the options with defaults
7143
+ metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h
7144
+
7145
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7146
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7147
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7148
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7149
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7150
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7151
+
7152
+ header_params = {}
7153
+ if request.name
7154
+ header_params["name"] = request.name
7155
+ end
7156
+
7157
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7158
+ metadata[:"x-goog-request-params"] ||= request_params_header
7159
+
7160
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout,
7161
+ metadata: metadata,
7162
+ retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy
7163
+
7164
+ options.apply_defaults timeout: @config.timeout,
7165
+ metadata: @config.metadata,
7166
+ retry_policy: @config.retry_policy
7167
+
7168
+ @oracle_database_stub.call_rpc :get_goldengate_deployment_version, request, options: options do |response, operation|
7169
+ yield response, operation if block_given?
7170
+ end
7171
+ rescue ::GRPC::BadStatus => e
7172
+ raise ::Google::Cloud::Error.from_error(e)
7173
+ end
7174
+
7175
+ ##
7176
+ # Lists GoldengateDeploymentVersions in a given project and location.
7177
+ #
7178
+ # @overload list_goldengate_deployment_versions(request, options = nil)
7179
+ # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type
7180
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash.
7181
+ #
7182
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash]
7183
+ # A request object representing the call parameters. Required. To specify no
7184
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7185
+ # @param options [::Gapic::CallOptions, ::Hash]
7186
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7187
+ #
7188
+ # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
7189
+ # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at
7190
+ # least one keyword argument is required. To specify no parameters, or to keep all
7191
+ # the default parameter values, pass an empty Hash as a request object (see above).
7192
+ #
7193
+ # @param parent [::String]
7194
+ # Required. Parent value for ListGoldengateDeploymentVersionsRequest
7195
+ # Format: projects/\\{project}/locations/\\{location}
7196
+ # @param page_size [::Integer]
7197
+ # Optional. Requested page size. Server may return fewer items than
7198
+ # requested. If unspecified, server will pick an appropriate default. The
7199
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
7200
+ # @param page_token [::String]
7201
+ # Optional. A token identifying a page of results the server should return.
7202
+ # @param filter [::String]
7203
+ # Optional. An expression for filtering the results of the request. Either
7204
+ # the deployment_id and deployment_type fields must be specified in the
7205
+ # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`.
7206
+ #
7207
+ # @yield [response, operation] Access the result along with the RPC operation
7208
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>]
7209
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7210
+ #
7211
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>]
7212
+ #
7213
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7214
+ #
7215
+ # @example Basic example
7216
+ # require "google/cloud/oracle_database/v1"
7217
+ #
7218
+ # # Create a client object. The client can be reused for multiple calls.
7219
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7220
+ #
7221
+ # # Create a request. To set request fields, pass in keyword arguments.
7222
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new
7223
+ #
7224
+ # # Call the list_goldengate_deployment_versions method.
7225
+ # result = client.list_goldengate_deployment_versions request
7226
+ #
7227
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
7228
+ # # over elements, and API calls will be issued to fetch pages as needed.
7229
+ # result.each do |item|
7230
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.
7231
+ # p item
7232
+ # end
7233
+ #
7234
+ def list_goldengate_deployment_versions request, options = nil
7235
+ raise ::ArgumentError, "request must be provided" if request.nil?
7236
+
7237
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest
7238
+
7239
+ # Converts hash and nil to an options object
7240
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7241
+
7242
+ # Customize the options with defaults
7243
+ metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h
7244
+
7245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7246
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7247
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7248
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7249
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7250
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7251
+
7252
+ header_params = {}
7253
+ if request.parent
7254
+ header_params["parent"] = request.parent
7255
+ end
7256
+
7257
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7258
+ metadata[:"x-goog-request-params"] ||= request_params_header
7259
+
7260
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout,
7261
+ metadata: metadata,
7262
+ retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy
7263
+
7264
+ options.apply_defaults timeout: @config.timeout,
7265
+ metadata: @config.metadata,
7266
+ retry_policy: @config.retry_policy
7267
+
7268
+ @oracle_database_stub.call_rpc :list_goldengate_deployment_versions, request, options: options do |response, operation|
7269
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, request, response, operation, options
7270
+ yield response, operation if block_given?
7271
+ throw :response, response
7272
+ end
7273
+ rescue ::GRPC::BadStatus => e
7274
+ raise ::Google::Cloud::Error.from_error(e)
7275
+ end
7276
+
7277
+ ##
7278
+ # Gets details of a single GoldenGateDeploymentType.
7279
+ #
7280
+ # @overload get_goldengate_deployment_type(request, options = nil)
7281
+ # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type
7282
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash.
7283
+ #
7284
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash]
7285
+ # A request object representing the call parameters. Required. To specify no
7286
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7287
+ # @param options [::Gapic::CallOptions, ::Hash]
7288
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7289
+ #
7290
+ # @overload get_goldengate_deployment_type(name: nil)
7291
+ # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at
7292
+ # least one keyword argument is required. To specify no parameters, or to keep all
7293
+ # the default parameter values, pass an empty Hash as a request object (see above).
7294
+ #
7295
+ # @param name [::String]
7296
+ # Required. The name of the GoldengateDeploymentType to retrieve.
7297
+ # Format:
7298
+ # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type}
7299
+ #
7300
+ # @yield [response, operation] Access the result along with the RPC operation
7301
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType]
7302
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7303
+ #
7304
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType]
7305
+ #
7306
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7307
+ #
7308
+ # @example Basic example
7309
+ # require "google/cloud/oracle_database/v1"
7310
+ #
7311
+ # # Create a client object. The client can be reused for multiple calls.
7312
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7313
+ #
7314
+ # # Create a request. To set request fields, pass in keyword arguments.
7315
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new
7316
+ #
7317
+ # # Call the get_goldengate_deployment_type method.
7318
+ # result = client.get_goldengate_deployment_type request
7319
+ #
7320
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.
7321
+ # p result
7322
+ #
7323
+ def get_goldengate_deployment_type request, options = nil
7324
+ raise ::ArgumentError, "request must be provided" if request.nil?
7325
+
7326
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest
7327
+
7328
+ # Converts hash and nil to an options object
7329
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7330
+
7331
+ # Customize the options with defaults
7332
+ metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h
7333
+
7334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7335
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7336
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7337
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7338
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7339
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7340
+
7341
+ header_params = {}
7342
+ if request.name
7343
+ header_params["name"] = request.name
7344
+ end
7345
+
7346
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7347
+ metadata[:"x-goog-request-params"] ||= request_params_header
7348
+
7349
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout,
7350
+ metadata: metadata,
7351
+ retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy
7352
+
7353
+ options.apply_defaults timeout: @config.timeout,
7354
+ metadata: @config.metadata,
7355
+ retry_policy: @config.retry_policy
7356
+
7357
+ @oracle_database_stub.call_rpc :get_goldengate_deployment_type, request, options: options do |response, operation|
7358
+ yield response, operation if block_given?
7359
+ end
7360
+ rescue ::GRPC::BadStatus => e
7361
+ raise ::Google::Cloud::Error.from_error(e)
7362
+ end
7363
+
7364
+ ##
7365
+ # Lists GoldenGateDeploymentTypes in a given project and location.
7366
+ #
7367
+ # @overload list_goldengate_deployment_types(request, options = nil)
7368
+ # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type
7369
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash.
7370
+ #
7371
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash]
7372
+ # A request object representing the call parameters. Required. To specify no
7373
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7374
+ # @param options [::Gapic::CallOptions, ::Hash]
7375
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7376
+ #
7377
+ # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
7378
+ # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at
7379
+ # least one keyword argument is required. To specify no parameters, or to keep all
7380
+ # the default parameter values, pass an empty Hash as a request object (see above).
7381
+ #
7382
+ # @param parent [::String]
7383
+ # Required. The parent resource.
7384
+ # Format: projects/\\{project}/locations/\\{location}
7385
+ # @param page_size [::Integer]
7386
+ # Optional. Requested page size. Server may return fewer items than
7387
+ # requested. If unspecified, server will pick an appropriate default.
7388
+ # @param page_token [::String]
7389
+ # Optional. A token identifying a page of results the server should return.
7390
+ # @param filter [::String]
7391
+ # Optional. An expression for filtering the results of the request. Either
7392
+ # the deployment_type and ogg_version fields must be specified in the format:
7393
+ # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`.
7394
+ # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`,
7395
+ # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`,
7396
+ # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`.
7397
+ # @param order_by [::String]
7398
+ # Optional. Hint for how to order the results
7399
+ #
7400
+ # @yield [response, operation] Access the result along with the RPC operation
7401
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>]
7402
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7403
+ #
7404
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>]
7405
+ #
7406
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7407
+ #
7408
+ # @example Basic example
7409
+ # require "google/cloud/oracle_database/v1"
7410
+ #
7411
+ # # Create a client object. The client can be reused for multiple calls.
7412
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7413
+ #
7414
+ # # Create a request. To set request fields, pass in keyword arguments.
7415
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new
7416
+ #
7417
+ # # Call the list_goldengate_deployment_types method.
7418
+ # result = client.list_goldengate_deployment_types request
7419
+ #
7420
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
7421
+ # # over elements, and API calls will be issued to fetch pages as needed.
7422
+ # result.each do |item|
7423
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.
7424
+ # p item
7425
+ # end
7426
+ #
7427
+ def list_goldengate_deployment_types request, options = nil
7428
+ raise ::ArgumentError, "request must be provided" if request.nil?
7429
+
7430
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest
7431
+
7432
+ # Converts hash and nil to an options object
7433
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7434
+
7435
+ # Customize the options with defaults
7436
+ metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h
7437
+
7438
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7439
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7440
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7441
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7442
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7443
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7444
+
7445
+ header_params = {}
7446
+ if request.parent
7447
+ header_params["parent"] = request.parent
7448
+ end
7449
+
7450
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7451
+ metadata[:"x-goog-request-params"] ||= request_params_header
7452
+
7453
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout,
7454
+ metadata: metadata,
7455
+ retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy
7456
+
7457
+ options.apply_defaults timeout: @config.timeout,
7458
+ metadata: @config.metadata,
7459
+ retry_policy: @config.retry_policy
7460
+
7461
+ @oracle_database_stub.call_rpc :list_goldengate_deployment_types, request, options: options do |response, operation|
7462
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, request, response, operation, options
7463
+ yield response, operation if block_given?
7464
+ throw :response, response
7465
+ end
7466
+ rescue ::GRPC::BadStatus => e
7467
+ raise ::Google::Cloud::Error.from_error(e)
7468
+ end
7469
+
7470
+ ##
7471
+ # Gets details of a single GoldengateDeploymentEnvironment.
7472
+ #
7473
+ # @overload get_goldengate_deployment_environment(request, options = nil)
7474
+ # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type
7475
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash.
7476
+ #
7477
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash]
7478
+ # A request object representing the call parameters. Required. To specify no
7479
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7480
+ # @param options [::Gapic::CallOptions, ::Hash]
7481
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7482
+ #
7483
+ # @overload get_goldengate_deployment_environment(name: nil)
7484
+ # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at
7485
+ # least one keyword argument is required. To specify no parameters, or to keep all
7486
+ # the default parameter values, pass an empty Hash as a request object (see above).
7487
+ #
7488
+ # @param name [::String]
7489
+ # Required. Name of the resource with the format:
7490
+ # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment}
7491
+ #
7492
+ # @yield [response, operation] Access the result along with the RPC operation
7493
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment]
7494
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7495
+ #
7496
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment]
7497
+ #
7498
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7499
+ #
7500
+ # @example Basic example
7501
+ # require "google/cloud/oracle_database/v1"
7502
+ #
7503
+ # # Create a client object. The client can be reused for multiple calls.
7504
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7505
+ #
7506
+ # # Create a request. To set request fields, pass in keyword arguments.
7507
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new
7508
+ #
7509
+ # # Call the get_goldengate_deployment_environment method.
7510
+ # result = client.get_goldengate_deployment_environment request
7511
+ #
7512
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.
7513
+ # p result
7514
+ #
7515
+ def get_goldengate_deployment_environment request, options = nil
7516
+ raise ::ArgumentError, "request must be provided" if request.nil?
7517
+
7518
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest
7519
+
7520
+ # Converts hash and nil to an options object
7521
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7522
+
7523
+ # Customize the options with defaults
7524
+ metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h
7525
+
7526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7527
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7528
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7529
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7530
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7531
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7532
+
7533
+ header_params = {}
7534
+ if request.name
7535
+ header_params["name"] = request.name
7536
+ end
7537
+
7538
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7539
+ metadata[:"x-goog-request-params"] ||= request_params_header
7540
+
7541
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout,
7542
+ metadata: metadata,
7543
+ retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy
7544
+
7545
+ options.apply_defaults timeout: @config.timeout,
7546
+ metadata: @config.metadata,
7547
+ retry_policy: @config.retry_policy
7548
+
7549
+ @oracle_database_stub.call_rpc :get_goldengate_deployment_environment, request, options: options do |response, operation|
7550
+ yield response, operation if block_given?
7551
+ end
7552
+ rescue ::GRPC::BadStatus => e
7553
+ raise ::Google::Cloud::Error.from_error(e)
7554
+ end
7555
+
7556
+ ##
7557
+ # Lists GoldengateDeploymentEnvironments in a given project and location.
7558
+ #
7559
+ # @overload list_goldengate_deployment_environments(request, options = nil)
7560
+ # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type
7561
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash.
7562
+ #
7563
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash]
7564
+ # A request object representing the call parameters. Required. To specify no
7565
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7566
+ # @param options [::Gapic::CallOptions, ::Hash]
7567
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7568
+ #
7569
+ # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil)
7570
+ # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at
7571
+ # least one keyword argument is required. To specify no parameters, or to keep all
7572
+ # the default parameter values, pass an empty Hash as a request object (see above).
7573
+ #
7574
+ # @param parent [::String]
7575
+ # Required. The parent, which owns this collection of
7576
+ # GoldengateDeploymentEnvironments. Format:
7577
+ # projects/\\{project}/locations/\\{location}
7578
+ # @param page_size [::Integer]
7579
+ # Optional. The maximum number of items to return.
7580
+ # If unspecified, at most 50 deployment environments will be returned.
7581
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
7582
+ # @param page_token [::String]
7583
+ # Optional. A token identifying a page of results the server should return.
7584
+ #
7585
+ # @yield [response, operation] Access the result along with the RPC operation
7586
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>]
7587
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7588
+ #
7589
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>]
7590
+ #
7591
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7592
+ #
7593
+ # @example Basic example
7594
+ # require "google/cloud/oracle_database/v1"
7595
+ #
7596
+ # # Create a client object. The client can be reused for multiple calls.
7597
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7598
+ #
7599
+ # # Create a request. To set request fields, pass in keyword arguments.
7600
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new
7601
+ #
7602
+ # # Call the list_goldengate_deployment_environments method.
7603
+ # result = client.list_goldengate_deployment_environments request
7604
+ #
7605
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
7606
+ # # over elements, and API calls will be issued to fetch pages as needed.
7607
+ # result.each do |item|
7608
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.
7609
+ # p item
7610
+ # end
7611
+ #
7612
+ def list_goldengate_deployment_environments request, options = nil
7613
+ raise ::ArgumentError, "request must be provided" if request.nil?
7614
+
7615
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest
7616
+
7617
+ # Converts hash and nil to an options object
7618
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7619
+
7620
+ # Customize the options with defaults
7621
+ metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h
7622
+
7623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7624
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7625
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7626
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7627
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7628
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7629
+
7630
+ header_params = {}
7631
+ if request.parent
7632
+ header_params["parent"] = request.parent
7633
+ end
7634
+
7635
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7636
+ metadata[:"x-goog-request-params"] ||= request_params_header
7637
+
7638
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout,
7639
+ metadata: metadata,
7640
+ retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy
7641
+
7642
+ options.apply_defaults timeout: @config.timeout,
7643
+ metadata: @config.metadata,
7644
+ retry_policy: @config.retry_policy
7645
+
7646
+ @oracle_database_stub.call_rpc :list_goldengate_deployment_environments, request, options: options do |response, operation|
7647
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, request, response, operation, options
7648
+ yield response, operation if block_given?
7649
+ throw :response, response
7650
+ end
7651
+ rescue ::GRPC::BadStatus => e
7652
+ raise ::Google::Cloud::Error.from_error(e)
7653
+ end
7654
+
7655
+ ##
7656
+ # Gets details of a single GoldengateConnectionType.
7657
+ #
7658
+ # @overload get_goldengate_connection_type(request, options = nil)
7659
+ # Pass arguments to `get_goldengate_connection_type` via a request object, either of type
7660
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash.
7661
+ #
7662
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash]
7663
+ # A request object representing the call parameters. Required. To specify no
7664
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7665
+ # @param options [::Gapic::CallOptions, ::Hash]
7666
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7667
+ #
7668
+ # @overload get_goldengate_connection_type(name: nil)
7669
+ # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at
7670
+ # least one keyword argument is required. To specify no parameters, or to keep all
7671
+ # the default parameter values, pass an empty Hash as a request object (see above).
7672
+ #
7673
+ # @param name [::String]
7674
+ # Required. Name of the resource in the format:
7675
+ # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type}
7676
+ #
7677
+ # @yield [response, operation] Access the result along with the RPC operation
7678
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType]
7679
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7680
+ #
7681
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType]
7682
+ #
7683
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7684
+ #
7685
+ # @example Basic example
7686
+ # require "google/cloud/oracle_database/v1"
7687
+ #
7688
+ # # Create a client object. The client can be reused for multiple calls.
7689
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7690
+ #
7691
+ # # Create a request. To set request fields, pass in keyword arguments.
7692
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new
7693
+ #
7694
+ # # Call the get_goldengate_connection_type method.
7695
+ # result = client.get_goldengate_connection_type request
7696
+ #
7697
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.
7698
+ # p result
7699
+ #
7700
+ def get_goldengate_connection_type request, options = nil
7701
+ raise ::ArgumentError, "request must be provided" if request.nil?
7702
+
7703
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest
7704
+
7705
+ # Converts hash and nil to an options object
7706
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7707
+
7708
+ # Customize the options with defaults
7709
+ metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h
7710
+
7711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7712
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7713
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7714
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7715
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7716
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7717
+
7718
+ header_params = {}
7719
+ if request.name
7720
+ header_params["name"] = request.name
7721
+ end
7722
+
7723
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7724
+ metadata[:"x-goog-request-params"] ||= request_params_header
7725
+
7726
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout,
7727
+ metadata: metadata,
7728
+ retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy
7729
+
7730
+ options.apply_defaults timeout: @config.timeout,
7731
+ metadata: @config.metadata,
7732
+ retry_policy: @config.retry_policy
7733
+
7734
+ @oracle_database_stub.call_rpc :get_goldengate_connection_type, request, options: options do |response, operation|
7735
+ yield response, operation if block_given?
7736
+ end
7737
+ rescue ::GRPC::BadStatus => e
7738
+ raise ::Google::Cloud::Error.from_error(e)
7739
+ end
7740
+
7741
+ ##
7742
+ # Lists GoldengateConnectionTypes in a given project and location.
7743
+ #
7744
+ # @overload list_goldengate_connection_types(request, options = nil)
7745
+ # Pass arguments to `list_goldengate_connection_types` via a request object, either of type
7746
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash.
7747
+ #
7748
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash]
7749
+ # A request object representing the call parameters. Required. To specify no
7750
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7751
+ # @param options [::Gapic::CallOptions, ::Hash]
7752
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7753
+ #
7754
+ # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil)
7755
+ # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at
7756
+ # least one keyword argument is required. To specify no parameters, or to keep all
7757
+ # the default parameter values, pass an empty Hash as a request object (see above).
7758
+ #
7759
+ # @param parent [::String]
7760
+ # Required. Parent value for ListGoldengateConnectionTypesRequest
7761
+ # Format: projects/\\{project}/locations/\\{location}
7762
+ # @param page_size [::Integer]
7763
+ # Optional. Requested page size. Server may return fewer items than
7764
+ # requested. If unspecified, server will pick an appropriate default.
7765
+ # @param page_token [::String]
7766
+ # Optional. A token identifying a page of results the server should return.
7767
+ # @param filter [::String]
7768
+ # Optional. An expression for filtering the results of the request. The
7769
+ # connection_type field must be specified in the format:
7770
+ # `connection_type="ORACLE"`.
7771
+ #
7772
+ # @yield [response, operation] Access the result along with the RPC operation
7773
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>]
7774
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7775
+ #
7776
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>]
7777
+ #
7778
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7779
+ #
7780
+ # @example Basic example
7781
+ # require "google/cloud/oracle_database/v1"
7782
+ #
7783
+ # # Create a client object. The client can be reused for multiple calls.
7784
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7785
+ #
7786
+ # # Create a request. To set request fields, pass in keyword arguments.
7787
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new
7788
+ #
7789
+ # # Call the list_goldengate_connection_types method.
7790
+ # result = client.list_goldengate_connection_types request
7791
+ #
7792
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
7793
+ # # over elements, and API calls will be issued to fetch pages as needed.
7794
+ # result.each do |item|
7795
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.
7796
+ # p item
7797
+ # end
7798
+ #
7799
+ def list_goldengate_connection_types request, options = nil
7800
+ raise ::ArgumentError, "request must be provided" if request.nil?
7801
+
7802
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest
7803
+
7804
+ # Converts hash and nil to an options object
7805
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7806
+
7807
+ # Customize the options with defaults
7808
+ metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h
7809
+
7810
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7811
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7812
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7813
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7814
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7815
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7816
+
7817
+ header_params = {}
7818
+ if request.parent
7819
+ header_params["parent"] = request.parent
7820
+ end
7821
+
7822
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7823
+ metadata[:"x-goog-request-params"] ||= request_params_header
7824
+
7825
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout,
7826
+ metadata: metadata,
7827
+ retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy
7828
+
7829
+ options.apply_defaults timeout: @config.timeout,
7830
+ metadata: @config.metadata,
7831
+ retry_policy: @config.retry_policy
7832
+
7833
+ @oracle_database_stub.call_rpc :list_goldengate_connection_types, request, options: options do |response, operation|
7834
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, request, response, operation, options
7835
+ yield response, operation if block_given?
7836
+ throw :response, response
7837
+ end
7838
+ rescue ::GRPC::BadStatus => e
7839
+ raise ::Google::Cloud::Error.from_error(e)
7840
+ end
7841
+
7842
+ ##
7843
+ # List DbVersions for the given project and location.
7844
+ #
7845
+ # @overload list_db_versions(request, options = nil)
7846
+ # Pass arguments to `list_db_versions` via a request object, either of type
7847
+ # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash.
7848
+ #
7849
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash]
7850
+ # A request object representing the call parameters. Required. To specify no
7851
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7852
+ # @param options [::Gapic::CallOptions, ::Hash]
7853
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7854
+ #
7855
+ # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
7856
+ # Pass arguments to `list_db_versions` via keyword arguments. Note that at
7857
+ # least one keyword argument is required. To specify no parameters, or to keep all
7858
+ # the default parameter values, pass an empty Hash as a request object (see above).
7859
+ #
7860
+ # @param parent [::String]
7861
+ # Required. The parent value for the DbVersion resource with the
7862
+ # format: projects/\\{project}/locations/\\{location}
7863
+ # @param page_size [::Integer]
7864
+ # Optional. The maximum number of items to return.
7865
+ # If unspecified, a maximum of 50 DbVersions will be returned.
7866
+ # The maximum value is 1000; values above 1000 will be reset to 1000.
7867
+ # @param page_token [::String]
7868
+ # Optional. A token identifying the requested page of results to return. All
7869
+ # fields except the filter should remain the same as in the request that
7870
+ # provided this page token.
7871
+ # @param filter [::String]
7872
+ # Optional. Filter expression that matches a subset of the DbVersions to
7873
+ # show. The supported filter for dbSystem creation is `db_system_shape =
7874
+ # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no
7875
+ # filter is provided, all DbVersions will be returned.
7876
+ #
7877
+ # @yield [response, operation] Access the result along with the RPC operation
7878
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
7879
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7880
+ #
7881
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>]
7882
+ #
7883
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7884
+ #
7885
+ # @example Basic example
7886
+ # require "google/cloud/oracle_database/v1"
7887
+ #
7888
+ # # Create a client object. The client can be reused for multiple calls.
7889
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
7890
+ #
7891
+ # # Create a request. To set request fields, pass in keyword arguments.
7892
+ # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new
7893
+ #
7894
+ # # Call the list_db_versions method.
7895
+ # result = client.list_db_versions request
7896
+ #
7897
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
7898
+ # # over elements, and API calls will be issued to fetch pages as needed.
7899
+ # result.each do |item|
7900
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion.
7901
+ # p item
7902
+ # end
7903
+ #
7904
+ def list_db_versions request, options = nil
7905
+ raise ::ArgumentError, "request must be provided" if request.nil?
7906
+
7907
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest
7908
+
7909
+ # Converts hash and nil to an options object
7910
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7911
+
7912
+ # Customize the options with defaults
7913
+ metadata = @config.rpcs.list_db_versions.metadata.to_h
7914
+
7915
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
7916
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7917
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7918
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
7919
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
7920
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7921
+
7922
+ header_params = {}
7923
+ if request.parent
7924
+ header_params["parent"] = request.parent
7925
+ end
7926
+
7927
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
7928
+ metadata[:"x-goog-request-params"] ||= request_params_header
7929
+
7930
+ options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout,
7931
+ metadata: metadata,
7932
+ retry_policy: @config.rpcs.list_db_versions.retry_policy
7933
+
7934
+ options.apply_defaults timeout: @config.timeout,
7935
+ metadata: @config.metadata,
7936
+ retry_policy: @config.retry_policy
7937
+
7938
+ @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation|
7939
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options
7940
+ yield response, operation if block_given?
7941
+ throw :response, response
7942
+ end
7943
+ rescue ::GRPC::BadStatus => e
7944
+ raise ::Google::Cloud::Error.from_error(e)
7945
+ end
7946
+
7947
+ ##
7948
+ # List DatabaseCharacterSets for the given project and location.
7949
+ #
7950
+ # @overload list_database_character_sets(request, options = nil)
7951
+ # Pass arguments to `list_database_character_sets` via a request object, either of type
7952
+ # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash.
7953
+ #
7954
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash]
7955
+ # A request object representing the call parameters. Required. To specify no
7956
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7957
+ # @param options [::Gapic::CallOptions, ::Hash]
7958
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
7959
+ #
7960
+ # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil)
7961
+ # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at
7962
+ # least one keyword argument is required. To specify no parameters, or to keep all
7963
+ # the default parameter values, pass an empty Hash as a request object (see above).
7964
+ #
7965
+ # @param parent [::String]
7966
+ # Required. The parent value for DatabaseCharacterSets in the following
7967
+ # format: projects/\\{project}/locations/\\{location}.
7968
+ # @param page_size [::Integer]
7969
+ # Optional. The maximum number of DatabaseCharacterSets to return. The
7970
+ # service may return fewer than this value. If unspecified, at most 50
7971
+ # DatabaseCharacterSets will be returned. The maximum value is 1000; values
7972
+ # above 1000 will be coerced to 1000.
7973
+ # @param page_token [::String]
7974
+ # Optional. A page token, received from a previous
7975
+ # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent
7976
+ # page.
7977
+ #
7978
+ # When paginating, all other parameters provided to
7979
+ # `ListDatabaseCharacterSets` must match the call that provided the page
7980
+ # token.
7981
+ # @param filter [::String]
7982
+ # Optional. An expression for filtering the results of the request. Only the
7983
+ # **character_set_type** field is supported in the following format:
7984
+ # `character_set_type="{characterSetType}"`. Accepted values include
7985
+ # `DATABASE` and `NATIONAL`.
7986
+ #
7987
+ # @yield [response, operation] Access the result along with the RPC operation
7988
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
7989
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
7990
+ #
7991
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>]
7992
+ #
7993
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
7994
+ #
7995
+ # @example Basic example
7996
+ # require "google/cloud/oracle_database/v1"
7997
+ #
7998
+ # # Create a client object. The client can be reused for multiple calls.
7999
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8000
+ #
8001
+ # # Create a request. To set request fields, pass in keyword arguments.
8002
+ # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new
8003
+ #
8004
+ # # Call the list_database_character_sets method.
8005
+ # result = client.list_database_character_sets request
8006
+ #
8007
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
8008
+ # # over elements, and API calls will be issued to fetch pages as needed.
8009
+ # result.each do |item|
8010
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet.
8011
+ # p item
8012
+ # end
8013
+ #
8014
+ def list_database_character_sets request, options = nil
8015
+ raise ::ArgumentError, "request must be provided" if request.nil?
8016
+
8017
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest
8018
+
8019
+ # Converts hash and nil to an options object
8020
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8021
+
8022
+ # Customize the options with defaults
8023
+ metadata = @config.rpcs.list_database_character_sets.metadata.to_h
8024
+
8025
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8026
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8027
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8028
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8029
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8030
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8031
+
8032
+ header_params = {}
8033
+ if request.parent
8034
+ header_params["parent"] = request.parent
8035
+ end
8036
+
8037
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8038
+ metadata[:"x-goog-request-params"] ||= request_params_header
8039
+
8040
+ options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout,
8041
+ metadata: metadata,
8042
+ retry_policy: @config.rpcs.list_database_character_sets.retry_policy
8043
+
8044
+ options.apply_defaults timeout: @config.timeout,
8045
+ metadata: @config.metadata,
8046
+ retry_policy: @config.retry_policy
8047
+
8048
+ @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation|
8049
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options
8050
+ yield response, operation if block_given?
8051
+ throw :response, response
8052
+ end
8053
+ rescue ::GRPC::BadStatus => e
8054
+ raise ::Google::Cloud::Error.from_error(e)
8055
+ end
8056
+
8057
+ ##
8058
+ # Lists GoldengateConnectionAssignments in a given project and location.
8059
+ #
8060
+ # @overload list_goldengate_connection_assignments(request, options = nil)
8061
+ # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type
8062
+ # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash.
8063
+ #
8064
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash]
8065
+ # A request object representing the call parameters. Required. To specify no
8066
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
8067
+ # @param options [::Gapic::CallOptions, ::Hash]
8068
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
8069
+ #
8070
+ # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
8071
+ # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at
8072
+ # least one keyword argument is required. To specify no parameters, or to keep all
8073
+ # the default parameter values, pass an empty Hash as a request object (see above).
8074
+ #
8075
+ # @param parent [::String]
8076
+ # Required. The parent value for the GoldengateConnectionAssignments.
8077
+ # Format: projects/\\{project}/locations/\\{location}
8078
+ # @param page_size [::Integer]
8079
+ # Optional. The maximum number of GoldengateConnectionAssignments to return.
8080
+ # The service may return fewer than this value. If unspecified, at most 50
8081
+ # GoldengateConnectionAssignments will be returned. The maximum value is
8082
+ # 1000; values above 1000 will be coerced to 1000.
8083
+ # @param page_token [::String]
8084
+ # Optional. A page token, received from a previous
8085
+ # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the
8086
+ # subsequent page.
8087
+ #
8088
+ # When paginating, all other parameters provided to
8089
+ # `ListGoldengateConnectionAssignments` must match the call that provided
8090
+ # the page token.
8091
+ # @param filter [::String]
8092
+ # Optional. A filter expression that filters GoldengateConnectionAssignments
8093
+ # listed in the response.
8094
+ # @param order_by [::String]
8095
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
8096
+ # order. Use "DESC" after a field name for descending.
8097
+ #
8098
+ # @yield [response, operation] Access the result along with the RPC operation
8099
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>]
8100
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
8101
+ #
8102
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>]
8103
+ #
8104
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
8105
+ #
8106
+ # @example Basic example
8107
+ # require "google/cloud/oracle_database/v1"
8108
+ #
8109
+ # # Create a client object. The client can be reused for multiple calls.
8110
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8111
+ #
8112
+ # # Create a request. To set request fields, pass in keyword arguments.
8113
+ # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new
8114
+ #
8115
+ # # Call the list_goldengate_connection_assignments method.
8116
+ # result = client.list_goldengate_connection_assignments request
8117
+ #
8118
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
8119
+ # # over elements, and API calls will be issued to fetch pages as needed.
8120
+ # result.each do |item|
8121
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.
8122
+ # p item
8123
+ # end
8124
+ #
8125
+ def list_goldengate_connection_assignments request, options = nil
8126
+ raise ::ArgumentError, "request must be provided" if request.nil?
8127
+
8128
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest
8129
+
8130
+ # Converts hash and nil to an options object
8131
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8132
+
8133
+ # Customize the options with defaults
8134
+ metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h
8135
+
8136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8137
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8138
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8139
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8140
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8141
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8142
+
8143
+ header_params = {}
8144
+ if request.parent
8145
+ header_params["parent"] = request.parent
8146
+ end
8147
+
8148
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8149
+ metadata[:"x-goog-request-params"] ||= request_params_header
8150
+
8151
+ options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout,
8152
+ metadata: metadata,
8153
+ retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy
8154
+
8155
+ options.apply_defaults timeout: @config.timeout,
8156
+ metadata: @config.metadata,
8157
+ retry_policy: @config.retry_policy
8158
+
8159
+ @oracle_database_stub.call_rpc :list_goldengate_connection_assignments, request, options: options do |response, operation|
8160
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, request, response, operation, options
8161
+ yield response, operation if block_given?
8162
+ throw :response, response
8163
+ end
8164
+ rescue ::GRPC::BadStatus => e
8165
+ raise ::Google::Cloud::Error.from_error(e)
8166
+ end
8167
+
8168
+ ##
8169
+ # Gets details of a single GoldengateConnectionAssignment.
8170
+ #
8171
+ # @overload get_goldengate_connection_assignment(request, options = nil)
8172
+ # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type
8173
+ # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash.
8174
+ #
8175
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash]
8176
+ # A request object representing the call parameters. Required. To specify no
8177
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
8178
+ # @param options [::Gapic::CallOptions, ::Hash]
8179
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
8180
+ #
8181
+ # @overload get_goldengate_connection_assignment(name: nil)
8182
+ # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at
8183
+ # least one keyword argument is required. To specify no parameters, or to keep all
8184
+ # the default parameter values, pass an empty Hash as a request object (see above).
8185
+ #
8186
+ # @param name [::String]
8187
+ # Required. The name of the GoldengateConnectionAssignment to retrieve.
8188
+ # Format:
8189
+ # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment}
8190
+ #
8191
+ # @yield [response, operation] Access the result along with the RPC operation
8192
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment]
8193
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
8194
+ #
8195
+ # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment]
8196
+ #
8197
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
8198
+ #
8199
+ # @example Basic example
8200
+ # require "google/cloud/oracle_database/v1"
8201
+ #
8202
+ # # Create a client object. The client can be reused for multiple calls.
8203
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8204
+ #
8205
+ # # Create a request. To set request fields, pass in keyword arguments.
8206
+ # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new
8207
+ #
8208
+ # # Call the get_goldengate_connection_assignment method.
8209
+ # result = client.get_goldengate_connection_assignment request
8210
+ #
8211
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.
8212
+ # p result
8213
+ #
8214
+ def get_goldengate_connection_assignment request, options = nil
8215
+ raise ::ArgumentError, "request must be provided" if request.nil?
8216
+
8217
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest
8218
+
8219
+ # Converts hash and nil to an options object
8220
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8221
+
8222
+ # Customize the options with defaults
8223
+ metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h
8224
+
8225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8226
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8227
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8228
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8229
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8230
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8231
+
8232
+ header_params = {}
8233
+ if request.name
8234
+ header_params["name"] = request.name
8235
+ end
8236
+
8237
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8238
+ metadata[:"x-goog-request-params"] ||= request_params_header
8239
+
8240
+ options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout,
8241
+ metadata: metadata,
8242
+ retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy
8243
+
8244
+ options.apply_defaults timeout: @config.timeout,
8245
+ metadata: @config.metadata,
8246
+ retry_policy: @config.retry_policy
8247
+
8248
+ @oracle_database_stub.call_rpc :get_goldengate_connection_assignment, request, options: options do |response, operation|
8249
+ yield response, operation if block_given?
8250
+ end
8251
+ rescue ::GRPC::BadStatus => e
8252
+ raise ::Google::Cloud::Error.from_error(e)
8253
+ end
8254
+
8255
+ ##
8256
+ # Creates a new GoldengateConnectionAssignment in a given project and
8257
+ # location.
8258
+ #
8259
+ # @overload create_goldengate_connection_assignment(request, options = nil)
8260
+ # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type
8261
+ # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash.
8262
+ #
8263
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash]
8264
+ # A request object representing the call parameters. Required. To specify no
8265
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
8266
+ # @param options [::Gapic::CallOptions, ::Hash]
8267
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
8268
+ #
8269
+ # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil)
8270
+ # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at
8271
+ # least one keyword argument is required. To specify no parameters, or to keep all
8272
+ # the default parameter values, pass an empty Hash as a request object (see above).
8273
+ #
8274
+ # @param parent [::String]
8275
+ # Required. The parent resource where this GoldengateConnectionAssignment
8276
+ # will be created. Format: projects/\\{project}/locations/\\{location}
8277
+ # @param goldengate_connection_assignment_id [::String]
8278
+ # Required. The ID of the GoldengateConnectionAssignment to create.
8279
+ # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash]
8280
+ # Required. The GoldengateConnectionAssignment to create.
8281
+ # @param request_id [::String]
8282
+ # Optional. An optional request ID to identify requests. Specify a unique
8283
+ # request ID so that if you must retry your request, the server will know to
8284
+ # ignore the request if it has already been completed. The server will
8285
+ # guarantee that for at least 60 minutes since the first request.
8286
+ #
8287
+ # For example, consider a situation where you make an initial request and the
8288
+ # request times out. If you make the request again with the same request
8289
+ # ID, the server can check if original operation with the same request ID
8290
+ # was received, and if so, will ignore the second request. This prevents
8291
+ # clients from accidentally creating duplicate commitments.
8292
+ #
8293
+ # The request ID must be a valid UUID with the exception that zero UUID is
8294
+ # not supported (00000000-0000-0000-0000-000000000000).
8295
+ #
8296
+ # @yield [response, operation] Access the result along with the RPC operation
8297
+ # @yieldparam response [::Gapic::Operation]
8298
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
8299
+ #
8300
+ # @return [::Gapic::Operation]
8301
+ #
8302
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
8303
+ #
8304
+ # @example Basic example
8305
+ # require "google/cloud/oracle_database/v1"
8306
+ #
8307
+ # # Create a client object. The client can be reused for multiple calls.
8308
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8309
+ #
8310
+ # # Create a request. To set request fields, pass in keyword arguments.
8311
+ # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new
8312
+ #
8313
+ # # Call the create_goldengate_connection_assignment method.
8314
+ # result = client.create_goldengate_connection_assignment request
8315
+ #
8316
+ # # The returned object is of type Gapic::Operation. You can use it to
8317
+ # # check the status of an operation, cancel it, or wait for results.
8318
+ # # Here is how to wait for a response.
8319
+ # result.wait_until_done! timeout: 60
8320
+ # if result.response?
8321
+ # p result.response
8322
+ # else
8323
+ # puts "No response received."
8324
+ # end
8325
+ #
8326
+ def create_goldengate_connection_assignment request, options = nil
8327
+ raise ::ArgumentError, "request must be provided" if request.nil?
8328
+
8329
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest
8330
+
8331
+ # Converts hash and nil to an options object
8332
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8333
+
8334
+ # Customize the options with defaults
8335
+ metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h
8336
+
8337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8338
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8339
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8340
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8341
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8342
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8343
+
8344
+ header_params = {}
8345
+ if request.parent
8346
+ header_params["parent"] = request.parent
8347
+ end
8348
+
8349
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8350
+ metadata[:"x-goog-request-params"] ||= request_params_header
8351
+
8352
+ options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout,
8353
+ metadata: metadata,
8354
+ retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy
8355
+
8356
+ options.apply_defaults timeout: @config.timeout,
8357
+ metadata: @config.metadata,
8358
+ retry_policy: @config.retry_policy
8359
+
8360
+ @oracle_database_stub.call_rpc :create_goldengate_connection_assignment, request, options: options do |response, operation|
8361
+ response = ::Gapic::Operation.new response, @operations_client, options: options
8362
+ yield response, operation if block_given?
8363
+ throw :response, response
8364
+ end
8365
+ rescue ::GRPC::BadStatus => e
8366
+ raise ::Google::Cloud::Error.from_error(e)
8367
+ end
8368
+
8369
+ ##
8370
+ # Deletes a single GoldengateConnectionAssignment.
8371
+ #
8372
+ # @overload delete_goldengate_connection_assignment(request, options = nil)
8373
+ # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type
8374
+ # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash.
8375
+ #
8376
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash]
8377
+ # A request object representing the call parameters. Required. To specify no
8378
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
8379
+ # @param options [::Gapic::CallOptions, ::Hash]
8380
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
8381
+ #
8382
+ # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil)
8383
+ # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at
8384
+ # least one keyword argument is required. To specify no parameters, or to keep all
8385
+ # the default parameter values, pass an empty Hash as a request object (see above).
8386
+ #
8387
+ # @param name [::String]
8388
+ # Required. The name of the GoldengateConnectionAssignment to delete.
8389
+ # Format:
8390
+ # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment}
8391
+ # @param request_id [::String]
8392
+ # Optional. An optional request ID to identify requests. Specify a unique
8393
+ # request ID so that if you must retry your request, the server will know to
8394
+ # ignore the request if it has already been completed. The server will
8395
+ # guarantee that for at least 60 minutes after the first request.
8396
+ #
8397
+ # For example, consider a situation where you make an initial request and the
8398
+ # request times out. If you make the request again with the same request
8399
+ # ID, the server can check if original operation with the same request ID
8400
+ # was received, and if so, will ignore the second request. This prevents
8401
+ # clients from accidentally creating duplicate commitments.
8402
+ #
8403
+ # The request ID must be a valid UUID with the exception that zero UUID is
8404
+ # not supported (00000000-0000-0000-0000-000000000000).
8405
+ #
8406
+ # @yield [response, operation] Access the result along with the RPC operation
8407
+ # @yieldparam response [::Gapic::Operation]
8408
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
8409
+ #
8410
+ # @return [::Gapic::Operation]
8411
+ #
8412
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
8413
+ #
8414
+ # @example Basic example
8415
+ # require "google/cloud/oracle_database/v1"
8416
+ #
8417
+ # # Create a client object. The client can be reused for multiple calls.
8418
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8419
+ #
8420
+ # # Create a request. To set request fields, pass in keyword arguments.
8421
+ # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new
8422
+ #
8423
+ # # Call the delete_goldengate_connection_assignment method.
8424
+ # result = client.delete_goldengate_connection_assignment request
8425
+ #
8426
+ # # The returned object is of type Gapic::Operation. You can use it to
8427
+ # # check the status of an operation, cancel it, or wait for results.
8428
+ # # Here is how to wait for a response.
8429
+ # result.wait_until_done! timeout: 60
8430
+ # if result.response?
8431
+ # p result.response
8432
+ # else
8433
+ # puts "No response received."
8434
+ # end
8435
+ #
8436
+ def delete_goldengate_connection_assignment request, options = nil
8437
+ raise ::ArgumentError, "request must be provided" if request.nil?
8438
+
8439
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest
8440
+
8441
+ # Converts hash and nil to an options object
8442
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8443
+
8444
+ # Customize the options with defaults
8445
+ metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h
8446
+
8447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8448
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8449
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8450
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8451
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8452
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8453
+
8454
+ header_params = {}
8455
+ if request.name
8456
+ header_params["name"] = request.name
8457
+ end
8458
+
8459
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8460
+ metadata[:"x-goog-request-params"] ||= request_params_header
8461
+
8462
+ options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout,
8463
+ metadata: metadata,
8464
+ retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy
8465
+
8466
+ options.apply_defaults timeout: @config.timeout,
8467
+ metadata: @config.metadata,
8468
+ retry_policy: @config.retry_policy
8469
+
8470
+ @oracle_database_stub.call_rpc :delete_goldengate_connection_assignment, request, options: options do |response, operation|
8471
+ response = ::Gapic::Operation.new response, @operations_client, options: options
8472
+ yield response, operation if block_given?
8473
+ throw :response, response
8474
+ end
8475
+ rescue ::GRPC::BadStatus => e
8476
+ raise ::Google::Cloud::Error.from_error(e)
8477
+ end
8478
+
8479
+ ##
8480
+ # Tests a single GoldengateConnectionAssignment.
8481
+ #
8482
+ # @overload test_goldengate_connection_assignment(request, options = nil)
8483
+ # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type
8484
+ # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash.
8485
+ #
8486
+ # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash]
8487
+ # A request object representing the call parameters. Required. To specify no
8488
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
8489
+ # @param options [::Gapic::CallOptions, ::Hash]
8490
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
8491
+ #
8492
+ # @overload test_goldengate_connection_assignment(name: nil, type: nil)
8493
+ # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at
8494
+ # least one keyword argument is required. To specify no parameters, or to keep all
8495
+ # the default parameter values, pass an empty Hash as a request object (see above).
8496
+ #
8497
+ # @param name [::String]
8498
+ # Required. Name of the connection assignment for which to test connection.
8499
+ # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment}
8500
+ # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType]
8501
+ # Optional. The type of the test of the assigned connection.
8502
+ # The only type actually supported is DEFAULT.
8503
+ #
8504
+ # @yield [response, operation] Access the result along with the RPC operation
8505
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse]
8506
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
8507
+ #
8508
+ # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse]
8509
+ #
8510
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
8511
+ #
8512
+ # @example Basic example
8513
+ # require "google/cloud/oracle_database/v1"
8514
+ #
8515
+ # # Create a client object. The client can be reused for multiple calls.
8516
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
8517
+ #
8518
+ # # Create a request. To set request fields, pass in keyword arguments.
8519
+ # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new
8520
+ #
8521
+ # # Call the test_goldengate_connection_assignment method.
8522
+ # result = client.test_goldengate_connection_assignment request
8523
+ #
8524
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.
8525
+ # p result
8526
+ #
8527
+ def test_goldengate_connection_assignment request, options = nil
8528
+ raise ::ArgumentError, "request must be provided" if request.nil?
8529
+
8530
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest
8531
+
8532
+ # Converts hash and nil to an options object
8533
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
8534
+
8535
+ # Customize the options with defaults
8536
+ metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h
8537
+
8538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
8539
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
8540
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
8541
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
8542
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
8543
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
8544
+
8545
+ header_params = {}
8546
+ if request.name
8547
+ header_params["name"] = request.name
8548
+ end
8549
+
8550
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
8551
+ metadata[:"x-goog-request-params"] ||= request_params_header
8552
+
8553
+ options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout,
8554
+ metadata: metadata,
8555
+ retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy
8556
+
8557
+ options.apply_defaults timeout: @config.timeout,
8558
+ metadata: @config.metadata,
8559
+ retry_policy: @config.retry_policy
8560
+
8561
+ @oracle_database_stub.call_rpc :test_goldengate_connection_assignment, request, options: options do |response, operation|
8562
+ yield response, operation if block_given?
8563
+ end
8564
+ rescue ::GRPC::BadStatus => e
8565
+ raise ::Google::Cloud::Error.from_error(e)
8566
+ end
8567
+
8568
+ ##
8569
+ # Configuration class for the OracleDatabase API.
8570
+ #
8571
+ # This class represents the configuration for OracleDatabase,
8572
+ # providing control over timeouts, retry behavior, logging, transport
8573
+ # parameters, and other low-level controls. Certain parameters can also be
8574
+ # applied individually to specific RPCs. See
8575
+ # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs}
8576
+ # for a list of RPCs that can be configured independently.
8577
+ #
8578
+ # Configuration can be applied globally to all clients, or to a single client
8579
+ # on construction.
8580
+ #
8581
+ # @example
8582
+ #
8583
+ # # Modify the global config, setting the timeout for
8584
+ # # list_cloud_exadata_infrastructures to 20 seconds,
8585
+ # # and all remaining timeouts to 10 seconds.
8586
+ # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config|
8587
+ # config.timeout = 10.0
8588
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
8589
+ # end
8590
+ #
8591
+ # # Apply the above configuration only to a new client.
8592
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config|
8593
+ # config.timeout = 10.0
8594
+ # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0
8595
+ # end
8596
+ #
8597
+ # @!attribute [rw] endpoint
8598
+ # A custom service endpoint, as a hostname or hostname:port. The default is
8599
+ # nil, indicating to use the default endpoint in the current universe domain.
8600
+ # @return [::String,nil]
8601
+ # @!attribute [rw] credentials
8602
+ # Credentials to send with calls. You may provide any of the following types:
8603
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
8604
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
8605
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
8606
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
8607
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
8608
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
8609
+ # * (`nil`) indicating no credentials
8610
+ #
8611
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
8612
+ # is deprecated. Providing an unvalidated credential configuration to
8613
+ # Google APIs can compromise the security of your systems and data.
8614
+ #
8615
+ # @example
8616
+ #
8617
+ # # The recommended way to provide credentials is to use the `make_creds` method
8618
+ # # on the appropriate credentials class for your environment.
8619
+ #
8620
+ # require "googleauth"
8621
+ #
8622
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
8623
+ # json_key_io: ::File.open("/path/to/keyfile.json")
8624
+ # )
8625
+ #
8626
+ # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config|
8627
+ # config.credentials = credentials
8628
+ # end
8629
+ #
8630
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
8631
+ # external source for authentication to Google Cloud, you must validate it before
8632
+ # providing it to a Google API client library. Providing an unvalidated credential
8633
+ # configuration to Google APIs can compromise the security of your systems and data.
8634
+ # For more information, refer to [Validate credential configurations from external
8635
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
8636
+ # @return [::Object]
8637
+ # @!attribute [rw] scope
8638
+ # The OAuth scopes
8639
+ # @return [::Array<::String>]
8640
+ # @!attribute [rw] lib_name
8641
+ # The library name as recorded in instrumentation and logging
8642
+ # @return [::String]
8643
+ # @!attribute [rw] lib_version
8644
+ # The library version as recorded in instrumentation and logging
8645
+ # @return [::String]
8646
+ # @!attribute [rw] channel_args
8647
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
8648
+ # `GRPC::Core::Channel` object is provided as the credential.
8649
+ # @return [::Hash]
8650
+ # @!attribute [rw] interceptors
8651
+ # An array of interceptors that are run before calls are executed.
8652
+ # @return [::Array<::GRPC::ClientInterceptor>]
8653
+ # @!attribute [rw] timeout
8654
+ # The call timeout in seconds.
8655
+ # @return [::Numeric]
8656
+ # @!attribute [rw] metadata
8657
+ # Additional gRPC headers to be sent with the call.
8658
+ # @return [::Hash{::Symbol=>::String}]
8659
+ # @!attribute [rw] retry_policy
8660
+ # The retry policy. The value is a hash with the following keys:
8661
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
8662
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
8663
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
8664
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
8665
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
8666
+ # trigger a retry.
8667
+ # @return [::Hash]
8668
+ # @!attribute [rw] quota_project
8669
+ # A separate project against which to charge quota.
8670
+ # @return [::String]
8671
+ # @!attribute [rw] universe_domain
8672
+ # The universe domain within which to make requests. This determines the
8673
+ # default endpoint URL. The default value of nil uses the environment
8674
+ # universe (usually the default "googleapis.com" universe).
8675
+ # @return [::String,nil]
8676
+ # @!attribute [rw] logger
8677
+ # A custom logger to use for request/response debug logging, or the value
8678
+ # `:default` (the default) to construct a default logger, or `nil` to
8679
+ # explicitly disable logging.
8680
+ # @return [::Logger,:default,nil]
8681
+ #
8682
+ class Configuration
8683
+ extend ::Gapic::Config
8684
+
8685
+ # @private
6360
8686
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
6361
8687
  DEFAULT_ENDPOINT = "oracledatabase.googleapis.com"
6362
8688
 
@@ -6419,6 +8745,7 @@ module Google
6419
8745
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
6420
8746
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
6421
8747
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
8748
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
6422
8749
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
6423
8750
  # trigger a retry.
6424
8751
  #
@@ -6704,6 +9031,96 @@ module Google
6704
9031
  #
6705
9032
  attr_reader :delete_db_system
6706
9033
  ##
9034
+ # RPC-specific configuration for `list_goldengate_deployments`
9035
+ # @return [::Gapic::Config::Method]
9036
+ #
9037
+ attr_reader :list_goldengate_deployments
9038
+ ##
9039
+ # RPC-specific configuration for `get_goldengate_deployment`
9040
+ # @return [::Gapic::Config::Method]
9041
+ #
9042
+ attr_reader :get_goldengate_deployment
9043
+ ##
9044
+ # RPC-specific configuration for `create_goldengate_deployment`
9045
+ # @return [::Gapic::Config::Method]
9046
+ #
9047
+ attr_reader :create_goldengate_deployment
9048
+ ##
9049
+ # RPC-specific configuration for `delete_goldengate_deployment`
9050
+ # @return [::Gapic::Config::Method]
9051
+ #
9052
+ attr_reader :delete_goldengate_deployment
9053
+ ##
9054
+ # RPC-specific configuration for `stop_goldengate_deployment`
9055
+ # @return [::Gapic::Config::Method]
9056
+ #
9057
+ attr_reader :stop_goldengate_deployment
9058
+ ##
9059
+ # RPC-specific configuration for `start_goldengate_deployment`
9060
+ # @return [::Gapic::Config::Method]
9061
+ #
9062
+ attr_reader :start_goldengate_deployment
9063
+ ##
9064
+ # RPC-specific configuration for `list_goldengate_connections`
9065
+ # @return [::Gapic::Config::Method]
9066
+ #
9067
+ attr_reader :list_goldengate_connections
9068
+ ##
9069
+ # RPC-specific configuration for `get_goldengate_connection`
9070
+ # @return [::Gapic::Config::Method]
9071
+ #
9072
+ attr_reader :get_goldengate_connection
9073
+ ##
9074
+ # RPC-specific configuration for `create_goldengate_connection`
9075
+ # @return [::Gapic::Config::Method]
9076
+ #
9077
+ attr_reader :create_goldengate_connection
9078
+ ##
9079
+ # RPC-specific configuration for `delete_goldengate_connection`
9080
+ # @return [::Gapic::Config::Method]
9081
+ #
9082
+ attr_reader :delete_goldengate_connection
9083
+ ##
9084
+ # RPC-specific configuration for `get_goldengate_deployment_version`
9085
+ # @return [::Gapic::Config::Method]
9086
+ #
9087
+ attr_reader :get_goldengate_deployment_version
9088
+ ##
9089
+ # RPC-specific configuration for `list_goldengate_deployment_versions`
9090
+ # @return [::Gapic::Config::Method]
9091
+ #
9092
+ attr_reader :list_goldengate_deployment_versions
9093
+ ##
9094
+ # RPC-specific configuration for `get_goldengate_deployment_type`
9095
+ # @return [::Gapic::Config::Method]
9096
+ #
9097
+ attr_reader :get_goldengate_deployment_type
9098
+ ##
9099
+ # RPC-specific configuration for `list_goldengate_deployment_types`
9100
+ # @return [::Gapic::Config::Method]
9101
+ #
9102
+ attr_reader :list_goldengate_deployment_types
9103
+ ##
9104
+ # RPC-specific configuration for `get_goldengate_deployment_environment`
9105
+ # @return [::Gapic::Config::Method]
9106
+ #
9107
+ attr_reader :get_goldengate_deployment_environment
9108
+ ##
9109
+ # RPC-specific configuration for `list_goldengate_deployment_environments`
9110
+ # @return [::Gapic::Config::Method]
9111
+ #
9112
+ attr_reader :list_goldengate_deployment_environments
9113
+ ##
9114
+ # RPC-specific configuration for `get_goldengate_connection_type`
9115
+ # @return [::Gapic::Config::Method]
9116
+ #
9117
+ attr_reader :get_goldengate_connection_type
9118
+ ##
9119
+ # RPC-specific configuration for `list_goldengate_connection_types`
9120
+ # @return [::Gapic::Config::Method]
9121
+ #
9122
+ attr_reader :list_goldengate_connection_types
9123
+ ##
6707
9124
  # RPC-specific configuration for `list_db_versions`
6708
9125
  # @return [::Gapic::Config::Method]
6709
9126
  #
@@ -6713,6 +9130,31 @@ module Google
6713
9130
  # @return [::Gapic::Config::Method]
6714
9131
  #
6715
9132
  attr_reader :list_database_character_sets
9133
+ ##
9134
+ # RPC-specific configuration for `list_goldengate_connection_assignments`
9135
+ # @return [::Gapic::Config::Method]
9136
+ #
9137
+ attr_reader :list_goldengate_connection_assignments
9138
+ ##
9139
+ # RPC-specific configuration for `get_goldengate_connection_assignment`
9140
+ # @return [::Gapic::Config::Method]
9141
+ #
9142
+ attr_reader :get_goldengate_connection_assignment
9143
+ ##
9144
+ # RPC-specific configuration for `create_goldengate_connection_assignment`
9145
+ # @return [::Gapic::Config::Method]
9146
+ #
9147
+ attr_reader :create_goldengate_connection_assignment
9148
+ ##
9149
+ # RPC-specific configuration for `delete_goldengate_connection_assignment`
9150
+ # @return [::Gapic::Config::Method]
9151
+ #
9152
+ attr_reader :delete_goldengate_connection_assignment
9153
+ ##
9154
+ # RPC-specific configuration for `test_goldengate_connection_assignment`
9155
+ # @return [::Gapic::Config::Method]
9156
+ #
9157
+ attr_reader :test_goldengate_connection_assignment
6716
9158
 
6717
9159
  # @private
6718
9160
  def initialize parent_rpcs = nil
@@ -6828,10 +9270,56 @@ module Google
6828
9270
  @create_db_system = ::Gapic::Config::Method.new create_db_system_config
6829
9271
  delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system
6830
9272
  @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config
9273
+ list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments
9274
+ @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config
9275
+ get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment
9276
+ @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config
9277
+ create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment
9278
+ @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config
9279
+ delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment
9280
+ @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config
9281
+ stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment
9282
+ @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config
9283
+ start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment
9284
+ @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config
9285
+ list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections
9286
+ @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config
9287
+ get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection
9288
+ @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config
9289
+ create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection
9290
+ @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config
9291
+ delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection
9292
+ @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config
9293
+ get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version
9294
+ @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config
9295
+ list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions
9296
+ @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config
9297
+ get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type
9298
+ @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config
9299
+ list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types
9300
+ @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config
9301
+ get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment
9302
+ @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config
9303
+ list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments
9304
+ @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config
9305
+ get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type
9306
+ @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config
9307
+ list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types
9308
+ @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config
6831
9309
  list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions
6832
9310
  @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config
6833
9311
  list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets
6834
9312
  @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config
9313
+ list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments
9314
+ @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config
9315
+ get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment
9316
+ @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config
9317
+ create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment
9318
+ @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config
9319
+ delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment
9320
+ @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config
9321
+ test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment
9322
+ @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config
6835
9323
 
6836
9324
  yield self if block_given?
6837
9325
  end