google-cloud-sql-v1 0.2.0 → 0.4.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +9 -2
  4. data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +2 -1
  5. data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +3 -1
  6. data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +1 -1
  7. data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +1 -1
  8. data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +2 -1
  9. data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +1 -1
  10. data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +18 -6
  11. data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +18 -6
  12. data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +131 -44
  13. data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +45 -0
  14. data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +126 -42
  15. data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +9 -3
  16. data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +9 -3
  17. data/lib/google/cloud/sql/v1/sql_users_service/client.rb +23 -5
  18. data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +23 -5
  19. data/lib/google/cloud/sql/v1/version.rb +1 -1
  20. data/lib/google/cloud/sql/v1.rb +0 -6
  21. data/proto_docs/google/api/routing.rb +463 -0
  22. data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +15 -0
  23. data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +165 -0
  24. data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +9 -0
  25. data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +28 -0
  26. data/proto_docs/google/protobuf/timestamp.rb +7 -6
  27. metadata +4 -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
@@ -928,6 +1039,9 @@ module Google
928
1039
  # @return [::Google::Cloud::Sql::V1::InstancesPreCheckMajorVersionUpgradeRequest]
929
1040
  # Required. The context for request to perform the pre-check major version
930
1041
  # upgrade operation.
1042
+ # @!attribute [rw] location
1043
+ # @return [::String]
1044
+ # Optional. Region of the Cloud SQL instance.
931
1045
  class SqlInstancesPreCheckMajorVersionUpgradeRequest
932
1046
  include ::Google::Protobuf::MessageExts
933
1047
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -974,6 +1088,9 @@ module Google
974
1088
  # @return [::Google::Protobuf::Timestamp]
975
1089
  # The timestamp used to identify the time when the source instance is
976
1090
  # deleted. If this instance is deleted, then you must set the timestamp.
1091
+ # @!attribute [rw] location
1092
+ # @return [::String]
1093
+ # Optional. Region of the Cloud SQL instance.
977
1094
  class SqlInstancesGetLatestRecoveryTimeRequest
978
1095
  include ::Google::Protobuf::MessageExts
979
1096
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1346,6 +1463,14 @@ module Google
1346
1463
  # @!attribute [r] dns_names
1347
1464
  # @return [::Array<::Google::Cloud::Sql::V1::DnsNameMapping>]
1348
1465
  # Output only. The list of DNS names used by this instance.
1466
+ # @!attribute [rw] database_center_integration_enabled
1467
+ # @return [::Google::Protobuf::BoolValue]
1468
+ # Optional. If true, instance metadata is sent to the Database Center. If
1469
+ # false, instance metadata is not sent to the Database Center.
1470
+ # @!attribute [rw] database_center_integration
1471
+ # @return [::Google::Cloud::Sql::V1::DatabaseInstance::DatabaseCenterIntegration]
1472
+ # Optional. State of the Database Center integration for this instance.
1473
+ # When unspecified, Database Center integration is enabled by default.
1349
1474
  class DatabaseInstance
1350
1475
  include ::Google::Protobuf::MessageExts
1351
1476
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1503,6 +1628,19 @@ module Google
1503
1628
  # The instance uses the old network architecture.
1504
1629
  OLD_NETWORK_ARCHITECTURE = 2
1505
1630
  end
1631
+
1632
+ # State of the integration with Database Center.
1633
+ module DatabaseCenterIntegration
1634
+ # Default value. The integration state is unspecified. When unspecified,
1635
+ # Database Center integration is enabled by default.
1636
+ DATABASE_CENTER_INTEGRATION_UNSPECIFIED = 0
1637
+
1638
+ # Database Center integration is enabled.
1639
+ ENABLED = 1
1640
+
1641
+ # Database Center integration is disabled.
1642
+ DISABLED = 2
1643
+ end
1506
1644
  end
1507
1645
 
1508
1646
  # Gemini instance configuration.
@@ -2013,6 +2151,10 @@ module Google
2013
2151
  # @!attribute [rw] ssl_option
2014
2152
  # @return [::Google::Cloud::Sql::V1::OnPremisesConfiguration::SslOption]
2015
2153
  # Optional. SSL option for replica connection to the on-premises source.
2154
+ # @!attribute [r] dms_managed
2155
+ # @return [::Boolean]
2156
+ # Output only. Indicates whether the resource is managed by Database
2157
+ # Migration Service.
2016
2158
  class OnPremisesConfiguration
2017
2159
  include ::Google::Protobuf::MessageExts
2018
2160
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2073,6 +2215,9 @@ module Google
2073
2215
  # @!attribute [rw] body
2074
2216
  # @return [::Google::Cloud::Sql::V1::ExecuteSqlPayload]
2075
2217
  # The request body.
2218
+ # @!attribute [rw] location
2219
+ # @return [::String]
2220
+ # Optional. Region of the Cloud SQL instance.
2076
2221
  class SqlInstancesExecuteSqlRequest
2077
2222
  include ::Google::Protobuf::MessageExts
2078
2223
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2091,11 +2236,25 @@ module Google
2091
2236
  # @!attribute [rw] database
2092
2237
  # @return [::String]
2093
2238
  # Optional. Name of the database on which the statement will be executed.
2239
+ # @!attribute [rw] password_secret_version
2240
+ # @return [::String]
2241
+ # Optional. The resource name of the Secret Manager secret holding the
2242
+ # password for the user to log into the database. The secret should be
2243
+ # created using the regional endpoint (for API) or from the Regional
2244
+ # Secrets page (for UI), and stored in the same region as the Cloud SQL
2245
+ # instance. The expected resource name format is
2246
+ # `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}`.
2247
+ # Used together with the `user` field.
2248
+ # The secret resource name will not be stored.
2249
+ #
2250
+ # 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
2251
  # @!attribute [rw] auto_iam_authn
2095
2252
  # @return [::Boolean]
2096
2253
  # Optional. When set to `true`, the API caller identity associated with the
2097
2254
  # request is used for database authentication. The API caller must be an
2098
2255
  # IAM user in the database.
2256
+ #
2257
+ # 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
2258
  # @!attribute [rw] row_limit
2100
2259
  # @return [::Integer]
2101
2260
  # Optional. The maximum number of rows returned per SQL statement.
@@ -2249,6 +2408,9 @@ module Google
2249
2408
  # @!attribute [rw] body
2250
2409
  # @return [::Google::Cloud::Sql::V1::InstancesAcquireSsrsLeaseRequest]
2251
2410
  # Required. The request body.
2411
+ # @!attribute [rw] location
2412
+ # @return [::String]
2413
+ # Optional. Region of the Cloud SQL instance.
2252
2414
  class SqlInstancesAcquireSsrsLeaseRequest
2253
2415
  include ::Google::Protobuf::MessageExts
2254
2416
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2273,6 +2435,9 @@ module Google
2273
2435
  # @!attribute [rw] project
2274
2436
  # @return [::String]
2275
2437
  # Required. The project ID that contains the instance.
2438
+ # @!attribute [rw] location
2439
+ # @return [::String]
2440
+ # Optional. Region of the Cloud SQL instance.
2276
2441
  class SqlInstancesReleaseSsrsLeaseRequest
2277
2442
  include ::Google::Protobuf::MessageExts
2278
2443
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -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
@@ -33,6 +33,9 @@ module Google
33
33
  # @!attribute [rw] project
34
34
  # @return [::String]
35
35
  # Project ID of the project that contains the instance.
36
+ # @!attribute [rw] location
37
+ # @return [::String]
38
+ # Optional. Region of the Cloud SQL instance.
36
39
  class SqlUsersDeleteRequest
37
40
  include ::Google::Protobuf::MessageExts
38
41
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -51,6 +54,9 @@ module Google
51
54
  # @!attribute [rw] host
52
55
  # @return [::String]
53
56
  # Host of a user of the instance.
57
+ # @!attribute [rw] location
58
+ # @return [::String]
59
+ # Optional. Region of the Cloud SQL instance.
54
60
  class SqlUsersGetRequest
55
61
  include ::Google::Protobuf::MessageExts
56
62
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -64,6 +70,9 @@ module Google
64
70
  # Project ID of the project that contains the instance.
65
71
  # @!attribute [rw] body
66
72
  # @return [::Google::Cloud::Sql::V1::User]
73
+ # @!attribute [rw] location
74
+ # @return [::String]
75
+ # Optional. Region of the Cloud SQL instance.
67
76
  class SqlUsersInsertRequest
68
77
  include ::Google::Protobuf::MessageExts
69
78
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -75,6 +84,9 @@ module Google
75
84
  # @!attribute [rw] project
76
85
  # @return [::String]
77
86
  # Project ID of the project that contains the instance.
87
+ # @!attribute [rw] location
88
+ # @return [::String]
89
+ # Optional. Region of the Cloud SQL instance.
78
90
  class SqlUsersListRequest
79
91
  include ::Google::Protobuf::MessageExts
80
92
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -101,8 +113,21 @@ module Google
101
113
  # Optional. Specifies whether to revoke existing roles that are not present
102
114
  # in the `database_roles` field. If `false` or unset, the database roles
103
115
  # specified in `database_roles` are added to the user's existing roles.
116
+ # @!attribute [rw] server_roles
117
+ # @return [::Array<::String>]
118
+ # Optional. The server roles to grant to the SQL Server login. Existing
119
+ # server roles will not be revoked if revoke_existing_roles is false.
120
+ # body.server_roles will be ignored for update request.
121
+ # @!attribute [rw] revoke_existing_server_roles
122
+ # @return [::Boolean]
123
+ # Optional. Specifies whether to revoke existing roles that are not present
124
+ # in the `server_roles` field. If `false` or unset, the server roles
125
+ # specified in `server_roles` are added to the user's existing server roles.
104
126
  # @!attribute [rw] body
105
127
  # @return [::Google::Cloud::Sql::V1::User]
128
+ # @!attribute [rw] location
129
+ # @return [::String]
130
+ # Optional. Region of the Cloud SQL instance.
106
131
  class SqlUsersUpdateRequest
107
132
  include ::Google::Protobuf::MessageExts
108
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -196,6 +221,9 @@ module Google
196
221
  # @!attribute [rw] database_roles
197
222
  # @return [::Array<::String>]
198
223
  # Optional. Role memberships of the user
224
+ # @!attribute [rw] server_roles
225
+ # @return [::Array<::String>]
226
+ # Optional. The server roles for the SQL Server login.
199
227
  class User
200
228
  include ::Google::Protobuf::MessageExts
201
229
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-sql-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -51,7 +51,7 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.0'
54
- description: Cloud SQL Admin API. Note that google-cloud-sql-v1 is a version-specific
54
+ description: Cloud SQL Admin API Note that google-cloud-sql-v1 is a version-specific
55
55
  client library. For most uses, we recommend installing the main client library google-cloud-sql
56
56
  instead. See the readme for more details.
57
57
  email: googleapis-packages@google.com
@@ -168,6 +168,7 @@ files:
168
168
  - proto_docs/google/api/field_info.rb
169
169
  - proto_docs/google/api/launch_stage.rb
170
170
  - proto_docs/google/api/resource.rb
171
+ - proto_docs/google/api/routing.rb
171
172
  - proto_docs/google/cloud/sql/v1/cloud_sql_backup_runs.rb
172
173
  - proto_docs/google/cloud/sql/v1/cloud_sql_backups.rb
173
174
  - proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb
@@ -207,5 +208,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
208
  requirements: []
208
209
  rubygems_version: 3.6.9
209
210
  specification_version: 4
210
- summary: Cloud SQL Admin API.
211
+ summary: Cloud SQL Admin API
211
212
  test_files: []