google-cloud-alloy_db-v1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +1120 -72
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +10 -1
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/paths.rb +21 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +1441 -39
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +75 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +537 -0
- data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +8 -2
- data/lib/google/cloud/alloydb/v1/service_pb.rb +12 -1
- data/lib/google/cloud/alloydb/v1/service_services_pb.rb +23 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/alloydb/v1/resources.rb +140 -16
- data/proto_docs/google/cloud/alloydb/v1/service.rb +307 -1
- metadata +5 -5
@@ -66,15 +66,54 @@ module Google
|
|
66
66
|
# @return [::String]
|
67
67
|
# Required. The name of the resource. For the required format, see the
|
68
68
|
# comment on the Cluster.name field.
|
69
|
+
# @!attribute [rw] view
|
70
|
+
# @return [::Google::Cloud::AlloyDB::V1::ClusterView]
|
71
|
+
# Optional. The view of the cluster to return. Returns all default fields if
|
72
|
+
# not set.
|
69
73
|
class GetClusterRequest
|
70
74
|
include ::Google::Protobuf::MessageExts
|
71
75
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
76
|
end
|
73
77
|
|
78
|
+
# @!attribute [rw] parent
|
79
|
+
# @return [::String]
|
80
|
+
# Required. The location of the new cluster. For the required
|
81
|
+
# format, see the comment on the Cluster.name field.
|
82
|
+
# @!attribute [rw] cluster_id
|
83
|
+
# @return [::String]
|
84
|
+
# Required. ID of the requesting object (the secondary cluster).
|
85
|
+
# @!attribute [rw] cluster
|
86
|
+
# @return [::Google::Cloud::AlloyDB::V1::Cluster]
|
87
|
+
# Required. Configuration of the requesting object (the secondary cluster).
|
88
|
+
# @!attribute [rw] request_id
|
89
|
+
# @return [::String]
|
90
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
91
|
+
# request ID so that if you must retry your request, the server will know to
|
92
|
+
# ignore the request if it has already been completed. The server will
|
93
|
+
# guarantee that for at least 60 minutes since the first request.
|
94
|
+
#
|
95
|
+
# For example, consider a situation where you make an initial request and
|
96
|
+
# the request times out. If you make the request again with the same request
|
97
|
+
# ID, the server can check if original operation with the same request ID
|
98
|
+
# was received, and if so, will ignore the second request. This prevents
|
99
|
+
# clients from accidentally creating duplicate commitments.
|
100
|
+
#
|
101
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
102
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
103
|
+
# @!attribute [rw] validate_only
|
104
|
+
# @return [::Boolean]
|
105
|
+
# Optional. If set, performs request validation (e.g. permission checks and
|
106
|
+
# any other type of validation), but do not actually execute the create
|
107
|
+
# request.
|
108
|
+
class CreateSecondaryClusterRequest
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
74
113
|
# Message for creating a Cluster
|
75
114
|
# @!attribute [rw] parent
|
76
115
|
# @return [::String]
|
77
|
-
# Required. The
|
116
|
+
# Required. The location of the new cluster. For the required format, see the
|
78
117
|
# comment on the Cluster.name field.
|
79
118
|
# @!attribute [rw] cluster_id
|
80
119
|
# @return [::String]
|
@@ -184,11 +223,49 @@ module Google
|
|
184
223
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
224
|
end
|
186
225
|
|
226
|
+
# Message for promoting a Cluster
|
227
|
+
# @!attribute [rw] name
|
228
|
+
# @return [::String]
|
229
|
+
# Required. The name of the resource. For the required format, see the
|
230
|
+
# comment on the Cluster.name field
|
231
|
+
# @!attribute [rw] request_id
|
232
|
+
# @return [::String]
|
233
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
234
|
+
# request ID so that if you must retry your request, the server will know to
|
235
|
+
# ignore the request if it has already been completed. The server will
|
236
|
+
# guarantee that for at least 60 minutes after the first request.
|
237
|
+
#
|
238
|
+
# For example, consider a situation where you make an initial request and
|
239
|
+
# the request times out. If you make the request again with the same request
|
240
|
+
# ID, the server can check if original operation with the same request ID
|
241
|
+
# was received, and if so, will ignore the second request. This prevents
|
242
|
+
# clients from accidentally creating duplicate commitments.
|
243
|
+
#
|
244
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
245
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
246
|
+
# @!attribute [rw] etag
|
247
|
+
# @return [::String]
|
248
|
+
# Optional. The current etag of the Cluster.
|
249
|
+
# If an etag is provided and does not match the current etag of the Cluster,
|
250
|
+
# deletion will be blocked and an ABORTED error will be returned.
|
251
|
+
# @!attribute [rw] validate_only
|
252
|
+
# @return [::Boolean]
|
253
|
+
# Optional. If set, performs request validation (e.g. permission checks and
|
254
|
+
# any other type of validation), but do not actually execute the delete.
|
255
|
+
class PromoteClusterRequest
|
256
|
+
include ::Google::Protobuf::MessageExts
|
257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
258
|
+
end
|
259
|
+
|
187
260
|
# Message for restoring a Cluster from a backup or another cluster at a given
|
188
261
|
# point in time.
|
189
262
|
# @!attribute [rw] backup_source
|
190
263
|
# @return [::Google::Cloud::AlloyDB::V1::BackupSource]
|
191
264
|
# Backup source.
|
265
|
+
# @!attribute [rw] continuous_backup_source
|
266
|
+
# @return [::Google::Cloud::AlloyDB::V1::ContinuousBackupSource]
|
267
|
+
# ContinuousBackup source. Continuous backup needs to be enabled in the
|
268
|
+
# source cluster for this operation to succeed.
|
192
269
|
# @!attribute [rw] parent
|
193
270
|
# @return [::String]
|
194
271
|
# Required. The name of the parent resource. For the required format, see the
|
@@ -315,6 +392,42 @@ module Google
|
|
315
392
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
316
393
|
end
|
317
394
|
|
395
|
+
# Message for creating a Secondary Instance
|
396
|
+
# @!attribute [rw] parent
|
397
|
+
# @return [::String]
|
398
|
+
# Required. The name of the parent resource. For the required format, see the
|
399
|
+
# comment on the Instance.name field.
|
400
|
+
# @!attribute [rw] instance_id
|
401
|
+
# @return [::String]
|
402
|
+
# Required. ID of the requesting object.
|
403
|
+
# @!attribute [rw] instance
|
404
|
+
# @return [::Google::Cloud::AlloyDB::V1::Instance]
|
405
|
+
# Required. The resource being created
|
406
|
+
# @!attribute [rw] request_id
|
407
|
+
# @return [::String]
|
408
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
409
|
+
# request ID so that if you must retry your request, the server will know to
|
410
|
+
# ignore the request if it has already been completed. The server will
|
411
|
+
# guarantee that for at least 60 minutes since the first request.
|
412
|
+
#
|
413
|
+
# For example, consider a situation where you make an initial request and
|
414
|
+
# the request times out. If you make the request again with the same request
|
415
|
+
# ID, the server can check if original operation with the same request ID
|
416
|
+
# was received, and if so, will ignore the second request. This prevents
|
417
|
+
# clients from accidentally creating duplicate commitments.
|
418
|
+
#
|
419
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
420
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
421
|
+
# @!attribute [rw] validate_only
|
422
|
+
# @return [::Boolean]
|
423
|
+
# Optional. If set, performs request validation (e.g. permission checks and
|
424
|
+
# any other type of validation), but do not actually execute the create
|
425
|
+
# request.
|
426
|
+
class CreateSecondaryInstanceRequest
|
427
|
+
include ::Google::Protobuf::MessageExts
|
428
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
429
|
+
end
|
430
|
+
|
318
431
|
# See usage below for notes.
|
319
432
|
# @!attribute [rw] create_instance_requests
|
320
433
|
# @return [::Array<::Google::Cloud::AlloyDB::V1::CreateInstanceRequest>]
|
@@ -362,6 +475,7 @@ module Google
|
|
362
475
|
end
|
363
476
|
|
364
477
|
# Message for metadata that is specific to BatchCreateInstances API.
|
478
|
+
# NEXT_ID: 3
|
365
479
|
# @!attribute [rw] instance_targets
|
366
480
|
# @return [::Array<::String>]
|
367
481
|
# The instances being created in the API call. Each string in this list
|
@@ -401,6 +515,7 @@ module Google
|
|
401
515
|
# 2. Instance2 = ROLLED_BACK
|
402
516
|
# 3. Instance3 = FAILED
|
403
517
|
# 4. Instance4 = FAILED
|
518
|
+
#
|
404
519
|
# However, while the operation is running, the instance might be in other
|
405
520
|
# states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states
|
406
521
|
# / do not get further updated once the operation is done.
|
@@ -561,6 +676,49 @@ module Google
|
|
561
676
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
562
677
|
end
|
563
678
|
|
679
|
+
# Message for triggering fault injection on an instance
|
680
|
+
# @!attribute [rw] fault_type
|
681
|
+
# @return [::Google::Cloud::AlloyDB::V1::InjectFaultRequest::FaultType]
|
682
|
+
# Required. The type of fault to be injected in an instance.
|
683
|
+
# @!attribute [rw] name
|
684
|
+
# @return [::String]
|
685
|
+
# Required. The name of the resource. For the required format, see the
|
686
|
+
# comment on the Instance.name field.
|
687
|
+
# @!attribute [rw] request_id
|
688
|
+
# @return [::String]
|
689
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
690
|
+
# request ID so that if you must retry your request, the server will know to
|
691
|
+
# ignore the request if it has already been completed. The server will
|
692
|
+
# guarantee that for at least 60 minutes after the first request.
|
693
|
+
#
|
694
|
+
# For example, consider a situation where you make an initial request and
|
695
|
+
# the request times out. If you make the request again with the same request
|
696
|
+
# ID, the server can check if original operation with the same request ID
|
697
|
+
# was received, and if so, will ignore the second request. This prevents
|
698
|
+
# clients from accidentally creating duplicate commitments.
|
699
|
+
#
|
700
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
701
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
702
|
+
# @!attribute [rw] validate_only
|
703
|
+
# @return [::Boolean]
|
704
|
+
# Optional. If set, performs request validation (e.g. permission checks and
|
705
|
+
# any other type of validation), but do not actually execute the fault
|
706
|
+
# injection.
|
707
|
+
class InjectFaultRequest
|
708
|
+
include ::Google::Protobuf::MessageExts
|
709
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
710
|
+
|
711
|
+
# FaultType contains all valid types of faults that can be injected to an
|
712
|
+
# instance.
|
713
|
+
module FaultType
|
714
|
+
# The fault type is unknown.
|
715
|
+
FAULT_TYPE_UNSPECIFIED = 0
|
716
|
+
|
717
|
+
# Stop the VM
|
718
|
+
STOP_VM = 1
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
564
722
|
# @!attribute [rw] name
|
565
723
|
# @return [::String]
|
566
724
|
# Required. The name of the resource. For the required format, see the
|
@@ -809,6 +967,154 @@ module Google
|
|
809
967
|
include ::Google::Protobuf::MessageExts
|
810
968
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
811
969
|
end
|
970
|
+
|
971
|
+
# Message for requesting list of Users
|
972
|
+
# @!attribute [rw] parent
|
973
|
+
# @return [::String]
|
974
|
+
# Required. Parent value for ListUsersRequest
|
975
|
+
# @!attribute [rw] page_size
|
976
|
+
# @return [::Integer]
|
977
|
+
# Optional. Requested page size. Server may return fewer items than
|
978
|
+
# requested. If unspecified, server will pick an appropriate default.
|
979
|
+
# @!attribute [rw] page_token
|
980
|
+
# @return [::String]
|
981
|
+
# Optional. A token identifying a page of results the server should return.
|
982
|
+
# @!attribute [rw] filter
|
983
|
+
# @return [::String]
|
984
|
+
# Optional. Filtering results
|
985
|
+
# @!attribute [rw] order_by
|
986
|
+
# @return [::String]
|
987
|
+
# Optional. Hint for how to order the results
|
988
|
+
class ListUsersRequest
|
989
|
+
include ::Google::Protobuf::MessageExts
|
990
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
991
|
+
end
|
992
|
+
|
993
|
+
# Message for response to listing Users
|
994
|
+
# @!attribute [rw] users
|
995
|
+
# @return [::Array<::Google::Cloud::AlloyDB::V1::User>]
|
996
|
+
# The list of User
|
997
|
+
# @!attribute [rw] next_page_token
|
998
|
+
# @return [::String]
|
999
|
+
# A token identifying a page of results the server should return.
|
1000
|
+
# @!attribute [rw] unreachable
|
1001
|
+
# @return [::Array<::String>]
|
1002
|
+
# Locations that could not be reached.
|
1003
|
+
class ListUsersResponse
|
1004
|
+
include ::Google::Protobuf::MessageExts
|
1005
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Message for getting a User
|
1009
|
+
# @!attribute [rw] name
|
1010
|
+
# @return [::String]
|
1011
|
+
# Required. The name of the resource. For the required format, see the
|
1012
|
+
# comment on the User.name field.
|
1013
|
+
class GetUserRequest
|
1014
|
+
include ::Google::Protobuf::MessageExts
|
1015
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Message for creating a User
|
1019
|
+
# @!attribute [rw] parent
|
1020
|
+
# @return [::String]
|
1021
|
+
# Required. Value for parent.
|
1022
|
+
# @!attribute [rw] user_id
|
1023
|
+
# @return [::String]
|
1024
|
+
# Required. ID of the requesting object.
|
1025
|
+
# @!attribute [rw] user
|
1026
|
+
# @return [::Google::Cloud::AlloyDB::V1::User]
|
1027
|
+
# Required. The resource being created
|
1028
|
+
# @!attribute [rw] request_id
|
1029
|
+
# @return [::String]
|
1030
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1031
|
+
# request ID so that if you must retry your request, the server will know to
|
1032
|
+
# ignore the request if it has already been completed. The server will
|
1033
|
+
# guarantee that for at least 60 minutes since the first request.
|
1034
|
+
#
|
1035
|
+
# For example, consider a situation where you make an initial request and
|
1036
|
+
# the request times out. If you make the request again with the same request
|
1037
|
+
# ID, the server can check if original operation with the same request ID
|
1038
|
+
# was received, and if so, will ignore the second request. This prevents
|
1039
|
+
# clients from accidentally creating duplicate commitments.
|
1040
|
+
#
|
1041
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1042
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1043
|
+
# @!attribute [rw] validate_only
|
1044
|
+
# @return [::Boolean]
|
1045
|
+
# Optional. If set, the backend validates the request, but doesn't actually
|
1046
|
+
# execute it.
|
1047
|
+
class CreateUserRequest
|
1048
|
+
include ::Google::Protobuf::MessageExts
|
1049
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Message for updating a User
|
1053
|
+
# @!attribute [rw] update_mask
|
1054
|
+
# @return [::Google::Protobuf::FieldMask]
|
1055
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1056
|
+
# User resource by the update.
|
1057
|
+
# The fields specified in the update_mask are relative to the resource, not
|
1058
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
1059
|
+
# user does not provide a mask then all fields will be overwritten.
|
1060
|
+
# @!attribute [rw] user
|
1061
|
+
# @return [::Google::Cloud::AlloyDB::V1::User]
|
1062
|
+
# Required. The resource being updated
|
1063
|
+
# @!attribute [rw] request_id
|
1064
|
+
# @return [::String]
|
1065
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1066
|
+
# request ID so that if you must retry your request, the server will know to
|
1067
|
+
# ignore the request if it has already been completed. The server will
|
1068
|
+
# guarantee that for at least 60 minutes since the first request.
|
1069
|
+
#
|
1070
|
+
# For example, consider a situation where you make an initial request and
|
1071
|
+
# the request times out. If you make the request again with the same request
|
1072
|
+
# ID, the server can check if original operation with the same request ID
|
1073
|
+
# was received, and if so, will ignore the second request. This prevents
|
1074
|
+
# clients from accidentally creating duplicate commitments.
|
1075
|
+
#
|
1076
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1077
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1078
|
+
# @!attribute [rw] validate_only
|
1079
|
+
# @return [::Boolean]
|
1080
|
+
# Optional. If set, the backend validates the request, but doesn't actually
|
1081
|
+
# execute it.
|
1082
|
+
# @!attribute [rw] allow_missing
|
1083
|
+
# @return [::Boolean]
|
1084
|
+
# Optional. Allow missing fields in the update mask.
|
1085
|
+
class UpdateUserRequest
|
1086
|
+
include ::Google::Protobuf::MessageExts
|
1087
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# Message for deleting a User
|
1091
|
+
# @!attribute [rw] name
|
1092
|
+
# @return [::String]
|
1093
|
+
# Required. The name of the resource. For the required format, see the
|
1094
|
+
# comment on the User.name field.
|
1095
|
+
# @!attribute [rw] request_id
|
1096
|
+
# @return [::String]
|
1097
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1098
|
+
# request ID so that if you must retry your request, the server will know to
|
1099
|
+
# ignore the request if it has already been completed. The server will
|
1100
|
+
# guarantee that for at least 60 minutes after the first request.
|
1101
|
+
#
|
1102
|
+
# For example, consider a situation where you make an initial request and
|
1103
|
+
# the request times out. If you make the request again with the same request
|
1104
|
+
# ID, the server can check if original operation with the same request ID
|
1105
|
+
# was received, and if so, will ignore the second request. This prevents
|
1106
|
+
# clients from accidentally creating duplicate commitments.
|
1107
|
+
#
|
1108
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1109
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1110
|
+
# @!attribute [rw] validate_only
|
1111
|
+
# @return [::Boolean]
|
1112
|
+
# Optional. If set, the backend validates the request, but doesn't actually
|
1113
|
+
# execute it.
|
1114
|
+
class DeleteUserRequest
|
1115
|
+
include ::Google::Protobuf::MessageExts
|
1116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1117
|
+
end
|
812
1118
|
end
|
813
1119
|
end
|
814
1120
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-alloy_db-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '0'
|
273
273
|
requirements: []
|
274
|
-
rubygems_version: 3.4.
|
274
|
+
rubygems_version: 3.4.19
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: AlloyDB for PostgreSQL is an open source-compatible database service that
|