google-cloud-sql-v1 0.2.0 → 0.5.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/AUTHENTICATION.md +4 -4
- data/README.md +9 -2
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/client.rb +899 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/paths.rb +86 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/client.rb +821 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest.rb +52 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service.rb +55 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb.rb +45 -0
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb.rb +54 -0
- data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +2 -1
- data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +7 -1
- data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +5 -1
- data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +2 -1
- data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_pb.rb +35 -0
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_services_pb.rb +60 -0
- data/lib/google/cloud/sql/v1/rest.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/paths.rb +77 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +18 -6
- data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +18 -6
- data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +131 -44
- data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +108 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +126 -42
- data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +9 -3
- data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +9 -3
- data/lib/google/cloud/sql/v1/sql_users_service/client.rb +23 -5
- data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +23 -5
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/client.rb +906 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/client.rb +810 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service.rb +54 -0
- data/lib/google/cloud/sql/v1/version.rb +1 -1
- data/lib/google/cloud/sql/v1.rb +2 -6
- data/proto_docs/google/api/routing.rb +463 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb +399 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +15 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +248 -2
- data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +9 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +116 -3
- data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +32 -4
- data/proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb +170 -0
- data/proto_docs/google/protobuf/timestamp.rb +7 -6
- metadata +24 -3
|
@@ -28,6 +28,9 @@ module Google
|
|
|
28
28
|
# @!attribute [rw] project
|
|
29
29
|
# @return [::String]
|
|
30
30
|
# Project ID of the project that contains the instance.
|
|
31
|
+
# @!attribute [rw] location
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Optional. Region of the Cloud SQL instance.
|
|
31
34
|
class SqlInstancesAddServerCaRequest
|
|
32
35
|
include ::Google::Protobuf::MessageExts
|
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -40,6 +43,9 @@ module Google
|
|
|
40
43
|
# @!attribute [rw] project
|
|
41
44
|
# @return [::String]
|
|
42
45
|
# Project ID of the project that contains the instance.
|
|
46
|
+
# @!attribute [rw] location
|
|
47
|
+
# @return [::String]
|
|
48
|
+
# Optional. Region of the Cloud SQL instance.
|
|
43
49
|
class SqlInstancesAddServerCertificateRequest
|
|
44
50
|
include ::Google::Protobuf::MessageExts
|
|
45
51
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -52,6 +58,9 @@ module Google
|
|
|
52
58
|
# @!attribute [rw] project
|
|
53
59
|
# @return [::String]
|
|
54
60
|
# Required. Project ID of the project that contains the instance.
|
|
61
|
+
# @!attribute [rw] location
|
|
62
|
+
# @return [::String]
|
|
63
|
+
# Optional. Region of the Cloud SQL instance.
|
|
55
64
|
class SqlInstancesAddEntraIdCertificateRequest
|
|
56
65
|
include ::Google::Protobuf::MessageExts
|
|
57
66
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -67,6 +76,9 @@ module Google
|
|
|
67
76
|
# Required. Project ID of the source Cloud SQL instance.
|
|
68
77
|
# @!attribute [rw] body
|
|
69
78
|
# @return [::Google::Cloud::Sql::V1::InstancesCloneRequest]
|
|
79
|
+
# @!attribute [rw] location
|
|
80
|
+
# @return [::String]
|
|
81
|
+
# Optional. Region of the Cloud SQL instance.
|
|
70
82
|
class SqlInstancesCloneRequest
|
|
71
83
|
include ::Google::Protobuf::MessageExts
|
|
72
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -96,6 +108,9 @@ module Google
|
|
|
96
108
|
# @!attribute [rw] final_backup_description
|
|
97
109
|
# @return [::String]
|
|
98
110
|
# Optional. The description of the final backup.
|
|
111
|
+
# @!attribute [rw] location
|
|
112
|
+
# @return [::String]
|
|
113
|
+
# Optional. Region of the Cloud SQL instance.
|
|
99
114
|
class SqlInstancesDeleteRequest
|
|
100
115
|
include ::Google::Protobuf::MessageExts
|
|
101
116
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -110,6 +125,9 @@ module Google
|
|
|
110
125
|
# ID of the project that contains the instance.
|
|
111
126
|
# @!attribute [rw] body
|
|
112
127
|
# @return [::Google::Cloud::Sql::V1::InstancesDemoteMasterRequest]
|
|
128
|
+
# @!attribute [rw] location
|
|
129
|
+
# @return [::String]
|
|
130
|
+
# Optional. Region of the Cloud SQL instance.
|
|
113
131
|
class SqlInstancesDemoteMasterRequest
|
|
114
132
|
include ::Google::Protobuf::MessageExts
|
|
115
133
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -125,6 +143,9 @@ module Google
|
|
|
125
143
|
# @!attribute [rw] body
|
|
126
144
|
# @return [::Google::Cloud::Sql::V1::InstancesDemoteRequest]
|
|
127
145
|
# Required. The request body.
|
|
146
|
+
# @!attribute [rw] location
|
|
147
|
+
# @return [::String]
|
|
148
|
+
# Optional. Region of the Cloud SQL instance.
|
|
128
149
|
class SqlInstancesDemoteRequest
|
|
129
150
|
include ::Google::Protobuf::MessageExts
|
|
130
151
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -139,6 +160,9 @@ module Google
|
|
|
139
160
|
# Project ID of the project that contains the instance to be exported.
|
|
140
161
|
# @!attribute [rw] body
|
|
141
162
|
# @return [::Google::Cloud::Sql::V1::InstancesExportRequest]
|
|
163
|
+
# @!attribute [rw] location
|
|
164
|
+
# @return [::String]
|
|
165
|
+
# Optional. Region of the Cloud SQL instance.
|
|
142
166
|
class SqlInstancesExportRequest
|
|
143
167
|
include ::Google::Protobuf::MessageExts
|
|
144
168
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -153,6 +177,9 @@ module Google
|
|
|
153
177
|
# ID of the project that contains the read replica.
|
|
154
178
|
# @!attribute [rw] body
|
|
155
179
|
# @return [::Google::Cloud::Sql::V1::InstancesFailoverRequest]
|
|
180
|
+
# @!attribute [rw] location
|
|
181
|
+
# @return [::String]
|
|
182
|
+
# Optional. Region of the Cloud SQL instance.
|
|
156
183
|
class SqlInstancesFailoverRequest
|
|
157
184
|
include ::Google::Protobuf::MessageExts
|
|
158
185
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -165,6 +192,9 @@ module Google
|
|
|
165
192
|
# @!attribute [rw] project
|
|
166
193
|
# @return [::String]
|
|
167
194
|
# Required. Project ID of the project that contains the instance.
|
|
195
|
+
# @!attribute [rw] location
|
|
196
|
+
# @return [::String]
|
|
197
|
+
# Optional. Region of the Cloud SQL instance.
|
|
168
198
|
class SqlInstancesGetRequest
|
|
169
199
|
include ::Google::Protobuf::MessageExts
|
|
170
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -179,6 +209,9 @@ module Google
|
|
|
179
209
|
# Project ID of the project that contains the instance.
|
|
180
210
|
# @!attribute [rw] body
|
|
181
211
|
# @return [::Google::Cloud::Sql::V1::InstancesImportRequest]
|
|
212
|
+
# @!attribute [rw] location
|
|
213
|
+
# @return [::String]
|
|
214
|
+
# Optional. Region of the Cloud SQL instance.
|
|
182
215
|
class SqlInstancesImportRequest
|
|
183
216
|
include ::Google::Protobuf::MessageExts
|
|
184
217
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -191,6 +224,9 @@ module Google
|
|
|
191
224
|
# should belong.
|
|
192
225
|
# @!attribute [rw] body
|
|
193
226
|
# @return [::Google::Cloud::Sql::V1::DatabaseInstance]
|
|
227
|
+
# @!attribute [rw] location
|
|
228
|
+
# @return [::String]
|
|
229
|
+
# Optional. Region of the Cloud SQL instance.
|
|
194
230
|
class SqlInstancesInsertRequest
|
|
195
231
|
include ::Google::Protobuf::MessageExts
|
|
196
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -221,6 +257,9 @@ module Google
|
|
|
221
257
|
# @!attribute [rw] project
|
|
222
258
|
# @return [::String]
|
|
223
259
|
# Project ID of the project for which to list Cloud SQL instances.
|
|
260
|
+
# @!attribute [rw] location
|
|
261
|
+
# @return [::String]
|
|
262
|
+
# Optional. Region of the Cloud SQL instance.
|
|
224
263
|
class SqlInstancesListRequest
|
|
225
264
|
include ::Google::Protobuf::MessageExts
|
|
226
265
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -233,6 +272,9 @@ module Google
|
|
|
233
272
|
# @!attribute [rw] project
|
|
234
273
|
# @return [::String]
|
|
235
274
|
# Project ID of the project that contains the instance.
|
|
275
|
+
# @!attribute [rw] location
|
|
276
|
+
# @return [::String]
|
|
277
|
+
# Optional. Region of the Cloud SQL instance.
|
|
236
278
|
class SqlInstancesListServerCasRequest
|
|
237
279
|
include ::Google::Protobuf::MessageExts
|
|
238
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -245,6 +287,9 @@ module Google
|
|
|
245
287
|
# @!attribute [rw] project
|
|
246
288
|
# @return [::String]
|
|
247
289
|
# Required. Project ID of the project that contains the instance.
|
|
290
|
+
# @!attribute [rw] location
|
|
291
|
+
# @return [::String]
|
|
292
|
+
# Optional. Region of the Cloud SQL instance.
|
|
248
293
|
class SqlInstancesListServerCertificatesRequest
|
|
249
294
|
include ::Google::Protobuf::MessageExts
|
|
250
295
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -257,6 +302,9 @@ module Google
|
|
|
257
302
|
# @!attribute [rw] project
|
|
258
303
|
# @return [::String]
|
|
259
304
|
# Required. Project ID of the project that contains the instance.
|
|
305
|
+
# @!attribute [rw] location
|
|
306
|
+
# @return [::String]
|
|
307
|
+
# Optional. Region of the Cloud SQL instance.
|
|
260
308
|
class SqlInstancesListEntraIdCertificatesRequest
|
|
261
309
|
include ::Google::Protobuf::MessageExts
|
|
262
310
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -279,6 +327,9 @@ module Google
|
|
|
279
327
|
# reconcile the PSC networking.
|
|
280
328
|
# @!attribute [rw] body
|
|
281
329
|
# @return [::Google::Cloud::Sql::V1::DatabaseInstance]
|
|
330
|
+
# @!attribute [rw] location
|
|
331
|
+
# @return [::String]
|
|
332
|
+
# Optional. Region of the Cloud SQL instance.
|
|
282
333
|
class SqlInstancesPatchRequest
|
|
283
334
|
include ::Google::Protobuf::MessageExts
|
|
284
335
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -299,6 +350,9 @@ module Google
|
|
|
299
350
|
# DR replica when the original primary instance comes back online.
|
|
300
351
|
# If set to false or not specified, then the original primary
|
|
301
352
|
# instance becomes an independent Cloud SQL primary instance.
|
|
353
|
+
# @!attribute [rw] location
|
|
354
|
+
# @return [::String]
|
|
355
|
+
# Optional. Region of the Cloud SQL instance.
|
|
302
356
|
class SqlInstancesPromoteReplicaRequest
|
|
303
357
|
include ::Google::Protobuf::MessageExts
|
|
304
358
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -316,6 +370,9 @@ module Google
|
|
|
316
370
|
# Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations
|
|
317
371
|
# timeout, which is a sum of all database operations. Default value is 10
|
|
318
372
|
# minutes and can be modified to a maximum value of 24 hours.
|
|
373
|
+
# @!attribute [rw] location
|
|
374
|
+
# @return [::String]
|
|
375
|
+
# Optional. Region of the Cloud SQL instance.
|
|
319
376
|
class SqlInstancesSwitchoverRequest
|
|
320
377
|
include ::Google::Protobuf::MessageExts
|
|
321
378
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -331,6 +388,9 @@ module Google
|
|
|
331
388
|
# @!attribute [rw] mode
|
|
332
389
|
# @return [::Google::Cloud::Sql::V1::SqlInstancesResetSslConfigRequest::ResetSslMode]
|
|
333
390
|
# Optional. Reset SSL mode to use.
|
|
391
|
+
# @!attribute [rw] location
|
|
392
|
+
# @return [::String]
|
|
393
|
+
# Optional. Region of the Cloud SQL instance.
|
|
334
394
|
class SqlInstancesResetSslConfigRequest
|
|
335
395
|
include ::Google::Protobuf::MessageExts
|
|
336
396
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -357,6 +417,9 @@ module Google
|
|
|
357
417
|
# @!attribute [rw] project
|
|
358
418
|
# @return [::String]
|
|
359
419
|
# Project ID of the project that contains the instance to be restarted.
|
|
420
|
+
# @!attribute [rw] location
|
|
421
|
+
# @return [::String]
|
|
422
|
+
# Optional. Region of the Cloud SQL instance.
|
|
360
423
|
class SqlInstancesRestartRequest
|
|
361
424
|
include ::Google::Protobuf::MessageExts
|
|
362
425
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -371,6 +434,9 @@ module Google
|
|
|
371
434
|
# Project ID of the project that contains the instance.
|
|
372
435
|
# @!attribute [rw] body
|
|
373
436
|
# @return [::Google::Cloud::Sql::V1::InstancesRestoreBackupRequest]
|
|
437
|
+
# @!attribute [rw] location
|
|
438
|
+
# @return [::String]
|
|
439
|
+
# Optional. Region of the Cloud SQL instance.
|
|
374
440
|
class SqlInstancesRestoreBackupRequest
|
|
375
441
|
include ::Google::Protobuf::MessageExts
|
|
376
442
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -385,6 +451,9 @@ module Google
|
|
|
385
451
|
# Project ID of the project that contains the instance.
|
|
386
452
|
# @!attribute [rw] body
|
|
387
453
|
# @return [::Google::Cloud::Sql::V1::InstancesRotateServerCaRequest]
|
|
454
|
+
# @!attribute [rw] location
|
|
455
|
+
# @return [::String]
|
|
456
|
+
# Optional. Region of the Cloud SQL instance.
|
|
388
457
|
class SqlInstancesRotateServerCaRequest
|
|
389
458
|
include ::Google::Protobuf::MessageExts
|
|
390
459
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -400,6 +469,9 @@ module Google
|
|
|
400
469
|
# @!attribute [rw] body
|
|
401
470
|
# @return [::Google::Cloud::Sql::V1::InstancesRotateServerCertificateRequest]
|
|
402
471
|
# Optional. Rotate server certificate request body.
|
|
472
|
+
# @!attribute [rw] location
|
|
473
|
+
# @return [::String]
|
|
474
|
+
# Optional. Region of the Cloud SQL instance.
|
|
403
475
|
class SqlInstancesRotateServerCertificateRequest
|
|
404
476
|
include ::Google::Protobuf::MessageExts
|
|
405
477
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -415,6 +487,9 @@ module Google
|
|
|
415
487
|
# @!attribute [rw] body
|
|
416
488
|
# @return [::Google::Cloud::Sql::V1::InstancesRotateEntraIdCertificateRequest]
|
|
417
489
|
# Optional. Rotate Entra ID certificate request body.
|
|
490
|
+
# @!attribute [rw] location
|
|
491
|
+
# @return [::String]
|
|
492
|
+
# Optional. Region of the Cloud SQL instance.
|
|
418
493
|
class SqlInstancesRotateEntraIdCertificateRequest
|
|
419
494
|
include ::Google::Protobuf::MessageExts
|
|
420
495
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -427,6 +502,9 @@ module Google
|
|
|
427
502
|
# @!attribute [rw] project
|
|
428
503
|
# @return [::String]
|
|
429
504
|
# ID of the project that contains the read replica.
|
|
505
|
+
# @!attribute [rw] location
|
|
506
|
+
# @return [::String]
|
|
507
|
+
# Optional. Region of the Cloud SQL instance.
|
|
430
508
|
class SqlInstancesStartReplicaRequest
|
|
431
509
|
include ::Google::Protobuf::MessageExts
|
|
432
510
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -439,6 +517,9 @@ module Google
|
|
|
439
517
|
# @!attribute [rw] project
|
|
440
518
|
# @return [::String]
|
|
441
519
|
# ID of the project that contains the read replica.
|
|
520
|
+
# @!attribute [rw] location
|
|
521
|
+
# @return [::String]
|
|
522
|
+
# Optional. Region of the Cloud SQL instance.
|
|
442
523
|
class SqlInstancesStopReplicaRequest
|
|
443
524
|
include ::Google::Protobuf::MessageExts
|
|
444
525
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -453,6 +534,9 @@ module Google
|
|
|
453
534
|
# Project ID of the Cloud SQL project.
|
|
454
535
|
# @!attribute [rw] body
|
|
455
536
|
# @return [::Google::Cloud::Sql::V1::InstancesTruncateLogRequest]
|
|
537
|
+
# @!attribute [rw] location
|
|
538
|
+
# @return [::String]
|
|
539
|
+
# Optional. Region of the Cloud SQL instance.
|
|
456
540
|
class SqlInstancesTruncateLogRequest
|
|
457
541
|
include ::Google::Protobuf::MessageExts
|
|
458
542
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -468,6 +552,9 @@ module Google
|
|
|
468
552
|
# @!attribute [rw] body
|
|
469
553
|
# @return [::Google::Cloud::Sql::V1::PerformDiskShrinkContext]
|
|
470
554
|
# Perform disk shrink context.
|
|
555
|
+
# @!attribute [rw] location
|
|
556
|
+
# @return [::String]
|
|
557
|
+
# Optional. Region of the Cloud SQL instance.
|
|
471
558
|
class SqlInstancesPerformDiskShrinkRequest
|
|
472
559
|
include ::Google::Protobuf::MessageExts
|
|
473
560
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -482,6 +569,9 @@ module Google
|
|
|
482
569
|
# Project ID of the project that contains the instance.
|
|
483
570
|
# @!attribute [rw] body
|
|
484
571
|
# @return [::Google::Cloud::Sql::V1::DatabaseInstance]
|
|
572
|
+
# @!attribute [rw] location
|
|
573
|
+
# @return [::String]
|
|
574
|
+
# Optional. Region of the Cloud SQL instance.
|
|
485
575
|
class SqlInstancesUpdateRequest
|
|
486
576
|
include ::Google::Protobuf::MessageExts
|
|
487
577
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -496,6 +586,9 @@ module Google
|
|
|
496
586
|
# ID of the project that contains the instance.
|
|
497
587
|
# @!attribute [rw] body
|
|
498
588
|
# @return [::Google::Cloud::Sql::V1::SqlInstancesRescheduleMaintenanceRequestBody]
|
|
589
|
+
# @!attribute [rw] location
|
|
590
|
+
# @return [::String]
|
|
591
|
+
# Optional. Region of the Cloud SQL instance.
|
|
499
592
|
class SqlInstancesRescheduleMaintenanceRequest
|
|
500
593
|
include ::Google::Protobuf::MessageExts
|
|
501
594
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -511,6 +604,9 @@ module Google
|
|
|
511
604
|
# @!attribute [rw] body
|
|
512
605
|
# @return [::Google::Cloud::Sql::V1::InstancesReencryptRequest]
|
|
513
606
|
# Reencrypt body that users request
|
|
607
|
+
# @!attribute [rw] location
|
|
608
|
+
# @return [::String]
|
|
609
|
+
# Optional. Region of the Cloud SQL instance.
|
|
514
610
|
class SqlInstancesReencryptRequest
|
|
515
611
|
include ::Google::Protobuf::MessageExts
|
|
516
612
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -565,6 +661,9 @@ module Google
|
|
|
565
661
|
# @!attribute [rw] project
|
|
566
662
|
# @return [::String]
|
|
567
663
|
# Project ID of the project that contains the instance.
|
|
664
|
+
# @!attribute [rw] location
|
|
665
|
+
# @return [::String]
|
|
666
|
+
# Optional. Region of the Cloud SQL instance.
|
|
568
667
|
class SqlInstancesGetDiskShrinkConfigRequest
|
|
569
668
|
include ::Google::Protobuf::MessageExts
|
|
570
669
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -602,6 +701,9 @@ module Google
|
|
|
602
701
|
# @return [::Array<::Google::Cloud::Sql::V1::ExternalSyncSelectedObject>]
|
|
603
702
|
# Optional. Migrate only the specified objects from the source instance. If
|
|
604
703
|
# this field is empty, then migrate all objects.
|
|
704
|
+
# @!attribute [rw] location
|
|
705
|
+
# @return [::String]
|
|
706
|
+
# Optional. Region of the Cloud SQL instance.
|
|
605
707
|
class SqlInstancesVerifyExternalSyncSettingsRequest
|
|
606
708
|
include ::Google::Protobuf::MessageExts
|
|
607
709
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -664,6 +766,9 @@ module Google
|
|
|
664
766
|
# will wipe replica databases overlapping with the proposed selected_objects.
|
|
665
767
|
# If this field is not set and there are both overlapping and additional
|
|
666
768
|
# databases proposed, an error will be returned.
|
|
769
|
+
# @!attribute [rw] location
|
|
770
|
+
# @return [::String]
|
|
771
|
+
# Optional. Region of the Cloud SQL instance.
|
|
667
772
|
class SqlInstancesStartExternalSyncRequest
|
|
668
773
|
include ::Google::Protobuf::MessageExts
|
|
669
774
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -676,6 +781,9 @@ module Google
|
|
|
676
781
|
# @!attribute [rw] project
|
|
677
782
|
# @return [::String]
|
|
678
783
|
# ID of the project that contains the read replica.
|
|
784
|
+
# @!attribute [rw] location
|
|
785
|
+
# @return [::String]
|
|
786
|
+
# Optional. Region of the Cloud SQL instance.
|
|
679
787
|
class SqlInstancesResetReplicaSizeRequest
|
|
680
788
|
include ::Google::Protobuf::MessageExts
|
|
681
789
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -690,6 +798,9 @@ module Google
|
|
|
690
798
|
# Project ID of the Cloud SQL project.
|
|
691
799
|
# @!attribute [rw] body
|
|
692
800
|
# @return [::Google::Cloud::Sql::V1::SslCertsCreateEphemeralRequest]
|
|
801
|
+
# @!attribute [rw] location
|
|
802
|
+
# @return [::String]
|
|
803
|
+
# Optional. Region of the Cloud SQL instance.
|
|
693
804
|
class SqlInstancesCreateEphemeralCertRequest
|
|
694
805
|
include ::Google::Protobuf::MessageExts
|
|
695
806
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -867,6 +978,11 @@ module Google
|
|
|
867
978
|
# Optional. This field has the same purpose as restore_instance_settings,
|
|
868
979
|
# changes any instance settings stored in the backup you are restoring from.
|
|
869
980
|
# With the difference that these fields are cleared in the settings.
|
|
981
|
+
# @!attribute [rw] ignore_maintenance_version
|
|
982
|
+
# @return [::Boolean]
|
|
983
|
+
# Optional. If true, the restore operation proceeds even if the target
|
|
984
|
+
# instance's maintenance version is older than the source instance's
|
|
985
|
+
# maintenance version.
|
|
870
986
|
class InstancesRestoreBackupRequest
|
|
871
987
|
include ::Google::Protobuf::MessageExts
|
|
872
988
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -928,6 +1044,9 @@ module Google
|
|
|
928
1044
|
# @return [::Google::Cloud::Sql::V1::InstancesPreCheckMajorVersionUpgradeRequest]
|
|
929
1045
|
# Required. The context for request to perform the pre-check major version
|
|
930
1046
|
# upgrade operation.
|
|
1047
|
+
# @!attribute [rw] location
|
|
1048
|
+
# @return [::String]
|
|
1049
|
+
# Optional. Region of the Cloud SQL instance.
|
|
931
1050
|
class SqlInstancesPreCheckMajorVersionUpgradeRequest
|
|
932
1051
|
include ::Google::Protobuf::MessageExts
|
|
933
1052
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -974,6 +1093,9 @@ module Google
|
|
|
974
1093
|
# @return [::Google::Protobuf::Timestamp]
|
|
975
1094
|
# The timestamp used to identify the time when the source instance is
|
|
976
1095
|
# deleted. If this instance is deleted, then you must set the timestamp.
|
|
1096
|
+
# @!attribute [rw] location
|
|
1097
|
+
# @return [::String]
|
|
1098
|
+
# Optional. Region of the Cloud SQL instance.
|
|
977
1099
|
class SqlInstancesGetLatestRecoveryTimeRequest
|
|
978
1100
|
include ::Google::Protobuf::MessageExts
|
|
979
1101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1322,6 +1444,10 @@ module Google
|
|
|
1322
1444
|
# Input only. Determines whether an in-place major version upgrade of
|
|
1323
1445
|
# replicas happens when an in-place major version upgrade of a primary
|
|
1324
1446
|
# instance is initiated.
|
|
1447
|
+
# @!attribute [rw] skip_precheck
|
|
1448
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
1449
|
+
# Optional. Input only. Determines whether the precheck step is skipped
|
|
1450
|
+
# during a major version upgrade.
|
|
1325
1451
|
# @!attribute [rw] tags
|
|
1326
1452
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
1327
1453
|
# Optional. Input only. Immutable. Tag keys and tag values that are bound to
|
|
@@ -1346,6 +1472,18 @@ module Google
|
|
|
1346
1472
|
# @!attribute [r] dns_names
|
|
1347
1473
|
# @return [::Array<::Google::Cloud::Sql::V1::DnsNameMapping>]
|
|
1348
1474
|
# Output only. The list of DNS names used by this instance.
|
|
1475
|
+
# @!attribute [r] deployment_info
|
|
1476
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo]
|
|
1477
|
+
# Output only. Deployment info for the instance. This is set if the instance
|
|
1478
|
+
# is currently part of any blue-green setup.
|
|
1479
|
+
# @!attribute [rw] database_center_integration_enabled
|
|
1480
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
1481
|
+
# Optional. If true, instance metadata is sent to the Database Center. If
|
|
1482
|
+
# false, instance metadata is not sent to the Database Center.
|
|
1483
|
+
# @!attribute [rw] database_center_integration
|
|
1484
|
+
# @return [::Google::Cloud::Sql::V1::DatabaseInstance::DatabaseCenterIntegration]
|
|
1485
|
+
# Optional. State of the Database Center integration for this instance.
|
|
1486
|
+
# When unspecified, Database Center integration is enabled by default.
|
|
1349
1487
|
class DatabaseInstance
|
|
1350
1488
|
include ::Google::Protobuf::MessageExts
|
|
1351
1489
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1503,6 +1641,75 @@ module Google
|
|
|
1503
1641
|
# The instance uses the old network architecture.
|
|
1504
1642
|
OLD_NETWORK_ARCHITECTURE = 2
|
|
1505
1643
|
end
|
|
1644
|
+
|
|
1645
|
+
# State of the integration with Database Center.
|
|
1646
|
+
module DatabaseCenterIntegration
|
|
1647
|
+
# Default value. The integration state is unspecified. When unspecified,
|
|
1648
|
+
# Database Center integration is enabled by default.
|
|
1649
|
+
DATABASE_CENTER_INTEGRATION_UNSPECIFIED = 0
|
|
1650
|
+
|
|
1651
|
+
# Database Center integration is enabled.
|
|
1652
|
+
ENABLED = 1
|
|
1653
|
+
|
|
1654
|
+
# Database Center integration is disabled.
|
|
1655
|
+
DISABLED = 2
|
|
1656
|
+
end
|
|
1657
|
+
end
|
|
1658
|
+
|
|
1659
|
+
# Blue-green deployment metadata for a database instance. In a blue-green
|
|
1660
|
+
# deployment, we maintain two environments, one of which is live.
|
|
1661
|
+
# This message contains details about the blue-green deployment.
|
|
1662
|
+
# @!attribute [r] deployment_id
|
|
1663
|
+
# @return [::String]
|
|
1664
|
+
# Output only. The resource ID of the blue-green deployment.
|
|
1665
|
+
# @!attribute [r] source
|
|
1666
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::SourceRole]
|
|
1667
|
+
# Output only. The source instance for the Blue-Green deployment.
|
|
1668
|
+
#
|
|
1669
|
+
# Note: The following fields are mutually exclusive: `source`, `target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1670
|
+
# @!attribute [r] target
|
|
1671
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::TargetRole]
|
|
1672
|
+
# Output only. The target instance for the Blue-Green deployment.
|
|
1673
|
+
#
|
|
1674
|
+
# Note: The following fields are mutually exclusive: `target`, `source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1675
|
+
# @!attribute [r] state
|
|
1676
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::State]
|
|
1677
|
+
# Output only. The current state of blue-green-deployment for UI tags
|
|
1678
|
+
class BlueGreenDeploymentInfo
|
|
1679
|
+
include ::Google::Protobuf::MessageExts
|
|
1680
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1681
|
+
|
|
1682
|
+
# The source instance for the Blue-Green deployment.
|
|
1683
|
+
# @!attribute [r] target_id
|
|
1684
|
+
# @return [::Google::Cloud::Sql::V1::InstanceReference]
|
|
1685
|
+
# Output only. The target instance paired with this source instance in a
|
|
1686
|
+
# blue-green deployment.
|
|
1687
|
+
class SourceRole
|
|
1688
|
+
include ::Google::Protobuf::MessageExts
|
|
1689
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
# The target instance for the Blue-Green deployment.
|
|
1693
|
+
# @!attribute [r] source_id
|
|
1694
|
+
# @return [::Google::Cloud::Sql::V1::InstanceReference]
|
|
1695
|
+
# Output only. The source instance paired with this target instance in a
|
|
1696
|
+
# blue-green deployment.
|
|
1697
|
+
class TargetRole
|
|
1698
|
+
include ::Google::Protobuf::MessageExts
|
|
1699
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1700
|
+
end
|
|
1701
|
+
|
|
1702
|
+
# The state of blue-green-deployment for UI tags
|
|
1703
|
+
module State
|
|
1704
|
+
# The state of the deployment is unknown.
|
|
1705
|
+
STATE_UNSPECIFIED = 0
|
|
1706
|
+
|
|
1707
|
+
# The deployment is pre-switchover.
|
|
1708
|
+
PRE_SWITCHOVER = 1
|
|
1709
|
+
|
|
1710
|
+
# The deployment is post-switchover.
|
|
1711
|
+
POST_SWITCHOVER = 2
|
|
1712
|
+
end
|
|
1506
1713
|
end
|
|
1507
1714
|
|
|
1508
1715
|
# Gemini instance configuration.
|
|
@@ -1964,6 +2171,15 @@ module Google
|
|
|
1964
2171
|
# The replication user is missing specific privileges to setup DDL
|
|
1965
2172
|
# replication. (e.g. CREATE EVENT TRIGGER, CREATE SCHEMA) for PostgreSQL.
|
|
1966
2173
|
PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE = 58
|
|
2174
|
+
|
|
2175
|
+
# Read replicas of the Writable Destination instance will be recreated
|
|
2176
|
+
# after external synchronization is complete, causing downtime on read
|
|
2177
|
+
# replicas.
|
|
2178
|
+
WRITABLE_DESTINATION_REPLICA_RECREATION_DOWNTIME = 59
|
|
2179
|
+
|
|
2180
|
+
# A warning that disk storage auto increase is disabled on the destination
|
|
2181
|
+
# instance for a Writable Destination migration.
|
|
2182
|
+
WRITABLE_DESTINATION_STORAGE_AUTO_INCREASE_DISABLED = 60
|
|
1967
2183
|
end
|
|
1968
2184
|
end
|
|
1969
2185
|
|
|
@@ -2013,6 +2229,10 @@ module Google
|
|
|
2013
2229
|
# @!attribute [rw] ssl_option
|
|
2014
2230
|
# @return [::Google::Cloud::Sql::V1::OnPremisesConfiguration::SslOption]
|
|
2015
2231
|
# Optional. SSL option for replica connection to the on-premises source.
|
|
2232
|
+
# @!attribute [r] dms_managed
|
|
2233
|
+
# @return [::Boolean]
|
|
2234
|
+
# Output only. Indicates whether the resource is managed by Database
|
|
2235
|
+
# Migration Service.
|
|
2016
2236
|
class OnPremisesConfiguration
|
|
2017
2237
|
include ::Google::Protobuf::MessageExts
|
|
2018
2238
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2063,7 +2283,6 @@ module Google
|
|
|
2063
2283
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2064
2284
|
end
|
|
2065
2285
|
|
|
2066
|
-
# Execute SQL statements request.
|
|
2067
2286
|
# @!attribute [rw] instance
|
|
2068
2287
|
# @return [::String]
|
|
2069
2288
|
# Required. Database instance ID. This does not include the project ID.
|
|
@@ -2073,6 +2292,9 @@ module Google
|
|
|
2073
2292
|
# @!attribute [rw] body
|
|
2074
2293
|
# @return [::Google::Cloud::Sql::V1::ExecuteSqlPayload]
|
|
2075
2294
|
# The request body.
|
|
2295
|
+
# @!attribute [rw] location
|
|
2296
|
+
# @return [::String]
|
|
2297
|
+
# Optional. Region of the Cloud SQL instance.
|
|
2076
2298
|
class SqlInstancesExecuteSqlRequest
|
|
2077
2299
|
include ::Google::Protobuf::MessageExts
|
|
2078
2300
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2091,11 +2313,26 @@ module Google
|
|
|
2091
2313
|
# @!attribute [rw] database
|
|
2092
2314
|
# @return [::String]
|
|
2093
2315
|
# Optional. Name of the database on which the statement will be executed.
|
|
2316
|
+
# For Postgres and SQL Server it's required, for MySQL it's optional.
|
|
2317
|
+
# @!attribute [rw] password_secret_version
|
|
2318
|
+
# @return [::String]
|
|
2319
|
+
# Optional. The resource name of the Secret Manager secret holding the
|
|
2320
|
+
# password for the user to log into the database. The secret should be
|
|
2321
|
+
# created using the regional endpoint (for API) or from the Regional
|
|
2322
|
+
# Secrets page (for UI), and stored in the same region as the Cloud SQL
|
|
2323
|
+
# instance. The expected resource name format is
|
|
2324
|
+
# `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}`.
|
|
2325
|
+
# Used together with the `user` field.
|
|
2326
|
+
# The secret resource name will not be stored.
|
|
2327
|
+
#
|
|
2328
|
+
# Note: The following fields are mutually exclusive: `password_secret_version`, `auto_iam_authn`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
2094
2329
|
# @!attribute [rw] auto_iam_authn
|
|
2095
2330
|
# @return [::Boolean]
|
|
2096
2331
|
# Optional. When set to `true`, the API caller identity associated with the
|
|
2097
2332
|
# request is used for database authentication. The API caller must be an
|
|
2098
2333
|
# IAM user in the database.
|
|
2334
|
+
#
|
|
2335
|
+
# Note: The following fields are mutually exclusive: `auto_iam_authn`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
2099
2336
|
# @!attribute [rw] row_limit
|
|
2100
2337
|
# @return [::Integer]
|
|
2101
2338
|
# Optional. The maximum number of rows returned per SQL statement.
|
|
@@ -2130,7 +2367,6 @@ module Google
|
|
|
2130
2367
|
end
|
|
2131
2368
|
end
|
|
2132
2369
|
|
|
2133
|
-
# Execute SQL statements response.
|
|
2134
2370
|
# @!attribute [rw] messages
|
|
2135
2371
|
# @return [::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>]
|
|
2136
2372
|
# A list of notices and warnings generated during query execution.
|
|
@@ -2249,6 +2485,9 @@ module Google
|
|
|
2249
2485
|
# @!attribute [rw] body
|
|
2250
2486
|
# @return [::Google::Cloud::Sql::V1::InstancesAcquireSsrsLeaseRequest]
|
|
2251
2487
|
# Required. The request body.
|
|
2488
|
+
# @!attribute [rw] location
|
|
2489
|
+
# @return [::String]
|
|
2490
|
+
# Optional. Region of the Cloud SQL instance.
|
|
2252
2491
|
class SqlInstancesAcquireSsrsLeaseRequest
|
|
2253
2492
|
include ::Google::Protobuf::MessageExts
|
|
2254
2493
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2273,6 +2512,9 @@ module Google
|
|
|
2273
2512
|
# @!attribute [rw] project
|
|
2274
2513
|
# @return [::String]
|
|
2275
2514
|
# Required. The project ID that contains the instance.
|
|
2515
|
+
# @!attribute [rw] location
|
|
2516
|
+
# @return [::String]
|
|
2517
|
+
# Optional. Region of the Cloud SQL instance.
|
|
2276
2518
|
class SqlInstancesReleaseSsrsLeaseRequest
|
|
2277
2519
|
include ::Google::Protobuf::MessageExts
|
|
2278
2520
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2334,6 +2576,10 @@ module Google
|
|
|
2334
2576
|
|
|
2335
2577
|
# A Cloud SQL read pool.
|
|
2336
2578
|
READ_POOL_INSTANCE = 5
|
|
2579
|
+
|
|
2580
|
+
# A Cloud SQL instance acting as a Blue-Green deployment target primary.
|
|
2581
|
+
# (MySQL only)
|
|
2582
|
+
GREEN_INSTANCE = 7
|
|
2337
2583
|
end
|
|
2338
2584
|
|
|
2339
2585
|
# The suspension reason of the database instance if the state is SUSPENDED.
|
|
@@ -28,6 +28,9 @@ module Google
|
|
|
28
28
|
# @!attribute [rw] project
|
|
29
29
|
# @return [::String]
|
|
30
30
|
# Required. Project ID of the project that contains the instance.
|
|
31
|
+
# @!attribute [rw] location
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Optional. Region of the Cloud SQL instance.
|
|
31
34
|
class SqlOperationsGetRequest
|
|
32
35
|
include ::Google::Protobuf::MessageExts
|
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -47,6 +50,9 @@ module Google
|
|
|
47
50
|
# @!attribute [rw] project
|
|
48
51
|
# @return [::String]
|
|
49
52
|
# Project ID of the project that contains the instance.
|
|
53
|
+
# @!attribute [rw] location
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# Optional. Region of the Cloud SQL instance.
|
|
50
56
|
class SqlOperationsListRequest
|
|
51
57
|
include ::Google::Protobuf::MessageExts
|
|
52
58
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -75,6 +81,9 @@ module Google
|
|
|
75
81
|
# @!attribute [rw] project
|
|
76
82
|
# @return [::String]
|
|
77
83
|
# Project ID of the project that contains the instance.
|
|
84
|
+
# @!attribute [rw] location
|
|
85
|
+
# @return [::String]
|
|
86
|
+
# Optional. Region of the Cloud SQL instance.
|
|
78
87
|
class SqlOperationsCancelRequest
|
|
79
88
|
include ::Google::Protobuf::MessageExts
|
|
80
89
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|