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.
- checksums.yaml +4 -4
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/client.rb +509 -146
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/client.rb +488 -146
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/service_stub.rb +180 -0
- data/lib/google/cloud/alloy_db/v1beta/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1beta/csql_resources_pb.rb +44 -0
- data/lib/google/cloud/alloydb/v1beta/data_model_pb.rb +45 -0
- data/lib/google/cloud/alloydb/v1beta/gemini_pb.rb +45 -0
- data/lib/google/cloud/alloydb/v1beta/resources_pb.rb +12 -2
- data/lib/google/cloud/alloydb/v1beta/service_pb.rb +22 -1
- data/lib/google/cloud/alloydb/v1beta/service_services_pb.rb +9 -0
- data/proto_docs/google/api/client.rb +37 -0
- data/proto_docs/google/cloud/alloydb/v1beta/csql_resources.rb +42 -0
- data/proto_docs/google/cloud/alloydb/v1beta/data_model.rb +75 -0
- data/proto_docs/google/cloud/alloydb/v1beta/gemini.rb +52 -0
- data/proto_docs/google/cloud/alloydb/v1beta/resources.rb +214 -48
- data/proto_docs/google/cloud/alloydb/v1beta/service.rb +540 -146
- metadata +9 -3
@@ -468,22 +468,22 @@ module Google
|
|
468
468
|
# Required. The resource being created
|
469
469
|
# @param request_id [::String]
|
470
470
|
# Optional. An optional request ID to identify requests. Specify a unique
|
471
|
-
# request ID so that if you must retry your request, the server
|
472
|
-
#
|
473
|
-
#
|
471
|
+
# request ID so that if you must retry your request, the server ignores the
|
472
|
+
# request if it has already been completed. The server guarantees that for at
|
473
|
+
# least 60 minutes since the first request.
|
474
474
|
#
|
475
475
|
# For example, consider a situation where you make an initial request and
|
476
476
|
# the request times out. If you make the request again with the same request
|
477
|
-
# ID, the server can check if original operation with the same request ID
|
478
|
-
# was received, and if so,
|
477
|
+
# ID, the server can check if the original operation with the same request ID
|
478
|
+
# was received, and if so, ignores the second request. This prevents
|
479
479
|
# clients from accidentally creating duplicate commitments.
|
480
480
|
#
|
481
481
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
482
482
|
# not supported (00000000-0000-0000-0000-000000000000).
|
483
483
|
# @param validate_only [::Boolean]
|
484
|
-
# Optional. If set, performs request validation
|
485
|
-
# any other type of validation
|
486
|
-
# request.
|
484
|
+
# Optional. If set, performs request validation, for example, permission
|
485
|
+
# checks and any other type of validation, but does not actually execute the
|
486
|
+
# create request.
|
487
487
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
488
488
|
# @yieldparam result [::Gapic::Operation]
|
489
489
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -579,22 +579,22 @@ module Google
|
|
579
579
|
# Required. The resource being updated
|
580
580
|
# @param request_id [::String]
|
581
581
|
# Optional. An optional request ID to identify requests. Specify a unique
|
582
|
-
# request ID so that if you must retry your request, the server
|
583
|
-
#
|
584
|
-
#
|
582
|
+
# request ID so that if you must retry your request, the server ignores the
|
583
|
+
# request if it has already been completed. The server guarantees that for at
|
584
|
+
# least 60 minutes since the first request.
|
585
585
|
#
|
586
586
|
# For example, consider a situation where you make an initial request and
|
587
587
|
# the request times out. If you make the request again with the same request
|
588
|
-
# ID, the server can check if original operation with the same request ID
|
589
|
-
# was received, and if so,
|
588
|
+
# ID, the server can check if the original operation with the same request ID
|
589
|
+
# was received, and if so, ignores the second request. This prevents
|
590
590
|
# clients from accidentally creating duplicate commitments.
|
591
591
|
#
|
592
592
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
593
593
|
# not supported (00000000-0000-0000-0000-000000000000).
|
594
594
|
# @param validate_only [::Boolean]
|
595
|
-
# Optional. If set, performs request validation
|
596
|
-
# any other type of validation
|
597
|
-
# request.
|
595
|
+
# Optional. If set, performs request validation, for example, permission
|
596
|
+
# checks and any other type of validation, but does not actually execute the
|
597
|
+
# create request.
|
598
598
|
# @param allow_missing [::Boolean]
|
599
599
|
# Optional. If set to true, update succeeds even if cluster is not found. In
|
600
600
|
# that case, a new cluster is created and `update_mask` is ignored.
|
@@ -665,6 +665,118 @@ module Google
|
|
665
665
|
raise ::Google::Cloud::Error.from_error(e)
|
666
666
|
end
|
667
667
|
|
668
|
+
##
|
669
|
+
# Upgrades a single Cluster.
|
670
|
+
# Imperative only.
|
671
|
+
#
|
672
|
+
# @overload upgrade_cluster(request, options = nil)
|
673
|
+
# Pass arguments to `upgrade_cluster` via a request object, either of type
|
674
|
+
# {::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest} or an equivalent Hash.
|
675
|
+
#
|
676
|
+
# @param request [::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest, ::Hash]
|
677
|
+
# A request object representing the call parameters. Required. To specify no
|
678
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
679
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
680
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
681
|
+
#
|
682
|
+
# @overload upgrade_cluster(name: nil, version: nil, request_id: nil, validate_only: nil, etag: nil)
|
683
|
+
# Pass arguments to `upgrade_cluster` via keyword arguments. Note that at
|
684
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
685
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
686
|
+
#
|
687
|
+
# @param name [::String]
|
688
|
+
# Required. The resource name of the cluster.
|
689
|
+
# @param version [::Google::Cloud::AlloyDB::V1beta::DatabaseVersion]
|
690
|
+
# Required. The version the cluster is going to be upgraded to.
|
691
|
+
# @param request_id [::String]
|
692
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
693
|
+
# request ID so that if you must retry your request, the server ignores the
|
694
|
+
# request if it has already been completed. The server guarantees that for at
|
695
|
+
# least 60 minutes since the first request.
|
696
|
+
#
|
697
|
+
# For example, consider a situation where you make an initial request and
|
698
|
+
# the request times out. If you make the request again with the same request
|
699
|
+
# ID, the server can check if the original operation with the same request ID
|
700
|
+
# was received, and if so, ignores the second request. This prevents
|
701
|
+
# clients from accidentally creating duplicate commitments.
|
702
|
+
#
|
703
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
704
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
705
|
+
# @param validate_only [::Boolean]
|
706
|
+
# Optional. If set, performs request validation, for example, permission
|
707
|
+
# checks and any other type of validation, but does not actually execute the
|
708
|
+
# create request.
|
709
|
+
# @param etag [::String]
|
710
|
+
# Optional. The current etag of the Cluster.
|
711
|
+
# If an etag is provided and does not match the current etag of the Cluster,
|
712
|
+
# upgrade will be blocked and an ABORTED error will be returned.
|
713
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
714
|
+
# @yieldparam result [::Gapic::Operation]
|
715
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
716
|
+
#
|
717
|
+
# @return [::Gapic::Operation]
|
718
|
+
#
|
719
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
720
|
+
#
|
721
|
+
# @example Basic example
|
722
|
+
# require "google/cloud/alloy_db/v1beta"
|
723
|
+
#
|
724
|
+
# # Create a client object. The client can be reused for multiple calls.
|
725
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
726
|
+
#
|
727
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
728
|
+
# request = Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest.new
|
729
|
+
#
|
730
|
+
# # Call the upgrade_cluster method.
|
731
|
+
# result = client.upgrade_cluster request
|
732
|
+
#
|
733
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
734
|
+
# # check the status of an operation, cancel it, or wait for results.
|
735
|
+
# # Here is how to wait for a response.
|
736
|
+
# result.wait_until_done! timeout: 60
|
737
|
+
# if result.response?
|
738
|
+
# p result.response
|
739
|
+
# else
|
740
|
+
# puts "No response received."
|
741
|
+
# end
|
742
|
+
#
|
743
|
+
def upgrade_cluster request, options = nil
|
744
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
745
|
+
|
746
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::UpgradeClusterRequest
|
747
|
+
|
748
|
+
# Converts hash and nil to an options object
|
749
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
750
|
+
|
751
|
+
# Customize the options with defaults
|
752
|
+
call_metadata = @config.rpcs.upgrade_cluster.metadata.to_h
|
753
|
+
|
754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
755
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
756
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
757
|
+
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
758
|
+
transports_version_send: [:rest]
|
759
|
+
|
760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
761
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
762
|
+
|
763
|
+
options.apply_defaults timeout: @config.rpcs.upgrade_cluster.timeout,
|
764
|
+
metadata: call_metadata,
|
765
|
+
retry_policy: @config.rpcs.upgrade_cluster.retry_policy
|
766
|
+
|
767
|
+
options.apply_defaults timeout: @config.timeout,
|
768
|
+
metadata: @config.metadata,
|
769
|
+
retry_policy: @config.retry_policy
|
770
|
+
|
771
|
+
@alloy_db_admin_stub.upgrade_cluster request, options do |result, operation|
|
772
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
773
|
+
yield result, operation if block_given?
|
774
|
+
return result
|
775
|
+
end
|
776
|
+
rescue ::Gapic::Rest::Error => e
|
777
|
+
raise ::Google::Cloud::Error.from_error(e)
|
778
|
+
end
|
779
|
+
|
668
780
|
##
|
669
781
|
# Deletes a single Cluster.
|
670
782
|
#
|
@@ -688,14 +800,14 @@ module Google
|
|
688
800
|
# comment on the Cluster.name field.
|
689
801
|
# @param request_id [::String]
|
690
802
|
# Optional. An optional request ID to identify requests. Specify a unique
|
691
|
-
# request ID so that if you must retry your request, the server
|
692
|
-
#
|
693
|
-
#
|
803
|
+
# request ID so that if you must retry your request, the server ignores the
|
804
|
+
# request if it has already been completed. The server guarantees that for at
|
805
|
+
# least 60 minutes since the first request.
|
694
806
|
#
|
695
807
|
# For example, consider a situation where you make an initial request and
|
696
808
|
# the request times out. If you make the request again with the same request
|
697
|
-
# ID, the server can check if original operation with the same request ID
|
698
|
-
# was received, and if so,
|
809
|
+
# ID, the server can check if the original operation with the same request ID
|
810
|
+
# was received, and if so, ignores the second request. This prevents
|
699
811
|
# clients from accidentally creating duplicate commitments.
|
700
812
|
#
|
701
813
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -705,8 +817,9 @@ module Google
|
|
705
817
|
# If an etag is provided and does not match the current etag of the Cluster,
|
706
818
|
# deletion will be blocked and an ABORTED error will be returned.
|
707
819
|
# @param validate_only [::Boolean]
|
708
|
-
# Optional. If set, performs request validation
|
709
|
-
# any other type of validation
|
820
|
+
# Optional. If set, performs request validation, for example, permission
|
821
|
+
# checks and any other type of validation, but does not actually execute the
|
822
|
+
# create request.
|
710
823
|
# @param force [::Boolean]
|
711
824
|
# Optional. Whether to cascade delete child instances for given cluster.
|
712
825
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -802,9 +915,9 @@ module Google
|
|
802
915
|
# comment on the Cluster.name field
|
803
916
|
# @param request_id [::String]
|
804
917
|
# Optional. An optional request ID to identify requests. Specify a unique
|
805
|
-
# request ID so that if you must retry your request, the server
|
806
|
-
#
|
807
|
-
#
|
918
|
+
# request ID so that if you must retry your request, the server ignores the
|
919
|
+
# request if it has already been completed. The server guarantees that for at
|
920
|
+
# least 60 minutes since the first request.
|
808
921
|
#
|
809
922
|
# For example, consider a situation where you make an initial request and
|
810
923
|
# the request times out. If you make the request again with the same request
|
@@ -819,8 +932,9 @@ module Google
|
|
819
932
|
# If an etag is provided and does not match the current etag of the Cluster,
|
820
933
|
# deletion will be blocked and an ABORTED error will be returned.
|
821
934
|
# @param validate_only [::Boolean]
|
822
|
-
# Optional. If set, performs request validation
|
823
|
-
# any other type of validation
|
935
|
+
# Optional. If set, performs request validation, for example, permission
|
936
|
+
# checks and any other type of validation, but does not actually execute the
|
937
|
+
# create request.
|
824
938
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
825
939
|
# @yieldparam result [::Gapic::Operation]
|
826
940
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -888,6 +1002,114 @@ module Google
|
|
888
1002
|
raise ::Google::Cloud::Error.from_error(e)
|
889
1003
|
end
|
890
1004
|
|
1005
|
+
##
|
1006
|
+
# Switches the roles of PRIMARY and SECONDARY clusters without any data loss.
|
1007
|
+
# This promotes the SECONDARY cluster to PRIMARY and sets up the original
|
1008
|
+
# PRIMARY cluster to replicate from this newly promoted cluster.
|
1009
|
+
#
|
1010
|
+
# @overload switchover_cluster(request, options = nil)
|
1011
|
+
# Pass arguments to `switchover_cluster` via a request object, either of type
|
1012
|
+
# {::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest} or an equivalent Hash.
|
1013
|
+
#
|
1014
|
+
# @param request [::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest, ::Hash]
|
1015
|
+
# A request object representing the call parameters. Required. To specify no
|
1016
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1017
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1018
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1019
|
+
#
|
1020
|
+
# @overload switchover_cluster(name: nil, request_id: nil, validate_only: nil)
|
1021
|
+
# Pass arguments to `switchover_cluster` via keyword arguments. Note that at
|
1022
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1023
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1024
|
+
#
|
1025
|
+
# @param name [::String]
|
1026
|
+
# Required. The name of the resource. For the required format, see the
|
1027
|
+
# comment on the Cluster.name field
|
1028
|
+
# @param request_id [::String]
|
1029
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1030
|
+
# request ID so that if you must retry your request, the server ignores the
|
1031
|
+
# request if it has already been completed. The server guarantees that for at
|
1032
|
+
# least 60 minutes since the first request.
|
1033
|
+
#
|
1034
|
+
# For example, consider a situation where you make an initial request and
|
1035
|
+
# the request times out. If you make the request again with the same request
|
1036
|
+
# ID, the server can check if the original operation with the same request ID
|
1037
|
+
# was received, and if so, ignores the second request. This prevents
|
1038
|
+
# clients from accidentally creating duplicate commitments.
|
1039
|
+
#
|
1040
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1041
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1042
|
+
# @param validate_only [::Boolean]
|
1043
|
+
# Optional. If set, performs request validation, for example, permission
|
1044
|
+
# checks and any other type of validation, but does not actually execute the
|
1045
|
+
# create request.
|
1046
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1047
|
+
# @yieldparam result [::Gapic::Operation]
|
1048
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1049
|
+
#
|
1050
|
+
# @return [::Gapic::Operation]
|
1051
|
+
#
|
1052
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1053
|
+
#
|
1054
|
+
# @example Basic example
|
1055
|
+
# require "google/cloud/alloy_db/v1beta"
|
1056
|
+
#
|
1057
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1058
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
1059
|
+
#
|
1060
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1061
|
+
# request = Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest.new
|
1062
|
+
#
|
1063
|
+
# # Call the switchover_cluster method.
|
1064
|
+
# result = client.switchover_cluster request
|
1065
|
+
#
|
1066
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1067
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1068
|
+
# # Here is how to wait for a response.
|
1069
|
+
# result.wait_until_done! timeout: 60
|
1070
|
+
# if result.response?
|
1071
|
+
# p result.response
|
1072
|
+
# else
|
1073
|
+
# puts "No response received."
|
1074
|
+
# end
|
1075
|
+
#
|
1076
|
+
def switchover_cluster request, options = nil
|
1077
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1078
|
+
|
1079
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::SwitchoverClusterRequest
|
1080
|
+
|
1081
|
+
# Converts hash and nil to an options object
|
1082
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1083
|
+
|
1084
|
+
# Customize the options with defaults
|
1085
|
+
call_metadata = @config.rpcs.switchover_cluster.metadata.to_h
|
1086
|
+
|
1087
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1088
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1089
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1090
|
+
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1091
|
+
transports_version_send: [:rest]
|
1092
|
+
|
1093
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1094
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1095
|
+
|
1096
|
+
options.apply_defaults timeout: @config.rpcs.switchover_cluster.timeout,
|
1097
|
+
metadata: call_metadata,
|
1098
|
+
retry_policy: @config.rpcs.switchover_cluster.retry_policy
|
1099
|
+
|
1100
|
+
options.apply_defaults timeout: @config.timeout,
|
1101
|
+
metadata: @config.metadata,
|
1102
|
+
retry_policy: @config.retry_policy
|
1103
|
+
|
1104
|
+
@alloy_db_admin_stub.switchover_cluster request, options do |result, operation|
|
1105
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1106
|
+
yield result, operation if block_given?
|
1107
|
+
return result
|
1108
|
+
end
|
1109
|
+
rescue ::Gapic::Rest::Error => e
|
1110
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1111
|
+
end
|
1112
|
+
|
891
1113
|
##
|
892
1114
|
# Creates a new Cluster in a given project and location, with a volume
|
893
1115
|
# restored from the provided source, either a backup ID or a point-in-time
|
@@ -922,22 +1144,22 @@ module Google
|
|
922
1144
|
# Required. The resource being created
|
923
1145
|
# @param request_id [::String]
|
924
1146
|
# Optional. An optional request ID to identify requests. Specify a unique
|
925
|
-
# request ID so that if you must retry your request, the server
|
926
|
-
#
|
927
|
-
#
|
1147
|
+
# request ID so that if you must retry your request, the server ignores the
|
1148
|
+
# request if it has already been completed. The server guarantees that for at
|
1149
|
+
# least 60 minutes since the first request.
|
928
1150
|
#
|
929
1151
|
# For example, consider a situation where you make an initial request and
|
930
1152
|
# the request times out. If you make the request again with the same request
|
931
|
-
# ID, the server can check if original operation with the same request ID
|
932
|
-
# was received, and if so,
|
1153
|
+
# ID, the server can check if the original operation with the same request ID
|
1154
|
+
# was received, and if so, ignores the second request. This prevents
|
933
1155
|
# clients from accidentally creating duplicate commitments.
|
934
1156
|
#
|
935
1157
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
936
1158
|
# not supported (00000000-0000-0000-0000-000000000000).
|
937
1159
|
# @param validate_only [::Boolean]
|
938
|
-
# Optional. If set, performs request validation
|
939
|
-
# any other type of validation
|
940
|
-
# request.
|
1160
|
+
# Optional. If set, performs request validation, for example, permission
|
1161
|
+
# checks and any other type of validation, but does not actually execute the
|
1162
|
+
# create request.
|
941
1163
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
942
1164
|
# @yieldparam result [::Gapic::Operation]
|
943
1165
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1033,22 +1255,22 @@ module Google
|
|
1033
1255
|
# Required. Configuration of the requesting object (the secondary cluster).
|
1034
1256
|
# @param request_id [::String]
|
1035
1257
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1036
|
-
# request ID so that if you must retry your request, the server
|
1037
|
-
#
|
1038
|
-
#
|
1258
|
+
# request ID so that if you must retry your request, the server ignores the
|
1259
|
+
# request if it has already been completed. The server guarantees that for at
|
1260
|
+
# least 60 minutes since the first request.
|
1039
1261
|
#
|
1040
1262
|
# For example, consider a situation where you make an initial request and
|
1041
1263
|
# the request times out. If you make the request again with the same request
|
1042
|
-
# ID, the server can check if original operation with the same request ID
|
1043
|
-
# was received, and if so,
|
1264
|
+
# ID, the server can check if the original operation with the same request ID
|
1265
|
+
# was received, and if so, ignores the second request. This prevents
|
1044
1266
|
# clients from accidentally creating duplicate commitments.
|
1045
1267
|
#
|
1046
1268
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1047
1269
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1048
1270
|
# @param validate_only [::Boolean]
|
1049
|
-
# Optional. If set, performs request validation
|
1050
|
-
# any other type of validation
|
1051
|
-
# request.
|
1271
|
+
# Optional. If set, performs request validation, for example, permission
|
1272
|
+
# checks and any other type of validation, but does not actually execute the
|
1273
|
+
# create request.
|
1052
1274
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1053
1275
|
# @yieldparam result [::Gapic::Operation]
|
1054
1276
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1322,22 +1544,22 @@ module Google
|
|
1322
1544
|
# Required. The resource being created
|
1323
1545
|
# @param request_id [::String]
|
1324
1546
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1325
|
-
# request ID so that if you must retry your request, the server
|
1326
|
-
#
|
1327
|
-
#
|
1547
|
+
# request ID so that if you must retry your request, the server ignores the
|
1548
|
+
# request if it has already been completed. The server guarantees that for at
|
1549
|
+
# least 60 minutes since the first request.
|
1328
1550
|
#
|
1329
1551
|
# For example, consider a situation where you make an initial request and
|
1330
1552
|
# the request times out. If you make the request again with the same request
|
1331
|
-
# ID, the server can check if original operation with the same request ID
|
1332
|
-
# was received, and if so,
|
1553
|
+
# ID, the server can check if the original operation with the same request ID
|
1554
|
+
# was received, and if so, ignores the second request. This prevents
|
1333
1555
|
# clients from accidentally creating duplicate commitments.
|
1334
1556
|
#
|
1335
1557
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1336
1558
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1337
1559
|
# @param validate_only [::Boolean]
|
1338
|
-
# Optional. If set, performs request validation
|
1339
|
-
# any other type of validation
|
1340
|
-
# request.
|
1560
|
+
# Optional. If set, performs request validation, for example, permission
|
1561
|
+
# checks and any other type of validation, but does not actually execute the
|
1562
|
+
# create request.
|
1341
1563
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1342
1564
|
# @yieldparam result [::Gapic::Operation]
|
1343
1565
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1432,22 +1654,22 @@ module Google
|
|
1432
1654
|
# Required. The resource being created
|
1433
1655
|
# @param request_id [::String]
|
1434
1656
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1435
|
-
# request ID so that if you must retry your request, the server
|
1436
|
-
#
|
1437
|
-
#
|
1657
|
+
# request ID so that if you must retry your request, the server ignores the
|
1658
|
+
# request if it has already been completed. The server guarantees that for at
|
1659
|
+
# least 60 minutes since the first request.
|
1438
1660
|
#
|
1439
1661
|
# For example, consider a situation where you make an initial request and
|
1440
1662
|
# the request times out. If you make the request again with the same request
|
1441
|
-
# ID, the server can check if original operation with the same request ID
|
1442
|
-
# was received, and if so,
|
1663
|
+
# ID, the server can check if the original operation with the same request ID
|
1664
|
+
# was received, and if so, ignores the second request. This prevents
|
1443
1665
|
# clients from accidentally creating duplicate commitments.
|
1444
1666
|
#
|
1445
1667
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1446
1668
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1447
1669
|
# @param validate_only [::Boolean]
|
1448
|
-
# Optional. If set, performs request validation
|
1449
|
-
# any other type of validation
|
1450
|
-
# request.
|
1670
|
+
# Optional. If set, performs request validation, for example, permission
|
1671
|
+
# checks and any other type of validation, but does not actually execute the
|
1672
|
+
# create request.
|
1451
1673
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1452
1674
|
# @yieldparam result [::Gapic::Operation]
|
1453
1675
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1548,14 +1770,14 @@ module Google
|
|
1548
1770
|
# Required. Resources being created.
|
1549
1771
|
# @param request_id [::String]
|
1550
1772
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1551
|
-
# request ID so that if you must retry your request, the server
|
1552
|
-
#
|
1553
|
-
#
|
1773
|
+
# request ID so that if you must retry your request, the server ignores the
|
1774
|
+
# request if it has already been completed. The server guarantees that for at
|
1775
|
+
# least 60 minutes since the first request.
|
1554
1776
|
#
|
1555
1777
|
# For example, consider a situation where you make an initial request and
|
1556
1778
|
# the request times out. If you make the request again with the same request
|
1557
|
-
# ID, the server can check if original operation with the same request ID
|
1558
|
-
# was received, and if so,
|
1779
|
+
# ID, the server can check if the original operation with the same request ID
|
1780
|
+
# was received, and if so, ignores the second request. This prevents
|
1559
1781
|
# clients from accidentally creating duplicate commitments.
|
1560
1782
|
#
|
1561
1783
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1655,22 +1877,22 @@ module Google
|
|
1655
1877
|
# Required. The resource being updated
|
1656
1878
|
# @param request_id [::String]
|
1657
1879
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1658
|
-
# request ID so that if you must retry your request, the server
|
1659
|
-
#
|
1660
|
-
#
|
1880
|
+
# request ID so that if you must retry your request, the server ignores the
|
1881
|
+
# request if it has already been completed. The server guarantees that for at
|
1882
|
+
# least 60 minutes since the first request.
|
1661
1883
|
#
|
1662
1884
|
# For example, consider a situation where you make an initial request and
|
1663
1885
|
# the request times out. If you make the request again with the same request
|
1664
|
-
# ID, the server can check if original operation with the same request ID
|
1665
|
-
# was received, and if so,
|
1886
|
+
# ID, the server can check if the original operation with the same request ID
|
1887
|
+
# was received, and if so, ignores the second request. This prevents
|
1666
1888
|
# clients from accidentally creating duplicate commitments.
|
1667
1889
|
#
|
1668
1890
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1669
1891
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1670
1892
|
# @param validate_only [::Boolean]
|
1671
|
-
# Optional. If set, performs request validation
|
1672
|
-
# any other type of validation
|
1673
|
-
# request.
|
1893
|
+
# Optional. If set, performs request validation, for example, permission
|
1894
|
+
# checks and any other type of validation, but does not actually execute the
|
1895
|
+
# create request.
|
1674
1896
|
# @param allow_missing [::Boolean]
|
1675
1897
|
# Optional. If set to true, update succeeds even if instance is not found. In
|
1676
1898
|
# that case, a new instance is created and `update_mask` is ignored.
|
@@ -1764,14 +1986,14 @@ module Google
|
|
1764
1986
|
# comment on the Instance.name field.
|
1765
1987
|
# @param request_id [::String]
|
1766
1988
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1767
|
-
# request ID so that if you must retry your request, the server
|
1768
|
-
#
|
1769
|
-
#
|
1989
|
+
# request ID so that if you must retry your request, the server ignores the
|
1990
|
+
# request if it has already been completed. The server guarantees that for at
|
1991
|
+
# least 60 minutes since the first request.
|
1770
1992
|
#
|
1771
1993
|
# For example, consider a situation where you make an initial request and
|
1772
1994
|
# the request times out. If you make the request again with the same request
|
1773
|
-
# ID, the server can check if original operation with the same request ID
|
1774
|
-
# was received, and if so,
|
1995
|
+
# ID, the server can check if the original operation with the same request ID
|
1996
|
+
# was received, and if so, ignores the second request. This prevents
|
1775
1997
|
# clients from accidentally creating duplicate commitments.
|
1776
1998
|
#
|
1777
1999
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1781,8 +2003,9 @@ module Google
|
|
1781
2003
|
# If an etag is provided and does not match the current etag of the Instance,
|
1782
2004
|
# deletion will be blocked and an ABORTED error will be returned.
|
1783
2005
|
# @param validate_only [::Boolean]
|
1784
|
-
# Optional. If set, performs request validation
|
1785
|
-
# any other type of validation
|
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.
|
1786
2009
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1787
2010
|
# @yieldparam result [::Gapic::Operation]
|
1788
2011
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1875,21 +2098,22 @@ module Google
|
|
1875
2098
|
# comment on the Instance.name field.
|
1876
2099
|
# @param request_id [::String]
|
1877
2100
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1878
|
-
# request ID so that if you must retry your request, the server
|
1879
|
-
#
|
1880
|
-
#
|
2101
|
+
# request ID so that if you must retry your request, the server ignores the
|
2102
|
+
# request if it has already been completed. The server guarantees that for at
|
2103
|
+
# least 60 minutes since the first request.
|
1881
2104
|
#
|
1882
2105
|
# For example, consider a situation where you make an initial request and
|
1883
2106
|
# the request times out. If you make the request again with the same request
|
1884
|
-
# ID, the server can check if original operation with the same request ID
|
1885
|
-
# was received, and if so,
|
2107
|
+
# ID, the server can check if the original operation with the same request ID
|
2108
|
+
# was received, and if so, ignores the second request. This prevents
|
1886
2109
|
# clients from accidentally creating duplicate commitments.
|
1887
2110
|
#
|
1888
2111
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1889
2112
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1890
2113
|
# @param validate_only [::Boolean]
|
1891
|
-
# Optional. If set, performs request validation
|
1892
|
-
# any other type of validation
|
2114
|
+
# Optional. If set, performs request validation, for example, permission
|
2115
|
+
# checks and any other type of validation, but does not actually execute the
|
2116
|
+
# create request.
|
1893
2117
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1894
2118
|
# @yieldparam result [::Gapic::Operation]
|
1895
2119
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1983,22 +2207,22 @@ module Google
|
|
1983
2207
|
# comment on the Instance.name field.
|
1984
2208
|
# @param request_id [::String]
|
1985
2209
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1986
|
-
# request ID so that if you must retry your request, the server
|
1987
|
-
#
|
1988
|
-
#
|
2210
|
+
# request ID so that if you must retry your request, the server ignores the
|
2211
|
+
# request if it has already been completed. The server guarantees that for at
|
2212
|
+
# least 60 minutes since the first request.
|
1989
2213
|
#
|
1990
2214
|
# For example, consider a situation where you make an initial request and
|
1991
2215
|
# the request times out. If you make the request again with the same request
|
1992
|
-
# ID, the server can check if original operation with the same request ID
|
1993
|
-
# was received, and if so,
|
2216
|
+
# ID, the server can check if the original operation with the same request ID
|
2217
|
+
# was received, and if so, ignores the second request. This prevents
|
1994
2218
|
# clients from accidentally creating duplicate commitments.
|
1995
2219
|
#
|
1996
2220
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1997
2221
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1998
2222
|
# @param validate_only [::Boolean]
|
1999
|
-
# Optional. If set, performs request validation
|
2000
|
-
# any other type of validation
|
2001
|
-
#
|
2223
|
+
# Optional. If set, performs request validation, for example, permission
|
2224
|
+
# checks and any other type of validation, but does not actually execute the
|
2225
|
+
# create request.
|
2002
2226
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2003
2227
|
# @yieldparam result [::Gapic::Operation]
|
2004
2228
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2080,7 +2304,7 @@ module Google
|
|
2080
2304
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2081
2305
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2082
2306
|
#
|
2083
|
-
# @overload restart_instance(name: nil, request_id: nil, validate_only: nil)
|
2307
|
+
# @overload restart_instance(name: nil, request_id: nil, validate_only: nil, node_ids: nil)
|
2084
2308
|
# Pass arguments to `restart_instance` via keyword arguments. Note that at
|
2085
2309
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2086
2310
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -2090,21 +2314,25 @@ module Google
|
|
2090
2314
|
# comment on the Instance.name field.
|
2091
2315
|
# @param request_id [::String]
|
2092
2316
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2093
|
-
# request ID so that if you must retry your request, the server
|
2094
|
-
#
|
2095
|
-
#
|
2317
|
+
# request ID so that if you must retry your request, the server ignores the
|
2318
|
+
# request if it has already been completed. The server guarantees that for at
|
2319
|
+
# least 60 minutes since the first request.
|
2096
2320
|
#
|
2097
2321
|
# For example, consider a situation where you make an initial request and
|
2098
2322
|
# the request times out. If you make the request again with the same request
|
2099
|
-
# ID, the server can check if original operation with the same request ID
|
2100
|
-
# was received, and if so,
|
2323
|
+
# ID, the server can check if the original operation with the same request ID
|
2324
|
+
# was received, and if so, ignores the second request. This prevents
|
2101
2325
|
# clients from accidentally creating duplicate commitments.
|
2102
2326
|
#
|
2103
2327
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
2104
2328
|
# not supported (00000000-0000-0000-0000-000000000000).
|
2105
2329
|
# @param validate_only [::Boolean]
|
2106
|
-
# Optional. If set, performs request validation
|
2107
|
-
# any other type of validation
|
2330
|
+
# Optional. If set, performs request validation, for example, permission
|
2331
|
+
# checks and any other type of validation, but does not actually execute the
|
2332
|
+
# create request.
|
2333
|
+
# @param node_ids [::Array<::String>]
|
2334
|
+
# Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
|
2335
|
+
# restart upon. Applicable only to read instances.
|
2108
2336
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2109
2337
|
# @yieldparam result [::Gapic::Operation]
|
2110
2338
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2172,6 +2400,99 @@ module Google
|
|
2172
2400
|
raise ::Google::Cloud::Error.from_error(e)
|
2173
2401
|
end
|
2174
2402
|
|
2403
|
+
##
|
2404
|
+
# Executes a SQL statement in a database inside an AlloyDB instance.
|
2405
|
+
#
|
2406
|
+
# @overload execute_sql(request, options = nil)
|
2407
|
+
# Pass arguments to `execute_sql` via a request object, either of type
|
2408
|
+
# {::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest} or an equivalent Hash.
|
2409
|
+
#
|
2410
|
+
# @param request [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest, ::Hash]
|
2411
|
+
# A request object representing the call parameters. Required. To specify no
|
2412
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2413
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2414
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2415
|
+
#
|
2416
|
+
# @overload execute_sql(password: nil, instance: nil, database: nil, user: nil, sql_statement: nil)
|
2417
|
+
# Pass arguments to `execute_sql` via keyword arguments. Note that at
|
2418
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2419
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2420
|
+
#
|
2421
|
+
# @param password [::String]
|
2422
|
+
# Optional. The database native user’s password.
|
2423
|
+
# @param instance [::String]
|
2424
|
+
# Required. The instance where the SQL will be executed. For the required
|
2425
|
+
# format, see the comment on the Instance.name field.
|
2426
|
+
# @param database [::String]
|
2427
|
+
# Required. Name of the database where the query will be executed.
|
2428
|
+
# Note - Value provided should be the same as expected from `SELECT
|
2429
|
+
# current_database();` and NOT as a resource reference.
|
2430
|
+
# @param user [::String]
|
2431
|
+
# Required. Database user to be used for executing the SQL.
|
2432
|
+
# Note - Value provided should be the same as expected from
|
2433
|
+
# `SELECT current_user;` and NOT as a resource reference.
|
2434
|
+
# @param sql_statement [::String]
|
2435
|
+
# Required. SQL statement to execute on database. Any valid statement is
|
2436
|
+
# permitted, including DDL, DML, DQL statements.
|
2437
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2438
|
+
# @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse]
|
2439
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2440
|
+
#
|
2441
|
+
# @return [::Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse]
|
2442
|
+
#
|
2443
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2444
|
+
#
|
2445
|
+
# @example Basic example
|
2446
|
+
# require "google/cloud/alloy_db/v1beta"
|
2447
|
+
#
|
2448
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2449
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
2450
|
+
#
|
2451
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2452
|
+
# request = Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest.new
|
2453
|
+
#
|
2454
|
+
# # Call the execute_sql method.
|
2455
|
+
# result = client.execute_sql request
|
2456
|
+
#
|
2457
|
+
# # The returned object is of type Google::Cloud::AlloyDB::V1beta::ExecuteSqlResponse.
|
2458
|
+
# p result
|
2459
|
+
#
|
2460
|
+
def execute_sql request, options = nil
|
2461
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2462
|
+
|
2463
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::ExecuteSqlRequest
|
2464
|
+
|
2465
|
+
# Converts hash and nil to an options object
|
2466
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2467
|
+
|
2468
|
+
# Customize the options with defaults
|
2469
|
+
call_metadata = @config.rpcs.execute_sql.metadata.to_h
|
2470
|
+
|
2471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2472
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2473
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2474
|
+
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2475
|
+
transports_version_send: [:rest]
|
2476
|
+
|
2477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2478
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2479
|
+
|
2480
|
+
options.apply_defaults timeout: @config.rpcs.execute_sql.timeout,
|
2481
|
+
metadata: call_metadata,
|
2482
|
+
retry_policy: @config.rpcs.execute_sql.retry_policy
|
2483
|
+
|
2484
|
+
options.apply_defaults timeout: @config.timeout,
|
2485
|
+
metadata: @config.metadata,
|
2486
|
+
retry_policy: @config.retry_policy
|
2487
|
+
|
2488
|
+
@alloy_db_admin_stub.execute_sql request, options do |result, operation|
|
2489
|
+
yield result, operation if block_given?
|
2490
|
+
return result
|
2491
|
+
end
|
2492
|
+
rescue ::Gapic::Rest::Error => e
|
2493
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2494
|
+
end
|
2495
|
+
|
2175
2496
|
##
|
2176
2497
|
# Lists Backups in a given project and location.
|
2177
2498
|
#
|
@@ -2369,14 +2690,14 @@ module Google
|
|
2369
2690
|
# Required. The resource being created
|
2370
2691
|
# @param request_id [::String]
|
2371
2692
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2372
|
-
# request ID so that if you must retry your request, the server
|
2373
|
-
#
|
2374
|
-
#
|
2693
|
+
# request ID so that if you must retry your request, the server ignores the
|
2694
|
+
# request if it has already been completed. The server guarantees that for at
|
2695
|
+
# least 60 minutes since the first request.
|
2375
2696
|
#
|
2376
2697
|
# For example, consider a situation where you make an initial request and
|
2377
2698
|
# the request times out. If you make the request again with the same request
|
2378
|
-
# ID, the server can check if original operation with the same request ID
|
2379
|
-
# was received, and if so,
|
2699
|
+
# ID, the server can check if the original operation with the same request ID
|
2700
|
+
# was received, and if so, ignores the second request. This prevents
|
2380
2701
|
# clients from accidentally creating duplicate commitments.
|
2381
2702
|
#
|
2382
2703
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -2479,14 +2800,14 @@ module Google
|
|
2479
2800
|
# Required. The resource being updated
|
2480
2801
|
# @param request_id [::String]
|
2481
2802
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2482
|
-
# request ID so that if you must retry your request, the server
|
2483
|
-
#
|
2484
|
-
#
|
2803
|
+
# request ID so that if you must retry your request, the server ignores the
|
2804
|
+
# request if it has already been completed. The server guarantees that for at
|
2805
|
+
# least 60 minutes since the first request.
|
2485
2806
|
#
|
2486
2807
|
# For example, consider a situation where you make an initial request and
|
2487
2808
|
# the request times out. If you make the request again with the same request
|
2488
|
-
# ID, the server can check if original operation with the same request ID
|
2489
|
-
# was received, and if so,
|
2809
|
+
# ID, the server can check if the original operation with the same request ID
|
2810
|
+
# was received, and if so, ignores the second request. This prevents
|
2490
2811
|
# clients from accidentally creating duplicate commitments.
|
2491
2812
|
#
|
2492
2813
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -2587,14 +2908,14 @@ module Google
|
|
2587
2908
|
# the Backup.name field.
|
2588
2909
|
# @param request_id [::String]
|
2589
2910
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2590
|
-
# request ID so that if you must retry your request, the server
|
2591
|
-
#
|
2592
|
-
#
|
2911
|
+
# request ID so that if you must retry your request, the server ignores the
|
2912
|
+
# request if it has already been completed. The server guarantees that for at
|
2913
|
+
# least 60 minutes since the first request.
|
2593
2914
|
#
|
2594
2915
|
# For example, consider a situation where you make an initial request and
|
2595
2916
|
# the request times out. If you make the request again with the same request
|
2596
|
-
# ID, the server can check if original operation with the same request ID
|
2597
|
-
# was received, and if so,
|
2917
|
+
# ID, the server can check if the original operation with the same request ID
|
2918
|
+
# was received, and if so, ignores the second request. This prevents
|
2598
2919
|
# clients from accidentally creating duplicate commitments.
|
2599
2920
|
#
|
2600
2921
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -2795,14 +3116,14 @@ module Google
|
|
2795
3116
|
# * projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
|
2796
3117
|
# @param request_id [::String]
|
2797
3118
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2798
|
-
# request ID so that if you must retry your request, the server
|
2799
|
-
#
|
2800
|
-
#
|
3119
|
+
# request ID so that if you must retry your request, the server ignores the
|
3120
|
+
# request if it has already been completed. The server guarantees that for at
|
3121
|
+
# least 60 minutes since the first request.
|
2801
3122
|
#
|
2802
3123
|
# For example, consider a situation where you make an initial request and
|
2803
3124
|
# the request times out. If you make the request again with the same request
|
2804
|
-
# ID, the server can check if original operation with the same request ID
|
2805
|
-
# was received, and if so,
|
3125
|
+
# ID, the server can check if the original operation with the same request ID
|
3126
|
+
# was received, and if so, ignores the second request. This prevents
|
2806
3127
|
# clients from accidentally creating duplicate commitments.
|
2807
3128
|
#
|
2808
3129
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -2904,14 +3225,14 @@ module Google
|
|
2904
3225
|
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/instances/\\{instance}
|
2905
3226
|
# @param request_id [::String]
|
2906
3227
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2907
|
-
# request ID so that if you must retry your request, the server
|
2908
|
-
#
|
2909
|
-
#
|
3228
|
+
# request ID so that if you must retry your request, the server ignores the
|
3229
|
+
# request if it has already been completed. The server guarantees that for at
|
3230
|
+
# least 60 minutes since the first request.
|
2910
3231
|
#
|
2911
3232
|
# For example, consider a situation where you make an initial request and
|
2912
3233
|
# the request times out. If you make the request again with the same request
|
2913
|
-
# ID, the server can check if original operation with the same request ID
|
2914
|
-
# was received, and if so,
|
3234
|
+
# ID, the server can check if the original operation with the same request ID
|
3235
|
+
# was received, and if so, ignores the second request. This prevents
|
2915
3236
|
# clients from accidentally creating duplicate commitments.
|
2916
3237
|
#
|
2917
3238
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -3173,14 +3494,14 @@ module Google
|
|
3173
3494
|
# Required. The resource being created
|
3174
3495
|
# @param request_id [::String]
|
3175
3496
|
# Optional. An optional request ID to identify requests. Specify a unique
|
3176
|
-
# request ID so that if you must retry your request, the server
|
3177
|
-
#
|
3178
|
-
#
|
3497
|
+
# request ID so that if you must retry your request, the server ignores the
|
3498
|
+
# request if it has already been completed. The server guarantees that for at
|
3499
|
+
# least 60 minutes since the first request.
|
3179
3500
|
#
|
3180
3501
|
# For example, consider a situation where you make an initial request and
|
3181
3502
|
# the request times out. If you make the request again with the same request
|
3182
|
-
# ID, the server can check if original operation with the same request ID
|
3183
|
-
# was received, and if so,
|
3503
|
+
# ID, the server can check if the original operation with the same request ID
|
3504
|
+
# was received, and if so, ignores the second request. This prevents
|
3184
3505
|
# clients from accidentally creating duplicate commitments.
|
3185
3506
|
#
|
3186
3507
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -3275,14 +3596,14 @@ module Google
|
|
3275
3596
|
# Required. The resource being updated
|
3276
3597
|
# @param request_id [::String]
|
3277
3598
|
# Optional. An optional request ID to identify requests. Specify a unique
|
3278
|
-
# request ID so that if you must retry your request, the server
|
3279
|
-
#
|
3280
|
-
#
|
3599
|
+
# request ID so that if you must retry your request, the server ignores the
|
3600
|
+
# request if it has already been completed. The server guarantees that for at
|
3601
|
+
# least 60 minutes since the first request.
|
3281
3602
|
#
|
3282
3603
|
# For example, consider a situation where you make an initial request and
|
3283
3604
|
# the request times out. If you make the request again with the same request
|
3284
|
-
# ID, the server can check if original operation with the same request ID
|
3285
|
-
# was received, and if so,
|
3605
|
+
# ID, the server can check if the original operation with the same request ID
|
3606
|
+
# was received, and if so, ignores the second request. This prevents
|
3286
3607
|
# clients from accidentally creating duplicate commitments.
|
3287
3608
|
#
|
3288
3609
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -3374,14 +3695,14 @@ module Google
|
|
3374
3695
|
# comment on the User.name field.
|
3375
3696
|
# @param request_id [::String]
|
3376
3697
|
# Optional. An optional request ID to identify requests. Specify a unique
|
3377
|
-
# request ID so that if you must retry your request, the server
|
3378
|
-
#
|
3379
|
-
#
|
3698
|
+
# request ID so that if you must retry your request, the server ignores the
|
3699
|
+
# request if it has already been completed. The server guarantees that for at
|
3700
|
+
# least 60 minutes since the first request.
|
3380
3701
|
#
|
3381
3702
|
# For example, consider a situation where you make an initial request and
|
3382
3703
|
# the request times out. If you make the request again with the same request
|
3383
|
-
# ID, the server can check if original operation with the same request ID
|
3384
|
-
# was received, and if so,
|
3704
|
+
# ID, the server can check if the original operation with the same request ID
|
3705
|
+
# was received, and if so, ignores the second request. This prevents
|
3385
3706
|
# clients from accidentally creating duplicate commitments.
|
3386
3707
|
#
|
3387
3708
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -3470,9 +3791,9 @@ module Google
|
|
3470
3791
|
# Required. Parent value for ListDatabasesRequest.
|
3471
3792
|
# @param page_size [::Integer]
|
3472
3793
|
# Optional. The maximum number of databases to return. The service may return
|
3473
|
-
# fewer than this value. If unspecified,
|
3474
|
-
#
|
3475
|
-
#
|
3794
|
+
# fewer than this value. If unspecified, 2000 is the default page_size. The
|
3795
|
+
# max value of page_size will be 4000, values above max will be coerced to
|
3796
|
+
# max.
|
3476
3797
|
# @param page_token [::String]
|
3477
3798
|
# Optional. A page token, received from a previous `ListDatabases` call.
|
3478
3799
|
# This should be provided to retrieve the subsequent page.
|
@@ -3705,6 +4026,11 @@ module Google
|
|
3705
4026
|
#
|
3706
4027
|
attr_reader :update_cluster
|
3707
4028
|
##
|
4029
|
+
# RPC-specific configuration for `upgrade_cluster`
|
4030
|
+
# @return [::Gapic::Config::Method]
|
4031
|
+
#
|
4032
|
+
attr_reader :upgrade_cluster
|
4033
|
+
##
|
3708
4034
|
# RPC-specific configuration for `delete_cluster`
|
3709
4035
|
# @return [::Gapic::Config::Method]
|
3710
4036
|
#
|
@@ -3715,6 +4041,11 @@ module Google
|
|
3715
4041
|
#
|
3716
4042
|
attr_reader :promote_cluster
|
3717
4043
|
##
|
4044
|
+
# RPC-specific configuration for `switchover_cluster`
|
4045
|
+
# @return [::Gapic::Config::Method]
|
4046
|
+
#
|
4047
|
+
attr_reader :switchover_cluster
|
4048
|
+
##
|
3718
4049
|
# RPC-specific configuration for `restore_cluster`
|
3719
4050
|
# @return [::Gapic::Config::Method]
|
3720
4051
|
#
|
@@ -3775,6 +4106,11 @@ module Google
|
|
3775
4106
|
#
|
3776
4107
|
attr_reader :restart_instance
|
3777
4108
|
##
|
4109
|
+
# RPC-specific configuration for `execute_sql`
|
4110
|
+
# @return [::Gapic::Config::Method]
|
4111
|
+
#
|
4112
|
+
attr_reader :execute_sql
|
4113
|
+
##
|
3778
4114
|
# RPC-specific configuration for `list_backups`
|
3779
4115
|
# @return [::Gapic::Config::Method]
|
3780
4116
|
#
|
@@ -3855,10 +4191,14 @@ module Google
|
|
3855
4191
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
3856
4192
|
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
3857
4193
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
4194
|
+
upgrade_cluster_config = parent_rpcs.upgrade_cluster if parent_rpcs.respond_to? :upgrade_cluster
|
4195
|
+
@upgrade_cluster = ::Gapic::Config::Method.new upgrade_cluster_config
|
3858
4196
|
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
3859
4197
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
3860
4198
|
promote_cluster_config = parent_rpcs.promote_cluster if parent_rpcs.respond_to? :promote_cluster
|
3861
4199
|
@promote_cluster = ::Gapic::Config::Method.new promote_cluster_config
|
4200
|
+
switchover_cluster_config = parent_rpcs.switchover_cluster if parent_rpcs.respond_to? :switchover_cluster
|
4201
|
+
@switchover_cluster = ::Gapic::Config::Method.new switchover_cluster_config
|
3862
4202
|
restore_cluster_config = parent_rpcs.restore_cluster if parent_rpcs.respond_to? :restore_cluster
|
3863
4203
|
@restore_cluster = ::Gapic::Config::Method.new restore_cluster_config
|
3864
4204
|
create_secondary_cluster_config = parent_rpcs.create_secondary_cluster if parent_rpcs.respond_to? :create_secondary_cluster
|
@@ -3883,6 +4223,8 @@ module Google
|
|
3883
4223
|
@inject_fault = ::Gapic::Config::Method.new inject_fault_config
|
3884
4224
|
restart_instance_config = parent_rpcs.restart_instance if parent_rpcs.respond_to? :restart_instance
|
3885
4225
|
@restart_instance = ::Gapic::Config::Method.new restart_instance_config
|
4226
|
+
execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
|
4227
|
+
@execute_sql = ::Gapic::Config::Method.new execute_sql_config
|
3886
4228
|
list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
|
3887
4229
|
@list_backups = ::Gapic::Config::Method.new list_backups_config
|
3888
4230
|
get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
|