google-cloud-oracle_database-v1 1.2.0 → 1.4.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.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +441 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +21 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +413 -0
- data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +245 -0
- data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
- data/lib/google/cloud/oracledatabase/v1/odb_dns_zone_pb.rb +32 -0
- data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +2 -1
- data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +8 -0
- data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +1 -1
- data/proto_docs/google/cloud/oracledatabase/v1/odb_dns_zone.rb +178 -0
- data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +5 -0
- metadata +3 -1
|
@@ -170,6 +170,16 @@ module Google
|
|
|
170
170
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
default_config.rpcs.list_odb_dns_zones.timeout = 60.0
|
|
174
|
+
default_config.rpcs.list_odb_dns_zones.retry_policy = {
|
|
175
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
default_config.rpcs.get_odb_dns_zone.timeout = 60.0
|
|
179
|
+
default_config.rpcs.get_odb_dns_zone.retry_policy = {
|
|
180
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
181
|
+
}
|
|
182
|
+
|
|
173
183
|
default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0
|
|
174
184
|
default_config.rpcs.list_exadb_vm_clusters.retry_policy = {
|
|
175
185
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
|
|
@@ -4152,6 +4162,381 @@ module Google
|
|
|
4152
4162
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4153
4163
|
end
|
|
4154
4164
|
|
|
4165
|
+
##
|
|
4166
|
+
# Lists all the ODB DNS Zones in a given ODB Network.
|
|
4167
|
+
#
|
|
4168
|
+
# @overload list_odb_dns_zones(request, options = nil)
|
|
4169
|
+
# Pass arguments to `list_odb_dns_zones` via a request object, either of type
|
|
4170
|
+
# {::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest} or an equivalent Hash.
|
|
4171
|
+
#
|
|
4172
|
+
# @param request [::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest, ::Hash]
|
|
4173
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4174
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4175
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4176
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4177
|
+
#
|
|
4178
|
+
# @overload list_odb_dns_zones(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
4179
|
+
# Pass arguments to `list_odb_dns_zones` via keyword arguments. Note that at
|
|
4180
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4181
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4182
|
+
#
|
|
4183
|
+
# @param parent [::String]
|
|
4184
|
+
# Required. The parent value for the OdbDnsZone in the following format:
|
|
4185
|
+
# projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
|
|
4186
|
+
# @param page_size [::Integer]
|
|
4187
|
+
# Optional. The maximum number of items to return.
|
|
4188
|
+
# If unspecified, at most 50 OdbDnsZones will be returned.
|
|
4189
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
4190
|
+
# @param page_token [::String]
|
|
4191
|
+
# Optional. A token identifying a page of results the server should return.
|
|
4192
|
+
# @param filter [::String]
|
|
4193
|
+
# Optional. An expression for filtering the results of the request.
|
|
4194
|
+
# @param order_by [::String]
|
|
4195
|
+
# Optional. An expression for ordering the results of the request.
|
|
4196
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4197
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbDnsZone>]
|
|
4198
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4199
|
+
#
|
|
4200
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbDnsZone>]
|
|
4201
|
+
#
|
|
4202
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4203
|
+
#
|
|
4204
|
+
# @example Basic example
|
|
4205
|
+
# require "google/cloud/oracle_database/v1"
|
|
4206
|
+
#
|
|
4207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4208
|
+
# client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
|
|
4209
|
+
#
|
|
4210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4211
|
+
# request = Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest.new
|
|
4212
|
+
#
|
|
4213
|
+
# # Call the list_odb_dns_zones method.
|
|
4214
|
+
# result = client.list_odb_dns_zones request
|
|
4215
|
+
#
|
|
4216
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4217
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4218
|
+
# result.each do |item|
|
|
4219
|
+
# # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbDnsZone.
|
|
4220
|
+
# p item
|
|
4221
|
+
# end
|
|
4222
|
+
#
|
|
4223
|
+
def list_odb_dns_zones request, options = nil
|
|
4224
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4225
|
+
|
|
4226
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest
|
|
4227
|
+
|
|
4228
|
+
# Converts hash and nil to an options object
|
|
4229
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4230
|
+
|
|
4231
|
+
# Customize the options with defaults
|
|
4232
|
+
call_metadata = @config.rpcs.list_odb_dns_zones.metadata.to_h
|
|
4233
|
+
|
|
4234
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4235
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4236
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4237
|
+
gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
|
|
4238
|
+
transports_version_send: [:rest]
|
|
4239
|
+
|
|
4240
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4241
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4242
|
+
|
|
4243
|
+
options.apply_defaults timeout: @config.rpcs.list_odb_dns_zones.timeout,
|
|
4244
|
+
metadata: call_metadata,
|
|
4245
|
+
retry_policy: @config.rpcs.list_odb_dns_zones.retry_policy
|
|
4246
|
+
|
|
4247
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4248
|
+
metadata: @config.metadata,
|
|
4249
|
+
retry_policy: @config.retry_policy
|
|
4250
|
+
|
|
4251
|
+
@oracle_database_stub.list_odb_dns_zones request, options do |result, operation|
|
|
4252
|
+
result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_dns_zones, "odb_dns_zones", request, result, options
|
|
4253
|
+
yield result, operation if block_given?
|
|
4254
|
+
throw :response, result
|
|
4255
|
+
end
|
|
4256
|
+
rescue ::Gapic::Rest::Error => e
|
|
4257
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4258
|
+
end
|
|
4259
|
+
|
|
4260
|
+
##
|
|
4261
|
+
# Gets details of a single ODB DNS Zone.
|
|
4262
|
+
#
|
|
4263
|
+
# @overload get_odb_dns_zone(request, options = nil)
|
|
4264
|
+
# Pass arguments to `get_odb_dns_zone` via a request object, either of type
|
|
4265
|
+
# {::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest} or an equivalent Hash.
|
|
4266
|
+
#
|
|
4267
|
+
# @param request [::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest, ::Hash]
|
|
4268
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4269
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4270
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4271
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4272
|
+
#
|
|
4273
|
+
# @overload get_odb_dns_zone(name: nil)
|
|
4274
|
+
# Pass arguments to `get_odb_dns_zone` via keyword arguments. Note that at
|
|
4275
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4276
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4277
|
+
#
|
|
4278
|
+
# @param name [::String]
|
|
4279
|
+
# Required. The name of the OdbDnsZone in the following format:
|
|
4280
|
+
# projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbDnsZones/\\{odb_dns_zone}.
|
|
4281
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4282
|
+
# @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbDnsZone]
|
|
4283
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4284
|
+
#
|
|
4285
|
+
# @return [::Google::Cloud::OracleDatabase::V1::OdbDnsZone]
|
|
4286
|
+
#
|
|
4287
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4288
|
+
#
|
|
4289
|
+
# @example Basic example
|
|
4290
|
+
# require "google/cloud/oracle_database/v1"
|
|
4291
|
+
#
|
|
4292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4293
|
+
# client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
|
|
4294
|
+
#
|
|
4295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4296
|
+
# request = Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest.new
|
|
4297
|
+
#
|
|
4298
|
+
# # Call the get_odb_dns_zone method.
|
|
4299
|
+
# result = client.get_odb_dns_zone request
|
|
4300
|
+
#
|
|
4301
|
+
# # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbDnsZone.
|
|
4302
|
+
# p result
|
|
4303
|
+
#
|
|
4304
|
+
def get_odb_dns_zone request, options = nil
|
|
4305
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4306
|
+
|
|
4307
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest
|
|
4308
|
+
|
|
4309
|
+
# Converts hash and nil to an options object
|
|
4310
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4311
|
+
|
|
4312
|
+
# Customize the options with defaults
|
|
4313
|
+
call_metadata = @config.rpcs.get_odb_dns_zone.metadata.to_h
|
|
4314
|
+
|
|
4315
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4316
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4317
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4318
|
+
gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
|
|
4319
|
+
transports_version_send: [:rest]
|
|
4320
|
+
|
|
4321
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4322
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4323
|
+
|
|
4324
|
+
options.apply_defaults timeout: @config.rpcs.get_odb_dns_zone.timeout,
|
|
4325
|
+
metadata: call_metadata,
|
|
4326
|
+
retry_policy: @config.rpcs.get_odb_dns_zone.retry_policy
|
|
4327
|
+
|
|
4328
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4329
|
+
metadata: @config.metadata,
|
|
4330
|
+
retry_policy: @config.retry_policy
|
|
4331
|
+
|
|
4332
|
+
@oracle_database_stub.get_odb_dns_zone request, options do |result, operation|
|
|
4333
|
+
yield result, operation if block_given?
|
|
4334
|
+
end
|
|
4335
|
+
rescue ::Gapic::Rest::Error => e
|
|
4336
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4337
|
+
end
|
|
4338
|
+
|
|
4339
|
+
##
|
|
4340
|
+
# Creates a new ODB DNS Zone in a given ODB Network.
|
|
4341
|
+
#
|
|
4342
|
+
# @overload create_odb_dns_zone(request, options = nil)
|
|
4343
|
+
# Pass arguments to `create_odb_dns_zone` via a request object, either of type
|
|
4344
|
+
# {::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest} or an equivalent Hash.
|
|
4345
|
+
#
|
|
4346
|
+
# @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest, ::Hash]
|
|
4347
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4348
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4349
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4350
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4351
|
+
#
|
|
4352
|
+
# @overload create_odb_dns_zone(parent: nil, odb_dns_zone_id: nil, odb_dns_zone: nil, request_id: nil)
|
|
4353
|
+
# Pass arguments to `create_odb_dns_zone` via keyword arguments. Note that at
|
|
4354
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4355
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4356
|
+
#
|
|
4357
|
+
# @param parent [::String]
|
|
4358
|
+
# Required. The parent value for the OdbDnsZone in the following format:
|
|
4359
|
+
# projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
|
|
4360
|
+
# @param odb_dns_zone_id [::String]
|
|
4361
|
+
# Required. The ID of the OdbDnsZone to create. This value is restricted
|
|
4362
|
+
# to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
|
|
4363
|
+
# characters in length. The value must start with a letter and end with
|
|
4364
|
+
# a letter or a number.
|
|
4365
|
+
# @param odb_dns_zone [::Google::Cloud::OracleDatabase::V1::OdbDnsZone, ::Hash]
|
|
4366
|
+
# Required. Details of the OdbDnsZone instance to create.
|
|
4367
|
+
# @param request_id [::String]
|
|
4368
|
+
# Optional. An optional ID to identify the request. This value is used to
|
|
4369
|
+
# identify duplicate requests. If you make a request with the same request ID
|
|
4370
|
+
# and the original request is still in progress or completed, the server
|
|
4371
|
+
# ignores the second request. This prevents clients from
|
|
4372
|
+
# accidentally creating duplicate commitments.
|
|
4373
|
+
#
|
|
4374
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4375
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4377
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4379
|
+
#
|
|
4380
|
+
# @return [::Gapic::Operation]
|
|
4381
|
+
#
|
|
4382
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4383
|
+
#
|
|
4384
|
+
# @example Basic example
|
|
4385
|
+
# require "google/cloud/oracle_database/v1"
|
|
4386
|
+
#
|
|
4387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4388
|
+
# client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
|
|
4389
|
+
#
|
|
4390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4391
|
+
# request = Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest.new
|
|
4392
|
+
#
|
|
4393
|
+
# # Call the create_odb_dns_zone method.
|
|
4394
|
+
# result = client.create_odb_dns_zone request
|
|
4395
|
+
#
|
|
4396
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4397
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4398
|
+
# # Here is how to wait for a response.
|
|
4399
|
+
# result.wait_until_done! timeout: 60
|
|
4400
|
+
# if result.response?
|
|
4401
|
+
# p result.response
|
|
4402
|
+
# else
|
|
4403
|
+
# puts "No response received."
|
|
4404
|
+
# end
|
|
4405
|
+
#
|
|
4406
|
+
def create_odb_dns_zone request, options = nil
|
|
4407
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4408
|
+
|
|
4409
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest
|
|
4410
|
+
|
|
4411
|
+
# Converts hash and nil to an options object
|
|
4412
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4413
|
+
|
|
4414
|
+
# Customize the options with defaults
|
|
4415
|
+
call_metadata = @config.rpcs.create_odb_dns_zone.metadata.to_h
|
|
4416
|
+
|
|
4417
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4418
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4419
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4420
|
+
gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
|
|
4421
|
+
transports_version_send: [:rest]
|
|
4422
|
+
|
|
4423
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4424
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4425
|
+
|
|
4426
|
+
options.apply_defaults timeout: @config.rpcs.create_odb_dns_zone.timeout,
|
|
4427
|
+
metadata: call_metadata,
|
|
4428
|
+
retry_policy: @config.rpcs.create_odb_dns_zone.retry_policy
|
|
4429
|
+
|
|
4430
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4431
|
+
metadata: @config.metadata,
|
|
4432
|
+
retry_policy: @config.retry_policy
|
|
4433
|
+
|
|
4434
|
+
@oracle_database_stub.create_odb_dns_zone request, options do |result, operation|
|
|
4435
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4436
|
+
yield result, operation if block_given?
|
|
4437
|
+
throw :response, result
|
|
4438
|
+
end
|
|
4439
|
+
rescue ::Gapic::Rest::Error => e
|
|
4440
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4441
|
+
end
|
|
4442
|
+
|
|
4443
|
+
##
|
|
4444
|
+
# Deletes a single ODB DNS Zone.
|
|
4445
|
+
#
|
|
4446
|
+
# @overload delete_odb_dns_zone(request, options = nil)
|
|
4447
|
+
# Pass arguments to `delete_odb_dns_zone` via a request object, either of type
|
|
4448
|
+
# {::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest} or an equivalent Hash.
|
|
4449
|
+
#
|
|
4450
|
+
# @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest, ::Hash]
|
|
4451
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4452
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4453
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4454
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4455
|
+
#
|
|
4456
|
+
# @overload delete_odb_dns_zone(name: nil, request_id: nil)
|
|
4457
|
+
# Pass arguments to `delete_odb_dns_zone` via keyword arguments. Note that at
|
|
4458
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4459
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4460
|
+
#
|
|
4461
|
+
# @param name [::String]
|
|
4462
|
+
# Required. The name of the resource in the following format:
|
|
4463
|
+
# projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbDnsZones/\\{odb_dns_zone}.
|
|
4464
|
+
# @param request_id [::String]
|
|
4465
|
+
# Optional. An optional ID to identify the request. This value is used to
|
|
4466
|
+
# identify duplicate requests. If you make a request with the same request ID
|
|
4467
|
+
# and the original request is still in progress or completed, the server
|
|
4468
|
+
# ignores the second request. This prevents clients from
|
|
4469
|
+
# accidentally creating duplicate commitments.
|
|
4470
|
+
#
|
|
4471
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4472
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4473
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4474
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4475
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4476
|
+
#
|
|
4477
|
+
# @return [::Gapic::Operation]
|
|
4478
|
+
#
|
|
4479
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4480
|
+
#
|
|
4481
|
+
# @example Basic example
|
|
4482
|
+
# require "google/cloud/oracle_database/v1"
|
|
4483
|
+
#
|
|
4484
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4485
|
+
# client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
|
|
4486
|
+
#
|
|
4487
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4488
|
+
# request = Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest.new
|
|
4489
|
+
#
|
|
4490
|
+
# # Call the delete_odb_dns_zone method.
|
|
4491
|
+
# result = client.delete_odb_dns_zone request
|
|
4492
|
+
#
|
|
4493
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4494
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4495
|
+
# # Here is how to wait for a response.
|
|
4496
|
+
# result.wait_until_done! timeout: 60
|
|
4497
|
+
# if result.response?
|
|
4498
|
+
# p result.response
|
|
4499
|
+
# else
|
|
4500
|
+
# puts "No response received."
|
|
4501
|
+
# end
|
|
4502
|
+
#
|
|
4503
|
+
def delete_odb_dns_zone request, options = nil
|
|
4504
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4505
|
+
|
|
4506
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest
|
|
4507
|
+
|
|
4508
|
+
# Converts hash and nil to an options object
|
|
4509
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4510
|
+
|
|
4511
|
+
# Customize the options with defaults
|
|
4512
|
+
call_metadata = @config.rpcs.delete_odb_dns_zone.metadata.to_h
|
|
4513
|
+
|
|
4514
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4515
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4516
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4517
|
+
gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
|
|
4518
|
+
transports_version_send: [:rest]
|
|
4519
|
+
|
|
4520
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4521
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4522
|
+
|
|
4523
|
+
options.apply_defaults timeout: @config.rpcs.delete_odb_dns_zone.timeout,
|
|
4524
|
+
metadata: call_metadata,
|
|
4525
|
+
retry_policy: @config.rpcs.delete_odb_dns_zone.retry_policy
|
|
4526
|
+
|
|
4527
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4528
|
+
metadata: @config.metadata,
|
|
4529
|
+
retry_policy: @config.retry_policy
|
|
4530
|
+
|
|
4531
|
+
@oracle_database_stub.delete_odb_dns_zone request, options do |result, operation|
|
|
4532
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4533
|
+
yield result, operation if block_given?
|
|
4534
|
+
throw :response, result
|
|
4535
|
+
end
|
|
4536
|
+
rescue ::Gapic::Rest::Error => e
|
|
4537
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4538
|
+
end
|
|
4539
|
+
|
|
4155
4540
|
##
|
|
4156
4541
|
# Lists all the Exadb (Exascale) VM Clusters for the given project and
|
|
4157
4542
|
# location.
|
|
@@ -8300,6 +8685,26 @@ module Google
|
|
|
8300
8685
|
#
|
|
8301
8686
|
attr_reader :delete_odb_subnet
|
|
8302
8687
|
##
|
|
8688
|
+
# RPC-specific configuration for `list_odb_dns_zones`
|
|
8689
|
+
# @return [::Gapic::Config::Method]
|
|
8690
|
+
#
|
|
8691
|
+
attr_reader :list_odb_dns_zones
|
|
8692
|
+
##
|
|
8693
|
+
# RPC-specific configuration for `get_odb_dns_zone`
|
|
8694
|
+
# @return [::Gapic::Config::Method]
|
|
8695
|
+
#
|
|
8696
|
+
attr_reader :get_odb_dns_zone
|
|
8697
|
+
##
|
|
8698
|
+
# RPC-specific configuration for `create_odb_dns_zone`
|
|
8699
|
+
# @return [::Gapic::Config::Method]
|
|
8700
|
+
#
|
|
8701
|
+
attr_reader :create_odb_dns_zone
|
|
8702
|
+
##
|
|
8703
|
+
# RPC-specific configuration for `delete_odb_dns_zone`
|
|
8704
|
+
# @return [::Gapic::Config::Method]
|
|
8705
|
+
#
|
|
8706
|
+
attr_reader :delete_odb_dns_zone
|
|
8707
|
+
##
|
|
8303
8708
|
# RPC-specific configuration for `list_exadb_vm_clusters`
|
|
8304
8709
|
# @return [::Gapic::Config::Method]
|
|
8305
8710
|
#
|
|
@@ -8582,6 +8987,14 @@ module Google
|
|
|
8582
8987
|
@create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config
|
|
8583
8988
|
delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet
|
|
8584
8989
|
@delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config
|
|
8990
|
+
list_odb_dns_zones_config = parent_rpcs.list_odb_dns_zones if parent_rpcs.respond_to? :list_odb_dns_zones
|
|
8991
|
+
@list_odb_dns_zones = ::Gapic::Config::Method.new list_odb_dns_zones_config
|
|
8992
|
+
get_odb_dns_zone_config = parent_rpcs.get_odb_dns_zone if parent_rpcs.respond_to? :get_odb_dns_zone
|
|
8993
|
+
@get_odb_dns_zone = ::Gapic::Config::Method.new get_odb_dns_zone_config
|
|
8994
|
+
create_odb_dns_zone_config = parent_rpcs.create_odb_dns_zone if parent_rpcs.respond_to? :create_odb_dns_zone
|
|
8995
|
+
@create_odb_dns_zone = ::Gapic::Config::Method.new create_odb_dns_zone_config
|
|
8996
|
+
delete_odb_dns_zone_config = parent_rpcs.delete_odb_dns_zone if parent_rpcs.respond_to? :delete_odb_dns_zone
|
|
8997
|
+
@delete_odb_dns_zone = ::Gapic::Config::Method.new delete_odb_dns_zone_config
|
|
8585
8998
|
list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters
|
|
8586
8999
|
@list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config
|
|
8587
9000
|
get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster
|