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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28b01a7c02c49c7b1b64fedd3cf9c2e29db5a08d0658fbeac8a228d561469eb8
4
- data.tar.gz: a7d64dc3cb34ede5276cb4e11e59a4b56252f2fde787f4f7940b8b474800cf76
3
+ metadata.gz: 897052dbd724d2de6354eb29f251e8258c8c52e2650056fce81f479969ae8a85
4
+ data.tar.gz: 60893da6fe0ed6ae67fe825cf503a0e8cbb7c983c8b7add884b74dc0786090d8
5
5
  SHA512:
6
- metadata.gz: f015b4e5f79c5f91e2fba9faa49e057a1b641414c0eb066aa2cf369b2f37a24602f2a8543947866483766ce57dadaf201d1115cb8399e9cbdfe36b72d5264e3c
7
- data.tar.gz: 6991b6c9c0fe42574030130001fb7004bff09b20fc7f226182a321f692940c8030d3e6b650a8c51d449cccc0d2594322a039a5d1e21950d6623516510a60a22f
6
+ metadata.gz: ce74efd43a84f836ee09a0bce5504ecfaeaf4b468ce245336417984286c2ddc2cc117eae6b6f2fe3dca92b32dde40cc858487ba9008f975cda7af587312e6f88
7
+ data.tar.gz: c644916435120fdb2cad7f36bf3200720d7e8a63a11f561f8aa48987ed21b0f785c74ee503cb26a4785d28e6b6ad496d96afc342dedcafe7af0055a618e64f5d
data/README.md CHANGED
@@ -87,12 +87,10 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
87
87
 
88
88
  This library is supported on Ruby 3.2+.
89
89
 
90
- Google provides official support for Ruby versions that are actively supported
91
- by Ruby Core—that is, Ruby versions that are either in normal maintenance or
92
- in security maintenance, and not end of life. Older versions of Ruby _may_
93
- still work, but are unsupported and not recommended. See
94
- https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
95
- support schedule.
90
+ Google provides official support for Ruby versions as described in the
91
+ [Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
92
+ policy. Older versions of Ruby _may_ still work, but are unsupported and not
93
+ recommended.
96
94
 
97
95
  ## Which client should I use?
98
96
 
@@ -168,6 +168,16 @@ module Google
168
168
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
169
169
  }
170
170
 
171
+ default_config.rpcs.list_odb_dns_zones.timeout = 60.0
172
+ default_config.rpcs.list_odb_dns_zones.retry_policy = {
173
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
174
+ }
175
+
176
+ default_config.rpcs.get_odb_dns_zone.timeout = 60.0
177
+ default_config.rpcs.get_odb_dns_zone.retry_policy = {
178
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
179
+ }
180
+
171
181
  default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0
172
182
  default_config.rpcs.list_exadb_vm_clusters.retry_policy = {
173
183
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
@@ -4438,6 +4448,409 @@ module Google
4438
4448
  raise ::Google::Cloud::Error.from_error(e)
4439
4449
  end
4440
4450
 
4451
+ ##
4452
+ # Lists all the ODB DNS Zones in a given ODB Network.
4453
+ #
4454
+ # @overload list_odb_dns_zones(request, options = nil)
4455
+ # Pass arguments to `list_odb_dns_zones` via a request object, either of type
4456
+ # {::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest} or an equivalent Hash.
4457
+ #
4458
+ # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest, ::Hash]
4459
+ # A request object representing the call parameters. Required. To specify no
4460
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4461
+ # @param options [::Gapic::CallOptions, ::Hash]
4462
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4463
+ #
4464
+ # @overload list_odb_dns_zones(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
4465
+ # Pass arguments to `list_odb_dns_zones` via keyword arguments. Note that at
4466
+ # least one keyword argument is required. To specify no parameters, or to keep all
4467
+ # the default parameter values, pass an empty Hash as a request object (see above).
4468
+ #
4469
+ # @param parent [::String]
4470
+ # Required. The parent value for the OdbDnsZone in the following format:
4471
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
4472
+ # @param page_size [::Integer]
4473
+ # Optional. The maximum number of items to return.
4474
+ # If unspecified, at most 50 OdbDnsZones will be returned.
4475
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
4476
+ # @param page_token [::String]
4477
+ # Optional. A token identifying a page of results the server should return.
4478
+ # @param filter [::String]
4479
+ # Optional. An expression for filtering the results of the request.
4480
+ # @param order_by [::String]
4481
+ # Optional. An expression for ordering the results of the request.
4482
+ #
4483
+ # @yield [response, operation] Access the result along with the RPC operation
4484
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbDnsZone>]
4485
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4486
+ #
4487
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbDnsZone>]
4488
+ #
4489
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4490
+ #
4491
+ # @example Basic example
4492
+ # require "google/cloud/oracle_database/v1"
4493
+ #
4494
+ # # Create a client object. The client can be reused for multiple calls.
4495
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4496
+ #
4497
+ # # Create a request. To set request fields, pass in keyword arguments.
4498
+ # request = Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest.new
4499
+ #
4500
+ # # Call the list_odb_dns_zones method.
4501
+ # result = client.list_odb_dns_zones request
4502
+ #
4503
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4504
+ # # over elements, and API calls will be issued to fetch pages as needed.
4505
+ # result.each do |item|
4506
+ # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbDnsZone.
4507
+ # p item
4508
+ # end
4509
+ #
4510
+ def list_odb_dns_zones request, options = nil
4511
+ raise ::ArgumentError, "request must be provided" if request.nil?
4512
+
4513
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbDnsZonesRequest
4514
+
4515
+ # Converts hash and nil to an options object
4516
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4517
+
4518
+ # Customize the options with defaults
4519
+ metadata = @config.rpcs.list_odb_dns_zones.metadata.to_h
4520
+
4521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4522
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4523
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4524
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4525
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4526
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4527
+
4528
+ header_params = {}
4529
+ if request.parent
4530
+ header_params["parent"] = request.parent
4531
+ end
4532
+
4533
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4534
+ metadata[:"x-goog-request-params"] ||= request_params_header
4535
+
4536
+ options.apply_defaults timeout: @config.rpcs.list_odb_dns_zones.timeout,
4537
+ metadata: metadata,
4538
+ retry_policy: @config.rpcs.list_odb_dns_zones.retry_policy
4539
+
4540
+ options.apply_defaults timeout: @config.timeout,
4541
+ metadata: @config.metadata,
4542
+ retry_policy: @config.retry_policy
4543
+
4544
+ @oracle_database_stub.call_rpc :list_odb_dns_zones, request, options: options do |response, operation|
4545
+ response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_dns_zones, request, response, operation, options
4546
+ yield response, operation if block_given?
4547
+ throw :response, response
4548
+ end
4549
+ rescue ::GRPC::BadStatus => e
4550
+ raise ::Google::Cloud::Error.from_error(e)
4551
+ end
4552
+
4553
+ ##
4554
+ # Gets details of a single ODB DNS Zone.
4555
+ #
4556
+ # @overload get_odb_dns_zone(request, options = nil)
4557
+ # Pass arguments to `get_odb_dns_zone` via a request object, either of type
4558
+ # {::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest} or an equivalent Hash.
4559
+ #
4560
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest, ::Hash]
4561
+ # A request object representing the call parameters. Required. To specify no
4562
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4563
+ # @param options [::Gapic::CallOptions, ::Hash]
4564
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4565
+ #
4566
+ # @overload get_odb_dns_zone(name: nil)
4567
+ # Pass arguments to `get_odb_dns_zone` via keyword arguments. Note that at
4568
+ # least one keyword argument is required. To specify no parameters, or to keep all
4569
+ # the default parameter values, pass an empty Hash as a request object (see above).
4570
+ #
4571
+ # @param name [::String]
4572
+ # Required. The name of the OdbDnsZone in the following format:
4573
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbDnsZones/\\{odb_dns_zone}.
4574
+ #
4575
+ # @yield [response, operation] Access the result along with the RPC operation
4576
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbDnsZone]
4577
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4578
+ #
4579
+ # @return [::Google::Cloud::OracleDatabase::V1::OdbDnsZone]
4580
+ #
4581
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4582
+ #
4583
+ # @example Basic example
4584
+ # require "google/cloud/oracle_database/v1"
4585
+ #
4586
+ # # Create a client object. The client can be reused for multiple calls.
4587
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4588
+ #
4589
+ # # Create a request. To set request fields, pass in keyword arguments.
4590
+ # request = Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest.new
4591
+ #
4592
+ # # Call the get_odb_dns_zone method.
4593
+ # result = client.get_odb_dns_zone request
4594
+ #
4595
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbDnsZone.
4596
+ # p result
4597
+ #
4598
+ def get_odb_dns_zone request, options = nil
4599
+ raise ::ArgumentError, "request must be provided" if request.nil?
4600
+
4601
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbDnsZoneRequest
4602
+
4603
+ # Converts hash and nil to an options object
4604
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4605
+
4606
+ # Customize the options with defaults
4607
+ metadata = @config.rpcs.get_odb_dns_zone.metadata.to_h
4608
+
4609
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4610
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4611
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4612
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4613
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4614
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4615
+
4616
+ header_params = {}
4617
+ if request.name
4618
+ header_params["name"] = request.name
4619
+ end
4620
+
4621
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4622
+ metadata[:"x-goog-request-params"] ||= request_params_header
4623
+
4624
+ options.apply_defaults timeout: @config.rpcs.get_odb_dns_zone.timeout,
4625
+ metadata: metadata,
4626
+ retry_policy: @config.rpcs.get_odb_dns_zone.retry_policy
4627
+
4628
+ options.apply_defaults timeout: @config.timeout,
4629
+ metadata: @config.metadata,
4630
+ retry_policy: @config.retry_policy
4631
+
4632
+ @oracle_database_stub.call_rpc :get_odb_dns_zone, request, options: options do |response, operation|
4633
+ yield response, operation if block_given?
4634
+ end
4635
+ rescue ::GRPC::BadStatus => e
4636
+ raise ::Google::Cloud::Error.from_error(e)
4637
+ end
4638
+
4639
+ ##
4640
+ # Creates a new ODB DNS Zone in a given ODB Network.
4641
+ #
4642
+ # @overload create_odb_dns_zone(request, options = nil)
4643
+ # Pass arguments to `create_odb_dns_zone` via a request object, either of type
4644
+ # {::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest} or an equivalent Hash.
4645
+ #
4646
+ # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest, ::Hash]
4647
+ # A request object representing the call parameters. Required. To specify no
4648
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4649
+ # @param options [::Gapic::CallOptions, ::Hash]
4650
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4651
+ #
4652
+ # @overload create_odb_dns_zone(parent: nil, odb_dns_zone_id: nil, odb_dns_zone: nil, request_id: nil)
4653
+ # Pass arguments to `create_odb_dns_zone` via keyword arguments. Note that at
4654
+ # least one keyword argument is required. To specify no parameters, or to keep all
4655
+ # the default parameter values, pass an empty Hash as a request object (see above).
4656
+ #
4657
+ # @param parent [::String]
4658
+ # Required. The parent value for the OdbDnsZone in the following format:
4659
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}.
4660
+ # @param odb_dns_zone_id [::String]
4661
+ # Required. The ID of the OdbDnsZone to create. This value is restricted
4662
+ # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63
4663
+ # characters in length. The value must start with a letter and end with
4664
+ # a letter or a number.
4665
+ # @param odb_dns_zone [::Google::Cloud::OracleDatabase::V1::OdbDnsZone, ::Hash]
4666
+ # Required. Details of the OdbDnsZone instance to create.
4667
+ # @param request_id [::String]
4668
+ # Optional. An optional ID to identify the request. This value is used to
4669
+ # identify duplicate requests. If you make a request with the same request ID
4670
+ # and the original request is still in progress or completed, the server
4671
+ # ignores the second request. This prevents clients from
4672
+ # accidentally creating duplicate commitments.
4673
+ #
4674
+ # The request ID must be a valid UUID with the exception that zero UUID is
4675
+ # not supported (00000000-0000-0000-0000-000000000000).
4676
+ #
4677
+ # @yield [response, operation] Access the result along with the RPC operation
4678
+ # @yieldparam response [::Gapic::Operation]
4679
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4680
+ #
4681
+ # @return [::Gapic::Operation]
4682
+ #
4683
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4684
+ #
4685
+ # @example Basic example
4686
+ # require "google/cloud/oracle_database/v1"
4687
+ #
4688
+ # # Create a client object. The client can be reused for multiple calls.
4689
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4690
+ #
4691
+ # # Create a request. To set request fields, pass in keyword arguments.
4692
+ # request = Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest.new
4693
+ #
4694
+ # # Call the create_odb_dns_zone method.
4695
+ # result = client.create_odb_dns_zone request
4696
+ #
4697
+ # # The returned object is of type Gapic::Operation. You can use it to
4698
+ # # check the status of an operation, cancel it, or wait for results.
4699
+ # # Here is how to wait for a response.
4700
+ # result.wait_until_done! timeout: 60
4701
+ # if result.response?
4702
+ # p result.response
4703
+ # else
4704
+ # puts "No response received."
4705
+ # end
4706
+ #
4707
+ def create_odb_dns_zone request, options = nil
4708
+ raise ::ArgumentError, "request must be provided" if request.nil?
4709
+
4710
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbDnsZoneRequest
4711
+
4712
+ # Converts hash and nil to an options object
4713
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4714
+
4715
+ # Customize the options with defaults
4716
+ metadata = @config.rpcs.create_odb_dns_zone.metadata.to_h
4717
+
4718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4719
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4720
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4721
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4722
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4723
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4724
+
4725
+ header_params = {}
4726
+ if request.parent
4727
+ header_params["parent"] = request.parent
4728
+ end
4729
+
4730
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4731
+ metadata[:"x-goog-request-params"] ||= request_params_header
4732
+
4733
+ options.apply_defaults timeout: @config.rpcs.create_odb_dns_zone.timeout,
4734
+ metadata: metadata,
4735
+ retry_policy: @config.rpcs.create_odb_dns_zone.retry_policy
4736
+
4737
+ options.apply_defaults timeout: @config.timeout,
4738
+ metadata: @config.metadata,
4739
+ retry_policy: @config.retry_policy
4740
+
4741
+ @oracle_database_stub.call_rpc :create_odb_dns_zone, request, options: options do |response, operation|
4742
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4743
+ yield response, operation if block_given?
4744
+ throw :response, response
4745
+ end
4746
+ rescue ::GRPC::BadStatus => e
4747
+ raise ::Google::Cloud::Error.from_error(e)
4748
+ end
4749
+
4750
+ ##
4751
+ # Deletes a single ODB DNS Zone.
4752
+ #
4753
+ # @overload delete_odb_dns_zone(request, options = nil)
4754
+ # Pass arguments to `delete_odb_dns_zone` via a request object, either of type
4755
+ # {::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest} or an equivalent Hash.
4756
+ #
4757
+ # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest, ::Hash]
4758
+ # A request object representing the call parameters. Required. To specify no
4759
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4760
+ # @param options [::Gapic::CallOptions, ::Hash]
4761
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4762
+ #
4763
+ # @overload delete_odb_dns_zone(name: nil, request_id: nil)
4764
+ # Pass arguments to `delete_odb_dns_zone` via keyword arguments. Note that at
4765
+ # least one keyword argument is required. To specify no parameters, or to keep all
4766
+ # the default parameter values, pass an empty Hash as a request object (see above).
4767
+ #
4768
+ # @param name [::String]
4769
+ # Required. The name of the resource in the following format:
4770
+ # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbDnsZones/\\{odb_dns_zone}.
4771
+ # @param request_id [::String]
4772
+ # Optional. An optional ID to identify the request. This value is used to
4773
+ # identify duplicate requests. If you make a request with the same request ID
4774
+ # and the original request is still in progress or completed, the server
4775
+ # ignores the second request. This prevents clients from
4776
+ # accidentally creating duplicate commitments.
4777
+ #
4778
+ # The request ID must be a valid UUID with the exception that zero UUID is
4779
+ # not supported (00000000-0000-0000-0000-000000000000).
4780
+ #
4781
+ # @yield [response, operation] Access the result along with the RPC operation
4782
+ # @yieldparam response [::Gapic::Operation]
4783
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4784
+ #
4785
+ # @return [::Gapic::Operation]
4786
+ #
4787
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4788
+ #
4789
+ # @example Basic example
4790
+ # require "google/cloud/oracle_database/v1"
4791
+ #
4792
+ # # Create a client object. The client can be reused for multiple calls.
4793
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
4794
+ #
4795
+ # # Create a request. To set request fields, pass in keyword arguments.
4796
+ # request = Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest.new
4797
+ #
4798
+ # # Call the delete_odb_dns_zone method.
4799
+ # result = client.delete_odb_dns_zone request
4800
+ #
4801
+ # # The returned object is of type Gapic::Operation. You can use it to
4802
+ # # check the status of an operation, cancel it, or wait for results.
4803
+ # # Here is how to wait for a response.
4804
+ # result.wait_until_done! timeout: 60
4805
+ # if result.response?
4806
+ # p result.response
4807
+ # else
4808
+ # puts "No response received."
4809
+ # end
4810
+ #
4811
+ def delete_odb_dns_zone request, options = nil
4812
+ raise ::ArgumentError, "request must be provided" if request.nil?
4813
+
4814
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbDnsZoneRequest
4815
+
4816
+ # Converts hash and nil to an options object
4817
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4818
+
4819
+ # Customize the options with defaults
4820
+ metadata = @config.rpcs.delete_odb_dns_zone.metadata.to_h
4821
+
4822
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4823
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4824
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4825
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
4826
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4827
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4828
+
4829
+ header_params = {}
4830
+ if request.name
4831
+ header_params["name"] = request.name
4832
+ end
4833
+
4834
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4835
+ metadata[:"x-goog-request-params"] ||= request_params_header
4836
+
4837
+ options.apply_defaults timeout: @config.rpcs.delete_odb_dns_zone.timeout,
4838
+ metadata: metadata,
4839
+ retry_policy: @config.rpcs.delete_odb_dns_zone.retry_policy
4840
+
4841
+ options.apply_defaults timeout: @config.timeout,
4842
+ metadata: @config.metadata,
4843
+ retry_policy: @config.retry_policy
4844
+
4845
+ @oracle_database_stub.call_rpc :delete_odb_dns_zone, request, options: options do |response, operation|
4846
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4847
+ yield response, operation if block_given?
4848
+ throw :response, response
4849
+ end
4850
+ rescue ::GRPC::BadStatus => e
4851
+ raise ::Google::Cloud::Error.from_error(e)
4852
+ end
4853
+
4441
4854
  ##
4442
4855
  # Lists all the Exadb (Exascale) VM Clusters for the given project and
4443
4856
  # location.
@@ -8896,6 +9309,26 @@ module Google
8896
9309
  #
8897
9310
  attr_reader :delete_odb_subnet
8898
9311
  ##
9312
+ # RPC-specific configuration for `list_odb_dns_zones`
9313
+ # @return [::Gapic::Config::Method]
9314
+ #
9315
+ attr_reader :list_odb_dns_zones
9316
+ ##
9317
+ # RPC-specific configuration for `get_odb_dns_zone`
9318
+ # @return [::Gapic::Config::Method]
9319
+ #
9320
+ attr_reader :get_odb_dns_zone
9321
+ ##
9322
+ # RPC-specific configuration for `create_odb_dns_zone`
9323
+ # @return [::Gapic::Config::Method]
9324
+ #
9325
+ attr_reader :create_odb_dns_zone
9326
+ ##
9327
+ # RPC-specific configuration for `delete_odb_dns_zone`
9328
+ # @return [::Gapic::Config::Method]
9329
+ #
9330
+ attr_reader :delete_odb_dns_zone
9331
+ ##
8899
9332
  # RPC-specific configuration for `list_exadb_vm_clusters`
8900
9333
  # @return [::Gapic::Config::Method]
8901
9334
  #
@@ -9178,6 +9611,14 @@ module Google
9178
9611
  @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config
9179
9612
  delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet
9180
9613
  @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config
9614
+ list_odb_dns_zones_config = parent_rpcs.list_odb_dns_zones if parent_rpcs.respond_to? :list_odb_dns_zones
9615
+ @list_odb_dns_zones = ::Gapic::Config::Method.new list_odb_dns_zones_config
9616
+ get_odb_dns_zone_config = parent_rpcs.get_odb_dns_zone if parent_rpcs.respond_to? :get_odb_dns_zone
9617
+ @get_odb_dns_zone = ::Gapic::Config::Method.new get_odb_dns_zone_config
9618
+ create_odb_dns_zone_config = parent_rpcs.create_odb_dns_zone if parent_rpcs.respond_to? :create_odb_dns_zone
9619
+ @create_odb_dns_zone = ::Gapic::Config::Method.new create_odb_dns_zone_config
9620
+ delete_odb_dns_zone_config = parent_rpcs.delete_odb_dns_zone if parent_rpcs.respond_to? :delete_odb_dns_zone
9621
+ @delete_odb_dns_zone = ::Gapic::Config::Method.new delete_odb_dns_zone_config
9181
9622
  list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters
9182
9623
  @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config
9183
9624
  get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster
@@ -307,6 +307,27 @@ module Google
307
307
  "projects/#{project}/global/networks/#{network}"
308
308
  end
309
309
 
310
+ ##
311
+ # Create a fully-qualified OdbDnsZone resource string.
312
+ #
313
+ # The resource will be in the following format:
314
+ #
315
+ # `projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbDnsZones/{odb_dns_zone}`
316
+ #
317
+ # @param project [String]
318
+ # @param location [String]
319
+ # @param odb_network [String]
320
+ # @param odb_dns_zone [String]
321
+ #
322
+ # @return [::String]
323
+ def odb_dns_zone_path project:, location:, odb_network:, odb_dns_zone:
324
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
325
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
326
+ raise ::ArgumentError, "odb_network cannot contain /" if odb_network.to_s.include? "/"
327
+
328
+ "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}/odbDnsZones/#{odb_dns_zone}"
329
+ end
330
+
310
331
  ##
311
332
  # Create a fully-qualified OdbNetwork resource string.
312
333
  #