google-cloud-alloy_db-v1alpha 0.7.2 → 0.9.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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -21
  3. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/client.rb +560 -184
  4. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/operations.rb +12 -15
  5. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/client.rb +4276 -0
  6. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/operations.rb +907 -0
  7. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest/service_stub.rb +2236 -0
  8. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin/rest.rb +54 -0
  9. data/lib/google/cloud/alloy_db/v1alpha/alloy_db_admin.rb +6 -0
  10. data/lib/google/cloud/alloy_db/v1alpha/bindings_override.rb +102 -0
  11. data/lib/google/cloud/alloy_db/v1alpha/rest.rb +38 -0
  12. data/lib/google/cloud/alloy_db/v1alpha/version.rb +1 -1
  13. data/lib/google/cloud/alloy_db/v1alpha.rb +5 -0
  14. data/lib/google/cloud/alloydb/v1alpha/csql_resources_pb.rb +44 -0
  15. data/lib/google/cloud/alloydb/v1alpha/data_model_pb.rb +45 -0
  16. data/lib/google/cloud/alloydb/v1alpha/gemini_pb.rb +45 -0
  17. data/lib/google/cloud/alloydb/v1alpha/resources_pb.rb +11 -1
  18. data/lib/google/cloud/alloydb/v1alpha/service_pb.rb +22 -1
  19. data/lib/google/cloud/alloydb/v1alpha/service_services_pb.rb +9 -0
  20. data/proto_docs/google/api/client.rb +39 -0
  21. data/proto_docs/google/cloud/alloydb/v1alpha/csql_resources.rb +42 -0
  22. data/proto_docs/google/cloud/alloydb/v1alpha/data_model.rb +75 -0
  23. data/proto_docs/google/cloud/alloydb/v1alpha/gemini.rb +52 -0
  24. data/proto_docs/google/cloud/alloydb/v1alpha/resources.rb +214 -39
  25. data/proto_docs/google/cloud/alloydb/v1alpha/service.rb +540 -146
  26. data/proto_docs/google/longrunning/operations.rb +19 -14
  27. metadata +18 -6
@@ -129,11 +129,6 @@ module Google
129
129
  initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
130
130
  }
131
131
 
132
- default_config.rpcs.list_databases.timeout = 60.0
133
- default_config.rpcs.list_databases.retry_policy = {
134
- initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
135
- }
136
-
137
132
  default_config
138
133
  end
139
134
  yield @configure if block_given?
@@ -228,14 +223,26 @@ module Google
228
223
  universe_domain: @config.universe_domain,
229
224
  channel_args: @config.channel_args,
230
225
  interceptors: @config.interceptors,
231
- channel_pool_config: @config.channel_pool
226
+ channel_pool_config: @config.channel_pool,
227
+ logger: @config.logger
232
228
  )
233
229
 
230
+ @alloy_db_admin_stub.stub_logger&.info do |entry|
231
+ entry.set_system_name
232
+ entry.set_service
233
+ entry.message = "Created client for #{entry.service}"
234
+ entry.set_credentials_fields credentials
235
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
236
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
237
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
238
+ end
239
+
234
240
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
235
241
  config.credentials = credentials
236
242
  config.quota_project = @quota_project_id
237
243
  config.endpoint = @alloy_db_admin_stub.endpoint
238
244
  config.universe_domain = @alloy_db_admin_stub.universe_domain
245
+ config.logger = @alloy_db_admin_stub.logger if config.respond_to? :logger=
239
246
  end
240
247
 
241
248
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
@@ -243,6 +250,7 @@ module Google
243
250
  config.quota_project = @quota_project_id
244
251
  config.endpoint = @alloy_db_admin_stub.endpoint
245
252
  config.universe_domain = @alloy_db_admin_stub.universe_domain
253
+ config.logger = @alloy_db_admin_stub.logger if config.respond_to? :logger=
246
254
  end
247
255
  end
248
256
 
@@ -267,6 +275,15 @@ module Google
267
275
  #
268
276
  attr_reader :iam_policy_client
269
277
 
278
+ ##
279
+ # The logger used for request/response debug logging.
280
+ #
281
+ # @return [Logger]
282
+ #
283
+ def logger
284
+ @alloy_db_admin_stub.logger
285
+ end
286
+
270
287
  # Service calls
271
288
 
272
289
  ##
@@ -366,7 +383,7 @@ module Google
366
383
  @alloy_db_admin_stub.call_rpc :list_clusters, request, options: options do |response, operation|
367
384
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_clusters, request, response, operation, options
368
385
  yield response, operation if block_given?
369
- return response
386
+ throw :response, response
370
387
  end
371
388
  rescue ::GRPC::BadStatus => e
372
389
  raise ::Google::Cloud::Error.from_error(e)
@@ -456,7 +473,6 @@ module Google
456
473
 
457
474
  @alloy_db_admin_stub.call_rpc :get_cluster, request, options: options do |response, operation|
458
475
  yield response, operation if block_given?
459
- return response
460
476
  end
461
477
  rescue ::GRPC::BadStatus => e
462
478
  raise ::Google::Cloud::Error.from_error(e)
@@ -489,22 +505,22 @@ module Google
489
505
  # Required. The resource being created
490
506
  # @param request_id [::String]
491
507
  # Optional. An optional request ID to identify requests. Specify a unique
492
- # request ID so that if you must retry your request, the server will know to
493
- # ignore the request if it has already been completed. The server will
494
- # guarantee that for at least 60 minutes since the first request.
508
+ # request ID so that if you must retry your request, the server ignores the
509
+ # request if it has already been completed. The server guarantees that for at
510
+ # least 60 minutes since the first request.
495
511
  #
496
512
  # For example, consider a situation where you make an initial request and
497
513
  # the request times out. If you make the request again with the same request
498
- # ID, the server can check if original operation with the same request ID
499
- # was received, and if so, will ignore the second request. This prevents
514
+ # ID, the server can check if the original operation with the same request ID
515
+ # was received, and if so, ignores the second request. This prevents
500
516
  # clients from accidentally creating duplicate commitments.
501
517
  #
502
518
  # The request ID must be a valid UUID with the exception that zero UUID is
503
519
  # not supported (00000000-0000-0000-0000-000000000000).
504
520
  # @param validate_only [::Boolean]
505
- # Optional. If set, performs request validation (e.g. permission checks and
506
- # any other type of validation), but do not actually execute the create
507
- # request.
521
+ # Optional. If set, performs request validation, for example, permission
522
+ # checks and any other type of validation, but does not actually execute the
523
+ # create request.
508
524
  #
509
525
  # @yield [response, operation] Access the result along with the RPC operation
510
526
  # @yieldparam response [::Gapic::Operation]
@@ -573,7 +589,7 @@ module Google
573
589
  @alloy_db_admin_stub.call_rpc :create_cluster, request, options: options do |response, operation|
574
590
  response = ::Gapic::Operation.new response, @operations_client, options: options
575
591
  yield response, operation if block_given?
576
- return response
592
+ throw :response, response
577
593
  end
578
594
  rescue ::GRPC::BadStatus => e
579
595
  raise ::Google::Cloud::Error.from_error(e)
@@ -607,22 +623,22 @@ module Google
607
623
  # Required. The resource being updated
608
624
  # @param request_id [::String]
609
625
  # Optional. An optional request ID to identify requests. Specify a unique
610
- # request ID so that if you must retry your request, the server will know to
611
- # ignore the request if it has already been completed. The server will
612
- # guarantee that for at least 60 minutes since the first request.
626
+ # request ID so that if you must retry your request, the server ignores the
627
+ # request if it has already been completed. The server guarantees that for at
628
+ # least 60 minutes since the first request.
613
629
  #
614
630
  # For example, consider a situation where you make an initial request and
615
631
  # the request times out. If you make the request again with the same request
616
- # ID, the server can check if original operation with the same request ID
617
- # was received, and if so, will ignore the second request. This prevents
632
+ # ID, the server can check if the original operation with the same request ID
633
+ # was received, and if so, ignores the second request. This prevents
618
634
  # clients from accidentally creating duplicate commitments.
619
635
  #
620
636
  # The request ID must be a valid UUID with the exception that zero UUID is
621
637
  # not supported (00000000-0000-0000-0000-000000000000).
622
638
  # @param validate_only [::Boolean]
623
- # Optional. If set, performs request validation (e.g. permission checks and
624
- # any other type of validation), but do not actually execute the update
625
- # request.
639
+ # Optional. If set, performs request validation, for example, permission
640
+ # checks and any other type of validation, but does not actually execute the
641
+ # create request.
626
642
  # @param allow_missing [::Boolean]
627
643
  # Optional. If set to true, update succeeds even if cluster is not found. In
628
644
  # that case, a new cluster is created and `update_mask` is ignored.
@@ -694,7 +710,126 @@ module Google
694
710
  @alloy_db_admin_stub.call_rpc :update_cluster, request, options: options do |response, operation|
695
711
  response = ::Gapic::Operation.new response, @operations_client, options: options
696
712
  yield response, operation if block_given?
697
- return response
713
+ throw :response, response
714
+ end
715
+ rescue ::GRPC::BadStatus => e
716
+ raise ::Google::Cloud::Error.from_error(e)
717
+ end
718
+
719
+ ##
720
+ # Upgrades a single Cluster.
721
+ # Imperative only.
722
+ #
723
+ # @overload upgrade_cluster(request, options = nil)
724
+ # Pass arguments to `upgrade_cluster` via a request object, either of type
725
+ # {::Google::Cloud::AlloyDB::V1alpha::UpgradeClusterRequest} or an equivalent Hash.
726
+ #
727
+ # @param request [::Google::Cloud::AlloyDB::V1alpha::UpgradeClusterRequest, ::Hash]
728
+ # A request object representing the call parameters. Required. To specify no
729
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
730
+ # @param options [::Gapic::CallOptions, ::Hash]
731
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
732
+ #
733
+ # @overload upgrade_cluster(name: nil, version: nil, request_id: nil, validate_only: nil, etag: nil)
734
+ # Pass arguments to `upgrade_cluster` via keyword arguments. Note that at
735
+ # least one keyword argument is required. To specify no parameters, or to keep all
736
+ # the default parameter values, pass an empty Hash as a request object (see above).
737
+ #
738
+ # @param name [::String]
739
+ # Required. The resource name of the cluster.
740
+ # @param version [::Google::Cloud::AlloyDB::V1alpha::DatabaseVersion]
741
+ # Required. The version the cluster is going to be upgraded to.
742
+ # @param request_id [::String]
743
+ # Optional. An optional request ID to identify requests. Specify a unique
744
+ # request ID so that if you must retry your request, the server ignores the
745
+ # request if it has already been completed. The server guarantees that for at
746
+ # least 60 minutes since the first request.
747
+ #
748
+ # For example, consider a situation where you make an initial request and
749
+ # the request times out. If you make the request again with the same request
750
+ # ID, the server can check if the original operation with the same request ID
751
+ # was received, and if so, ignores the second request. This prevents
752
+ # clients from accidentally creating duplicate commitments.
753
+ #
754
+ # The request ID must be a valid UUID with the exception that zero UUID is
755
+ # not supported (00000000-0000-0000-0000-000000000000).
756
+ # @param validate_only [::Boolean]
757
+ # Optional. If set, performs request validation, for example, permission
758
+ # checks and any other type of validation, but does not actually execute the
759
+ # create request.
760
+ # @param etag [::String]
761
+ # Optional. The current etag of the Cluster.
762
+ # If an etag is provided and does not match the current etag of the Cluster,
763
+ # upgrade will be blocked and an ABORTED error will be returned.
764
+ #
765
+ # @yield [response, operation] Access the result along with the RPC operation
766
+ # @yieldparam response [::Gapic::Operation]
767
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
768
+ #
769
+ # @return [::Gapic::Operation]
770
+ #
771
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
772
+ #
773
+ # @example Basic example
774
+ # require "google/cloud/alloy_db/v1alpha"
775
+ #
776
+ # # Create a client object. The client can be reused for multiple calls.
777
+ # client = Google::Cloud::AlloyDB::V1alpha::AlloyDBAdmin::Client.new
778
+ #
779
+ # # Create a request. To set request fields, pass in keyword arguments.
780
+ # request = Google::Cloud::AlloyDB::V1alpha::UpgradeClusterRequest.new
781
+ #
782
+ # # Call the upgrade_cluster method.
783
+ # result = client.upgrade_cluster request
784
+ #
785
+ # # The returned object is of type Gapic::Operation. You can use it to
786
+ # # check the status of an operation, cancel it, or wait for results.
787
+ # # Here is how to wait for a response.
788
+ # result.wait_until_done! timeout: 60
789
+ # if result.response?
790
+ # p result.response
791
+ # else
792
+ # puts "No response received."
793
+ # end
794
+ #
795
+ def upgrade_cluster request, options = nil
796
+ raise ::ArgumentError, "request must be provided" if request.nil?
797
+
798
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1alpha::UpgradeClusterRequest
799
+
800
+ # Converts hash and nil to an options object
801
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
802
+
803
+ # Customize the options with defaults
804
+ metadata = @config.rpcs.upgrade_cluster.metadata.to_h
805
+
806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
807
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
808
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
809
+ gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
810
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
811
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
812
+
813
+ header_params = {}
814
+ if request.name
815
+ header_params["name"] = request.name
816
+ end
817
+
818
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
819
+ metadata[:"x-goog-request-params"] ||= request_params_header
820
+
821
+ options.apply_defaults timeout: @config.rpcs.upgrade_cluster.timeout,
822
+ metadata: metadata,
823
+ retry_policy: @config.rpcs.upgrade_cluster.retry_policy
824
+
825
+ options.apply_defaults timeout: @config.timeout,
826
+ metadata: @config.metadata,
827
+ retry_policy: @config.retry_policy
828
+
829
+ @alloy_db_admin_stub.call_rpc :upgrade_cluster, request, options: options do |response, operation|
830
+ response = ::Gapic::Operation.new response, @operations_client, options: options
831
+ yield response, operation if block_given?
832
+ throw :response, response
698
833
  end
699
834
  rescue ::GRPC::BadStatus => e
700
835
  raise ::Google::Cloud::Error.from_error(e)
@@ -723,14 +858,14 @@ module Google
723
858
  # comment on the Cluster.name field.
724
859
  # @param request_id [::String]
725
860
  # Optional. An optional request ID to identify requests. Specify a unique
726
- # request ID so that if you must retry your request, the server will know to
727
- # ignore the request if it has already been completed. The server will
728
- # guarantee that for at least 60 minutes after the first request.
861
+ # request ID so that if you must retry your request, the server ignores the
862
+ # request if it has already been completed. The server guarantees that for at
863
+ # least 60 minutes since the first request.
729
864
  #
730
865
  # For example, consider a situation where you make an initial request and
731
866
  # the request times out. If you make the request again with the same request
732
- # ID, the server can check if original operation with the same request ID
733
- # was received, and if so, will ignore the second request. This prevents
867
+ # ID, the server can check if the original operation with the same request ID
868
+ # was received, and if so, ignores the second request. This prevents
734
869
  # clients from accidentally creating duplicate commitments.
735
870
  #
736
871
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -740,8 +875,9 @@ module Google
740
875
  # If an etag is provided and does not match the current etag of the Cluster,
741
876
  # deletion will be blocked and an ABORTED error will be returned.
742
877
  # @param validate_only [::Boolean]
743
- # Optional. If set, performs request validation (e.g. permission checks and
744
- # any other type of validation), but do not actually execute the delete.
878
+ # Optional. If set, performs request validation, for example, permission
879
+ # checks and any other type of validation, but does not actually execute the
880
+ # create request.
745
881
  # @param force [::Boolean]
746
882
  # Optional. Whether to cascade delete child instances for given cluster.
747
883
  #
@@ -812,7 +948,7 @@ module Google
812
948
  @alloy_db_admin_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
813
949
  response = ::Gapic::Operation.new response, @operations_client, options: options
814
950
  yield response, operation if block_given?
815
- return response
951
+ throw :response, response
816
952
  end
817
953
  rescue ::GRPC::BadStatus => e
818
954
  raise ::Google::Cloud::Error.from_error(e)
@@ -844,9 +980,9 @@ module Google
844
980
  # comment on the Cluster.name field
845
981
  # @param request_id [::String]
846
982
  # Optional. An optional request ID to identify requests. Specify a unique
847
- # request ID so that if you must retry your request, the server will know to
848
- # ignore the request if it has already been completed. The server will
849
- # guarantee that for at least 60 minutes after the first request.
983
+ # request ID so that if you must retry your request, the server ignores the
984
+ # request if it has already been completed. The server guarantees that for at
985
+ # least 60 minutes since the first request.
850
986
  #
851
987
  # For example, consider a situation where you make an initial request and
852
988
  # the request times out. If you make the request again with the same request
@@ -861,8 +997,9 @@ module Google
861
997
  # If an etag is provided and does not match the current etag of the Cluster,
862
998
  # deletion will be blocked and an ABORTED error will be returned.
863
999
  # @param validate_only [::Boolean]
864
- # Optional. If set, performs request validation (e.g. permission checks and
865
- # any other type of validation), but do not actually execute the delete.
1000
+ # Optional. If set, performs request validation, for example, permission
1001
+ # checks and any other type of validation, but does not actually execute the
1002
+ # create request.
866
1003
  #
867
1004
  # @yield [response, operation] Access the result along with the RPC operation
868
1005
  # @yieldparam response [::Gapic::Operation]
@@ -931,7 +1068,122 @@ module Google
931
1068
  @alloy_db_admin_stub.call_rpc :promote_cluster, request, options: options do |response, operation|
932
1069
  response = ::Gapic::Operation.new response, @operations_client, options: options
933
1070
  yield response, operation if block_given?
934
- return response
1071
+ throw :response, response
1072
+ end
1073
+ rescue ::GRPC::BadStatus => e
1074
+ raise ::Google::Cloud::Error.from_error(e)
1075
+ end
1076
+
1077
+ ##
1078
+ # Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
1079
+ # This promotes the SECONDARY cluster to PRIMARY and sets up the original
1080
+ # PRIMARY cluster to replicate from this newly promoted cluster.
1081
+ #
1082
+ # @overload switchover_cluster(request, options = nil)
1083
+ # Pass arguments to `switchover_cluster` via a request object, either of type
1084
+ # {::Google::Cloud::AlloyDB::V1alpha::SwitchoverClusterRequest} or an equivalent Hash.
1085
+ #
1086
+ # @param request [::Google::Cloud::AlloyDB::V1alpha::SwitchoverClusterRequest, ::Hash]
1087
+ # A request object representing the call parameters. Required. To specify no
1088
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1089
+ # @param options [::Gapic::CallOptions, ::Hash]
1090
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1091
+ #
1092
+ # @overload switchover_cluster(name: nil, request_id: nil, validate_only: nil)
1093
+ # Pass arguments to `switchover_cluster` via keyword arguments. Note that at
1094
+ # least one keyword argument is required. To specify no parameters, or to keep all
1095
+ # the default parameter values, pass an empty Hash as a request object (see above).
1096
+ #
1097
+ # @param name [::String]
1098
+ # Required. The name of the resource. For the required format, see the
1099
+ # comment on the Cluster.name field
1100
+ # @param request_id [::String]
1101
+ # Optional. An optional request ID to identify requests. Specify a unique
1102
+ # request ID so that if you must retry your request, the server ignores the
1103
+ # request if it has already been completed. The server guarantees that for at
1104
+ # least 60 minutes since the first request.
1105
+ #
1106
+ # For example, consider a situation where you make an initial request and
1107
+ # the request times out. If you make the request again with the same request
1108
+ # ID, the server can check if the original operation with the same request ID
1109
+ # was received, and if so, ignores the second request. This prevents
1110
+ # clients from accidentally creating duplicate commitments.
1111
+ #
1112
+ # The request ID must be a valid UUID with the exception that zero UUID is
1113
+ # not supported (00000000-0000-0000-0000-000000000000).
1114
+ # @param validate_only [::Boolean]
1115
+ # Optional. If set, performs request validation, for example, permission
1116
+ # checks and any other type of validation, but does not actually execute the
1117
+ # create request.
1118
+ #
1119
+ # @yield [response, operation] Access the result along with the RPC operation
1120
+ # @yieldparam response [::Gapic::Operation]
1121
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1122
+ #
1123
+ # @return [::Gapic::Operation]
1124
+ #
1125
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1126
+ #
1127
+ # @example Basic example
1128
+ # require "google/cloud/alloy_db/v1alpha"
1129
+ #
1130
+ # # Create a client object. The client can be reused for multiple calls.
1131
+ # client = Google::Cloud::AlloyDB::V1alpha::AlloyDBAdmin::Client.new
1132
+ #
1133
+ # # Create a request. To set request fields, pass in keyword arguments.
1134
+ # request = Google::Cloud::AlloyDB::V1alpha::SwitchoverClusterRequest.new
1135
+ #
1136
+ # # Call the switchover_cluster method.
1137
+ # result = client.switchover_cluster request
1138
+ #
1139
+ # # The returned object is of type Gapic::Operation. You can use it to
1140
+ # # check the status of an operation, cancel it, or wait for results.
1141
+ # # Here is how to wait for a response.
1142
+ # result.wait_until_done! timeout: 60
1143
+ # if result.response?
1144
+ # p result.response
1145
+ # else
1146
+ # puts "No response received."
1147
+ # end
1148
+ #
1149
+ def switchover_cluster request, options = nil
1150
+ raise ::ArgumentError, "request must be provided" if request.nil?
1151
+
1152
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1alpha::SwitchoverClusterRequest
1153
+
1154
+ # Converts hash and nil to an options object
1155
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1156
+
1157
+ # Customize the options with defaults
1158
+ metadata = @config.rpcs.switchover_cluster.metadata.to_h
1159
+
1160
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1161
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1162
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1163
+ gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1164
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1165
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1166
+
1167
+ header_params = {}
1168
+ if request.name
1169
+ header_params["name"] = request.name
1170
+ end
1171
+
1172
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1173
+ metadata[:"x-goog-request-params"] ||= request_params_header
1174
+
1175
+ options.apply_defaults timeout: @config.rpcs.switchover_cluster.timeout,
1176
+ metadata: metadata,
1177
+ retry_policy: @config.rpcs.switchover_cluster.retry_policy
1178
+
1179
+ options.apply_defaults timeout: @config.timeout,
1180
+ metadata: @config.metadata,
1181
+ retry_policy: @config.retry_policy
1182
+
1183
+ @alloy_db_admin_stub.call_rpc :switchover_cluster, request, options: options do |response, operation|
1184
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1185
+ yield response, operation if block_given?
1186
+ throw :response, response
935
1187
  end
936
1188
  rescue ::GRPC::BadStatus => e
937
1189
  raise ::Google::Cloud::Error.from_error(e)
@@ -971,22 +1223,22 @@ module Google
971
1223
  # Required. The resource being created
972
1224
  # @param request_id [::String]
973
1225
  # Optional. An optional request ID to identify requests. Specify a unique
974
- # request ID so that if you must retry your request, the server will know to
975
- # ignore the request if it has already been completed. The server will
976
- # guarantee that for at least 60 minutes since the first request.
1226
+ # request ID so that if you must retry your request, the server ignores the
1227
+ # request if it has already been completed. The server guarantees that for at
1228
+ # least 60 minutes since the first request.
977
1229
  #
978
1230
  # For example, consider a situation where you make an initial request and
979
1231
  # the request times out. If you make the request again with the same request
980
- # ID, the server can check if original operation with the same request ID
981
- # was received, and if so, will ignore the second request. This prevents
1232
+ # ID, the server can check if the original operation with the same request ID
1233
+ # was received, and if so, ignores the second request. This prevents
982
1234
  # clients from accidentally creating duplicate commitments.
983
1235
  #
984
1236
  # The request ID must be a valid UUID with the exception that zero UUID is
985
1237
  # not supported (00000000-0000-0000-0000-000000000000).
986
1238
  # @param validate_only [::Boolean]
987
- # Optional. If set, performs request validation (e.g. permission checks and
988
- # any other type of validation), but do not actually execute the import
989
- # request.
1239
+ # Optional. If set, performs request validation, for example, permission
1240
+ # checks and any other type of validation, but does not actually execute the
1241
+ # create request.
990
1242
  #
991
1243
  # @yield [response, operation] Access the result along with the RPC operation
992
1244
  # @yieldparam response [::Gapic::Operation]
@@ -1055,7 +1307,7 @@ module Google
1055
1307
  @alloy_db_admin_stub.call_rpc :restore_cluster, request, options: options do |response, operation|
1056
1308
  response = ::Gapic::Operation.new response, @operations_client, options: options
1057
1309
  yield response, operation if block_given?
1058
- return response
1310
+ throw :response, response
1059
1311
  end
1060
1312
  rescue ::GRPC::BadStatus => e
1061
1313
  raise ::Google::Cloud::Error.from_error(e)
@@ -1089,22 +1341,22 @@ module Google
1089
1341
  # Required. Configuration of the requesting object (the secondary cluster).
1090
1342
  # @param request_id [::String]
1091
1343
  # Optional. An optional request ID to identify requests. Specify a unique
1092
- # request ID so that if you must retry your request, the server will know to
1093
- # ignore the request if it has already been completed. The server will
1094
- # guarantee that for at least 60 minutes since the first request.
1344
+ # request ID so that if you must retry your request, the server ignores the
1345
+ # request if it has already been completed. The server guarantees that for at
1346
+ # least 60 minutes since the first request.
1095
1347
  #
1096
1348
  # For example, consider a situation where you make an initial request and
1097
1349
  # the request times out. If you make the request again with the same request
1098
- # ID, the server can check if original operation with the same request ID
1099
- # was received, and if so, will ignore the second request. This prevents
1350
+ # ID, the server can check if the original operation with the same request ID
1351
+ # was received, and if so, ignores the second request. This prevents
1100
1352
  # clients from accidentally creating duplicate commitments.
1101
1353
  #
1102
1354
  # The request ID must be a valid UUID with the exception that zero UUID is
1103
1355
  # not supported (00000000-0000-0000-0000-000000000000).
1104
1356
  # @param validate_only [::Boolean]
1105
- # Optional. If set, performs request validation (e.g. permission checks and
1106
- # any other type of validation), but do not actually execute the create
1107
- # request.
1357
+ # Optional. If set, performs request validation, for example, permission
1358
+ # checks and any other type of validation, but does not actually execute the
1359
+ # create request.
1108
1360
  #
1109
1361
  # @yield [response, operation] Access the result along with the RPC operation
1110
1362
  # @yieldparam response [::Gapic::Operation]
@@ -1173,7 +1425,7 @@ module Google
1173
1425
  @alloy_db_admin_stub.call_rpc :create_secondary_cluster, request, options: options do |response, operation|
1174
1426
  response = ::Gapic::Operation.new response, @operations_client, options: options
1175
1427
  yield response, operation if block_given?
1176
- return response
1428
+ throw :response, response
1177
1429
  end
1178
1430
  rescue ::GRPC::BadStatus => e
1179
1431
  raise ::Google::Cloud::Error.from_error(e)
@@ -1278,7 +1530,7 @@ module Google
1278
1530
  @alloy_db_admin_stub.call_rpc :list_instances, request, options: options do |response, operation|
1279
1531
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_instances, request, response, operation, options
1280
1532
  yield response, operation if block_given?
1281
- return response
1533
+ throw :response, response
1282
1534
  end
1283
1535
  rescue ::GRPC::BadStatus => e
1284
1536
  raise ::Google::Cloud::Error.from_error(e)
@@ -1367,7 +1619,6 @@ module Google
1367
1619
 
1368
1620
  @alloy_db_admin_stub.call_rpc :get_instance, request, options: options do |response, operation|
1369
1621
  yield response, operation if block_given?
1370
- return response
1371
1622
  end
1372
1623
  rescue ::GRPC::BadStatus => e
1373
1624
  raise ::Google::Cloud::Error.from_error(e)
@@ -1400,22 +1651,22 @@ module Google
1400
1651
  # Required. The resource being created
1401
1652
  # @param request_id [::String]
1402
1653
  # Optional. An optional request ID to identify requests. Specify a unique
1403
- # request ID so that if you must retry your request, the server will know to
1404
- # ignore the request if it has already been completed. The server will
1405
- # guarantee that for at least 60 minutes since the first request.
1654
+ # request ID so that if you must retry your request, the server ignores the
1655
+ # request if it has already been completed. The server guarantees that for at
1656
+ # least 60 minutes since the first request.
1406
1657
  #
1407
1658
  # For example, consider a situation where you make an initial request and
1408
1659
  # the request times out. If you make the request again with the same request
1409
- # ID, the server can check if original operation with the same request ID
1410
- # was received, and if so, will ignore the second request. This prevents
1660
+ # ID, the server can check if the original operation with the same request ID
1661
+ # was received, and if so, ignores the second request. This prevents
1411
1662
  # clients from accidentally creating duplicate commitments.
1412
1663
  #
1413
1664
  # The request ID must be a valid UUID with the exception that zero UUID is
1414
1665
  # not supported (00000000-0000-0000-0000-000000000000).
1415
1666
  # @param validate_only [::Boolean]
1416
- # Optional. If set, performs request validation (e.g. permission checks and
1417
- # any other type of validation), but do not actually execute the create
1418
- # request.
1667
+ # Optional. If set, performs request validation, for example, permission
1668
+ # checks and any other type of validation, but does not actually execute the
1669
+ # create request.
1419
1670
  #
1420
1671
  # @yield [response, operation] Access the result along with the RPC operation
1421
1672
  # @yieldparam response [::Gapic::Operation]
@@ -1484,7 +1735,7 @@ module Google
1484
1735
  @alloy_db_admin_stub.call_rpc :create_instance, request, options: options do |response, operation|
1485
1736
  response = ::Gapic::Operation.new response, @operations_client, options: options
1486
1737
  yield response, operation if block_given?
1487
- return response
1738
+ throw :response, response
1488
1739
  end
1489
1740
  rescue ::GRPC::BadStatus => e
1490
1741
  raise ::Google::Cloud::Error.from_error(e)
@@ -1517,22 +1768,22 @@ module Google
1517
1768
  # Required. The resource being created
1518
1769
  # @param request_id [::String]
1519
1770
  # Optional. An optional request ID to identify requests. Specify a unique
1520
- # request ID so that if you must retry your request, the server will know to
1521
- # ignore the request if it has already been completed. The server will
1522
- # guarantee that for at least 60 minutes since the first request.
1771
+ # request ID so that if you must retry your request, the server ignores the
1772
+ # request if it has already been completed. The server guarantees that for at
1773
+ # least 60 minutes since the first request.
1523
1774
  #
1524
1775
  # For example, consider a situation where you make an initial request and
1525
1776
  # the request times out. If you make the request again with the same request
1526
- # ID, the server can check if original operation with the same request ID
1527
- # was received, and if so, will ignore the second request. This prevents
1777
+ # ID, the server can check if the original operation with the same request ID
1778
+ # was received, and if so, ignores the second request. This prevents
1528
1779
  # clients from accidentally creating duplicate commitments.
1529
1780
  #
1530
1781
  # The request ID must be a valid UUID with the exception that zero UUID is
1531
1782
  # not supported (00000000-0000-0000-0000-000000000000).
1532
1783
  # @param validate_only [::Boolean]
1533
- # Optional. If set, performs request validation (e.g. permission checks and
1534
- # any other type of validation), but do not actually execute the create
1535
- # request.
1784
+ # Optional. If set, performs request validation, for example, permission
1785
+ # checks and any other type of validation, but does not actually execute the
1786
+ # create request.
1536
1787
  #
1537
1788
  # @yield [response, operation] Access the result along with the RPC operation
1538
1789
  # @yieldparam response [::Gapic::Operation]
@@ -1601,7 +1852,7 @@ module Google
1601
1852
  @alloy_db_admin_stub.call_rpc :create_secondary_instance, request, options: options do |response, operation|
1602
1853
  response = ::Gapic::Operation.new response, @operations_client, options: options
1603
1854
  yield response, operation if block_given?
1604
- return response
1855
+ throw :response, response
1605
1856
  end
1606
1857
  rescue ::GRPC::BadStatus => e
1607
1858
  raise ::Google::Cloud::Error.from_error(e)
@@ -1640,14 +1891,14 @@ module Google
1640
1891
  # Required. Resources being created.
1641
1892
  # @param request_id [::String]
1642
1893
  # Optional. An optional request ID to identify requests. Specify a unique
1643
- # request ID so that if you must retry your request, the server will know to
1644
- # ignore the request if it has already been completed. The server will
1645
- # guarantee that for at least 60 minutes since the first request.
1894
+ # request ID so that if you must retry your request, the server ignores the
1895
+ # request if it has already been completed. The server guarantees that for at
1896
+ # least 60 minutes since the first request.
1646
1897
  #
1647
1898
  # For example, consider a situation where you make an initial request and
1648
1899
  # the request times out. If you make the request again with the same request
1649
- # ID, the server can check if original operation with the same request ID
1650
- # was received, and if so, will ignore the second request. This prevents
1900
+ # ID, the server can check if the original operation with the same request ID
1901
+ # was received, and if so, ignores the second request. This prevents
1651
1902
  # clients from accidentally creating duplicate commitments.
1652
1903
  #
1653
1904
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -1720,7 +1971,7 @@ module Google
1720
1971
  @alloy_db_admin_stub.call_rpc :batch_create_instances, request, options: options do |response, operation|
1721
1972
  response = ::Gapic::Operation.new response, @operations_client, options: options
1722
1973
  yield response, operation if block_given?
1723
- return response
1974
+ throw :response, response
1724
1975
  end
1725
1976
  rescue ::GRPC::BadStatus => e
1726
1977
  raise ::Google::Cloud::Error.from_error(e)
@@ -1754,22 +2005,22 @@ module Google
1754
2005
  # Required. The resource being updated
1755
2006
  # @param request_id [::String]
1756
2007
  # Optional. An optional request ID to identify requests. Specify a unique
1757
- # request ID so that if you must retry your request, the server will know to
1758
- # ignore the request if it has already been completed. The server will
1759
- # guarantee that for at least 60 minutes since the first request.
2008
+ # request ID so that if you must retry your request, the server ignores the
2009
+ # request if it has already been completed. The server guarantees that for at
2010
+ # least 60 minutes since the first request.
1760
2011
  #
1761
2012
  # For example, consider a situation where you make an initial request and
1762
2013
  # the request times out. If you make the request again with the same request
1763
- # ID, the server can check if original operation with the same request ID
1764
- # was received, and if so, will ignore the second request. This prevents
2014
+ # ID, the server can check if the original operation with the same request ID
2015
+ # was received, and if so, ignores the second request. This prevents
1765
2016
  # clients from accidentally creating duplicate commitments.
1766
2017
  #
1767
2018
  # The request ID must be a valid UUID with the exception that zero UUID is
1768
2019
  # not supported (00000000-0000-0000-0000-000000000000).
1769
2020
  # @param validate_only [::Boolean]
1770
- # Optional. If set, performs request validation (e.g. permission checks and
1771
- # any other type of validation), but do not actually execute the update
1772
- # request.
2021
+ # Optional. If set, performs request validation, for example, permission
2022
+ # checks and any other type of validation, but does not actually execute the
2023
+ # create request.
1773
2024
  # @param allow_missing [::Boolean]
1774
2025
  # Optional. If set to true, update succeeds even if instance is not found. In
1775
2026
  # that case, a new instance is created and `update_mask` is ignored.
@@ -1841,7 +2092,7 @@ module Google
1841
2092
  @alloy_db_admin_stub.call_rpc :update_instance, request, options: options do |response, operation|
1842
2093
  response = ::Gapic::Operation.new response, @operations_client, options: options
1843
2094
  yield response, operation if block_given?
1844
- return response
2095
+ throw :response, response
1845
2096
  end
1846
2097
  rescue ::GRPC::BadStatus => e
1847
2098
  raise ::Google::Cloud::Error.from_error(e)
@@ -1870,14 +2121,14 @@ module Google
1870
2121
  # comment on the Instance.name field.
1871
2122
  # @param request_id [::String]
1872
2123
  # Optional. An optional request ID to identify requests. Specify a unique
1873
- # request ID so that if you must retry your request, the server will know to
1874
- # ignore the request if it has already been completed. The server will
1875
- # guarantee that for at least 60 minutes after the first request.
2124
+ # request ID so that if you must retry your request, the server ignores the
2125
+ # request if it has already been completed. The server guarantees that for at
2126
+ # least 60 minutes since the first request.
1876
2127
  #
1877
2128
  # For example, consider a situation where you make an initial request and
1878
2129
  # the request times out. If you make the request again with the same request
1879
- # ID, the server can check if original operation with the same request ID
1880
- # was received, and if so, will ignore the second request. This prevents
2130
+ # ID, the server can check if the original operation with the same request ID
2131
+ # was received, and if so, ignores the second request. This prevents
1881
2132
  # clients from accidentally creating duplicate commitments.
1882
2133
  #
1883
2134
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -1887,8 +2138,9 @@ module Google
1887
2138
  # If an etag is provided and does not match the current etag of the Instance,
1888
2139
  # deletion will be blocked and an ABORTED error will be returned.
1889
2140
  # @param validate_only [::Boolean]
1890
- # Optional. If set, performs request validation (e.g. permission checks and
1891
- # any other type of validation), but do not actually execute the delete.
2141
+ # Optional. If set, performs request validation, for example, permission
2142
+ # checks and any other type of validation, but does not actually execute the
2143
+ # create request.
1892
2144
  #
1893
2145
  # @yield [response, operation] Access the result along with the RPC operation
1894
2146
  # @yieldparam response [::Gapic::Operation]
@@ -1957,7 +2209,7 @@ module Google
1957
2209
  @alloy_db_admin_stub.call_rpc :delete_instance, request, options: options do |response, operation|
1958
2210
  response = ::Gapic::Operation.new response, @operations_client, options: options
1959
2211
  yield response, operation if block_given?
1960
- return response
2212
+ throw :response, response
1961
2213
  end
1962
2214
  rescue ::GRPC::BadStatus => e
1963
2215
  raise ::Google::Cloud::Error.from_error(e)
@@ -1988,21 +2240,22 @@ module Google
1988
2240
  # comment on the Instance.name field.
1989
2241
  # @param request_id [::String]
1990
2242
  # Optional. An optional request ID to identify requests. Specify a unique
1991
- # request ID so that if you must retry your request, the server will know to
1992
- # ignore the request if it has already been completed. The server will
1993
- # guarantee that for at least 60 minutes after the first request.
2243
+ # request ID so that if you must retry your request, the server ignores the
2244
+ # request if it has already been completed. The server guarantees that for at
2245
+ # least 60 minutes since the first request.
1994
2246
  #
1995
2247
  # For example, consider a situation where you make an initial request and
1996
2248
  # the request times out. If you make the request again with the same request
1997
- # ID, the server can check if original operation with the same request ID
1998
- # was received, and if so, will ignore the second request. This prevents
2249
+ # ID, the server can check if the original operation with the same request ID
2250
+ # was received, and if so, ignores the second request. This prevents
1999
2251
  # clients from accidentally creating duplicate commitments.
2000
2252
  #
2001
2253
  # The request ID must be a valid UUID with the exception that zero UUID is
2002
2254
  # not supported (00000000-0000-0000-0000-000000000000).
2003
2255
  # @param validate_only [::Boolean]
2004
- # Optional. If set, performs request validation (e.g. permission checks and
2005
- # any other type of validation), but do not actually execute the failover.
2256
+ # Optional. If set, performs request validation, for example, permission
2257
+ # checks and any other type of validation, but does not actually execute the
2258
+ # create request.
2006
2259
  #
2007
2260
  # @yield [response, operation] Access the result along with the RPC operation
2008
2261
  # @yieldparam response [::Gapic::Operation]
@@ -2071,7 +2324,7 @@ module Google
2071
2324
  @alloy_db_admin_stub.call_rpc :failover_instance, request, options: options do |response, operation|
2072
2325
  response = ::Gapic::Operation.new response, @operations_client, options: options
2073
2326
  yield response, operation if block_given?
2074
- return response
2327
+ throw :response, response
2075
2328
  end
2076
2329
  rescue ::GRPC::BadStatus => e
2077
2330
  raise ::Google::Cloud::Error.from_error(e)
@@ -2103,22 +2356,22 @@ module Google
2103
2356
  # comment on the Instance.name field.
2104
2357
  # @param request_id [::String]
2105
2358
  # Optional. An optional request ID to identify requests. Specify a unique
2106
- # request ID so that if you must retry your request, the server will know to
2107
- # ignore the request if it has already been completed. The server will
2108
- # guarantee that for at least 60 minutes after the first request.
2359
+ # request ID so that if you must retry your request, the server ignores the
2360
+ # request if it has already been completed. The server guarantees that for at
2361
+ # least 60 minutes since the first request.
2109
2362
  #
2110
2363
  # For example, consider a situation where you make an initial request and
2111
2364
  # the request times out. If you make the request again with the same request
2112
- # ID, the server can check if original operation with the same request ID
2113
- # was received, and if so, will ignore the second request. This prevents
2365
+ # ID, the server can check if the original operation with the same request ID
2366
+ # was received, and if so, ignores the second request. This prevents
2114
2367
  # clients from accidentally creating duplicate commitments.
2115
2368
  #
2116
2369
  # The request ID must be a valid UUID with the exception that zero UUID is
2117
2370
  # not supported (00000000-0000-0000-0000-000000000000).
2118
2371
  # @param validate_only [::Boolean]
2119
- # Optional. If set, performs request validation (e.g. permission checks and
2120
- # any other type of validation), but do not actually execute the fault
2121
- # injection.
2372
+ # Optional. If set, performs request validation, for example, permission
2373
+ # checks and any other type of validation, but does not actually execute the
2374
+ # create request.
2122
2375
  #
2123
2376
  # @yield [response, operation] Access the result along with the RPC operation
2124
2377
  # @yieldparam response [::Gapic::Operation]
@@ -2187,7 +2440,7 @@ module Google
2187
2440
  @alloy_db_admin_stub.call_rpc :inject_fault, request, options: options do |response, operation|
2188
2441
  response = ::Gapic::Operation.new response, @operations_client, options: options
2189
2442
  yield response, operation if block_given?
2190
- return response
2443
+ throw :response, response
2191
2444
  end
2192
2445
  rescue ::GRPC::BadStatus => e
2193
2446
  raise ::Google::Cloud::Error.from_error(e)
@@ -2207,7 +2460,7 @@ module Google
2207
2460
  # @param options [::Gapic::CallOptions, ::Hash]
2208
2461
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2209
2462
  #
2210
- # @overload restart_instance(name: nil, request_id: nil, validate_only: nil)
2463
+ # @overload restart_instance(name: nil, request_id: nil, validate_only: nil, node_ids: nil)
2211
2464
  # Pass arguments to `restart_instance` via keyword arguments. Note that at
2212
2465
  # least one keyword argument is required. To specify no parameters, or to keep all
2213
2466
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2217,21 +2470,25 @@ module Google
2217
2470
  # comment on the Instance.name field.
2218
2471
  # @param request_id [::String]
2219
2472
  # Optional. An optional request ID to identify requests. Specify a unique
2220
- # request ID so that if you must retry your request, the server will know to
2221
- # ignore the request if it has already been completed. The server will
2222
- # guarantee that for at least 60 minutes after the first request.
2473
+ # request ID so that if you must retry your request, the server ignores the
2474
+ # request if it has already been completed. The server guarantees that for at
2475
+ # least 60 minutes since the first request.
2223
2476
  #
2224
2477
  # For example, consider a situation where you make an initial request and
2225
2478
  # the request times out. If you make the request again with the same request
2226
- # ID, the server can check if original operation with the same request ID
2227
- # was received, and if so, will ignore the second request. This prevents
2479
+ # ID, the server can check if the original operation with the same request ID
2480
+ # was received, and if so, ignores the second request. This prevents
2228
2481
  # clients from accidentally creating duplicate commitments.
2229
2482
  #
2230
2483
  # The request ID must be a valid UUID with the exception that zero UUID is
2231
2484
  # not supported (00000000-0000-0000-0000-000000000000).
2232
2485
  # @param validate_only [::Boolean]
2233
- # Optional. If set, performs request validation (e.g. permission checks and
2234
- # any other type of validation), but do not actually execute the restart.
2486
+ # Optional. If set, performs request validation, for example, permission
2487
+ # checks and any other type of validation, but does not actually execute the
2488
+ # create request.
2489
+ # @param node_ids [::Array<::String>]
2490
+ # Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
2491
+ # restart upon. Applicable only to read instances.
2235
2492
  #
2236
2493
  # @yield [response, operation] Access the result along with the RPC operation
2237
2494
  # @yieldparam response [::Gapic::Operation]
@@ -2300,7 +2557,106 @@ module Google
2300
2557
  @alloy_db_admin_stub.call_rpc :restart_instance, request, options: options do |response, operation|
2301
2558
  response = ::Gapic::Operation.new response, @operations_client, options: options
2302
2559
  yield response, operation if block_given?
2303
- return response
2560
+ throw :response, response
2561
+ end
2562
+ rescue ::GRPC::BadStatus => e
2563
+ raise ::Google::Cloud::Error.from_error(e)
2564
+ end
2565
+
2566
+ ##
2567
+ # Executes a SQL statement in a database inside an AlloyDB instance.
2568
+ #
2569
+ # @overload execute_sql(request, options = nil)
2570
+ # Pass arguments to `execute_sql` via a request object, either of type
2571
+ # {::Google::Cloud::AlloyDB::V1alpha::ExecuteSqlRequest} or an equivalent Hash.
2572
+ #
2573
+ # @param request [::Google::Cloud::AlloyDB::V1alpha::ExecuteSqlRequest, ::Hash]
2574
+ # A request object representing the call parameters. Required. To specify no
2575
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2576
+ # @param options [::Gapic::CallOptions, ::Hash]
2577
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2578
+ #
2579
+ # @overload execute_sql(password: nil, instance: nil, database: nil, user: nil, sql_statement: nil)
2580
+ # Pass arguments to `execute_sql` via keyword arguments. Note that at
2581
+ # least one keyword argument is required. To specify no parameters, or to keep all
2582
+ # the default parameter values, pass an empty Hash as a request object (see above).
2583
+ #
2584
+ # @param password [::String]
2585
+ # Optional. The database native user’s password.
2586
+ # @param instance [::String]
2587
+ # Required. The instance where the SQL will be executed. For the required
2588
+ # format, see the comment on the Instance.name field.
2589
+ # @param database [::String]
2590
+ # Required. Name of the database where the query will be executed.
2591
+ # Note - Value provided should be the same as expected from `SELECT
2592
+ # current_database();` and NOT as a resource reference.
2593
+ # @param user [::String]
2594
+ # Required. Database user to be used for executing the SQL.
2595
+ # Note - Value provided should be the same as expected from
2596
+ # `SELECT current_user;` and NOT as a resource reference.
2597
+ # @param sql_statement [::String]
2598
+ # Required. SQL statement to execute on database. Any valid statement is
2599
+ # permitted, including DDL, DML, DQL statements.
2600
+ #
2601
+ # @yield [response, operation] Access the result along with the RPC operation
2602
+ # @yieldparam response [::Google::Cloud::AlloyDB::V1alpha::ExecuteSqlResponse]
2603
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2604
+ #
2605
+ # @return [::Google::Cloud::AlloyDB::V1alpha::ExecuteSqlResponse]
2606
+ #
2607
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2608
+ #
2609
+ # @example Basic example
2610
+ # require "google/cloud/alloy_db/v1alpha"
2611
+ #
2612
+ # # Create a client object. The client can be reused for multiple calls.
2613
+ # client = Google::Cloud::AlloyDB::V1alpha::AlloyDBAdmin::Client.new
2614
+ #
2615
+ # # Create a request. To set request fields, pass in keyword arguments.
2616
+ # request = Google::Cloud::AlloyDB::V1alpha::ExecuteSqlRequest.new
2617
+ #
2618
+ # # Call the execute_sql method.
2619
+ # result = client.execute_sql request
2620
+ #
2621
+ # # The returned object is of type Google::Cloud::AlloyDB::V1alpha::ExecuteSqlResponse.
2622
+ # p result
2623
+ #
2624
+ def execute_sql request, options = nil
2625
+ raise ::ArgumentError, "request must be provided" if request.nil?
2626
+
2627
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1alpha::ExecuteSqlRequest
2628
+
2629
+ # Converts hash and nil to an options object
2630
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2631
+
2632
+ # Customize the options with defaults
2633
+ metadata = @config.rpcs.execute_sql.metadata.to_h
2634
+
2635
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2636
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2637
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2638
+ gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2639
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2640
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2641
+
2642
+ header_params = {}
2643
+ if request.instance
2644
+ header_params["instance"] = request.instance
2645
+ end
2646
+
2647
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2648
+ metadata[:"x-goog-request-params"] ||= request_params_header
2649
+
2650
+ options.apply_defaults timeout: @config.rpcs.execute_sql.timeout,
2651
+ metadata: metadata,
2652
+ retry_policy: @config.rpcs.execute_sql.retry_policy
2653
+
2654
+ options.apply_defaults timeout: @config.timeout,
2655
+ metadata: @config.metadata,
2656
+ retry_policy: @config.retry_policy
2657
+
2658
+ @alloy_db_admin_stub.call_rpc :execute_sql, request, options: options do |response, operation|
2659
+ yield response, operation if block_given?
2304
2660
  end
2305
2661
  rescue ::GRPC::BadStatus => e
2306
2662
  raise ::Google::Cloud::Error.from_error(e)
@@ -2400,7 +2756,7 @@ module Google
2400
2756
  @alloy_db_admin_stub.call_rpc :list_backups, request, options: options do |response, operation|
2401
2757
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_backups, request, response, operation, options
2402
2758
  yield response, operation if block_given?
2403
- return response
2759
+ throw :response, response
2404
2760
  end
2405
2761
  rescue ::GRPC::BadStatus => e
2406
2762
  raise ::Google::Cloud::Error.from_error(e)
@@ -2486,7 +2842,6 @@ module Google
2486
2842
 
2487
2843
  @alloy_db_admin_stub.call_rpc :get_backup, request, options: options do |response, operation|
2488
2844
  yield response, operation if block_given?
2489
- return response
2490
2845
  end
2491
2846
  rescue ::GRPC::BadStatus => e
2492
2847
  raise ::Google::Cloud::Error.from_error(e)
@@ -2518,14 +2873,14 @@ module Google
2518
2873
  # Required. The resource being created
2519
2874
  # @param request_id [::String]
2520
2875
  # Optional. An optional request ID to identify requests. Specify a unique
2521
- # request ID so that if you must retry your request, the server will know to
2522
- # ignore the request if it has already been completed. The server will
2523
- # guarantee that for at least 60 minutes since the first request.
2876
+ # request ID so that if you must retry your request, the server ignores the
2877
+ # request if it has already been completed. The server guarantees that for at
2878
+ # least 60 minutes since the first request.
2524
2879
  #
2525
2880
  # For example, consider a situation where you make an initial request and
2526
2881
  # the request times out. If you make the request again with the same request
2527
- # ID, the server can check if original operation with the same request ID
2528
- # was received, and if so, will ignore the second request. This prevents
2882
+ # ID, the server can check if the original operation with the same request ID
2883
+ # was received, and if so, ignores the second request. This prevents
2529
2884
  # clients from accidentally creating duplicate commitments.
2530
2885
  #
2531
2886
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2601,7 +2956,7 @@ module Google
2601
2956
  @alloy_db_admin_stub.call_rpc :create_backup, request, options: options do |response, operation|
2602
2957
  response = ::Gapic::Operation.new response, @operations_client, options: options
2603
2958
  yield response, operation if block_given?
2604
- return response
2959
+ throw :response, response
2605
2960
  end
2606
2961
  rescue ::GRPC::BadStatus => e
2607
2962
  raise ::Google::Cloud::Error.from_error(e)
@@ -2635,14 +2990,14 @@ module Google
2635
2990
  # Required. The resource being updated
2636
2991
  # @param request_id [::String]
2637
2992
  # Optional. An optional request ID to identify requests. Specify a unique
2638
- # request ID so that if you must retry your request, the server will know to
2639
- # ignore the request if it has already been completed. The server will
2640
- # guarantee that for at least 60 minutes since the first request.
2993
+ # request ID so that if you must retry your request, the server ignores the
2994
+ # request if it has already been completed. The server guarantees that for at
2995
+ # least 60 minutes since the first request.
2641
2996
  #
2642
2997
  # For example, consider a situation where you make an initial request and
2643
2998
  # the request times out. If you make the request again with the same request
2644
- # ID, the server can check if original operation with the same request ID
2645
- # was received, and if so, will ignore the second request. This prevents
2999
+ # ID, the server can check if the original operation with the same request ID
3000
+ # was received, and if so, ignores the second request. This prevents
2646
3001
  # clients from accidentally creating duplicate commitments.
2647
3002
  #
2648
3003
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2721,7 +3076,7 @@ module Google
2721
3076
  @alloy_db_admin_stub.call_rpc :update_backup, request, options: options do |response, operation|
2722
3077
  response = ::Gapic::Operation.new response, @operations_client, options: options
2723
3078
  yield response, operation if block_given?
2724
- return response
3079
+ throw :response, response
2725
3080
  end
2726
3081
  rescue ::GRPC::BadStatus => e
2727
3082
  raise ::Google::Cloud::Error.from_error(e)
@@ -2750,14 +3105,14 @@ module Google
2750
3105
  # the Backup.name field.
2751
3106
  # @param request_id [::String]
2752
3107
  # Optional. An optional request ID to identify requests. Specify a unique
2753
- # request ID so that if you must retry your request, the server will know to
2754
- # ignore the request if it has already been completed. The server will
2755
- # guarantee that for at least 60 minutes after the first request.
3108
+ # request ID so that if you must retry your request, the server ignores the
3109
+ # request if it has already been completed. The server guarantees that for at
3110
+ # least 60 minutes since the first request.
2756
3111
  #
2757
3112
  # For example, consider a situation where you make an initial request and
2758
3113
  # the request times out. If you make the request again with the same request
2759
- # ID, the server can check if original operation with the same request ID
2760
- # was received, and if so, will ignore the second request. This prevents
3114
+ # ID, the server can check if the original operation with the same request ID
3115
+ # was received, and if so, ignores the second request. This prevents
2761
3116
  # clients from accidentally creating duplicate commitments.
2762
3117
  #
2763
3118
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2837,7 +3192,7 @@ module Google
2837
3192
  @alloy_db_admin_stub.call_rpc :delete_backup, request, options: options do |response, operation|
2838
3193
  response = ::Gapic::Operation.new response, @operations_client, options: options
2839
3194
  yield response, operation if block_given?
2840
- return response
3195
+ throw :response, response
2841
3196
  end
2842
3197
  rescue ::GRPC::BadStatus => e
2843
3198
  raise ::Google::Cloud::Error.from_error(e)
@@ -2939,7 +3294,7 @@ module Google
2939
3294
  @alloy_db_admin_stub.call_rpc :list_supported_database_flags, request, options: options do |response, operation|
2940
3295
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_supported_database_flags, request, response, operation, options
2941
3296
  yield response, operation if block_given?
2942
- return response
3297
+ throw :response, response
2943
3298
  end
2944
3299
  rescue ::GRPC::BadStatus => e
2945
3300
  raise ::Google::Cloud::Error.from_error(e)
@@ -2972,14 +3327,14 @@ module Google
2972
3327
  # * projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
2973
3328
  # @param request_id [::String]
2974
3329
  # Optional. An optional request ID to identify requests. Specify a unique
2975
- # request ID so that if you must retry your request, the server will know to
2976
- # ignore the request if it has already been completed. The server will
2977
- # guarantee that for at least 60 minutes after the first request.
3330
+ # request ID so that if you must retry your request, the server ignores the
3331
+ # request if it has already been completed. The server guarantees that for at
3332
+ # least 60 minutes since the first request.
2978
3333
  #
2979
3334
  # For example, consider a situation where you make an initial request and
2980
3335
  # the request times out. If you make the request again with the same request
2981
- # ID, the server can check if original operation with the same request ID
2982
- # was received, and if so, will ignore the second request. This prevents
3336
+ # ID, the server can check if the original operation with the same request ID
3337
+ # was received, and if so, ignores the second request. This prevents
2983
3338
  # clients from accidentally creating duplicate commitments.
2984
3339
  #
2985
3340
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3059,7 +3414,6 @@ module Google
3059
3414
 
3060
3415
  @alloy_db_admin_stub.call_rpc :generate_client_certificate, request, options: options do |response, operation|
3061
3416
  yield response, operation if block_given?
3062
- return response
3063
3417
  end
3064
3418
  rescue ::GRPC::BadStatus => e
3065
3419
  raise ::Google::Cloud::Error.from_error(e)
@@ -3088,14 +3442,14 @@ module Google
3088
3442
  # projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/instances/\\{instance}
3089
3443
  # @param request_id [::String]
3090
3444
  # Optional. An optional request ID to identify requests. Specify a unique
3091
- # request ID so that if you must retry your request, the server will know to
3092
- # ignore the request if it has already been completed. The server will
3093
- # guarantee that for at least 60 minutes after the first request.
3445
+ # request ID so that if you must retry your request, the server ignores the
3446
+ # request if it has already been completed. The server guarantees that for at
3447
+ # least 60 minutes since the first request.
3094
3448
  #
3095
3449
  # For example, consider a situation where you make an initial request and
3096
3450
  # the request times out. If you make the request again with the same request
3097
- # ID, the server can check if original operation with the same request ID
3098
- # was received, and if so, will ignore the second request. This prevents
3451
+ # ID, the server can check if the original operation with the same request ID
3452
+ # was received, and if so, ignores the second request. This prevents
3099
3453
  # clients from accidentally creating duplicate commitments.
3100
3454
  #
3101
3455
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3160,7 +3514,6 @@ module Google
3160
3514
 
3161
3515
  @alloy_db_admin_stub.call_rpc :get_connection_info, request, options: options do |response, operation|
3162
3516
  yield response, operation if block_given?
3163
- return response
3164
3517
  end
3165
3518
  rescue ::GRPC::BadStatus => e
3166
3519
  raise ::Google::Cloud::Error.from_error(e)
@@ -3260,7 +3613,7 @@ module Google
3260
3613
  @alloy_db_admin_stub.call_rpc :list_users, request, options: options do |response, operation|
3261
3614
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_users, request, response, operation, options
3262
3615
  yield response, operation if block_given?
3263
- return response
3616
+ throw :response, response
3264
3617
  end
3265
3618
  rescue ::GRPC::BadStatus => e
3266
3619
  raise ::Google::Cloud::Error.from_error(e)
@@ -3347,7 +3700,6 @@ module Google
3347
3700
 
3348
3701
  @alloy_db_admin_stub.call_rpc :get_user, request, options: options do |response, operation|
3349
3702
  yield response, operation if block_given?
3350
- return response
3351
3703
  end
3352
3704
  rescue ::GRPC::BadStatus => e
3353
3705
  raise ::Google::Cloud::Error.from_error(e)
@@ -3379,14 +3731,14 @@ module Google
3379
3731
  # Required. The resource being created
3380
3732
  # @param request_id [::String]
3381
3733
  # Optional. An optional request ID to identify requests. Specify a unique
3382
- # request ID so that if you must retry your request, the server will know to
3383
- # ignore the request if it has already been completed. The server will
3384
- # guarantee that for at least 60 minutes since the first request.
3734
+ # request ID so that if you must retry your request, the server ignores the
3735
+ # request if it has already been completed. The server guarantees that for at
3736
+ # least 60 minutes since the first request.
3385
3737
  #
3386
3738
  # For example, consider a situation where you make an initial request and
3387
3739
  # the request times out. If you make the request again with the same request
3388
- # ID, the server can check if original operation with the same request ID
3389
- # was received, and if so, will ignore the second request. This prevents
3740
+ # ID, the server can check if the original operation with the same request ID
3741
+ # was received, and if so, ignores the second request. This prevents
3390
3742
  # clients from accidentally creating duplicate commitments.
3391
3743
  #
3392
3744
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3454,7 +3806,6 @@ module Google
3454
3806
 
3455
3807
  @alloy_db_admin_stub.call_rpc :create_user, request, options: options do |response, operation|
3456
3808
  yield response, operation if block_given?
3457
- return response
3458
3809
  end
3459
3810
  rescue ::GRPC::BadStatus => e
3460
3811
  raise ::Google::Cloud::Error.from_error(e)
@@ -3488,14 +3839,14 @@ module Google
3488
3839
  # Required. The resource being updated
3489
3840
  # @param request_id [::String]
3490
3841
  # Optional. An optional request ID to identify requests. Specify a unique
3491
- # request ID so that if you must retry your request, the server will know to
3492
- # ignore the request if it has already been completed. The server will
3493
- # guarantee that for at least 60 minutes since the first request.
3842
+ # request ID so that if you must retry your request, the server ignores the
3843
+ # request if it has already been completed. The server guarantees that for at
3844
+ # least 60 minutes since the first request.
3494
3845
  #
3495
3846
  # For example, consider a situation where you make an initial request and
3496
3847
  # the request times out. If you make the request again with the same request
3497
- # ID, the server can check if original operation with the same request ID
3498
- # was received, and if so, will ignore the second request. This prevents
3848
+ # ID, the server can check if the original operation with the same request ID
3849
+ # was received, and if so, ignores the second request. This prevents
3499
3850
  # clients from accidentally creating duplicate commitments.
3500
3851
  #
3501
3852
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3565,7 +3916,6 @@ module Google
3565
3916
 
3566
3917
  @alloy_db_admin_stub.call_rpc :update_user, request, options: options do |response, operation|
3567
3918
  yield response, operation if block_given?
3568
- return response
3569
3919
  end
3570
3920
  rescue ::GRPC::BadStatus => e
3571
3921
  raise ::Google::Cloud::Error.from_error(e)
@@ -3594,14 +3944,14 @@ module Google
3594
3944
  # comment on the User.name field.
3595
3945
  # @param request_id [::String]
3596
3946
  # Optional. An optional request ID to identify requests. Specify a unique
3597
- # request ID so that if you must retry your request, the server will know to
3598
- # ignore the request if it has already been completed. The server will
3599
- # guarantee that for at least 60 minutes after the first request.
3947
+ # request ID so that if you must retry your request, the server ignores the
3948
+ # request if it has already been completed. The server guarantees that for at
3949
+ # least 60 minutes since the first request.
3600
3950
  #
3601
3951
  # For example, consider a situation where you make an initial request and
3602
3952
  # the request times out. If you make the request again with the same request
3603
- # ID, the server can check if original operation with the same request ID
3604
- # was received, and if so, will ignore the second request. This prevents
3953
+ # ID, the server can check if the original operation with the same request ID
3954
+ # was received, and if so, ignores the second request. This prevents
3605
3955
  # clients from accidentally creating duplicate commitments.
3606
3956
  #
3607
3957
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3669,7 +4019,6 @@ module Google
3669
4019
 
3670
4020
  @alloy_db_admin_stub.call_rpc :delete_user, request, options: options do |response, operation|
3671
4021
  yield response, operation if block_given?
3672
- return response
3673
4022
  end
3674
4023
  rescue ::GRPC::BadStatus => e
3675
4024
  raise ::Google::Cloud::Error.from_error(e)
@@ -3697,9 +4046,9 @@ module Google
3697
4046
  # Required. Parent value for ListDatabasesRequest.
3698
4047
  # @param page_size [::Integer]
3699
4048
  # Optional. The maximum number of databases to return. The service may return
3700
- # fewer than this value. If unspecified, an appropriate number of databases
3701
- # will be returned. The max value will be 2000, values above max will be
3702
- # coerced to max.
4049
+ # fewer than this value. If unspecified, 2000 is the default page_size. The
4050
+ # max value of page_size will be 4000, values above max will be coerced to
4051
+ # max.
3703
4052
  # @param page_token [::String]
3704
4053
  # Optional. A page token, received from a previous `ListDatabases` call.
3705
4054
  # This should be provided to retrieve the subsequent page.
@@ -3772,7 +4121,7 @@ module Google
3772
4121
  @alloy_db_admin_stub.call_rpc :list_databases, request, options: options do |response, operation|
3773
4122
  response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_databases, request, response, operation, options
3774
4123
  yield response, operation if block_given?
3775
- return response
4124
+ throw :response, response
3776
4125
  end
3777
4126
  rescue ::GRPC::BadStatus => e
3778
4127
  raise ::Google::Cloud::Error.from_error(e)
@@ -3861,6 +4210,11 @@ module Google
3861
4210
  # default endpoint URL. The default value of nil uses the environment
3862
4211
  # universe (usually the default "googleapis.com" universe).
3863
4212
  # @return [::String,nil]
4213
+ # @!attribute [rw] logger
4214
+ # A custom logger to use for request/response debug logging, or the value
4215
+ # `:default` (the default) to construct a default logger, or `nil` to
4216
+ # explicitly disable logging.
4217
+ # @return [::Logger,:default,nil]
3864
4218
  #
3865
4219
  class Configuration
3866
4220
  extend ::Gapic::Config
@@ -3885,6 +4239,7 @@ module Google
3885
4239
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3886
4240
  config_attr :quota_project, nil, ::String, nil
3887
4241
  config_attr :universe_domain, nil, ::String, nil
4242
+ config_attr :logger, :default, ::Logger, nil, :default
3888
4243
 
3889
4244
  # @private
3890
4245
  def initialize parent_config = nil
@@ -3952,6 +4307,11 @@ module Google
3952
4307
  #
3953
4308
  attr_reader :update_cluster
3954
4309
  ##
4310
+ # RPC-specific configuration for `upgrade_cluster`
4311
+ # @return [::Gapic::Config::Method]
4312
+ #
4313
+ attr_reader :upgrade_cluster
4314
+ ##
3955
4315
  # RPC-specific configuration for `delete_cluster`
3956
4316
  # @return [::Gapic::Config::Method]
3957
4317
  #
@@ -3962,6 +4322,11 @@ module Google
3962
4322
  #
3963
4323
  attr_reader :promote_cluster
3964
4324
  ##
4325
+ # RPC-specific configuration for `switchover_cluster`
4326
+ # @return [::Gapic::Config::Method]
4327
+ #
4328
+ attr_reader :switchover_cluster
4329
+ ##
3965
4330
  # RPC-specific configuration for `restore_cluster`
3966
4331
  # @return [::Gapic::Config::Method]
3967
4332
  #
@@ -4022,6 +4387,11 @@ module Google
4022
4387
  #
4023
4388
  attr_reader :restart_instance
4024
4389
  ##
4390
+ # RPC-specific configuration for `execute_sql`
4391
+ # @return [::Gapic::Config::Method]
4392
+ #
4393
+ attr_reader :execute_sql
4394
+ ##
4025
4395
  # RPC-specific configuration for `list_backups`
4026
4396
  # @return [::Gapic::Config::Method]
4027
4397
  #
@@ -4102,10 +4472,14 @@ module Google
4102
4472
  @create_cluster = ::Gapic::Config::Method.new create_cluster_config
4103
4473
  update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
4104
4474
  @update_cluster = ::Gapic::Config::Method.new update_cluster_config
4475
+ upgrade_cluster_config = parent_rpcs.upgrade_cluster if parent_rpcs.respond_to? :upgrade_cluster
4476
+ @upgrade_cluster = ::Gapic::Config::Method.new upgrade_cluster_config
4105
4477
  delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
4106
4478
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
4107
4479
  promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
4108
4480
  @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
4481
+ switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
4482
+ @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
4109
4483
  restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
4110
4484
  @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
4111
4485
  create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
@@ -4130,6 +4504,8 @@ module Google
4130
4504
  @inject_fault = ::Gapic::Config::Method.new inject_fault_config
4131
4505
  restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
4132
4506
  @restart_instance = ::Gapic::Config::Method.new restart_instance_config
4507
+ execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
4508
+ @execute_sql = ::Gapic::Config::Method.new execute_sql_config
4133
4509
  list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
4134
4510
  @list_backups = ::Gapic::Config::Method.new list_backups_config
4135
4511
  get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup