google-cloud-oracle_database-v1 0.16.0 → 1.1.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 (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/oracle_database/v1/bindings_override.rb +1 -1
  3. data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +215 -10
  4. data/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb +1 -1
  5. data/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb +1 -1
  6. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +20 -1
  7. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +201 -10
  8. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb +1 -1
  9. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +124 -1
  10. data/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb +1 -1
  11. data/lib/google/cloud/oracle_database/v1/oracle_database.rb +1 -1
  12. data/lib/google/cloud/oracle_database/v1/rest.rb +1 -1
  13. data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
  14. data/lib/google/cloud/oracle_database/v1.rb +1 -1
  15. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +5 -1
  16. data/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +1 -1
  17. data/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb +1 -1
  18. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +1 -1
  19. data/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb +1 -1
  20. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +4 -1
  21. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +5 -1
  22. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +3 -1
  23. data/lib/google-cloud-oracle_database-v1.rb +1 -1
  24. data/proto_docs/google/api/client.rb +1 -1
  25. data/proto_docs/google/api/field_behavior.rb +1 -1
  26. data/proto_docs/google/api/field_info.rb +1 -1
  27. data/proto_docs/google/api/launch_stage.rb +1 -1
  28. data/proto_docs/google/api/resource.rb +1 -1
  29. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +110 -1
  30. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb +1 -1
  31. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb +1 -1
  32. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb +1 -1
  33. data/proto_docs/google/cloud/oracledatabase/v1/common.rb +1 -1
  34. data/proto_docs/google/cloud/oracledatabase/v1/database.rb +1 -1
  35. data/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb +1 -1
  36. data/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +1 -1
  37. data/proto_docs/google/cloud/oracledatabase/v1/db_server.rb +1 -1
  38. data/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +11 -5
  39. data/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb +1 -1
  40. data/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb +10 -1
  41. data/proto_docs/google/cloud/oracledatabase/v1/db_version.rb +1 -1
  42. data/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb +1 -1
  43. data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +14 -5
  44. data/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb +5 -1
  45. data/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +1 -1
  46. data/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb +1 -1
  47. data/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb +1 -1
  48. data/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb +4 -4
  49. data/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb +1 -1
  50. data/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb +1 -1
  51. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +44 -6
  52. data/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb +1 -1
  53. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +33 -1
  54. data/proto_docs/google/longrunning/operations.rb +1 -1
  55. data/proto_docs/google/protobuf/any.rb +1 -1
  56. data/proto_docs/google/protobuf/duration.rb +1 -1
  57. data/proto_docs/google/protobuf/empty.rb +1 -1
  58. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  59. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  60. data/proto_docs/google/rpc/status.rb +1 -1
  61. data/proto_docs/google/type/datetime.rb +1 -1
  62. data/proto_docs/google/type/dayofweek.rb +1 -1
  63. data/proto_docs/google/type/month.rb +1 -1
  64. data/proto_docs/google/type/timeofday.rb +1 -1
  65. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afd60d51c632e189728ae00ab03abd823412ed89445811106b8693adb5560639
4
- data.tar.gz: 0b24f695e443f92b12a05a75c539b7f49459e9ed6616e4848c9b5a0d412d90d7
3
+ metadata.gz: 057d9a6b0642be8e74b8e71c6e794593c41f873265db997498157d35a4c562d4
4
+ data.tar.gz: cdafe9169fd44aee22b747c167dd5e9ed60010c79f612b84998e1eb34f0bbf36
5
5
  SHA512:
6
- metadata.gz: 106c2baaab55dc455c49556849fdc79f2d99372af7058b0cc97877c377cd846e9d007ad4e3de20a36645cf2023d49355b096c567bdc864922dfd94266899978a
7
- data.tar.gz: fe38513ceb83f6a065ac9d44b856a965aded7aba230b2259b781cd8c00f2997eab6e7cec4096630f8f18a487838eb8b0634f30a4ff2cb950d9761a5bde3ebab4
6
+ metadata.gz: bfe788720fda24ba59c3e64671f35b317da835799701777e0e34030d0ab660345a46b23f5a834b1560a912099e6803b8d87e54ef60ef0ef0cae33e4458c4db8a
7
+ data.tar.gz: b76b159e6a9c4cc15e6d81a61133b4a90e90e4bbc1e759cb5b37a5aeaf1a6e5dc9d51c6eaac4d1297e95e30ed6caf6c98b592fa3ad1b9fd3e355641c06b6a0e5
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -847,7 +847,7 @@ module Google
847
847
  # @param options [::Gapic::CallOptions, ::Hash]
848
848
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
849
849
  #
850
- # @overload configure_exascale_cloud_exadata_infrastructure(name: nil, total_storage_size_gb: nil, request_id: nil)
850
+ # @overload configure_exascale_cloud_exadata_infrastructure(name: nil, total_storage_size_gb: nil, total_vm_storage_size_gb: nil, request_id: nil)
851
851
  # Pass arguments to `configure_exascale_cloud_exadata_infrastructure` via keyword arguments. Note that at
852
852
  # least one keyword argument is required. To specify no parameters, or to keep all
853
853
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -858,6 +858,8 @@ module Google
858
858
  # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}.
859
859
  # @param total_storage_size_gb [::Integer]
860
860
  # Required. The total storage to be allocated to Exascale in GBs.
861
+ # @param total_vm_storage_size_gb [::Integer]
862
+ # Optional. Storage size needed for VM storage on Exascale in GBs.
861
863
  # @param request_id [::String]
862
864
  # Optional. An optional ID to identify the request.
863
865
  #
@@ -1665,8 +1667,8 @@ module Google
1665
1667
  # Optional. A token identifying a page of results the server should return.
1666
1668
  # @param filter [::String]
1667
1669
  # Optional. An expression for filtering the results of the request. Only the
1668
- # shape, gcp_oracle_zone and gi_version fields are supported in this format:
1669
- # `shape="{shape}"`.
1670
+ # `shape` and `gcp_oracle_zone_id` fields are supported in the following
1671
+ # format: `shape="{shape}" AND gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1670
1672
  #
1671
1673
  # @yield [response, operation] Access the result along with the RPC operation
1672
1674
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
@@ -1769,9 +1771,9 @@ module Google
1769
1771
  # fields except the filter should remain the same as in the request that
1770
1772
  # provided this page token.
1771
1773
  # @param filter [::String]
1772
- # Optional. An expression for filtering the results of the request.
1773
- # Only shapeFamily and gcp_oracle_zone_id are supported in this format:
1774
- # `shape_family="{shapeFamily}" AND
1774
+ # Optional. An expression for filtering the results of the request. Only the
1775
+ # `shape_family` and `gcp_oracle_zone_id` fields are supported in the
1776
+ # following format: `shape_family="{shape_family}" AND
1775
1777
  # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`.
1776
1778
  #
1777
1779
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1872,9 +1874,11 @@ module Google
1872
1874
  # @param page_token [::String]
1873
1875
  # Optional. A token identifying a page of results the server should return.
1874
1876
  # @param filter [::String]
1875
- # Optional. An expression for filtering the results of the request. Only the
1876
- # gcp_oracle_zone_id field is supported in this format:
1877
- # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1877
+ # Optional. An expression for filtering the results of the request. The
1878
+ # `gcp_oracle_zone_id`, `shape_family`, and `database_edition` fields
1879
+ # are supported in the following format:
1880
+ # `gcp_oracle_zone_id="{gcp_oracle_zone_id}" AND
1881
+ # shape_family="\\{shape_family}" AND database_edition="\\{database_edition}"`.
1878
1882
  #
1879
1883
  # @yield [response, operation] Access the result along with the RPC operation
1880
1884
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
@@ -3441,6 +3445,193 @@ module Google
3441
3445
  raise ::Google::Cloud::Error.from_error(e)
3442
3446
  end
3443
3447
 
3448
+ ##
3449
+ # Refreshes the refreshable clone of an Autonomous Database.
3450
+ #
3451
+ # @overload refresh_autonomous_database(request, options = nil)
3452
+ # Pass arguments to `refresh_autonomous_database` via a request object, either of type
3453
+ # {::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest} or an equivalent Hash.
3454
+ #
3455
+ # @param request [::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest, ::Hash]
3456
+ # A request object representing the call parameters. Required. To specify no
3457
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3458
+ # @param options [::Gapic::CallOptions, ::Hash]
3459
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3460
+ #
3461
+ # @overload refresh_autonomous_database(name: nil, refresh_cutoff_time: nil)
3462
+ # Pass arguments to `refresh_autonomous_database` via keyword arguments. Note that at
3463
+ # least one keyword argument is required. To specify no parameters, or to keep all
3464
+ # the default parameter values, pass an empty Hash as a request object (see above).
3465
+ #
3466
+ # @param name [::String]
3467
+ # Required. The name of the AutonomousDatabase resource.
3468
+ # Format:
3469
+ # projects/\\{project}/location/\\{location}/autonomousDatabases/\\{autonomous_database}
3470
+ # @param refresh_cutoff_time [::Google::Protobuf::Timestamp, ::Hash]
3471
+ # Required. The timestamp to which the Autonomous Database refreshable clone
3472
+ # will be refreshed. Changes made in the primary database after this
3473
+ # timestamp are not part of the data refresh.
3474
+ #
3475
+ # @yield [response, operation] Access the result along with the RPC operation
3476
+ # @yieldparam response [::Gapic::Operation]
3477
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3478
+ #
3479
+ # @return [::Gapic::Operation]
3480
+ #
3481
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3482
+ #
3483
+ # @example Basic example
3484
+ # require "google/cloud/oracle_database/v1"
3485
+ #
3486
+ # # Create a client object. The client can be reused for multiple calls.
3487
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3488
+ #
3489
+ # # Create a request. To set request fields, pass in keyword arguments.
3490
+ # request = Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest.new
3491
+ #
3492
+ # # Call the refresh_autonomous_database method.
3493
+ # result = client.refresh_autonomous_database request
3494
+ #
3495
+ # # The returned object is of type Gapic::Operation. You can use it to
3496
+ # # check the status of an operation, cancel it, or wait for results.
3497
+ # # Here is how to wait for a response.
3498
+ # result.wait_until_done! timeout: 60
3499
+ # if result.response?
3500
+ # p result.response
3501
+ # else
3502
+ # puts "No response received."
3503
+ # end
3504
+ #
3505
+ def refresh_autonomous_database request, options = nil
3506
+ raise ::ArgumentError, "request must be provided" if request.nil?
3507
+
3508
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest
3509
+
3510
+ # Converts hash and nil to an options object
3511
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3512
+
3513
+ # Customize the options with defaults
3514
+ metadata = @config.rpcs.refresh_autonomous_database.metadata.to_h
3515
+
3516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3517
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3518
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3519
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3520
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3521
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3522
+
3523
+ header_params = {}
3524
+ if request.name
3525
+ header_params["name"] = request.name
3526
+ end
3527
+
3528
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3529
+ metadata[:"x-goog-request-params"] ||= request_params_header
3530
+
3531
+ options.apply_defaults timeout: @config.rpcs.refresh_autonomous_database.timeout,
3532
+ metadata: metadata,
3533
+ retry_policy: @config.rpcs.refresh_autonomous_database.retry_policy
3534
+
3535
+ options.apply_defaults timeout: @config.timeout,
3536
+ metadata: @config.metadata,
3537
+ retry_policy: @config.retry_policy
3538
+
3539
+ @oracle_database_stub.call_rpc :refresh_autonomous_database, request, options: options do |response, operation|
3540
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3541
+ yield response, operation if block_given?
3542
+ throw :response, response
3543
+ end
3544
+ rescue ::GRPC::BadStatus => e
3545
+ raise ::Google::Cloud::Error.from_error(e)
3546
+ end
3547
+
3548
+ ##
3549
+ # Gets the refreshable clones for a given Autonomous Database.
3550
+ #
3551
+ # @overload get_autonomous_database_refreshable_clones(request, options = nil)
3552
+ # Pass arguments to `get_autonomous_database_refreshable_clones` via a request object, either of type
3553
+ # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest} or an equivalent Hash.
3554
+ #
3555
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest, ::Hash]
3556
+ # A request object representing the call parameters. Required. To specify no
3557
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3558
+ # @param options [::Gapic::CallOptions, ::Hash]
3559
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3560
+ #
3561
+ # @overload get_autonomous_database_refreshable_clones(name: nil)
3562
+ # Pass arguments to `get_autonomous_database_refreshable_clones` via keyword arguments. Note that at
3563
+ # least one keyword argument is required. To specify no parameters, or to keep all
3564
+ # the default parameter values, pass an empty Hash as a request object (see above).
3565
+ #
3566
+ # @param name [::String]
3567
+ # Required. The Autonomous Database resource whose refreshable clones are to
3568
+ # be listed. Format:
3569
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}
3570
+ #
3571
+ # @yield [response, operation] Access the result along with the RPC operation
3572
+ # @yieldparam response [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones]
3573
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3574
+ #
3575
+ # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones]
3576
+ #
3577
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3578
+ #
3579
+ # @example Basic example
3580
+ # require "google/cloud/oracle_database/v1"
3581
+ #
3582
+ # # Create a client object. The client can be reused for multiple calls.
3583
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new
3584
+ #
3585
+ # # Create a request. To set request fields, pass in keyword arguments.
3586
+ # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest.new
3587
+ #
3588
+ # # Call the get_autonomous_database_refreshable_clones method.
3589
+ # result = client.get_autonomous_database_refreshable_clones request
3590
+ #
3591
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones.
3592
+ # p result
3593
+ #
3594
+ def get_autonomous_database_refreshable_clones request, options = nil
3595
+ raise ::ArgumentError, "request must be provided" if request.nil?
3596
+
3597
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest
3598
+
3599
+ # Converts hash and nil to an options object
3600
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3601
+
3602
+ # Customize the options with defaults
3603
+ metadata = @config.rpcs.get_autonomous_database_refreshable_clones.metadata.to_h
3604
+
3605
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3606
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3607
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3608
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION
3609
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3610
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3611
+
3612
+ header_params = {}
3613
+ if request.name
3614
+ header_params["name"] = request.name
3615
+ end
3616
+
3617
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3618
+ metadata[:"x-goog-request-params"] ||= request_params_header
3619
+
3620
+ options.apply_defaults timeout: @config.rpcs.get_autonomous_database_refreshable_clones.timeout,
3621
+ metadata: metadata,
3622
+ retry_policy: @config.rpcs.get_autonomous_database_refreshable_clones.retry_policy
3623
+
3624
+ options.apply_defaults timeout: @config.timeout,
3625
+ metadata: @config.metadata,
3626
+ retry_policy: @config.retry_policy
3627
+
3628
+ @oracle_database_stub.call_rpc :get_autonomous_database_refreshable_clones, request, options: options do |response, operation|
3629
+ yield response, operation if block_given?
3630
+ end
3631
+ rescue ::GRPC::BadStatus => e
3632
+ raise ::Google::Cloud::Error.from_error(e)
3633
+ end
3634
+
3444
3635
  ##
3445
3636
  # Lists the ODB Networks in a given project and location.
3446
3637
  #
@@ -8655,6 +8846,16 @@ module Google
8655
8846
  #
8656
8847
  attr_reader :failover_autonomous_database
8657
8848
  ##
8849
+ # RPC-specific configuration for `refresh_autonomous_database`
8850
+ # @return [::Gapic::Config::Method]
8851
+ #
8852
+ attr_reader :refresh_autonomous_database
8853
+ ##
8854
+ # RPC-specific configuration for `get_autonomous_database_refreshable_clones`
8855
+ # @return [::Gapic::Config::Method]
8856
+ #
8857
+ attr_reader :get_autonomous_database_refreshable_clones
8858
+ ##
8658
8859
  # RPC-specific configuration for `list_odb_networks`
8659
8860
  # @return [::Gapic::Config::Method]
8660
8861
  #
@@ -8957,6 +9158,10 @@ module Google
8957
9158
  @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config
8958
9159
  failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database
8959
9160
  @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config
9161
+ refresh_autonomous_database_config = parent_rpcs.refresh_autonomous_database if parent_rpcs.respond_to? :refresh_autonomous_database
9162
+ @refresh_autonomous_database = ::Gapic::Config::Method.new refresh_autonomous_database_config
9163
+ get_autonomous_database_refreshable_clones_config = parent_rpcs.get_autonomous_database_refreshable_clones if parent_rpcs.respond_to? :get_autonomous_database_refreshable_clones
9164
+ @get_autonomous_database_refreshable_clones = ::Gapic::Config::Method.new get_autonomous_database_refreshable_clones_config
8960
9165
  list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks
8961
9166
  @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config
8962
9167
  get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -43,6 +43,25 @@ module Google
43
43
  "projects/#{project}/locations/#{location}/autonomousDatabases/#{autonomous_database}"
44
44
  end
45
45
 
46
+ ##
47
+ # Create a fully-qualified AutonomousDatabaseBackup resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param autonomous_database_backup [String]
56
+ #
57
+ # @return [::String]
58
+ def autonomous_database_backup_path project:, location:, autonomous_database_backup:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/autonomousDatabaseBackups/#{autonomous_database_backup}"
63
+ end
64
+
46
65
  ##
47
66
  # Create a fully-qualified CloudExadataInfrastructure resource string.
48
67
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -813,7 +813,7 @@ module Google
813
813
  # @param options [::Gapic::CallOptions, ::Hash]
814
814
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
815
815
  #
816
- # @overload configure_exascale_cloud_exadata_infrastructure(name: nil, total_storage_size_gb: nil, request_id: nil)
816
+ # @overload configure_exascale_cloud_exadata_infrastructure(name: nil, total_storage_size_gb: nil, total_vm_storage_size_gb: nil, request_id: nil)
817
817
  # Pass arguments to `configure_exascale_cloud_exadata_infrastructure` via keyword arguments. Note that at
818
818
  # least one keyword argument is required. To specify no parameters, or to keep all
819
819
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -824,6 +824,8 @@ module Google
824
824
  # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}.
825
825
  # @param total_storage_size_gb [::Integer]
826
826
  # Required. The total storage to be allocated to Exascale in GBs.
827
+ # @param total_vm_storage_size_gb [::Integer]
828
+ # Optional. Storage size needed for VM storage on Exascale in GBs.
827
829
  # @param request_id [::String]
828
830
  # Optional. An optional ID to identify the request.
829
831
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1575,8 +1577,8 @@ module Google
1575
1577
  # Optional. A token identifying a page of results the server should return.
1576
1578
  # @param filter [::String]
1577
1579
  # Optional. An expression for filtering the results of the request. Only the
1578
- # shape, gcp_oracle_zone and gi_version fields are supported in this format:
1579
- # `shape="{shape}"`.
1580
+ # `shape` and `gcp_oracle_zone_id` fields are supported in the following
1581
+ # format: `shape="{shape}" AND gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1580
1582
  # @yield [result, operation] Access the result along with the TransportOperation object
1581
1583
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>]
1582
1584
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1672,9 +1674,9 @@ module Google
1672
1674
  # fields except the filter should remain the same as in the request that
1673
1675
  # provided this page token.
1674
1676
  # @param filter [::String]
1675
- # Optional. An expression for filtering the results of the request.
1676
- # Only shapeFamily and gcp_oracle_zone_id are supported in this format:
1677
- # `shape_family="{shapeFamily}" AND
1677
+ # Optional. An expression for filtering the results of the request. Only the
1678
+ # `shape_family` and `gcp_oracle_zone_id` fields are supported in the
1679
+ # following format: `shape_family="{shape_family}" AND
1678
1680
  # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`.
1679
1681
  # @yield [result, operation] Access the result along with the TransportOperation object
1680
1682
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>]
@@ -1768,9 +1770,11 @@ module Google
1768
1770
  # @param page_token [::String]
1769
1771
  # Optional. A token identifying a page of results the server should return.
1770
1772
  # @param filter [::String]
1771
- # Optional. An expression for filtering the results of the request. Only the
1772
- # gcp_oracle_zone_id field is supported in this format:
1773
- # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`.
1773
+ # Optional. An expression for filtering the results of the request. The
1774
+ # `gcp_oracle_zone_id`, `shape_family`, and `database_edition` fields
1775
+ # are supported in the following format:
1776
+ # `gcp_oracle_zone_id="{gcp_oracle_zone_id}" AND
1777
+ # shape_family="\\{shape_family}" AND database_edition="\\{database_edition}"`.
1774
1778
  # @yield [result, operation] Access the result along with the TransportOperation object
1775
1779
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>]
1776
1780
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3225,6 +3229,179 @@ module Google
3225
3229
  raise ::Google::Cloud::Error.from_error(e)
3226
3230
  end
3227
3231
 
3232
+ ##
3233
+ # Refreshes the refreshable clone of an Autonomous Database.
3234
+ #
3235
+ # @overload refresh_autonomous_database(request, options = nil)
3236
+ # Pass arguments to `refresh_autonomous_database` via a request object, either of type
3237
+ # {::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest} or an equivalent Hash.
3238
+ #
3239
+ # @param request [::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest, ::Hash]
3240
+ # A request object representing the call parameters. Required. To specify no
3241
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3242
+ # @param options [::Gapic::CallOptions, ::Hash]
3243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3244
+ #
3245
+ # @overload refresh_autonomous_database(name: nil, refresh_cutoff_time: nil)
3246
+ # Pass arguments to `refresh_autonomous_database` via keyword arguments. Note that at
3247
+ # least one keyword argument is required. To specify no parameters, or to keep all
3248
+ # the default parameter values, pass an empty Hash as a request object (see above).
3249
+ #
3250
+ # @param name [::String]
3251
+ # Required. The name of the AutonomousDatabase resource.
3252
+ # Format:
3253
+ # projects/\\{project}/location/\\{location}/autonomousDatabases/\\{autonomous_database}
3254
+ # @param refresh_cutoff_time [::Google::Protobuf::Timestamp, ::Hash]
3255
+ # Required. The timestamp to which the Autonomous Database refreshable clone
3256
+ # will be refreshed. Changes made in the primary database after this
3257
+ # timestamp are not part of the data refresh.
3258
+ # @yield [result, operation] Access the result along with the TransportOperation object
3259
+ # @yieldparam result [::Gapic::Operation]
3260
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3261
+ #
3262
+ # @return [::Gapic::Operation]
3263
+ #
3264
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3265
+ #
3266
+ # @example Basic example
3267
+ # require "google/cloud/oracle_database/v1"
3268
+ #
3269
+ # # Create a client object. The client can be reused for multiple calls.
3270
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3271
+ #
3272
+ # # Create a request. To set request fields, pass in keyword arguments.
3273
+ # request = Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest.new
3274
+ #
3275
+ # # Call the refresh_autonomous_database method.
3276
+ # result = client.refresh_autonomous_database request
3277
+ #
3278
+ # # The returned object is of type Gapic::Operation. You can use it to
3279
+ # # check the status of an operation, cancel it, or wait for results.
3280
+ # # Here is how to wait for a response.
3281
+ # result.wait_until_done! timeout: 60
3282
+ # if result.response?
3283
+ # p result.response
3284
+ # else
3285
+ # puts "No response received."
3286
+ # end
3287
+ #
3288
+ def refresh_autonomous_database request, options = nil
3289
+ raise ::ArgumentError, "request must be provided" if request.nil?
3290
+
3291
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RefreshAutonomousDatabaseRequest
3292
+
3293
+ # Converts hash and nil to an options object
3294
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3295
+
3296
+ # Customize the options with defaults
3297
+ call_metadata = @config.rpcs.refresh_autonomous_database.metadata.to_h
3298
+
3299
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3300
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3301
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3302
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3303
+ transports_version_send: [:rest]
3304
+
3305
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3306
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3307
+
3308
+ options.apply_defaults timeout: @config.rpcs.refresh_autonomous_database.timeout,
3309
+ metadata: call_metadata,
3310
+ retry_policy: @config.rpcs.refresh_autonomous_database.retry_policy
3311
+
3312
+ options.apply_defaults timeout: @config.timeout,
3313
+ metadata: @config.metadata,
3314
+ retry_policy: @config.retry_policy
3315
+
3316
+ @oracle_database_stub.refresh_autonomous_database request, options do |result, operation|
3317
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3318
+ yield result, operation if block_given?
3319
+ throw :response, result
3320
+ end
3321
+ rescue ::Gapic::Rest::Error => e
3322
+ raise ::Google::Cloud::Error.from_error(e)
3323
+ end
3324
+
3325
+ ##
3326
+ # Gets the refreshable clones for a given Autonomous Database.
3327
+ #
3328
+ # @overload get_autonomous_database_refreshable_clones(request, options = nil)
3329
+ # Pass arguments to `get_autonomous_database_refreshable_clones` via a request object, either of type
3330
+ # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest} or an equivalent Hash.
3331
+ #
3332
+ # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest, ::Hash]
3333
+ # A request object representing the call parameters. Required. To specify no
3334
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3335
+ # @param options [::Gapic::CallOptions, ::Hash]
3336
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3337
+ #
3338
+ # @overload get_autonomous_database_refreshable_clones(name: nil)
3339
+ # Pass arguments to `get_autonomous_database_refreshable_clones` via keyword arguments. Note that at
3340
+ # least one keyword argument is required. To specify no parameters, or to keep all
3341
+ # the default parameter values, pass an empty Hash as a request object (see above).
3342
+ #
3343
+ # @param name [::String]
3344
+ # Required. The Autonomous Database resource whose refreshable clones are to
3345
+ # be listed. Format:
3346
+ # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}
3347
+ # @yield [result, operation] Access the result along with the TransportOperation object
3348
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones]
3349
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3350
+ #
3351
+ # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones]
3352
+ #
3353
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3354
+ #
3355
+ # @example Basic example
3356
+ # require "google/cloud/oracle_database/v1"
3357
+ #
3358
+ # # Create a client object. The client can be reused for multiple calls.
3359
+ # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new
3360
+ #
3361
+ # # Create a request. To set request fields, pass in keyword arguments.
3362
+ # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest.new
3363
+ #
3364
+ # # Call the get_autonomous_database_refreshable_clones method.
3365
+ # result = client.get_autonomous_database_refreshable_clones request
3366
+ #
3367
+ # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabaseRefreshableClones.
3368
+ # p result
3369
+ #
3370
+ def get_autonomous_database_refreshable_clones request, options = nil
3371
+ raise ::ArgumentError, "request must be provided" if request.nil?
3372
+
3373
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRefreshableClonesRequest
3374
+
3375
+ # Converts hash and nil to an options object
3376
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3377
+
3378
+ # Customize the options with defaults
3379
+ call_metadata = @config.rpcs.get_autonomous_database_refreshable_clones.metadata.to_h
3380
+
3381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3382
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3383
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3384
+ gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION,
3385
+ transports_version_send: [:rest]
3386
+
3387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3388
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3389
+
3390
+ options.apply_defaults timeout: @config.rpcs.get_autonomous_database_refreshable_clones.timeout,
3391
+ metadata: call_metadata,
3392
+ retry_policy: @config.rpcs.get_autonomous_database_refreshable_clones.retry_policy
3393
+
3394
+ options.apply_defaults timeout: @config.timeout,
3395
+ metadata: @config.metadata,
3396
+ retry_policy: @config.retry_policy
3397
+
3398
+ @oracle_database_stub.get_autonomous_database_refreshable_clones request, options do |result, operation|
3399
+ yield result, operation if block_given?
3400
+ end
3401
+ rescue ::Gapic::Rest::Error => e
3402
+ raise ::Google::Cloud::Error.from_error(e)
3403
+ end
3404
+
3228
3405
  ##
3229
3406
  # Lists the ODB Networks in a given project and location.
3230
3407
  #
@@ -8073,6 +8250,16 @@ module Google
8073
8250
  #
8074
8251
  attr_reader :failover_autonomous_database
8075
8252
  ##
8253
+ # RPC-specific configuration for `refresh_autonomous_database`
8254
+ # @return [::Gapic::Config::Method]
8255
+ #
8256
+ attr_reader :refresh_autonomous_database
8257
+ ##
8258
+ # RPC-specific configuration for `get_autonomous_database_refreshable_clones`
8259
+ # @return [::Gapic::Config::Method]
8260
+ #
8261
+ attr_reader :get_autonomous_database_refreshable_clones
8262
+ ##
8076
8263
  # RPC-specific configuration for `list_odb_networks`
8077
8264
  # @return [::Gapic::Config::Method]
8078
8265
  #
@@ -8375,6 +8562,10 @@ module Google
8375
8562
  @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config
8376
8563
  failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database
8377
8564
  @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config
8565
+ refresh_autonomous_database_config = parent_rpcs.refresh_autonomous_database if parent_rpcs.respond_to? :refresh_autonomous_database
8566
+ @refresh_autonomous_database = ::Gapic::Config::Method.new refresh_autonomous_database_config
8567
+ get_autonomous_database_refreshable_clones_config = parent_rpcs.get_autonomous_database_refreshable_clones if parent_rpcs.respond_to? :get_autonomous_database_refreshable_clones
8568
+ @get_autonomous_database_refreshable_clones = ::Gapic::Config::Method.new get_autonomous_database_refreshable_clones_config
8378
8569
  list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks
8379
8570
  @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config
8380
8571
  get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2024 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.