google-cloud-alloy_db-v1 0.9.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -21
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +540 -175
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +12 -15
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +515 -175
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +43 -38
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +444 -185
- data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1/data_model_pb.rb +45 -0
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +12 -1
- data/lib/google/cloud/alloydb/v1/service_pb.rb +11 -1
- data/lib/google/cloud/alloydb/v1/service_services_pb.rb +8 -0
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/alloydb/v1/data_model.rb +75 -0
- data/proto_docs/google/cloud/alloydb/v1/resources.rb +241 -6
- data/proto_docs/google/cloud/alloydb/v1/service.rb +304 -143
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +9 -6
@@ -88,23 +88,23 @@ module Google
|
|
88
88
|
# @!attribute [rw] request_id
|
89
89
|
# @return [::String]
|
90
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
|
92
|
-
#
|
93
|
-
#
|
91
|
+
# request ID so that if you must retry your request, the server ignores the
|
92
|
+
# request if it has already been completed. The server guarantees that for at
|
93
|
+
# least 60 minutes since the first request.
|
94
94
|
#
|
95
95
|
# For example, consider a situation where you make an initial request and
|
96
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,
|
97
|
+
# ID, the server can check if the original operation with the same request ID
|
98
|
+
# was received, and if so, ignores the second request. This prevents
|
99
99
|
# clients from accidentally creating duplicate commitments.
|
100
100
|
#
|
101
101
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
102
102
|
# not supported (00000000-0000-0000-0000-000000000000).
|
103
103
|
# @!attribute [rw] validate_only
|
104
104
|
# @return [::Boolean]
|
105
|
-
# Optional. If set, performs request validation
|
106
|
-
# any other type of validation
|
107
|
-
# request.
|
105
|
+
# Optional. If set, performs request validation, for example, permission
|
106
|
+
# checks and any other type of validation, but does not actually execute the
|
107
|
+
# create request.
|
108
108
|
class CreateSecondaryClusterRequest
|
109
109
|
include ::Google::Protobuf::MessageExts
|
110
110
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -124,23 +124,23 @@ module Google
|
|
124
124
|
# @!attribute [rw] request_id
|
125
125
|
# @return [::String]
|
126
126
|
# Optional. An optional request ID to identify requests. Specify a unique
|
127
|
-
# request ID so that if you must retry your request, the server
|
128
|
-
#
|
129
|
-
#
|
127
|
+
# request ID so that if you must retry your request, the server ignores the
|
128
|
+
# request if it has already been completed. The server guarantees that for at
|
129
|
+
# least 60 minutes since the first request.
|
130
130
|
#
|
131
131
|
# For example, consider a situation where you make an initial request and
|
132
132
|
# the request times out. If you make the request again with the same request
|
133
|
-
# ID, the server can check if original operation with the same request ID
|
134
|
-
# was received, and if so,
|
133
|
+
# ID, the server can check if the original operation with the same request ID
|
134
|
+
# was received, and if so, ignores the second request. This prevents
|
135
135
|
# clients from accidentally creating duplicate commitments.
|
136
136
|
#
|
137
137
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
138
138
|
# not supported (00000000-0000-0000-0000-000000000000).
|
139
139
|
# @!attribute [rw] validate_only
|
140
140
|
# @return [::Boolean]
|
141
|
-
# Optional. If set, performs request validation
|
142
|
-
# any other type of validation
|
143
|
-
# request.
|
141
|
+
# Optional. If set, performs request validation, for example, permission
|
142
|
+
# checks and any other type of validation, but does not actually execute the
|
143
|
+
# create request.
|
144
144
|
class CreateClusterRequest
|
145
145
|
include ::Google::Protobuf::MessageExts
|
146
146
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -160,23 +160,23 @@ module Google
|
|
160
160
|
# @!attribute [rw] request_id
|
161
161
|
# @return [::String]
|
162
162
|
# Optional. An optional request ID to identify requests. Specify a unique
|
163
|
-
# request ID so that if you must retry your request, the server
|
164
|
-
#
|
165
|
-
#
|
163
|
+
# request ID so that if you must retry your request, the server ignores the
|
164
|
+
# request if it has already been completed. The server guarantees that for at
|
165
|
+
# least 60 minutes since the first request.
|
166
166
|
#
|
167
167
|
# For example, consider a situation where you make an initial request and
|
168
168
|
# the request times out. If you make the request again with the same request
|
169
|
-
# ID, the server can check if original operation with the same request ID
|
170
|
-
# was received, and if so,
|
169
|
+
# ID, the server can check if the original operation with the same request ID
|
170
|
+
# was received, and if so, ignores the second request. This prevents
|
171
171
|
# clients from accidentally creating duplicate commitments.
|
172
172
|
#
|
173
173
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
174
174
|
# not supported (00000000-0000-0000-0000-000000000000).
|
175
175
|
# @!attribute [rw] validate_only
|
176
176
|
# @return [::Boolean]
|
177
|
-
# Optional. If set, performs request validation
|
178
|
-
# any other type of validation
|
179
|
-
# request.
|
177
|
+
# Optional. If set, performs request validation, for example, permission
|
178
|
+
# checks and any other type of validation, but does not actually execute the
|
179
|
+
# create request.
|
180
180
|
# @!attribute [rw] allow_missing
|
181
181
|
# @return [::Boolean]
|
182
182
|
# Optional. If set to true, update succeeds even if cluster is not found. In
|
@@ -194,14 +194,14 @@ module Google
|
|
194
194
|
# @!attribute [rw] request_id
|
195
195
|
# @return [::String]
|
196
196
|
# Optional. An optional request ID to identify requests. Specify a unique
|
197
|
-
# request ID so that if you must retry your request, the server
|
198
|
-
#
|
199
|
-
#
|
197
|
+
# request ID so that if you must retry your request, the server ignores the
|
198
|
+
# request if it has already been completed. The server guarantees that for at
|
199
|
+
# least 60 minutes since the first request.
|
200
200
|
#
|
201
201
|
# For example, consider a situation where you make an initial request and
|
202
202
|
# the request times out. If you make the request again with the same request
|
203
|
-
# ID, the server can check if original operation with the same request ID
|
204
|
-
# was received, and if so,
|
203
|
+
# ID, the server can check if the original operation with the same request ID
|
204
|
+
# was received, and if so, ignores the second request. This prevents
|
205
205
|
# clients from accidentally creating duplicate commitments.
|
206
206
|
#
|
207
207
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -213,8 +213,9 @@ module Google
|
|
213
213
|
# deletion will be blocked and an ABORTED error will be returned.
|
214
214
|
# @!attribute [rw] validate_only
|
215
215
|
# @return [::Boolean]
|
216
|
-
# Optional. If set, performs request validation
|
217
|
-
# any other type of validation
|
216
|
+
# Optional. If set, performs request validation, for example, permission
|
217
|
+
# checks and any other type of validation, but does not actually execute the
|
218
|
+
# create request.
|
218
219
|
# @!attribute [rw] force
|
219
220
|
# @return [::Boolean]
|
220
221
|
# Optional. Whether to cascade delete child instances for given cluster.
|
@@ -223,6 +224,36 @@ module Google
|
|
223
224
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
224
225
|
end
|
225
226
|
|
227
|
+
# Message for switching over to a cluster
|
228
|
+
# @!attribute [rw] name
|
229
|
+
# @return [::String]
|
230
|
+
# Required. The name of the resource. For the required format, see the
|
231
|
+
# comment on the Cluster.name field
|
232
|
+
# @!attribute [rw] request_id
|
233
|
+
# @return [::String]
|
234
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
235
|
+
# request ID so that if you must retry your request, the server ignores the
|
236
|
+
# request if it has already been completed. The server guarantees that for at
|
237
|
+
# least 60 minutes since the first request.
|
238
|
+
#
|
239
|
+
# For example, consider a situation where you make an initial request and
|
240
|
+
# the request times out. If you make the request again with the same request
|
241
|
+
# ID, the server can check if the original operation with the same request ID
|
242
|
+
# was received, and if so, ignores the second request. This prevents
|
243
|
+
# clients from accidentally creating duplicate commitments.
|
244
|
+
#
|
245
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
246
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
247
|
+
# @!attribute [rw] validate_only
|
248
|
+
# @return [::Boolean]
|
249
|
+
# Optional. If set, performs request validation, for example, permission
|
250
|
+
# checks and any other type of validation, but does not actually execute the
|
251
|
+
# create request.
|
252
|
+
class SwitchoverClusterRequest
|
253
|
+
include ::Google::Protobuf::MessageExts
|
254
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
255
|
+
end
|
256
|
+
|
226
257
|
# Message for promoting a Cluster
|
227
258
|
# @!attribute [rw] name
|
228
259
|
# @return [::String]
|
@@ -231,9 +262,9 @@ module Google
|
|
231
262
|
# @!attribute [rw] request_id
|
232
263
|
# @return [::String]
|
233
264
|
# Optional. An optional request ID to identify requests. Specify a unique
|
234
|
-
# request ID so that if you must retry your request, the server
|
235
|
-
#
|
236
|
-
#
|
265
|
+
# request ID so that if you must retry your request, the server ignores the
|
266
|
+
# request if it has already been completed. The server guarantees that for at
|
267
|
+
# least 60 minutes since the first request.
|
237
268
|
#
|
238
269
|
# For example, consider a situation where you make an initial request and
|
239
270
|
# the request times out. If you make the request again with the same request
|
@@ -250,8 +281,9 @@ module Google
|
|
250
281
|
# deletion will be blocked and an ABORTED error will be returned.
|
251
282
|
# @!attribute [rw] validate_only
|
252
283
|
# @return [::Boolean]
|
253
|
-
# Optional. If set, performs request validation
|
254
|
-
# any other type of validation
|
284
|
+
# Optional. If set, performs request validation, for example, permission
|
285
|
+
# checks and any other type of validation, but does not actually execute the
|
286
|
+
# create request.
|
255
287
|
class PromoteClusterRequest
|
256
288
|
include ::Google::Protobuf::MessageExts
|
257
289
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -279,23 +311,23 @@ module Google
|
|
279
311
|
# @!attribute [rw] request_id
|
280
312
|
# @return [::String]
|
281
313
|
# Optional. An optional request ID to identify requests. Specify a unique
|
282
|
-
# request ID so that if you must retry your request, the server
|
283
|
-
#
|
284
|
-
#
|
314
|
+
# request ID so that if you must retry your request, the server ignores the
|
315
|
+
# request if it has already been completed. The server guarantees that for at
|
316
|
+
# least 60 minutes since the first request.
|
285
317
|
#
|
286
318
|
# For example, consider a situation where you make an initial request and
|
287
319
|
# the request times out. If you make the request again with the same request
|
288
|
-
# ID, the server can check if original operation with the same request ID
|
289
|
-
# was received, and if so,
|
320
|
+
# ID, the server can check if the original operation with the same request ID
|
321
|
+
# was received, and if so, ignores the second request. This prevents
|
290
322
|
# clients from accidentally creating duplicate commitments.
|
291
323
|
#
|
292
324
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
293
325
|
# not supported (00000000-0000-0000-0000-000000000000).
|
294
326
|
# @!attribute [rw] validate_only
|
295
327
|
# @return [::Boolean]
|
296
|
-
# Optional. If set, performs request validation
|
297
|
-
# any other type of validation
|
298
|
-
# request.
|
328
|
+
# Optional. If set, performs request validation, for example, permission
|
329
|
+
# checks and any other type of validation, but does not actually execute the
|
330
|
+
# create request.
|
299
331
|
class RestoreClusterRequest
|
300
332
|
include ::Google::Protobuf::MessageExts
|
301
333
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -370,23 +402,23 @@ module Google
|
|
370
402
|
# @!attribute [rw] request_id
|
371
403
|
# @return [::String]
|
372
404
|
# Optional. An optional request ID to identify requests. Specify a unique
|
373
|
-
# request ID so that if you must retry your request, the server
|
374
|
-
#
|
375
|
-
#
|
405
|
+
# request ID so that if you must retry your request, the server ignores the
|
406
|
+
# request if it has already been completed. The server guarantees that for at
|
407
|
+
# least 60 minutes since the first request.
|
376
408
|
#
|
377
409
|
# For example, consider a situation where you make an initial request and
|
378
410
|
# the request times out. If you make the request again with the same request
|
379
|
-
# ID, the server can check if original operation with the same request ID
|
380
|
-
# was received, and if so,
|
411
|
+
# ID, the server can check if the original operation with the same request ID
|
412
|
+
# was received, and if so, ignores the second request. This prevents
|
381
413
|
# clients from accidentally creating duplicate commitments.
|
382
414
|
#
|
383
415
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
384
416
|
# not supported (00000000-0000-0000-0000-000000000000).
|
385
417
|
# @!attribute [rw] validate_only
|
386
418
|
# @return [::Boolean]
|
387
|
-
# Optional. If set, performs request validation
|
388
|
-
# any other type of validation
|
389
|
-
# request.
|
419
|
+
# Optional. If set, performs request validation, for example, permission
|
420
|
+
# checks and any other type of validation, but does not actually execute the
|
421
|
+
# create request.
|
390
422
|
class CreateInstanceRequest
|
391
423
|
include ::Google::Protobuf::MessageExts
|
392
424
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -406,23 +438,23 @@ module Google
|
|
406
438
|
# @!attribute [rw] request_id
|
407
439
|
# @return [::String]
|
408
440
|
# Optional. An optional request ID to identify requests. Specify a unique
|
409
|
-
# request ID so that if you must retry your request, the server
|
410
|
-
#
|
411
|
-
#
|
441
|
+
# request ID so that if you must retry your request, the server ignores the
|
442
|
+
# request if it has already been completed. The server guarantees that for at
|
443
|
+
# least 60 minutes since the first request.
|
412
444
|
#
|
413
445
|
# For example, consider a situation where you make an initial request and
|
414
446
|
# 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,
|
447
|
+
# ID, the server can check if the original operation with the same request ID
|
448
|
+
# was received, and if so, ignores the second request. This prevents
|
417
449
|
# clients from accidentally creating duplicate commitments.
|
418
450
|
#
|
419
451
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
420
452
|
# not supported (00000000-0000-0000-0000-000000000000).
|
421
453
|
# @!attribute [rw] validate_only
|
422
454
|
# @return [::Boolean]
|
423
|
-
# Optional. If set, performs request validation
|
424
|
-
# any other type of validation
|
425
|
-
# request.
|
455
|
+
# Optional. If set, performs request validation, for example, permission
|
456
|
+
# checks and any other type of validation, but does not actually execute the
|
457
|
+
# create request.
|
426
458
|
class CreateSecondaryInstanceRequest
|
427
459
|
include ::Google::Protobuf::MessageExts
|
428
460
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -448,14 +480,14 @@ module Google
|
|
448
480
|
# @!attribute [rw] request_id
|
449
481
|
# @return [::String]
|
450
482
|
# Optional. An optional request ID to identify requests. Specify a unique
|
451
|
-
# request ID so that if you must retry your request, the server
|
452
|
-
#
|
453
|
-
#
|
483
|
+
# request ID so that if you must retry your request, the server ignores the
|
484
|
+
# request if it has already been completed. The server guarantees that for at
|
485
|
+
# least 60 minutes since the first request.
|
454
486
|
#
|
455
487
|
# For example, consider a situation where you make an initial request and
|
456
488
|
# the request times out. If you make the request again with the same request
|
457
|
-
# ID, the server can check if original operation with the same request ID
|
458
|
-
# was received, and if so,
|
489
|
+
# ID, the server can check if the original operation with the same request ID
|
490
|
+
# was received, and if so, ignores the second request. This prevents
|
459
491
|
# clients from accidentally creating duplicate commitments.
|
460
492
|
#
|
461
493
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -551,7 +583,7 @@ module Google
|
|
551
583
|
STATE_UNSPECIFIED = 0
|
552
584
|
|
553
585
|
# Instance is pending creation and has not yet been picked up for
|
554
|
-
#
|
586
|
+
# processing in the backend.
|
555
587
|
PENDING_CREATE = 1
|
556
588
|
|
557
589
|
# The instance is active and running.
|
@@ -587,23 +619,23 @@ module Google
|
|
587
619
|
# @!attribute [rw] request_id
|
588
620
|
# @return [::String]
|
589
621
|
# Optional. An optional request ID to identify requests. Specify a unique
|
590
|
-
# request ID so that if you must retry your request, the server
|
591
|
-
#
|
592
|
-
#
|
622
|
+
# request ID so that if you must retry your request, the server ignores the
|
623
|
+
# request if it has already been completed. The server guarantees that for at
|
624
|
+
# least 60 minutes since the first request.
|
593
625
|
#
|
594
626
|
# For example, consider a situation where you make an initial request and
|
595
627
|
# the request times out. If you make the request again with the same request
|
596
|
-
# ID, the server can check if original operation with the same request ID
|
597
|
-
# was received, and if so,
|
628
|
+
# ID, the server can check if the original operation with the same request ID
|
629
|
+
# was received, and if so, ignores the second request. This prevents
|
598
630
|
# clients from accidentally creating duplicate commitments.
|
599
631
|
#
|
600
632
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
601
633
|
# not supported (00000000-0000-0000-0000-000000000000).
|
602
634
|
# @!attribute [rw] validate_only
|
603
635
|
# @return [::Boolean]
|
604
|
-
# Optional. If set, performs request validation
|
605
|
-
# any other type of validation
|
606
|
-
# request.
|
636
|
+
# Optional. If set, performs request validation, for example, permission
|
637
|
+
# checks and any other type of validation, but does not actually execute the
|
638
|
+
# create request.
|
607
639
|
# @!attribute [rw] allow_missing
|
608
640
|
# @return [::Boolean]
|
609
641
|
# Optional. If set to true, update succeeds even if instance is not found. In
|
@@ -621,14 +653,14 @@ module Google
|
|
621
653
|
# @!attribute [rw] request_id
|
622
654
|
# @return [::String]
|
623
655
|
# Optional. An optional request ID to identify requests. Specify a unique
|
624
|
-
# request ID so that if you must retry your request, the server
|
625
|
-
#
|
626
|
-
#
|
656
|
+
# request ID so that if you must retry your request, the server ignores the
|
657
|
+
# request if it has already been completed. The server guarantees that for at
|
658
|
+
# least 60 minutes since the first request.
|
627
659
|
#
|
628
660
|
# For example, consider a situation where you make an initial request and
|
629
661
|
# the request times out. If you make the request again with the same request
|
630
|
-
# ID, the server can check if original operation with the same request ID
|
631
|
-
# was received, and if so,
|
662
|
+
# ID, the server can check if the original operation with the same request ID
|
663
|
+
# was received, and if so, ignores the second request. This prevents
|
632
664
|
# clients from accidentally creating duplicate commitments.
|
633
665
|
#
|
634
666
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -640,8 +672,9 @@ module Google
|
|
640
672
|
# deletion will be blocked and an ABORTED error will be returned.
|
641
673
|
# @!attribute [rw] validate_only
|
642
674
|
# @return [::Boolean]
|
643
|
-
# Optional. If set, performs request validation
|
644
|
-
# any other type of validation
|
675
|
+
# Optional. If set, performs request validation, for example, permission
|
676
|
+
# checks and any other type of validation, but does not actually execute the
|
677
|
+
# create request.
|
645
678
|
class DeleteInstanceRequest
|
646
679
|
include ::Google::Protobuf::MessageExts
|
647
680
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -655,22 +688,23 @@ module Google
|
|
655
688
|
# @!attribute [rw] request_id
|
656
689
|
# @return [::String]
|
657
690
|
# Optional. An optional request ID to identify requests. Specify a unique
|
658
|
-
# request ID so that if you must retry your request, the server
|
659
|
-
#
|
660
|
-
#
|
691
|
+
# request ID so that if you must retry your request, the server ignores the
|
692
|
+
# request if it has already been completed. The server guarantees that for at
|
693
|
+
# least 60 minutes since the first request.
|
661
694
|
#
|
662
695
|
# For example, consider a situation where you make an initial request and
|
663
696
|
# the request times out. If you make the request again with the same request
|
664
|
-
# ID, the server can check if original operation with the same request ID
|
665
|
-
# was received, and if so,
|
697
|
+
# ID, the server can check if the original operation with the same request ID
|
698
|
+
# was received, and if so, ignores the second request. This prevents
|
666
699
|
# clients from accidentally creating duplicate commitments.
|
667
700
|
#
|
668
701
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
669
702
|
# not supported (00000000-0000-0000-0000-000000000000).
|
670
703
|
# @!attribute [rw] validate_only
|
671
704
|
# @return [::Boolean]
|
672
|
-
# Optional. If set, performs request validation
|
673
|
-
# any other type of validation
|
705
|
+
# Optional. If set, performs request validation, for example, permission
|
706
|
+
# checks and any other type of validation, but does not actually execute the
|
707
|
+
# create request.
|
674
708
|
class FailoverInstanceRequest
|
675
709
|
include ::Google::Protobuf::MessageExts
|
676
710
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -687,23 +721,23 @@ module Google
|
|
687
721
|
# @!attribute [rw] request_id
|
688
722
|
# @return [::String]
|
689
723
|
# Optional. An optional request ID to identify requests. Specify a unique
|
690
|
-
# request ID so that if you must retry your request, the server
|
691
|
-
#
|
692
|
-
#
|
724
|
+
# request ID so that if you must retry your request, the server ignores the
|
725
|
+
# request if it has already been completed. The server guarantees that for at
|
726
|
+
# least 60 minutes since the first request.
|
693
727
|
#
|
694
728
|
# For example, consider a situation where you make an initial request and
|
695
729
|
# 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,
|
730
|
+
# ID, the server can check if the original operation with the same request ID
|
731
|
+
# was received, and if so, ignores the second request. This prevents
|
698
732
|
# clients from accidentally creating duplicate commitments.
|
699
733
|
#
|
700
734
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
701
735
|
# not supported (00000000-0000-0000-0000-000000000000).
|
702
736
|
# @!attribute [rw] validate_only
|
703
737
|
# @return [::Boolean]
|
704
|
-
# Optional. If set, performs request validation
|
705
|
-
# any other type of validation
|
706
|
-
#
|
738
|
+
# Optional. If set, performs request validation, for example, permission
|
739
|
+
# checks and any other type of validation, but does not actually execute the
|
740
|
+
# create request.
|
707
741
|
class InjectFaultRequest
|
708
742
|
include ::Google::Protobuf::MessageExts
|
709
743
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -726,27 +760,117 @@ module Google
|
|
726
760
|
# @!attribute [rw] request_id
|
727
761
|
# @return [::String]
|
728
762
|
# Optional. An optional request ID to identify requests. Specify a unique
|
729
|
-
# request ID so that if you must retry your request, the server
|
730
|
-
#
|
731
|
-
#
|
763
|
+
# request ID so that if you must retry your request, the server ignores the
|
764
|
+
# request if it has already been completed. The server guarantees that for at
|
765
|
+
# least 60 minutes since the first request.
|
732
766
|
#
|
733
767
|
# For example, consider a situation where you make an initial request and
|
734
768
|
# the request times out. If you make the request again with the same request
|
735
|
-
# ID, the server can check if original operation with the same request ID
|
736
|
-
# was received, and if so,
|
769
|
+
# ID, the server can check if the original operation with the same request ID
|
770
|
+
# was received, and if so, ignores the second request. This prevents
|
737
771
|
# clients from accidentally creating duplicate commitments.
|
738
772
|
#
|
739
773
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
740
774
|
# not supported (00000000-0000-0000-0000-000000000000).
|
741
775
|
# @!attribute [rw] validate_only
|
742
776
|
# @return [::Boolean]
|
743
|
-
# Optional. If set, performs request validation
|
744
|
-
# any other type of validation
|
777
|
+
# Optional. If set, performs request validation, for example, permission
|
778
|
+
# checks and any other type of validation, but does not actually execute the
|
779
|
+
# create request.
|
780
|
+
# @!attribute [rw] node_ids
|
781
|
+
# @return [::Array<::String>]
|
782
|
+
# Optional. Full name of the nodes as obtained from INSTANCE_VIEW_FULL to
|
783
|
+
# restart upon. Applicable only to read instances.
|
745
784
|
class RestartInstanceRequest
|
746
785
|
include ::Google::Protobuf::MessageExts
|
747
786
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
748
787
|
end
|
749
788
|
|
789
|
+
# Request for ExecuteSql rpc.
|
790
|
+
# @!attribute [rw] password
|
791
|
+
# @return [::String]
|
792
|
+
# Optional. The database native user’s password.
|
793
|
+
# @!attribute [rw] instance
|
794
|
+
# @return [::String]
|
795
|
+
# Required. The instance where the SQL will be executed. For the required
|
796
|
+
# format, see the comment on the Instance.name field.
|
797
|
+
# @!attribute [rw] database
|
798
|
+
# @return [::String]
|
799
|
+
# Required. Name of the database where the query will be executed.
|
800
|
+
# Note - Value provided should be the same as expected from `SELECT
|
801
|
+
# current_database();` and NOT as a resource reference.
|
802
|
+
# @!attribute [rw] user
|
803
|
+
# @return [::String]
|
804
|
+
# Required. Database user to be used for executing the SQL.
|
805
|
+
# Note - Value provided should be the same as expected from
|
806
|
+
# `SELECT current_user;` and NOT as a resource reference.
|
807
|
+
# @!attribute [rw] sql_statement
|
808
|
+
# @return [::String]
|
809
|
+
# Required. SQL statement to execute on database. Any valid statement is
|
810
|
+
# permitted, including DDL, DML, DQL statements.
|
811
|
+
class ExecuteSqlRequest
|
812
|
+
include ::Google::Protobuf::MessageExts
|
813
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
814
|
+
end
|
815
|
+
|
816
|
+
# Execute a SQL statement response.
|
817
|
+
# @!attribute [rw] sql_results
|
818
|
+
# @return [::Array<::Google::Cloud::AlloyDB::V1::SqlResult>]
|
819
|
+
# SqlResult represents the results for the execution of sql statements.
|
820
|
+
# @!attribute [rw] metadata
|
821
|
+
# @return [::Google::Cloud::AlloyDB::V1::ExecuteSqlMetadata]
|
822
|
+
# Any additional metadata information regarding the execution of the sql
|
823
|
+
# statement.
|
824
|
+
class ExecuteSqlResponse
|
825
|
+
include ::Google::Protobuf::MessageExts
|
826
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
827
|
+
end
|
828
|
+
|
829
|
+
# Any additional metadata information regarding the execution of the SQL
|
830
|
+
# @!attribute [rw] message
|
831
|
+
# @return [::String]
|
832
|
+
# Message related to SQL execution. Marked as core content since it
|
833
|
+
# can potentially contain details related to the query or result set. This
|
834
|
+
# field can be used to convey messages such as "when the SQL result set
|
835
|
+
# exceeds the acceptable response size limits."
|
836
|
+
# @!attribute [rw] partial_result
|
837
|
+
# @return [::Boolean]
|
838
|
+
# Set to true if SQL returned a result set larger than the acceptable
|
839
|
+
# response size limits and the result was truncated.
|
840
|
+
# @!attribute [rw] sql_statement_execution_duration
|
841
|
+
# @return [::Google::Protobuf::Duration]
|
842
|
+
# The time duration taken to execute the sql statement.
|
843
|
+
# @!attribute [rw] status
|
844
|
+
# @return [::Google::Cloud::AlloyDB::V1::ExecuteSqlMetadata::Status]
|
845
|
+
# Status of SQL execution.
|
846
|
+
class ExecuteSqlMetadata
|
847
|
+
include ::Google::Protobuf::MessageExts
|
848
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
849
|
+
|
850
|
+
# Status contains all valid Status a SQL execution can end up in.
|
851
|
+
module Status
|
852
|
+
# The status is unknown.
|
853
|
+
STATUS_UNSPECIFIED = 0
|
854
|
+
|
855
|
+
# No error during SQL execution i.e. All SQL statements ran to completion.
|
856
|
+
# The "message" will be empty.
|
857
|
+
OK = 1
|
858
|
+
|
859
|
+
# Same as OK, except indicates that only partial results were
|
860
|
+
# returned. The "message" field will contain details on why results were
|
861
|
+
# truncated.
|
862
|
+
PARTIAL = 2
|
863
|
+
|
864
|
+
# Error during SQL execution. Atleast 1 SQL statement execution resulted in
|
865
|
+
# a error. Side effects of other statements are rolled back. The "message"
|
866
|
+
# field will contain human readable error given by Postgres of the first
|
867
|
+
# bad SQL statement. SQL execution errors don't constitute API errors as
|
868
|
+
# defined in https://google.aip.dev/193 but will be returned as part of
|
869
|
+
# this message.
|
870
|
+
ERROR = 3
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
750
874
|
# Message for requesting list of Backups
|
751
875
|
# @!attribute [rw] parent
|
752
876
|
# @return [::String]
|
@@ -806,14 +930,14 @@ module Google
|
|
806
930
|
# @!attribute [rw] request_id
|
807
931
|
# @return [::String]
|
808
932
|
# Optional. An optional request ID to identify requests. Specify a unique
|
809
|
-
# request ID so that if you must retry your request, the server
|
810
|
-
#
|
811
|
-
#
|
933
|
+
# request ID so that if you must retry your request, the server ignores the
|
934
|
+
# request if it has already been completed. The server guarantees that for at
|
935
|
+
# least 60 minutes since the first request.
|
812
936
|
#
|
813
937
|
# For example, consider a situation where you make an initial request and
|
814
938
|
# the request times out. If you make the request again with the same request
|
815
|
-
# ID, the server can check if original operation with the same request ID
|
816
|
-
# was received, and if so,
|
939
|
+
# ID, the server can check if the original operation with the same request ID
|
940
|
+
# was received, and if so, ignores the second request. This prevents
|
817
941
|
# clients from accidentally creating duplicate commitments.
|
818
942
|
#
|
819
943
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -841,14 +965,14 @@ module Google
|
|
841
965
|
# @!attribute [rw] request_id
|
842
966
|
# @return [::String]
|
843
967
|
# Optional. An optional request ID to identify requests. Specify a unique
|
844
|
-
# request ID so that if you must retry your request, the server
|
845
|
-
#
|
846
|
-
#
|
968
|
+
# request ID so that if you must retry your request, the server ignores the
|
969
|
+
# request if it has already been completed. The server guarantees that for at
|
970
|
+
# least 60 minutes since the first request.
|
847
971
|
#
|
848
972
|
# For example, consider a situation where you make an initial request and
|
849
973
|
# the request times out. If you make the request again with the same request
|
850
|
-
# ID, the server can check if original operation with the same request ID
|
851
|
-
# was received, and if so,
|
974
|
+
# ID, the server can check if the original operation with the same request ID
|
975
|
+
# was received, and if so, ignores the second request. This prevents
|
852
976
|
# clients from accidentally creating duplicate commitments.
|
853
977
|
#
|
854
978
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -874,14 +998,14 @@ module Google
|
|
874
998
|
# @!attribute [rw] request_id
|
875
999
|
# @return [::String]
|
876
1000
|
# Optional. An optional request ID to identify requests. Specify a unique
|
877
|
-
# request ID so that if you must retry your request, the server
|
878
|
-
#
|
879
|
-
#
|
1001
|
+
# request ID so that if you must retry your request, the server ignores the
|
1002
|
+
# request if it has already been completed. The server guarantees that for at
|
1003
|
+
# least 60 minutes since the first request.
|
880
1004
|
#
|
881
1005
|
# For example, consider a situation where you make an initial request and
|
882
1006
|
# the request times out. If you make the request again with the same request
|
883
|
-
# ID, the server can check if original operation with the same request ID
|
884
|
-
# was received, and if so,
|
1007
|
+
# ID, the server can check if the original operation with the same request ID
|
1008
|
+
# was received, and if so, ignores the second request. This prevents
|
885
1009
|
# clients from accidentally creating duplicate commitments.
|
886
1010
|
#
|
887
1011
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -943,14 +1067,14 @@ module Google
|
|
943
1067
|
# @!attribute [rw] request_id
|
944
1068
|
# @return [::String]
|
945
1069
|
# Optional. An optional request ID to identify requests. Specify a unique
|
946
|
-
# request ID so that if you must retry your request, the server
|
947
|
-
#
|
948
|
-
#
|
1070
|
+
# request ID so that if you must retry your request, the server ignores the
|
1071
|
+
# request if it has already been completed. The server guarantees that for at
|
1072
|
+
# least 60 minutes since the first request.
|
949
1073
|
#
|
950
1074
|
# For example, consider a situation where you make an initial request and
|
951
1075
|
# the request times out. If you make the request again with the same request
|
952
|
-
# ID, the server can check if original operation with the same request ID
|
953
|
-
# was received, and if so,
|
1076
|
+
# ID, the server can check if the original operation with the same request ID
|
1077
|
+
# was received, and if so, ignores the second request. This prevents
|
954
1078
|
# clients from accidentally creating duplicate commitments.
|
955
1079
|
#
|
956
1080
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -996,14 +1120,14 @@ module Google
|
|
996
1120
|
# @!attribute [rw] request_id
|
997
1121
|
# @return [::String]
|
998
1122
|
# Optional. An optional request ID to identify requests. Specify a unique
|
999
|
-
# request ID so that if you must retry your request, the server
|
1000
|
-
#
|
1001
|
-
#
|
1123
|
+
# request ID so that if you must retry your request, the server ignores the
|
1124
|
+
# request if it has already been completed. The server guarantees that for at
|
1125
|
+
# least 60 minutes since the first request.
|
1002
1126
|
#
|
1003
1127
|
# For example, consider a situation where you make an initial request and
|
1004
1128
|
# the request times out. If you make the request again with the same request
|
1005
|
-
# ID, the server can check if original operation with the same request ID
|
1006
|
-
# was received, and if so,
|
1129
|
+
# ID, the server can check if the original operation with the same request ID
|
1130
|
+
# was received, and if so, ignores the second request. This prevents
|
1007
1131
|
# clients from accidentally creating duplicate commitments.
|
1008
1132
|
#
|
1009
1133
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1107,14 +1231,14 @@ module Google
|
|
1107
1231
|
# @!attribute [rw] request_id
|
1108
1232
|
# @return [::String]
|
1109
1233
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1110
|
-
# request ID so that if you must retry your request, the server
|
1111
|
-
#
|
1112
|
-
#
|
1234
|
+
# request ID so that if you must retry your request, the server ignores the
|
1235
|
+
# request if it has already been completed. The server guarantees that for at
|
1236
|
+
# least 60 minutes since the first request.
|
1113
1237
|
#
|
1114
1238
|
# For example, consider a situation where you make an initial request and
|
1115
1239
|
# the request times out. If you make the request again with the same request
|
1116
|
-
# ID, the server can check if original operation with the same request ID
|
1117
|
-
# was received, and if so,
|
1240
|
+
# ID, the server can check if the original operation with the same request ID
|
1241
|
+
# was received, and if so, ignores the second request. This prevents
|
1118
1242
|
# clients from accidentally creating duplicate commitments.
|
1119
1243
|
#
|
1120
1244
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1142,14 +1266,14 @@ module Google
|
|
1142
1266
|
# @!attribute [rw] request_id
|
1143
1267
|
# @return [::String]
|
1144
1268
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1145
|
-
# request ID so that if you must retry your request, the server
|
1146
|
-
#
|
1147
|
-
#
|
1269
|
+
# request ID so that if you must retry your request, the server ignores the
|
1270
|
+
# request if it has already been completed. The server guarantees that for at
|
1271
|
+
# least 60 minutes since the first request.
|
1148
1272
|
#
|
1149
1273
|
# For example, consider a situation where you make an initial request and
|
1150
1274
|
# the request times out. If you make the request again with the same request
|
1151
|
-
# ID, the server can check if original operation with the same request ID
|
1152
|
-
# was received, and if so,
|
1275
|
+
# ID, the server can check if the original operation with the same request ID
|
1276
|
+
# was received, and if so, ignores the second request. This prevents
|
1153
1277
|
# clients from accidentally creating duplicate commitments.
|
1154
1278
|
#
|
1155
1279
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1174,14 +1298,14 @@ module Google
|
|
1174
1298
|
# @!attribute [rw] request_id
|
1175
1299
|
# @return [::String]
|
1176
1300
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1177
|
-
# request ID so that if you must retry your request, the server
|
1178
|
-
#
|
1179
|
-
#
|
1301
|
+
# request ID so that if you must retry your request, the server ignores the
|
1302
|
+
# request if it has already been completed. The server guarantees that for at
|
1303
|
+
# least 60 minutes since the first request.
|
1180
1304
|
#
|
1181
1305
|
# For example, consider a situation where you make an initial request and
|
1182
1306
|
# the request times out. If you make the request again with the same request
|
1183
|
-
# ID, the server can check if original operation with the same request ID
|
1184
|
-
# was received, and if so,
|
1307
|
+
# ID, the server can check if the original operation with the same request ID
|
1308
|
+
# was received, and if so, ignores the second request. This prevents
|
1185
1309
|
# clients from accidentally creating duplicate commitments.
|
1186
1310
|
#
|
1187
1311
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
@@ -1194,6 +1318,43 @@ module Google
|
|
1194
1318
|
include ::Google::Protobuf::MessageExts
|
1195
1319
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1196
1320
|
end
|
1321
|
+
|
1322
|
+
# Message for requesting list of Databases.
|
1323
|
+
# @!attribute [rw] parent
|
1324
|
+
# @return [::String]
|
1325
|
+
# Required. Parent value for ListDatabasesRequest.
|
1326
|
+
# @!attribute [rw] page_size
|
1327
|
+
# @return [::Integer]
|
1328
|
+
# Optional. The maximum number of databases to return. The service may return
|
1329
|
+
# fewer than this value. If unspecified, 2000 is the default page_size. The
|
1330
|
+
# max value of page_size will be 4000, values above max will be coerced to
|
1331
|
+
# max.
|
1332
|
+
# @!attribute [rw] page_token
|
1333
|
+
# @return [::String]
|
1334
|
+
# Optional. A page token, received from a previous `ListDatabases` call.
|
1335
|
+
# This should be provided to retrieve the subsequent page.
|
1336
|
+
# This field is currently not supported, its value will be ignored if passed.
|
1337
|
+
# @!attribute [rw] filter
|
1338
|
+
# @return [::String]
|
1339
|
+
# Optional. Filtering results.
|
1340
|
+
# This field is currently not supported, its value will be ignored if passed.
|
1341
|
+
class ListDatabasesRequest
|
1342
|
+
include ::Google::Protobuf::MessageExts
|
1343
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# Message for response to listing Databases.
|
1347
|
+
# @!attribute [rw] databases
|
1348
|
+
# @return [::Array<::Google::Cloud::AlloyDB::V1::Database>]
|
1349
|
+
# The list of databases
|
1350
|
+
# @!attribute [rw] next_page_token
|
1351
|
+
# @return [::String]
|
1352
|
+
# A token identifying the next page of results the server should return.
|
1353
|
+
# If this field is omitted, there are no subsequent pages.
|
1354
|
+
class ListDatabasesResponse
|
1355
|
+
include ::Google::Protobuf::MessageExts
|
1356
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1357
|
+
end
|
1197
1358
|
end
|
1198
1359
|
end
|
1199
1360
|
end
|