google-cloud-alloy_db-v1beta 0.8.1 → 0.10.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.
@@ -489,22 +489,22 @@ module Google
489
489
  # Required. The resource being created
490
490
  # @param request_id [::String]
491
491
  # 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.
492
+ # request ID so that if you must retry your request, the server ignores the
493
+ # request if it has already been completed. The server guarantees that for at
494
+ # least 60 minutes since the first request.
495
495
  #
496
496
  # For example, consider a situation where you make an initial request and
497
497
  # 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
498
+ # ID, the server can check if the original operation with the same request ID
499
+ # was received, and if so, ignores the second request. This prevents
500
500
  # clients from accidentally creating duplicate commitments.
501
501
  #
502
502
  # The request ID must be a valid UUID with the exception that zero UUID is
503
503
  # not supported (00000000-0000-0000-0000-000000000000).
504
504
  # @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.
505
+ # Optional. If set, performs request validation, for example, permission
506
+ # checks and any other type of validation, but does not actually execute the
507
+ # create request.
508
508
  #
509
509
  # @yield [response, operation] Access the result along with the RPC operation
510
510
  # @yieldparam response [::Gapic::Operation]
@@ -607,22 +607,22 @@ module Google
607
607
  # Required. The resource being updated
608
608
  # @param request_id [::String]
609
609
  # 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.
610
+ # request ID so that if you must retry your request, the server ignores the
611
+ # request if it has already been completed. The server guarantees that for at
612
+ # least 60 minutes since the first request.
613
613
  #
614
614
  # For example, consider a situation where you make an initial request and
615
615
  # 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
616
+ # ID, the server can check if the original operation with the same request ID
617
+ # was received, and if so, ignores the second request. This prevents
618
618
  # clients from accidentally creating duplicate commitments.
619
619
  #
620
620
  # The request ID must be a valid UUID with the exception that zero UUID is
621
621
  # not supported (00000000-0000-0000-0000-000000000000).
622
622
  # @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.
623
+ # Optional. If set, performs request validation, for example, permission
624
+ # checks and any other type of validation, but does not actually execute the
625
+ # create request.
626
626
  # @param allow_missing [::Boolean]
627
627
  # Optional. If set to true, update succeeds even if cluster is not found. In
628
628
  # that case, a new cluster is created and `update_mask` is ignored.
@@ -700,6 +700,125 @@ module Google
700
700
  raise ::Google::Cloud::Error.from_error(e)
701
701
  end
702
702
 
703
+ ##
704
+ # Upgrades a single Cluster.
705
+ # Imperative only.
706
+ #
707
+ # @overload upgrade_cluster(request, options = nil)
708
+ # Pass arguments to `upgrade_cluster` via a request object, either of type
709
+ # {::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest} or an equivalent Hash.
710
+ #
711
+ # @param request [::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest, ::Hash]
712
+ # A request object representing the call parameters. Required. To specify no
713
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
714
+ # @param options [::Gapic::CallOptions, ::Hash]
715
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
716
+ #
717
+ # @overload upgrade_cluster(name: nil, version: nil, request_id: nil, validate_only: nil, etag: nil)
718
+ # Pass arguments to `upgrade_cluster` via keyword arguments. Note that at
719
+ # least one keyword argument is required. To specify no parameters, or to keep all
720
+ # the default parameter values, pass an empty Hash as a request object (see above).
721
+ #
722
+ # @param name [::String]
723
+ # Required. The resource name of the cluster.
724
+ # @param version [::Google::Cloud::AlloyDB::V1beta::DatabaseVersion]
725
+ # Required. The version the cluster is going to be upgraded to.
726
+ # @param request_id [::String]
727
+ # Optional. An optional request ID to identify requests. Specify a unique
728
+ # request ID so that if you must retry your request, the server ignores the
729
+ # request if it has already been completed. The server guarantees that for at
730
+ # least 60 minutes since the first request.
731
+ #
732
+ # For example, consider a situation where you make an initial request and
733
+ # the request times out. If you make the request again with the same request
734
+ # ID, the server can check if the original operation with the same request ID
735
+ # was received, and if so, ignores the second request. This prevents
736
+ # clients from accidentally creating duplicate commitments.
737
+ #
738
+ # The request ID must be a valid UUID with the exception that zero UUID is
739
+ # not supported (00000000-0000-0000-0000-000000000000).
740
+ # @param validate_only [::Boolean]
741
+ # Optional. If set, performs request validation, for example, permission
742
+ # checks and any other type of validation, but does not actually execute the
743
+ # create request.
744
+ # @param etag [::String]
745
+ # Optional. The current etag of the Cluster.
746
+ # If an etag is provided and does not match the current etag of the Cluster,
747
+ # upgrade will be blocked and an ABORTED error will be returned.
748
+ #
749
+ # @yield [response, operation] Access the result along with the RPC operation
750
+ # @yieldparam response [::Gapic::Operation]
751
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
752
+ #
753
+ # @return [::Gapic::Operation]
754
+ #
755
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
756
+ #
757
+ # @example Basic example
758
+ # require "google/cloud/alloy_db/v1beta"
759
+ #
760
+ # # Create a client object. The client can be reused for multiple calls.
761
+ # client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Client.new
762
+ #
763
+ # # Create a request. To set request fields, pass in keyword arguments.
764
+ # request = Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest.new
765
+ #
766
+ # # Call the upgrade_cluster method.
767
+ # result = client.upgrade_cluster request
768
+ #
769
+ # # The returned object is of type Gapic::Operation. You can use it to
770
+ # # check the status of an operation, cancel it, or wait for results.
771
+ # # Here is how to wait for a response.
772
+ # result.wait_until_done! timeout: 60
773
+ # if result.response?
774
+ # p result.response
775
+ # else
776
+ # puts "No response received."
777
+ # end
778
+ #
779
+ def upgrade_cluster request, options = nil
780
+ raise ::ArgumentError, "request must be provided" if request.nil?
781
+
782
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest
783
+
784
+ # Converts hash and nil to an options object
785
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
786
+
787
+ # Customize the options with defaults
788
+ metadata = @config.rpcs.upgrade_cluster.metadata.to_h
789
+
790
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
791
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
792
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
793
+ gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
794
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
795
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
796
+
797
+ header_params = {}
798
+ if request.name
799
+ header_params["name"] = request.name
800
+ end
801
+
802
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
803
+ metadata[:"x-goog-request-params"] ||= request_params_header
804
+
805
+ options.apply_defaults timeout: @config.rpcs.upgrade_cluster.timeout,
806
+ metadata: metadata,
807
+ retry_policy: @config.rpcs.upgrade_cluster.retry_policy
808
+
809
+ options.apply_defaults timeout: @config.timeout,
810
+ metadata: @config.metadata,
811
+ retry_policy: @config.retry_policy
812
+
813
+ @alloy_db_admin_stub.call_rpc :upgrade_cluster, request, options: options do |response, operation|
814
+ response = ::Gapic::Operation.new response, @operations_client, options: options
815
+ yield response, operation if block_given?
816
+ return response
817
+ end
818
+ rescue ::GRPC::BadStatus => e
819
+ raise ::Google::Cloud::Error.from_error(e)
820
+ end
821
+
703
822
  ##
704
823
  # Deletes a single Cluster.
705
824
  #
@@ -723,14 +842,14 @@ module Google
723
842
  # comment on the Cluster.name field.
724
843
  # @param request_id [::String]
725
844
  # 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.
845
+ # request ID so that if you must retry your request, the server ignores the
846
+ # request if it has already been completed. The server guarantees that for at
847
+ # least 60 minutes since the first request.
729
848
  #
730
849
  # For example, consider a situation where you make an initial request and
731
850
  # 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
851
+ # ID, the server can check if the original operation with the same request ID
852
+ # was received, and if so, ignores the second request. This prevents
734
853
  # clients from accidentally creating duplicate commitments.
735
854
  #
736
855
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -740,8 +859,9 @@ module Google
740
859
  # If an etag is provided and does not match the current etag of the Cluster,
741
860
  # deletion will be blocked and an ABORTED error will be returned.
742
861
  # @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.
862
+ # Optional. If set, performs request validation, for example, permission
863
+ # checks and any other type of validation, but does not actually execute the
864
+ # create request.
745
865
  # @param force [::Boolean]
746
866
  # Optional. Whether to cascade delete child instances for given cluster.
747
867
  #
@@ -844,9 +964,9 @@ module Google
844
964
  # comment on the Cluster.name field
845
965
  # @param request_id [::String]
846
966
  # 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.
967
+ # request ID so that if you must retry your request, the server ignores the
968
+ # request if it has already been completed. The server guarantees that for at
969
+ # least 60 minutes since the first request.
850
970
  #
851
971
  # For example, consider a situation where you make an initial request and
852
972
  # the request times out. If you make the request again with the same request
@@ -861,8 +981,9 @@ module Google
861
981
  # If an etag is provided and does not match the current etag of the Cluster,
862
982
  # deletion will be blocked and an ABORTED error will be returned.
863
983
  # @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.
984
+ # Optional. If set, performs request validation, for example, permission
985
+ # checks and any other type of validation, but does not actually execute the
986
+ # create request.
866
987
  #
867
988
  # @yield [response, operation] Access the result along with the RPC operation
868
989
  # @yieldparam response [::Gapic::Operation]
@@ -937,6 +1058,121 @@ module Google
937
1058
  raise ::Google::Cloud::Error.from_error(e)
938
1059
  end
939
1060
 
1061
+ ##
1062
+ # Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
1063
+ # This promotes the SECONDARY cluster to PRIMARY and sets up the original
1064
+ # PRIMARY cluster to replicate from this newly promoted cluster.
1065
+ #
1066
+ # @overload switchover_cluster(request, options = nil)
1067
+ # Pass arguments to `switchover_cluster` via a request object, either of type
1068
+ # {::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest} or an equivalent Hash.
1069
+ #
1070
+ # @param request [::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest, ::Hash]
1071
+ # A request object representing the call parameters. Required. To specify no
1072
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1073
+ # @param options [::Gapic::CallOptions, ::Hash]
1074
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1075
+ #
1076
+ # @overload switchover_cluster(name: nil, request_id: nil, validate_only: nil)
1077
+ # Pass arguments to `switchover_cluster` via keyword arguments. Note that at
1078
+ # least one keyword argument is required. To specify no parameters, or to keep all
1079
+ # the default parameter values, pass an empty Hash as a request object (see above).
1080
+ #
1081
+ # @param name [::String]
1082
+ # Required. The name of the resource. For the required format, see the
1083
+ # comment on the Cluster.name field
1084
+ # @param request_id [::String]
1085
+ # Optional. An optional request ID to identify requests. Specify a unique
1086
+ # request ID so that if you must retry your request, the server ignores the
1087
+ # request if it has already been completed. The server guarantees that for at
1088
+ # least 60 minutes since the first request.
1089
+ #
1090
+ # For example, consider a situation where you make an initial request and
1091
+ # the request times out. If you make the request again with the same request
1092
+ # ID, the server can check if the original operation with the same request ID
1093
+ # was received, and if so, ignores the second request. This prevents
1094
+ # clients from accidentally creating duplicate commitments.
1095
+ #
1096
+ # The request ID must be a valid UUID with the exception that zero UUID is
1097
+ # not supported (00000000-0000-0000-0000-000000000000).
1098
+ # @param validate_only [::Boolean]
1099
+ # Optional. If set, performs request validation, for example, permission
1100
+ # checks and any other type of validation, but does not actually execute the
1101
+ # create request.
1102
+ #
1103
+ # @yield [response, operation] Access the result along with the RPC operation
1104
+ # @yieldparam response [::Gapic::Operation]
1105
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1106
+ #
1107
+ # @return [::Gapic::Operation]
1108
+ #
1109
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1110
+ #
1111
+ # @example Basic example
1112
+ # require "google/cloud/alloy_db/v1beta"
1113
+ #
1114
+ # # Create a client object. The client can be reused for multiple calls.
1115
+ # client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Client.new
1116
+ #
1117
+ # # Create a request. To set request fields, pass in keyword arguments.
1118
+ # request = Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest.new
1119
+ #
1120
+ # # Call the switchover_cluster method.
1121
+ # result = client.switchover_cluster request
1122
+ #
1123
+ # # The returned object is of type Gapic::Operation. You can use it to
1124
+ # # check the status of an operation, cancel it, or wait for results.
1125
+ # # Here is how to wait for a response.
1126
+ # result.wait_until_done! timeout: 60
1127
+ # if result.response?
1128
+ # p result.response
1129
+ # else
1130
+ # puts "No response received."
1131
+ # end
1132
+ #
1133
+ def switchover_cluster request, options = nil
1134
+ raise ::ArgumentError, "request must be provided" if request.nil?
1135
+
1136
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest
1137
+
1138
+ # Converts hash and nil to an options object
1139
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1140
+
1141
+ # Customize the options with defaults
1142
+ metadata = @config.rpcs.switchover_cluster.metadata.to_h
1143
+
1144
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1145
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1146
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1147
+ gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1148
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1149
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1150
+
1151
+ header_params = {}
1152
+ if request.name
1153
+ header_params["name"] = request.name
1154
+ end
1155
+
1156
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1157
+ metadata[:"x-goog-request-params"] ||= request_params_header
1158
+
1159
+ options.apply_defaults timeout: @config.rpcs.switchover_cluster.timeout,
1160
+ metadata: metadata,
1161
+ retry_policy: @config.rpcs.switchover_cluster.retry_policy
1162
+
1163
+ options.apply_defaults timeout: @config.timeout,
1164
+ metadata: @config.metadata,
1165
+ retry_policy: @config.retry_policy
1166
+
1167
+ @alloy_db_admin_stub.call_rpc :switchover_cluster, request, options: options do |response, operation|
1168
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1169
+ yield response, operation if block_given?
1170
+ return response
1171
+ end
1172
+ rescue ::GRPC::BadStatus => e
1173
+ raise ::Google::Cloud::Error.from_error(e)
1174
+ end
1175
+
940
1176
  ##
941
1177
  # Creates a new Cluster in a given project and location, with a volume
942
1178
  # restored from the provided source, either a backup ID or a point-in-time
@@ -971,22 +1207,22 @@ module Google
971
1207
  # Required. The resource being created
972
1208
  # @param request_id [::String]
973
1209
  # 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.
1210
+ # request ID so that if you must retry your request, the server ignores the
1211
+ # request if it has already been completed. The server guarantees that for at
1212
+ # least 60 minutes since the first request.
977
1213
  #
978
1214
  # For example, consider a situation where you make an initial request and
979
1215
  # 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
1216
+ # ID, the server can check if the original operation with the same request ID
1217
+ # was received, and if so, ignores the second request. This prevents
982
1218
  # clients from accidentally creating duplicate commitments.
983
1219
  #
984
1220
  # The request ID must be a valid UUID with the exception that zero UUID is
985
1221
  # not supported (00000000-0000-0000-0000-000000000000).
986
1222
  # @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.
1223
+ # Optional. If set, performs request validation, for example, permission
1224
+ # checks and any other type of validation, but does not actually execute the
1225
+ # create request.
990
1226
  #
991
1227
  # @yield [response, operation] Access the result along with the RPC operation
992
1228
  # @yieldparam response [::Gapic::Operation]
@@ -1089,22 +1325,22 @@ module Google
1089
1325
  # Required. Configuration of the requesting object (the secondary cluster).
1090
1326
  # @param request_id [::String]
1091
1327
  # 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.
1328
+ # request ID so that if you must retry your request, the server ignores the
1329
+ # request if it has already been completed. The server guarantees that for at
1330
+ # least 60 minutes since the first request.
1095
1331
  #
1096
1332
  # For example, consider a situation where you make an initial request and
1097
1333
  # 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
1334
+ # ID, the server can check if the original operation with the same request ID
1335
+ # was received, and if so, ignores the second request. This prevents
1100
1336
  # clients from accidentally creating duplicate commitments.
1101
1337
  #
1102
1338
  # The request ID must be a valid UUID with the exception that zero UUID is
1103
1339
  # not supported (00000000-0000-0000-0000-000000000000).
1104
1340
  # @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.
1341
+ # Optional. If set, performs request validation, for example, permission
1342
+ # checks and any other type of validation, but does not actually execute the
1343
+ # create request.
1108
1344
  #
1109
1345
  # @yield [response, operation] Access the result along with the RPC operation
1110
1346
  # @yieldparam response [::Gapic::Operation]
@@ -1400,22 +1636,22 @@ module Google
1400
1636
  # Required. The resource being created
1401
1637
  # @param request_id [::String]
1402
1638
  # 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.
1639
+ # request ID so that if you must retry your request, the server ignores the
1640
+ # request if it has already been completed. The server guarantees that for at
1641
+ # least 60 minutes since the first request.
1406
1642
  #
1407
1643
  # For example, consider a situation where you make an initial request and
1408
1644
  # 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
1645
+ # ID, the server can check if the original operation with the same request ID
1646
+ # was received, and if so, ignores the second request. This prevents
1411
1647
  # clients from accidentally creating duplicate commitments.
1412
1648
  #
1413
1649
  # The request ID must be a valid UUID with the exception that zero UUID is
1414
1650
  # not supported (00000000-0000-0000-0000-000000000000).
1415
1651
  # @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.
1652
+ # Optional. If set, performs request validation, for example, permission
1653
+ # checks and any other type of validation, but does not actually execute the
1654
+ # create request.
1419
1655
  #
1420
1656
  # @yield [response, operation] Access the result along with the RPC operation
1421
1657
  # @yieldparam response [::Gapic::Operation]
@@ -1517,22 +1753,22 @@ module Google
1517
1753
  # Required. The resource being created
1518
1754
  # @param request_id [::String]
1519
1755
  # 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.
1756
+ # request ID so that if you must retry your request, the server ignores the
1757
+ # request if it has already been completed. The server guarantees that for at
1758
+ # least 60 minutes since the first request.
1523
1759
  #
1524
1760
  # For example, consider a situation where you make an initial request and
1525
1761
  # 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
1762
+ # ID, the server can check if the original operation with the same request ID
1763
+ # was received, and if so, ignores the second request. This prevents
1528
1764
  # clients from accidentally creating duplicate commitments.
1529
1765
  #
1530
1766
  # The request ID must be a valid UUID with the exception that zero UUID is
1531
1767
  # not supported (00000000-0000-0000-0000-000000000000).
1532
1768
  # @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.
1769
+ # Optional. If set, performs request validation, for example, permission
1770
+ # checks and any other type of validation, but does not actually execute the
1771
+ # create request.
1536
1772
  #
1537
1773
  # @yield [response, operation] Access the result along with the RPC operation
1538
1774
  # @yieldparam response [::Gapic::Operation]
@@ -1640,14 +1876,14 @@ module Google
1640
1876
  # Required. Resources being created.
1641
1877
  # @param request_id [::String]
1642
1878
  # 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.
1879
+ # request ID so that if you must retry your request, the server ignores the
1880
+ # request if it has already been completed. The server guarantees that for at
1881
+ # least 60 minutes since the first request.
1646
1882
  #
1647
1883
  # For example, consider a situation where you make an initial request and
1648
1884
  # 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
1885
+ # ID, the server can check if the original operation with the same request ID
1886
+ # was received, and if so, ignores the second request. This prevents
1651
1887
  # clients from accidentally creating duplicate commitments.
1652
1888
  #
1653
1889
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -1754,22 +1990,22 @@ module Google
1754
1990
  # Required. The resource being updated
1755
1991
  # @param request_id [::String]
1756
1992
  # 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.
1993
+ # request ID so that if you must retry your request, the server ignores the
1994
+ # request if it has already been completed. The server guarantees that for at
1995
+ # least 60 minutes since the first request.
1760
1996
  #
1761
1997
  # For example, consider a situation where you make an initial request and
1762
1998
  # 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
1999
+ # ID, the server can check if the original operation with the same request ID
2000
+ # was received, and if so, ignores the second request. This prevents
1765
2001
  # clients from accidentally creating duplicate commitments.
1766
2002
  #
1767
2003
  # The request ID must be a valid UUID with the exception that zero UUID is
1768
2004
  # not supported (00000000-0000-0000-0000-000000000000).
1769
2005
  # @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.
2006
+ # Optional. If set, performs request validation, for example, permission
2007
+ # checks and any other type of validation, but does not actually execute the
2008
+ # create request.
1773
2009
  # @param allow_missing [::Boolean]
1774
2010
  # Optional. If set to true, update succeeds even if instance is not found. In
1775
2011
  # that case, a new instance is created and `update_mask` is ignored.
@@ -1870,14 +2106,14 @@ module Google
1870
2106
  # comment on the Instance.name field.
1871
2107
  # @param request_id [::String]
1872
2108
  # 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.
2109
+ # request ID so that if you must retry your request, the server ignores the
2110
+ # request if it has already been completed. The server guarantees that for at
2111
+ # least 60 minutes since the first request.
1876
2112
  #
1877
2113
  # For example, consider a situation where you make an initial request and
1878
2114
  # 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
2115
+ # ID, the server can check if the original operation with the same request ID
2116
+ # was received, and if so, ignores the second request. This prevents
1881
2117
  # clients from accidentally creating duplicate commitments.
1882
2118
  #
1883
2119
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -1887,8 +2123,9 @@ module Google
1887
2123
  # If an etag is provided and does not match the current etag of the Instance,
1888
2124
  # deletion will be blocked and an ABORTED error will be returned.
1889
2125
  # @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.
2126
+ # Optional. If set, performs request validation, for example, permission
2127
+ # checks and any other type of validation, but does not actually execute the
2128
+ # create request.
1892
2129
  #
1893
2130
  # @yield [response, operation] Access the result along with the RPC operation
1894
2131
  # @yieldparam response [::Gapic::Operation]
@@ -1988,21 +2225,22 @@ module Google
1988
2225
  # comment on the Instance.name field.
1989
2226
  # @param request_id [::String]
1990
2227
  # 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.
2228
+ # request ID so that if you must retry your request, the server ignores the
2229
+ # request if it has already been completed. The server guarantees that for at
2230
+ # least 60 minutes since the first request.
1994
2231
  #
1995
2232
  # For example, consider a situation where you make an initial request and
1996
2233
  # 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
2234
+ # ID, the server can check if the original operation with the same request ID
2235
+ # was received, and if so, ignores the second request. This prevents
1999
2236
  # clients from accidentally creating duplicate commitments.
2000
2237
  #
2001
2238
  # The request ID must be a valid UUID with the exception that zero UUID is
2002
2239
  # not supported (00000000-0000-0000-0000-000000000000).
2003
2240
  # @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.
2241
+ # Optional. If set, performs request validation, for example, permission
2242
+ # checks and any other type of validation, but does not actually execute the
2243
+ # create request.
2006
2244
  #
2007
2245
  # @yield [response, operation] Access the result along with the RPC operation
2008
2246
  # @yieldparam response [::Gapic::Operation]
@@ -2103,22 +2341,22 @@ module Google
2103
2341
  # comment on the Instance.name field.
2104
2342
  # @param request_id [::String]
2105
2343
  # 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.
2344
+ # request ID so that if you must retry your request, the server ignores the
2345
+ # request if it has already been completed. The server guarantees that for at
2346
+ # least 60 minutes since the first request.
2109
2347
  #
2110
2348
  # For example, consider a situation where you make an initial request and
2111
2349
  # 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
2350
+ # ID, the server can check if the original operation with the same request ID
2351
+ # was received, and if so, ignores the second request. This prevents
2114
2352
  # clients from accidentally creating duplicate commitments.
2115
2353
  #
2116
2354
  # The request ID must be a valid UUID with the exception that zero UUID is
2117
2355
  # not supported (00000000-0000-0000-0000-000000000000).
2118
2356
  # @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.
2357
+ # Optional. If set, performs request validation, for example, permission
2358
+ # checks and any other type of validation, but does not actually execute the
2359
+ # create request.
2122
2360
  #
2123
2361
  # @yield [response, operation] Access the result along with the RPC operation
2124
2362
  # @yieldparam response [::Gapic::Operation]
@@ -2207,7 +2445,7 @@ module Google
2207
2445
  # @param options [::Gapic::CallOptions, ::Hash]
2208
2446
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2209
2447
  #
2210
- # @overload restart_instance(name: nil, request_id: nil, validate_only: nil)
2448
+ # @overload restart_instance(name: nil, request_id: nil, validate_only: nil, node_ids: nil)
2211
2449
  # Pass arguments to `restart_instance` via keyword arguments. Note that at
2212
2450
  # least one keyword argument is required. To specify no parameters, or to keep all
2213
2451
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -2217,21 +2455,25 @@ module Google
2217
2455
  # comment on the Instance.name field.
2218
2456
  # @param request_id [::String]
2219
2457
  # 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.
2458
+ # request ID so that if you must retry your request, the server ignores the
2459
+ # request if it has already been completed. The server guarantees that for at
2460
+ # least 60 minutes since the first request.
2223
2461
  #
2224
2462
  # For example, consider a situation where you make an initial request and
2225
2463
  # 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
2464
+ # ID, the server can check if the original operation with the same request ID
2465
+ # was received, and if so, ignores the second request. This prevents
2228
2466
  # clients from accidentally creating duplicate commitments.
2229
2467
  #
2230
2468
  # The request ID must be a valid UUID with the exception that zero UUID is
2231
2469
  # not supported (00000000-0000-0000-0000-000000000000).
2232
2470
  # @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.
2471
+ # Optional. If set, performs request validation, for example, permission
2472
+ # checks and any other type of validation, but does not actually execute the
2473
+ # create request.
2474
+ # @param node_ids [::Array<::String>]
2475
+ # Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
2476
+ # restart upon. Applicable only to read instances.
2235
2477
  #
2236
2478
  # @yield [response, operation] Access the result along with the RPC operation
2237
2479
  # @yieldparam response [::Gapic::Operation]
@@ -2306,6 +2548,106 @@ module Google
2306
2548
  raise ::Google::Cloud::Error.from_error(e)
2307
2549
  end
2308
2550
 
2551
+ ##
2552
+ # Executes a SQL statement in a database inside an AlloyDB instance.
2553
+ #
2554
+ # @overload execute_sql(request, options = nil)
2555
+ # Pass arguments to `execute_sql` via a request object, either of type
2556
+ # {::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest} or an equivalent Hash.
2557
+ #
2558
+ # @param request [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest, ::Hash]
2559
+ # A request object representing the call parameters. Required. To specify no
2560
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2561
+ # @param options [::Gapic::CallOptions, ::Hash]
2562
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2563
+ #
2564
+ # @overload execute_sql(password: nil, instance: nil, database: nil, user: nil, sql_statement: nil)
2565
+ # Pass arguments to `execute_sql` via keyword arguments. Note that at
2566
+ # least one keyword argument is required. To specify no parameters, or to keep all
2567
+ # the default parameter values, pass an empty Hash as a request object (see above).
2568
+ #
2569
+ # @param password [::String]
2570
+ # Optional. The database native user’s password.
2571
+ # @param instance [::String]
2572
+ # Required. The instance where the SQL will be executed. For the required
2573
+ # format, see the comment on the Instance.name field.
2574
+ # @param database [::String]
2575
+ # Required. Name of the database where the query will be executed.
2576
+ # Note - Value provided should be the same as expected from `SELECT
2577
+ # current_database();` and NOT as a resource reference.
2578
+ # @param user [::String]
2579
+ # Required. Database user to be used for executing the SQL.
2580
+ # Note - Value provided should be the same as expected from
2581
+ # `SELECT current_user;` and NOT as a resource reference.
2582
+ # @param sql_statement [::String]
2583
+ # Required. SQL statement to execute on database. Any valid statement is
2584
+ # permitted, including DDL, DML, DQL statements.
2585
+ #
2586
+ # @yield [response, operation] Access the result along with the RPC operation
2587
+ # @yieldparam response [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse]
2588
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2589
+ #
2590
+ # @return [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse]
2591
+ #
2592
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2593
+ #
2594
+ # @example Basic example
2595
+ # require "google/cloud/alloy_db/v1beta"
2596
+ #
2597
+ # # Create a client object. The client can be reused for multiple calls.
2598
+ # client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Client.new
2599
+ #
2600
+ # # Create a request. To set request fields, pass in keyword arguments.
2601
+ # request = Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest.new
2602
+ #
2603
+ # # Call the execute_sql method.
2604
+ # result = client.execute_sql request
2605
+ #
2606
+ # # The returned object is of type Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse.
2607
+ # p result
2608
+ #
2609
+ def execute_sql request, options = nil
2610
+ raise ::ArgumentError, "request must be provided" if request.nil?
2611
+
2612
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest
2613
+
2614
+ # Converts hash and nil to an options object
2615
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2616
+
2617
+ # Customize the options with defaults
2618
+ metadata = @config.rpcs.execute_sql.metadata.to_h
2619
+
2620
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2621
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2622
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2623
+ gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2624
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2625
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2626
+
2627
+ header_params = {}
2628
+ if request.instance
2629
+ header_params["instance"] = request.instance
2630
+ end
2631
+
2632
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2633
+ metadata[:"x-goog-request-params"] ||= request_params_header
2634
+
2635
+ options.apply_defaults timeout: @config.rpcs.execute_sql.timeout,
2636
+ metadata: metadata,
2637
+ retry_policy: @config.rpcs.execute_sql.retry_policy
2638
+
2639
+ options.apply_defaults timeout: @config.timeout,
2640
+ metadata: @config.metadata,
2641
+ retry_policy: @config.retry_policy
2642
+
2643
+ @alloy_db_admin_stub.call_rpc :execute_sql, request, options: options do |response, operation|
2644
+ yield response, operation if block_given?
2645
+ return response
2646
+ end
2647
+ rescue ::GRPC::BadStatus => e
2648
+ raise ::Google::Cloud::Error.from_error(e)
2649
+ end
2650
+
2309
2651
  ##
2310
2652
  # Lists Backups in a given project and location.
2311
2653
  #
@@ -2518,14 +2860,14 @@ module Google
2518
2860
  # Required. The resource being created
2519
2861
  # @param request_id [::String]
2520
2862
  # 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.
2863
+ # request ID so that if you must retry your request, the server ignores the
2864
+ # request if it has already been completed. The server guarantees that for at
2865
+ # least 60 minutes since the first request.
2524
2866
  #
2525
2867
  # For example, consider a situation where you make an initial request and
2526
2868
  # 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
2869
+ # ID, the server can check if the original operation with the same request ID
2870
+ # was received, and if so, ignores the second request. This prevents
2529
2871
  # clients from accidentally creating duplicate commitments.
2530
2872
  #
2531
2873
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2635,14 +2977,14 @@ module Google
2635
2977
  # Required. The resource being updated
2636
2978
  # @param request_id [::String]
2637
2979
  # 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.
2980
+ # request ID so that if you must retry your request, the server ignores the
2981
+ # request if it has already been completed. The server guarantees that for at
2982
+ # least 60 minutes since the first request.
2641
2983
  #
2642
2984
  # For example, consider a situation where you make an initial request and
2643
2985
  # 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
2986
+ # ID, the server can check if the original operation with the same request ID
2987
+ # was received, and if so, ignores the second request. This prevents
2646
2988
  # clients from accidentally creating duplicate commitments.
2647
2989
  #
2648
2990
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2750,14 +3092,14 @@ module Google
2750
3092
  # the Backup.name field.
2751
3093
  # @param request_id [::String]
2752
3094
  # 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.
3095
+ # request ID so that if you must retry your request, the server ignores the
3096
+ # request if it has already been completed. The server guarantees that for at
3097
+ # least 60 minutes since the first request.
2756
3098
  #
2757
3099
  # For example, consider a situation where you make an initial request and
2758
3100
  # 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
3101
+ # ID, the server can check if the original operation with the same request ID
3102
+ # was received, and if so, ignores the second request. This prevents
2761
3103
  # clients from accidentally creating duplicate commitments.
2762
3104
  #
2763
3105
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -2972,14 +3314,14 @@ module Google
2972
3314
  # * projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
2973
3315
  # @param request_id [::String]
2974
3316
  # 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.
3317
+ # request ID so that if you must retry your request, the server ignores the
3318
+ # request if it has already been completed. The server guarantees that for at
3319
+ # least 60 minutes since the first request.
2978
3320
  #
2979
3321
  # For example, consider a situation where you make an initial request and
2980
3322
  # 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
3323
+ # ID, the server can check if the original operation with the same request ID
3324
+ # was received, and if so, ignores the second request. This prevents
2983
3325
  # clients from accidentally creating duplicate commitments.
2984
3326
  #
2985
3327
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3088,14 +3430,14 @@ module Google
3088
3430
  # projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/instances/\\{instance}
3089
3431
  # @param request_id [::String]
3090
3432
  # 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.
3433
+ # request ID so that if you must retry your request, the server ignores the
3434
+ # request if it has already been completed. The server guarantees that for at
3435
+ # least 60 minutes since the first request.
3094
3436
  #
3095
3437
  # For example, consider a situation where you make an initial request and
3096
3438
  # 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
3439
+ # ID, the server can check if the original operation with the same request ID
3440
+ # was received, and if so, ignores the second request. This prevents
3099
3441
  # clients from accidentally creating duplicate commitments.
3100
3442
  #
3101
3443
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3379,14 +3721,14 @@ module Google
3379
3721
  # Required. The resource being created
3380
3722
  # @param request_id [::String]
3381
3723
  # 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.
3724
+ # request ID so that if you must retry your request, the server ignores the
3725
+ # request if it has already been completed. The server guarantees that for at
3726
+ # least 60 minutes since the first request.
3385
3727
  #
3386
3728
  # For example, consider a situation where you make an initial request and
3387
3729
  # 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
3730
+ # ID, the server can check if the original operation with the same request ID
3731
+ # was received, and if so, ignores the second request. This prevents
3390
3732
  # clients from accidentally creating duplicate commitments.
3391
3733
  #
3392
3734
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3488,14 +3830,14 @@ module Google
3488
3830
  # Required. The resource being updated
3489
3831
  # @param request_id [::String]
3490
3832
  # 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.
3833
+ # request ID so that if you must retry your request, the server ignores the
3834
+ # request if it has already been completed. The server guarantees that for at
3835
+ # least 60 minutes since the first request.
3494
3836
  #
3495
3837
  # For example, consider a situation where you make an initial request and
3496
3838
  # 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
3839
+ # ID, the server can check if the original operation with the same request ID
3840
+ # was received, and if so, ignores the second request. This prevents
3499
3841
  # clients from accidentally creating duplicate commitments.
3500
3842
  #
3501
3843
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3594,14 +3936,14 @@ module Google
3594
3936
  # comment on the User.name field.
3595
3937
  # @param request_id [::String]
3596
3938
  # 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.
3939
+ # request ID so that if you must retry your request, the server ignores the
3940
+ # request if it has already been completed. The server guarantees that for at
3941
+ # least 60 minutes since the first request.
3600
3942
  #
3601
3943
  # For example, consider a situation where you make an initial request and
3602
3944
  # 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
3945
+ # ID, the server can check if the original operation with the same request ID
3946
+ # was received, and if so, ignores the second request. This prevents
3605
3947
  # clients from accidentally creating duplicate commitments.
3606
3948
  #
3607
3949
  # The request ID must be a valid UUID with the exception that zero UUID is
@@ -3697,9 +4039,9 @@ module Google
3697
4039
  # Required. Parent value for ListDatabasesRequest.
3698
4040
  # @param page_size [::Integer]
3699
4041
  # 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.
4042
+ # fewer than this value. If unspecified, 2000 is the default page_size. The
4043
+ # max value of page_size will be 4000, values above max will be coerced to
4044
+ # max.
3703
4045
  # @param page_token [::String]
3704
4046
  # Optional. A page token, received from a previous `ListDatabases` call.
3705
4047
  # This should be provided to retrieve the subsequent page.
@@ -3952,6 +4294,11 @@ module Google
3952
4294
  #
3953
4295
  attr_reader :update_cluster
3954
4296
  ##
4297
+ # RPC-specific configuration for `upgrade_cluster`
4298
+ # @return [::Gapic::Config::Method]
4299
+ #
4300
+ attr_reader :upgrade_cluster
4301
+ ##
3955
4302
  # RPC-specific configuration for `delete_cluster`
3956
4303
  # @return [::Gapic::Config::Method]
3957
4304
  #
@@ -3962,6 +4309,11 @@ module Google
3962
4309
  #
3963
4310
  attr_reader :promote_cluster
3964
4311
  ##
4312
+ # RPC-specific configuration for `switchover_cluster`
4313
+ # @return [::Gapic::Config::Method]
4314
+ #
4315
+ attr_reader :switchover_cluster
4316
+ ##
3965
4317
  # RPC-specific configuration for `restore_cluster`
3966
4318
  # @return [::Gapic::Config::Method]
3967
4319
  #
@@ -4022,6 +4374,11 @@ module Google
4022
4374
  #
4023
4375
  attr_reader :restart_instance
4024
4376
  ##
4377
+ # RPC-specific configuration for `execute_sql`
4378
+ # @return [::Gapic::Config::Method]
4379
+ #
4380
+ attr_reader :execute_sql
4381
+ ##
4025
4382
  # RPC-specific configuration for `list_backups`
4026
4383
  # @return [::Gapic::Config::Method]
4027
4384
  #
@@ -4102,10 +4459,14 @@ module Google
4102
4459
  @create_cluster = ::Gapic::Config::Method.new create_cluster_config
4103
4460
  update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
4104
4461
  @update_cluster = ::Gapic::Config::Method.new update_cluster_config
4462
+ upgrade_cluster_config = parent_rpcs.upgrade_cluster if parent_rpcs.respond_to? :upgrade_cluster
4463
+ @upgrade_cluster = ::Gapic::Config::Method.new upgrade_cluster_config
4105
4464
  delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
4106
4465
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
4107
4466
  promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
4108
4467
  @promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
4468
+ switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
4469
+ @switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
4109
4470
  restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
4110
4471
  @restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
4111
4472
  create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
@@ -4130,6 +4491,8 @@ module Google
4130
4491
  @inject_fault = ::Gapic::Config::Method.new inject_fault_config
4131
4492
  restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
4132
4493
  @restart_instance = ::Gapic::Config::Method.new restart_instance_config
4494
+ execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
4495
+ @execute_sql = ::Gapic::Config::Method.new execute_sql_config
4133
4496
  list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
4134
4497
  @list_backups = ::Gapic::Config::Method.new list_backups_config
4135
4498
  get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup