google-apis-sqladmin_v1beta4 0.20.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/sqladmin_v1beta4/classes.rb +336 -184
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +3 -3
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +56 -0
- data/lib/google/apis/sqladmin_v1beta4/service.rb +2 -2
- metadata +4 -4
@@ -27,12 +27,12 @@ module Google
|
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# The time when this access control entry expires in [RFC 3339](https://tools.
|
30
|
-
# ietf.org/html/rfc3339) format, for example
|
30
|
+
# ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
31
31
|
# Corresponds to the JSON property `expirationTime`
|
32
32
|
# @return [String]
|
33
33
|
attr_accessor :expiration_time
|
34
34
|
|
35
|
-
# This is always
|
35
|
+
# This is always `sql#aclEntry`.
|
36
36
|
# Corresponds to the JSON property `kind`
|
37
37
|
# @return [String]
|
38
38
|
attr_accessor :kind
|
@@ -114,7 +114,7 @@ module Google
|
|
114
114
|
attr_accessor :enabled
|
115
115
|
alias_method :enabled?, :enabled
|
116
116
|
|
117
|
-
# This is always
|
117
|
+
# This is always `sql#backupConfiguration`.
|
118
118
|
# Corresponds to the JSON property `kind`
|
119
119
|
# @return [String]
|
120
120
|
attr_accessor :kind
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled
|
138
138
|
|
139
139
|
# Start time for the daily backup configuration in UTC timezone in the 24 hour
|
140
|
-
# format -
|
140
|
+
# format - `HH:MM`.
|
141
141
|
# Corresponds to the JSON property `startTime`
|
142
142
|
# @return [String]
|
143
143
|
attr_accessor :start_time
|
@@ -175,7 +175,7 @@ module Google
|
|
175
175
|
# @return [Fixnum]
|
176
176
|
attr_accessor :backup_id
|
177
177
|
|
178
|
-
# This is always
|
178
|
+
# This is always `sql#backupContext`.
|
179
179
|
# Corresponds to the JSON property `kind`
|
180
180
|
# @return [String]
|
181
181
|
attr_accessor :kind
|
@@ -244,13 +244,13 @@ module Google
|
|
244
244
|
attr_accessor :disk_encryption_status
|
245
245
|
|
246
246
|
# The time the backup operation completed in UTC timezone in [RFC 3339](https://
|
247
|
-
# tools.ietf.org/html/rfc3339) format, for example
|
247
|
+
# tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
248
248
|
# Corresponds to the JSON property `endTime`
|
249
249
|
# @return [String]
|
250
250
|
attr_accessor :end_time
|
251
251
|
|
252
252
|
# The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.
|
253
|
-
# org/html/rfc3339) format, for example
|
253
|
+
# org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
254
254
|
# Corresponds to the JSON property `enqueuedTime`
|
255
255
|
# @return [String]
|
256
256
|
attr_accessor :enqueued_time
|
@@ -271,7 +271,7 @@ module Google
|
|
271
271
|
# @return [String]
|
272
272
|
attr_accessor :instance
|
273
273
|
|
274
|
-
# This is always
|
274
|
+
# This is always `sql#backupRun`.
|
275
275
|
# Corresponds to the JSON property `kind`
|
276
276
|
# @return [String]
|
277
277
|
attr_accessor :kind
|
@@ -287,8 +287,8 @@ module Google
|
|
287
287
|
attr_accessor :self_link
|
288
288
|
|
289
289
|
# The time the backup operation actually started in UTC timezone in [RFC 3339](
|
290
|
-
# https://tools.ietf.org/html/rfc3339) format, for example
|
291
|
-
# 094Z
|
290
|
+
# https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.
|
291
|
+
# 094Z`.
|
292
292
|
# Corresponds to the JSON property `startTime`
|
293
293
|
# @return [String]
|
294
294
|
attr_accessor :start_time
|
@@ -305,8 +305,8 @@ module Google
|
|
305
305
|
attr_accessor :type
|
306
306
|
|
307
307
|
# The start time of the backup window during which this the backup was attempted
|
308
|
-
# in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example
|
309
|
-
# 11-15T16:19:00.094Z
|
308
|
+
# in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-
|
309
|
+
# 11-15T16:19:00.094Z`.
|
310
310
|
# Corresponds to the JSON property `windowStartTime`
|
311
311
|
# @return [String]
|
312
312
|
attr_accessor :window_start_time
|
@@ -345,7 +345,7 @@ module Google
|
|
345
345
|
# @return [Array<Google::Apis::SqladminV1beta4::BackupRun>]
|
346
346
|
attr_accessor :items
|
347
347
|
|
348
|
-
# This is always
|
348
|
+
# This is always `sql#backupRunsList`.
|
349
349
|
# Corresponds to the JSON property `kind`
|
350
350
|
# @return [String]
|
351
351
|
attr_accessor :kind
|
@@ -382,7 +382,7 @@ module Google
|
|
382
382
|
# @return [Fixnum]
|
383
383
|
attr_accessor :bin_log_position
|
384
384
|
|
385
|
-
# This is always
|
385
|
+
# This is always `sql#binLogCoordinates`.
|
386
386
|
# Corresponds to the JSON property `kind`
|
387
387
|
# @return [String]
|
388
388
|
attr_accessor :kind
|
@@ -403,6 +403,16 @@ module Google
|
|
403
403
|
class CloneContext
|
404
404
|
include Google::Apis::Core::Hashable
|
405
405
|
|
406
|
+
# The name of the allocated ip range for the private ip CloudSQL instance. For
|
407
|
+
# example: "google-managed-services-default". If set, the cloned instance ip
|
408
|
+
# will be created in the allocated range. The range name must comply with [RFC
|
409
|
+
# 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-
|
410
|
+
# 63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
|
411
|
+
# Reserved for future use.
|
412
|
+
# Corresponds to the JSON property `allocatedIpRange`
|
413
|
+
# @return [String]
|
414
|
+
attr_accessor :allocated_ip_range
|
415
|
+
|
406
416
|
# Binary log coordinates.
|
407
417
|
# Corresponds to the JSON property `binLogCoordinates`
|
408
418
|
# @return [Google::Apis::SqladminV1beta4::BinLogCoordinates]
|
@@ -413,7 +423,7 @@ module Google
|
|
413
423
|
# @return [String]
|
414
424
|
attr_accessor :destination_instance_name
|
415
425
|
|
416
|
-
# This is always
|
426
|
+
# This is always `sql#cloneContext`.
|
417
427
|
# Corresponds to the JSON property `kind`
|
418
428
|
# @return [String]
|
419
429
|
attr_accessor :kind
|
@@ -435,6 +445,7 @@ module Google
|
|
435
445
|
|
436
446
|
# Update properties of this object
|
437
447
|
def update!(**args)
|
448
|
+
@allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
|
438
449
|
@bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
|
439
450
|
@destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name)
|
440
451
|
@kind = args[:kind] if args.key?(:kind)
|
@@ -447,19 +458,21 @@ module Google
|
|
447
458
|
class ConnectSettings
|
448
459
|
include Google::Apis::Core::Hashable
|
449
460
|
|
450
|
-
#
|
451
|
-
#
|
452
|
-
#
|
461
|
+
# `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that
|
462
|
+
# is not managed by Google. This property is read-only; use the `tier` property
|
463
|
+
# in the `settings` object to determine the database type.
|
453
464
|
# Corresponds to the JSON property `backendType`
|
454
465
|
# @return [String]
|
455
466
|
attr_accessor :backend_type
|
456
467
|
|
457
|
-
# The database engine type and version. The
|
458
|
-
# changed after instance creation. MySQL instances:
|
459
|
-
#
|
460
|
-
#
|
461
|
-
# instances:
|
462
|
-
#
|
468
|
+
# The database engine type and version. The `databaseVersion` field cannot be
|
469
|
+
# changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (
|
470
|
+
# default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`,
|
471
|
+
# `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL
|
472
|
+
# Server instances: `SQLSERVER_2017_STANDARD` (default), `
|
473
|
+
# SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `
|
474
|
+
# SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`
|
475
|
+
# , or `SQLSERVER_2019_WEB`.
|
463
476
|
# Corresponds to the JSON property `databaseVersion`
|
464
477
|
# @return [String]
|
465
478
|
attr_accessor :database_version
|
@@ -474,7 +487,7 @@ module Google
|
|
474
487
|
# @return [String]
|
475
488
|
attr_accessor :kind
|
476
489
|
|
477
|
-
# The cloud region for the instance. e.g.
|
490
|
+
# The cloud region for the instance. e.g. `us-central1`, `europe-west1`. The
|
478
491
|
# region cannot be changed after instance creation.
|
479
492
|
# Corresponds to the JSON property `region`
|
480
493
|
# @return [String]
|
@@ -524,7 +537,7 @@ module Google
|
|
524
537
|
# @return [String]
|
525
538
|
attr_accessor :instance
|
526
539
|
|
527
|
-
# This is always
|
540
|
+
# This is always `sql#database`.
|
528
541
|
# Corresponds to the JSON property `kind`
|
529
542
|
# @return [String]
|
530
543
|
attr_accessor :kind
|
@@ -581,7 +594,7 @@ module Google
|
|
581
594
|
# @return [String]
|
582
595
|
attr_accessor :name
|
583
596
|
|
584
|
-
# The value of the flag.
|
597
|
+
# The value of the flag. Boolean flags are set to `on` for true and `off` for
|
585
598
|
# false. This field must be omitted if the flag doesn't take a value.
|
586
599
|
# Corresponds to the JSON property `value`
|
587
600
|
# @return [String]
|
@@ -602,10 +615,14 @@ module Google
|
|
602
615
|
class DatabaseInstance
|
603
616
|
include Google::Apis::Core::Hashable
|
604
617
|
|
605
|
-
#
|
618
|
+
# List all maintenance versions applicable on the instance
|
619
|
+
# Corresponds to the JSON property `availableMaintenanceVersions`
|
620
|
+
# @return [Array<String>]
|
621
|
+
attr_accessor :available_maintenance_versions
|
622
|
+
|
623
|
+
# The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A
|
606
624
|
# database server that is not managed by Google. This property is read-only; use
|
607
|
-
# the
|
608
|
-
# type.
|
625
|
+
# the `tier` property in the `settings` object to determine the database type.
|
609
626
|
# Corresponds to the JSON property `backendType`
|
610
627
|
# @return [String]
|
611
628
|
attr_accessor :backend_type
|
@@ -616,7 +633,7 @@ module Google
|
|
616
633
|
attr_accessor :connection_name
|
617
634
|
|
618
635
|
# Output only. The time when the instance was created in [RFC 3339](https://
|
619
|
-
# tools.ietf.org/html/rfc3339) format, for example
|
636
|
+
# tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
620
637
|
# Corresponds to the JSON property `createTime`
|
621
638
|
# @return [String]
|
622
639
|
attr_accessor :create_time
|
@@ -630,7 +647,13 @@ module Google
|
|
630
647
|
# @return [Fixnum]
|
631
648
|
attr_accessor :current_disk_size
|
632
649
|
|
633
|
-
#
|
650
|
+
# Output only. Stores the current database version running on the instance
|
651
|
+
# including minor version such as `MYSQL_8_0_18`.
|
652
|
+
# Corresponds to the JSON property `databaseInstalledVersion`
|
653
|
+
# @return [String]
|
654
|
+
attr_accessor :database_installed_version
|
655
|
+
|
656
|
+
# The database engine type and version. The `databaseVersion` field cannot be
|
634
657
|
# changed after instance creation.
|
635
658
|
# Corresponds to the JSON property `databaseVersion`
|
636
659
|
# @return [String]
|
@@ -647,7 +670,7 @@ module Google
|
|
647
670
|
attr_accessor :disk_encryption_status
|
648
671
|
|
649
672
|
# This field is deprecated and will be removed from a future version of the API.
|
650
|
-
# Use the
|
673
|
+
# Use the `settings.settingsVersion` field instead.
|
651
674
|
# Corresponds to the JSON property `etag`
|
652
675
|
# @return [String]
|
653
676
|
attr_accessor :etag
|
@@ -659,15 +682,13 @@ module Google
|
|
659
682
|
|
660
683
|
# The Compute Engine zone that the instance is currently serving from. This
|
661
684
|
# value could be different from the zone that was specified when the instance
|
662
|
-
# was created if the instance has failed over to its secondary zone.
|
685
|
+
# was created if the instance has failed over to its secondary zone. WARNING:
|
686
|
+
# Changing this might restart the instance.
|
663
687
|
# Corresponds to the JSON property `gceZone`
|
664
688
|
# @return [String]
|
665
689
|
attr_accessor :gce_zone
|
666
690
|
|
667
|
-
# The instance type.
|
668
|
-
# A Cloud SQL instance that is not replicating from a primary instance. * **
|
669
|
-
# ON_PREMISES_INSTANCE**: An instance running on the customer's premises. * **
|
670
|
-
# READ_REPLICA_INSTANCE**: A Cloud SQL instance configured as a read-replica.
|
691
|
+
# The instance type.
|
671
692
|
# Corresponds to the JSON property `instanceType`
|
672
693
|
# @return [String]
|
673
694
|
attr_accessor :instance_type
|
@@ -683,11 +704,16 @@ module Google
|
|
683
704
|
# @return [String]
|
684
705
|
attr_accessor :ipv6_address
|
685
706
|
|
686
|
-
# This is always
|
707
|
+
# This is always `sql#instance`.
|
687
708
|
# Corresponds to the JSON property `kind`
|
688
709
|
# @return [String]
|
689
710
|
attr_accessor :kind
|
690
711
|
|
712
|
+
# The current software version on the instance.
|
713
|
+
# Corresponds to the JSON property `maintenanceVersion`
|
714
|
+
# @return [String]
|
715
|
+
attr_accessor :maintenance_version
|
716
|
+
|
691
717
|
# The name of the instance which will act as primary in the replication setup.
|
692
718
|
# Corresponds to the JSON property `masterInstanceName`
|
693
719
|
# @return [String]
|
@@ -719,10 +745,10 @@ module Google
|
|
719
745
|
# @return [String]
|
720
746
|
attr_accessor :project
|
721
747
|
|
722
|
-
# The geographical region. Can be: *
|
723
|
-
#
|
724
|
-
#
|
725
|
-
#
|
748
|
+
# The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) *
|
749
|
+
# `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`.
|
750
|
+
# Defaults to `us-central` or `us-central1` depending on the instance type. The
|
751
|
+
# region cannot be changed after instance creation.
|
726
752
|
# Corresponds to the JSON property `region`
|
727
753
|
# @return [String]
|
728
754
|
attr_accessor :region
|
@@ -771,7 +797,7 @@ module Google
|
|
771
797
|
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
772
798
|
attr_accessor :server_ca_cert
|
773
799
|
|
774
|
-
# The service account email address assigned to the instance. This property is
|
800
|
+
# The service account email address assigned to the instance. \This property is
|
775
801
|
# read-only.
|
776
802
|
# Corresponds to the JSON property `serviceAccountEmailAddress`
|
777
803
|
# @return [String]
|
@@ -798,10 +824,12 @@ module Google
|
|
798
824
|
|
799
825
|
# Update properties of this object
|
800
826
|
def update!(**args)
|
827
|
+
@available_maintenance_versions = args[:available_maintenance_versions] if args.key?(:available_maintenance_versions)
|
801
828
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
802
829
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
803
830
|
@create_time = args[:create_time] if args.key?(:create_time)
|
804
831
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
832
|
+
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
|
805
833
|
@database_version = args[:database_version] if args.key?(:database_version)
|
806
834
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
807
835
|
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
@@ -812,6 +840,7 @@ module Google
|
|
812
840
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
813
841
|
@ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
|
814
842
|
@kind = args[:kind] if args.key?(:kind)
|
843
|
+
@maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version)
|
815
844
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
816
845
|
@max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size)
|
817
846
|
@name = args[:name] if args.key?(:name)
|
@@ -873,7 +902,7 @@ module Google
|
|
873
902
|
# @return [Array<Google::Apis::SqladminV1beta4::Database>]
|
874
903
|
attr_accessor :items
|
875
904
|
|
876
|
-
# This is always
|
905
|
+
# This is always `sql#databasesList`.
|
877
906
|
# Corresponds to the JSON property `kind`
|
878
907
|
# @return [String]
|
879
908
|
attr_accessor :kind
|
@@ -893,7 +922,7 @@ module Google
|
|
893
922
|
class DemoteMasterConfiguration
|
894
923
|
include Google::Apis::Core::Hashable
|
895
924
|
|
896
|
-
# This is always
|
925
|
+
# This is always `sql#demoteMasterConfiguration`.
|
897
926
|
# Corresponds to the JSON property `kind`
|
898
927
|
# @return [String]
|
899
928
|
attr_accessor :kind
|
@@ -918,7 +947,7 @@ module Google
|
|
918
947
|
class DemoteMasterContext
|
919
948
|
include Google::Apis::Core::Hashable
|
920
949
|
|
921
|
-
# This is always
|
950
|
+
# This is always `sql#demoteMasterContext`.
|
922
951
|
# Corresponds to the JSON property `kind`
|
923
952
|
# @return [String]
|
924
953
|
attr_accessor :kind
|
@@ -940,12 +969,12 @@ module Google
|
|
940
969
|
attr_accessor :skip_replication_setup
|
941
970
|
alias_method :skip_replication_setup?, :skip_replication_setup
|
942
971
|
|
943
|
-
# Verify GTID consistency for demote operation. Default value:
|
944
|
-
# this flag to false enables you to bypass GTID consistency check
|
945
|
-
# premises primary instance and Cloud SQL instance during the
|
946
|
-
# but also exposes you to the risk of future replication
|
947
|
-
# value only if you know the reason for the GTID divergence
|
948
|
-
# that doing so will not cause any replication issues.
|
972
|
+
# Verify the GTID consistency for demote operation. Default value: `True`.
|
973
|
+
# Setting this flag to `false` enables you to bypass the GTID consistency check
|
974
|
+
# between on-premises primary instance and Cloud SQL instance during the
|
975
|
+
# demotion operation but also exposes you to the risk of future replication
|
976
|
+
# failures. Change the value only if you know the reason for the GTID divergence
|
977
|
+
# and are confident that doing so will not cause any replication issues.
|
949
978
|
# Corresponds to the JSON property `verifyGtidConsistency`
|
950
979
|
# @return [Boolean]
|
951
980
|
attr_accessor :verify_gtid_consistency
|
@@ -986,7 +1015,7 @@ module Google
|
|
986
1015
|
# @return [String]
|
987
1016
|
attr_accessor :client_key
|
988
1017
|
|
989
|
-
# This is always
|
1018
|
+
# This is always `sql#demoteMasterMysqlReplicaConfiguration`.
|
990
1019
|
# Corresponds to the JSON property `kind`
|
991
1020
|
# @return [String]
|
992
1021
|
attr_accessor :kind
|
@@ -1059,7 +1088,7 @@ module Google
|
|
1059
1088
|
class DiskEncryptionConfiguration
|
1060
1089
|
include Google::Apis::Core::Hashable
|
1061
1090
|
|
1062
|
-
# This is always
|
1091
|
+
# This is always `sql#diskEncryptionConfiguration`.
|
1063
1092
|
# Corresponds to the JSON property `kind`
|
1064
1093
|
# @return [String]
|
1065
1094
|
attr_accessor :kind
|
@@ -1084,7 +1113,7 @@ module Google
|
|
1084
1113
|
class DiskEncryptionStatus
|
1085
1114
|
include Google::Apis::Core::Hashable
|
1086
1115
|
|
1087
|
-
# This is always
|
1116
|
+
# This is always `sql#diskEncryptionStatus`.
|
1088
1117
|
# Corresponds to the JSON property `kind`
|
1089
1118
|
# @return [String]
|
1090
1119
|
attr_accessor :kind
|
@@ -1109,32 +1138,30 @@ module Google
|
|
1109
1138
|
class ExportContext
|
1110
1139
|
include Google::Apis::Core::Hashable
|
1111
1140
|
|
1112
|
-
# Options for exporting data as CSV.
|
1141
|
+
# Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
|
1113
1142
|
# Corresponds to the JSON property `csvExportOptions`
|
1114
1143
|
# @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
|
1115
1144
|
attr_accessor :csv_export_options
|
1116
1145
|
|
1117
|
-
# Databases to be exported.
|
1118
|
-
#
|
1119
|
-
#
|
1120
|
-
#
|
1121
|
-
#
|
1122
|
-
#
|
1123
|
-
#
|
1124
|
-
#
|
1125
|
-
#
|
1146
|
+
# Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no
|
1147
|
+
# database is specified, all databases are exported, except for the `mysql`
|
1148
|
+
# system database. If `fileType` is `CSV`, you can specify one database, either
|
1149
|
+
# by using this property or by using the `csvExportOptions.selectQuery` property,
|
1150
|
+
# which takes precedence over this property. `PostgreSQL instances:` You must
|
1151
|
+
# specify one database to be exported. If `fileType` is `CSV`, this database
|
1152
|
+
# must match the one specified in the `csvExportOptions.selectQuery` property. `
|
1153
|
+
# SQL Server instances:` You must specify one database to be exported, and the `
|
1154
|
+
# fileType` must be `BAK`.
|
1126
1155
|
# Corresponds to the JSON property `databases`
|
1127
1156
|
# @return [Array<String>]
|
1128
1157
|
attr_accessor :databases
|
1129
1158
|
|
1130
|
-
# The file type for the specified uri.
|
1131
|
-
# statements. * **CSV**: The file contains CSV data. * **BAK**: The file
|
1132
|
-
# contains backup data for a SQL Server instance.
|
1159
|
+
# The file type for the specified uri.
|
1133
1160
|
# Corresponds to the JSON property `fileType`
|
1134
1161
|
# @return [String]
|
1135
1162
|
attr_accessor :file_type
|
1136
1163
|
|
1137
|
-
# This is always
|
1164
|
+
# This is always `sql#exportContext`.
|
1138
1165
|
# Corresponds to the JSON property `kind`
|
1139
1166
|
# @return [String]
|
1140
1167
|
attr_accessor :kind
|
@@ -1151,9 +1178,9 @@ module Google
|
|
1151
1178
|
attr_accessor :sql_export_options
|
1152
1179
|
|
1153
1180
|
# The path to the file in Google Cloud Storage where the export will be stored.
|
1154
|
-
# The URI is in the form
|
1155
|
-
#
|
1156
|
-
#
|
1181
|
+
# The URI is in the form `gs://bucketName/fileName`. If the file already exists,
|
1182
|
+
# the request succeeds, but the operation fails. If `fileType` is `SQL` and the
|
1183
|
+
# filename ends with .gz, the contents are compressed.
|
1157
1184
|
# Corresponds to the JSON property `uri`
|
1158
1185
|
# @return [String]
|
1159
1186
|
attr_accessor :uri
|
@@ -1173,7 +1200,7 @@ module Google
|
|
1173
1200
|
@uri = args[:uri] if args.key?(:uri)
|
1174
1201
|
end
|
1175
1202
|
|
1176
|
-
# Options for exporting data as CSV.
|
1203
|
+
# Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
|
1177
1204
|
class CsvExportOptions
|
1178
1205
|
include Google::Apis::Core::Hashable
|
1179
1206
|
|
@@ -1256,11 +1283,11 @@ module Google
|
|
1256
1283
|
class MysqlExportOptions
|
1257
1284
|
include Google::Apis::Core::Hashable
|
1258
1285
|
|
1259
|
-
# Option to include SQL statement required to set up replication.
|
1260
|
-
#
|
1261
|
-
# coordinates, and --set-gtid-purged is set to ON.
|
1262
|
-
# MASTER TO statement is written as a SQL comment and has no effect.
|
1263
|
-
# any value other than
|
1286
|
+
# Option to include SQL statement required to set up replication. If set to `1`,
|
1287
|
+
# the dump file includes a CHANGE MASTER TO statement with the binary log
|
1288
|
+
# coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE
|
1289
|
+
# MASTER TO statement is written as a SQL comment and has no effect. If set to
|
1290
|
+
# any value other than `1`, --set-gtid-purged is set to OFF.
|
1264
1291
|
# Corresponds to the JSON property `masterData`
|
1265
1292
|
# @return [Fixnum]
|
1266
1293
|
attr_accessor :master_data
|
@@ -1281,7 +1308,7 @@ module Google
|
|
1281
1308
|
class FailoverContext
|
1282
1309
|
include Google::Apis::Core::Hashable
|
1283
1310
|
|
1284
|
-
# This is always
|
1311
|
+
# This is always `sql#failoverContext`.
|
1285
1312
|
# Corresponds to the JSON property `kind`
|
1286
1313
|
# @return [String]
|
1287
1314
|
attr_accessor :kind
|
@@ -1313,13 +1340,18 @@ module Google
|
|
1313
1340
|
# @return [Array<Fixnum>]
|
1314
1341
|
attr_accessor :allowed_int_values
|
1315
1342
|
|
1316
|
-
# For
|
1343
|
+
# For `STRING` flags, a list of strings that the value can be set to.
|
1317
1344
|
# Corresponds to the JSON property `allowedStringValues`
|
1318
1345
|
# @return [Array<String>]
|
1319
1346
|
attr_accessor :allowed_string_values
|
1320
1347
|
|
1321
|
-
# The database version this flag applies to. Can be
|
1322
|
-
# or
|
1348
|
+
# The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`,
|
1349
|
+
# `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL
|
1350
|
+
# instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL
|
1351
|
+
# Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, `
|
1352
|
+
# SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `
|
1353
|
+
# SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
|
1354
|
+
# See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion).
|
1323
1355
|
# Corresponds to the JSON property `appliesTo`
|
1324
1356
|
# @return [Array<String>]
|
1325
1357
|
attr_accessor :applies_to
|
@@ -1330,23 +1362,23 @@ module Google
|
|
1330
1362
|
attr_accessor :in_beta
|
1331
1363
|
alias_method :in_beta?, :in_beta
|
1332
1364
|
|
1333
|
-
# This is always
|
1365
|
+
# This is always `sql#flag`.
|
1334
1366
|
# Corresponds to the JSON property `kind`
|
1335
1367
|
# @return [String]
|
1336
1368
|
attr_accessor :kind
|
1337
1369
|
|
1338
|
-
# For
|
1370
|
+
# For `INTEGER` flags, the maximum allowed value.
|
1339
1371
|
# Corresponds to the JSON property `maxValue`
|
1340
1372
|
# @return [Fixnum]
|
1341
1373
|
attr_accessor :max_value
|
1342
1374
|
|
1343
|
-
# For
|
1375
|
+
# For `INTEGER` flags, the minimum allowed value.
|
1344
1376
|
# Corresponds to the JSON property `minValue`
|
1345
1377
|
# @return [Fixnum]
|
1346
1378
|
attr_accessor :min_value
|
1347
1379
|
|
1348
1380
|
# This is the name of the flag. Flag names always use underscores, not hyphens,
|
1349
|
-
# for example:
|
1381
|
+
# for example: `max_allowed_packet`
|
1350
1382
|
# Corresponds to the JSON property `name`
|
1351
1383
|
# @return [String]
|
1352
1384
|
attr_accessor :name
|
@@ -1358,9 +1390,9 @@ module Google
|
|
1358
1390
|
attr_accessor :requires_restart
|
1359
1391
|
alias_method :requires_restart?, :requires_restart
|
1360
1392
|
|
1361
|
-
# The type of the flag. Flags are typed to being
|
1362
|
-
#
|
1363
|
-
#
|
1393
|
+
# The type of the flag. Flags are typed to being `BOOLEAN`, `STRING`, `INTEGER`
|
1394
|
+
# or `NONE`. `NONE` is used for flags which do not take a value, such as `
|
1395
|
+
# skip_grant_tables`.
|
1364
1396
|
# Corresponds to the JSON property `type`
|
1365
1397
|
# @return [String]
|
1366
1398
|
attr_accessor :type
|
@@ -1393,7 +1425,7 @@ module Google
|
|
1393
1425
|
# @return [Array<Google::Apis::SqladminV1beta4::Flag>]
|
1394
1426
|
attr_accessor :items
|
1395
1427
|
|
1396
|
-
# This is always
|
1428
|
+
# This is always `sql#flagsList`.
|
1397
1429
|
# Corresponds to the JSON property `kind`
|
1398
1430
|
# @return [String]
|
1399
1431
|
attr_accessor :kind
|
@@ -1479,17 +1511,17 @@ module Google
|
|
1479
1511
|
# @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
|
1480
1512
|
attr_accessor :csv_import_options
|
1481
1513
|
|
1482
|
-
# The target database for the import. If
|
1514
|
+
# The target database for the import. If `fileType` is `SQL`, this field is
|
1483
1515
|
# required only if the import file does not specify a database, and is
|
1484
|
-
# overridden by any database specification in the import file. If
|
1485
|
-
#
|
1516
|
+
# overridden by any database specification in the import file. If `fileType` is `
|
1517
|
+
# CSV`, one database must be specified.
|
1486
1518
|
# Corresponds to the JSON property `database`
|
1487
1519
|
# @return [String]
|
1488
1520
|
attr_accessor :database
|
1489
1521
|
|
1490
|
-
# The file type for the specified uri. *
|
1491
|
-
#
|
1492
|
-
#
|
1522
|
+
# The file type for the specified uri. * `SQL`: The file contains SQL statements.
|
1523
|
+
# * `CSV`: The file contains CSV data. * `BAK`: The file contains backup data
|
1524
|
+
# for a SQL Server instance.
|
1493
1525
|
# Corresponds to the JSON property `fileType`
|
1494
1526
|
# @return [String]
|
1495
1527
|
attr_accessor :file_type
|
@@ -1499,15 +1531,15 @@ module Google
|
|
1499
1531
|
# @return [String]
|
1500
1532
|
attr_accessor :import_user
|
1501
1533
|
|
1502
|
-
# This is always
|
1534
|
+
# This is always `sql#importContext`.
|
1503
1535
|
# Corresponds to the JSON property `kind`
|
1504
1536
|
# @return [String]
|
1505
1537
|
attr_accessor :kind
|
1506
1538
|
|
1507
|
-
# Path to the import file in Cloud Storage, in the form
|
1508
|
-
# fileName
|
1509
|
-
#
|
1510
|
-
#
|
1539
|
+
# Path to the import file in Cloud Storage, in the form `gs://bucketName/
|
1540
|
+
# fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`.
|
1541
|
+
# The instance must have write permissions to the bucket and read access to the
|
1542
|
+
# file.
|
1511
1543
|
# Corresponds to the JSON property `uri`
|
1512
1544
|
# @return [String]
|
1513
1545
|
attr_accessor :uri
|
@@ -1549,8 +1581,8 @@ module Google
|
|
1549
1581
|
class EncryptionOptions
|
1550
1582
|
include Google::Apis::Core::Hashable
|
1551
1583
|
|
1552
|
-
# Path to the Certificate (.cer) in Cloud Storage, in the form
|
1553
|
-
# fileName
|
1584
|
+
# Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/
|
1585
|
+
# fileName`. The instance must have write permissions to the bucket and read
|
1554
1586
|
# access to the file.
|
1555
1587
|
# Corresponds to the JSON property `certPath`
|
1556
1588
|
# @return [String]
|
@@ -1561,8 +1593,8 @@ module Google
|
|
1561
1593
|
# @return [String]
|
1562
1594
|
attr_accessor :pvk_password
|
1563
1595
|
|
1564
|
-
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form
|
1565
|
-
#
|
1596
|
+
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://
|
1597
|
+
# bucketName/fileName`. The instance must have write permissions to the bucket
|
1566
1598
|
# and read access to the file.
|
1567
1599
|
# Corresponds to the JSON property `pvkPath`
|
1568
1600
|
# @return [String]
|
@@ -1823,7 +1855,7 @@ module Google
|
|
1823
1855
|
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
|
1824
1856
|
attr_accessor :items
|
1825
1857
|
|
1826
|
-
# This is always
|
1858
|
+
# This is always `sql#instancesList`.
|
1827
1859
|
# Corresponds to the JSON property `kind`
|
1828
1860
|
# @return [String]
|
1829
1861
|
attr_accessor :kind
|
@@ -1866,7 +1898,7 @@ module Google
|
|
1866
1898
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
1867
1899
|
attr_accessor :certs
|
1868
1900
|
|
1869
|
-
# This is always
|
1901
|
+
# This is always `sql#instancesListServerCas`.
|
1870
1902
|
# Corresponds to the JSON property `kind`
|
1871
1903
|
# @return [String]
|
1872
1904
|
attr_accessor :kind
|
@@ -1950,14 +1982,13 @@ module Google
|
|
1950
1982
|
# created in the allocated range. The range name must comply with [RFC 1035](
|
1951
1983
|
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1952
1984
|
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1953
|
-
# Reserved for future use.
|
1954
1985
|
# Corresponds to the JSON property `allocatedIpRange`
|
1955
1986
|
# @return [String]
|
1956
1987
|
attr_accessor :allocated_ip_range
|
1957
1988
|
|
1958
1989
|
# The list of external networks that are allowed to connect to the instance
|
1959
1990
|
# using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
1960
|
-
#
|
1991
|
+
# `157.197.200.0/24`).
|
1961
1992
|
# Corresponds to the JSON property `authorizedNetworks`
|
1962
1993
|
# @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
|
1963
1994
|
attr_accessor :authorized_networks
|
@@ -1969,8 +2000,8 @@ module Google
|
|
1969
2000
|
alias_method :ipv4_enabled?, :ipv4_enabled
|
1970
2001
|
|
1971
2002
|
# The resource link for the VPC network from which the Cloud SQL instance is
|
1972
|
-
# accessible for private IP. For example,
|
1973
|
-
# default
|
2003
|
+
# accessible for private IP. For example, `/projects/myProject/global/networks/
|
2004
|
+
# default`. This setting can be updated, but it cannot be removed after it is
|
1974
2005
|
# set.
|
1975
2006
|
# Corresponds to the JSON property `privateNetwork`
|
1976
2007
|
# @return [String]
|
@@ -2006,16 +2037,16 @@ module Google
|
|
2006
2037
|
attr_accessor :ip_address
|
2007
2038
|
|
2008
2039
|
# The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/
|
2009
|
-
# html/rfc3339) format, for example
|
2040
|
+
# html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is
|
2010
2041
|
# only available when the IP is scheduled to be retired.
|
2011
2042
|
# Corresponds to the JSON property `timeToRetire`
|
2012
2043
|
# @return [String]
|
2013
2044
|
attr_accessor :time_to_retire
|
2014
2045
|
|
2015
|
-
# The type of this IP address. A
|
2016
|
-
#
|
2017
|
-
#
|
2018
|
-
#
|
2046
|
+
# The type of this IP address. A `PRIMARY` address is a public address that can
|
2047
|
+
# accept incoming connections. A `PRIVATE` address is a private address that can
|
2048
|
+
# accept incoming connections. An `OUTGOING` address is the source address of
|
2049
|
+
# connections originating from the instance, if supported.
|
2019
2050
|
# Corresponds to the JSON property `type`
|
2020
2051
|
# @return [String]
|
2021
2052
|
attr_accessor :type
|
@@ -2039,12 +2070,12 @@ module Google
|
|
2039
2070
|
include Google::Apis::Core::Hashable
|
2040
2071
|
|
2041
2072
|
# The App Engine application to follow, it must be in the same region as the
|
2042
|
-
# Cloud SQL instance.
|
2073
|
+
# Cloud SQL instance. WARNING: Changing this might restart the instance.
|
2043
2074
|
# Corresponds to the JSON property `followGaeApplication`
|
2044
2075
|
# @return [String]
|
2045
2076
|
attr_accessor :follow_gae_application
|
2046
2077
|
|
2047
|
-
# This is always
|
2078
|
+
# This is always `sql#locationPreference`.
|
2048
2079
|
# Corresponds to the JSON property `kind`
|
2049
2080
|
# @return [String]
|
2050
2081
|
attr_accessor :kind
|
@@ -2056,7 +2087,7 @@ module Google
|
|
2056
2087
|
attr_accessor :secondary_zone
|
2057
2088
|
|
2058
2089
|
# The preferred Compute Engine zone (for example: us-central1-a, us-central1-b,
|
2059
|
-
# etc.).
|
2090
|
+
# etc.). WARNING: Changing this might restart the instance.
|
2060
2091
|
# Corresponds to the JSON property `zone`
|
2061
2092
|
# @return [String]
|
2062
2093
|
attr_accessor :zone
|
@@ -2089,12 +2120,12 @@ module Google
|
|
2089
2120
|
# @return [Fixnum]
|
2090
2121
|
attr_accessor :hour
|
2091
2122
|
|
2092
|
-
# This is always
|
2123
|
+
# This is always `sql#maintenanceWindow`.
|
2093
2124
|
# Corresponds to the JSON property `kind`
|
2094
2125
|
# @return [String]
|
2095
2126
|
attr_accessor :kind
|
2096
2127
|
|
2097
|
-
# Maintenance timing setting:
|
2128
|
+
# Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn
|
2098
2129
|
# more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-
|
2099
2130
|
# timing-2ndgen).
|
2100
2131
|
# Corresponds to the JSON property `updateTrack`
|
@@ -2148,7 +2179,7 @@ module Google
|
|
2148
2179
|
# @return [String]
|
2149
2180
|
attr_accessor :dump_file_path
|
2150
2181
|
|
2151
|
-
# This is always
|
2182
|
+
# This is always `sql#mysqlReplicaConfiguration`.
|
2152
2183
|
# Corresponds to the JSON property `kind`
|
2153
2184
|
# @return [String]
|
2154
2185
|
attr_accessor :kind
|
@@ -2249,7 +2280,7 @@ module Google
|
|
2249
2280
|
# @return [String]
|
2250
2281
|
attr_accessor :host_port
|
2251
2282
|
|
2252
|
-
# This is always
|
2283
|
+
# This is always `sql#onPremisesConfiguration`.
|
2253
2284
|
# Corresponds to the JSON property `kind`
|
2254
2285
|
# @return [String]
|
2255
2286
|
attr_accessor :kind
|
@@ -2299,7 +2330,7 @@ module Google
|
|
2299
2330
|
attr_accessor :backup_context
|
2300
2331
|
|
2301
2332
|
# The time this operation finished in UTC timezone in [RFC 3339](https://tools.
|
2302
|
-
# ietf.org/html/rfc3339) format, for example
|
2333
|
+
# ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
2303
2334
|
# Corresponds to the JSON property `endTime`
|
2304
2335
|
# @return [String]
|
2305
2336
|
attr_accessor :end_time
|
@@ -2320,12 +2351,12 @@ module Google
|
|
2320
2351
|
attr_accessor :import_context
|
2321
2352
|
|
2322
2353
|
# The time this operation was enqueued in UTC timezone in [RFC 3339](https://
|
2323
|
-
# tools.ietf.org/html/rfc3339) format, for example
|
2354
|
+
# tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
2324
2355
|
# Corresponds to the JSON property `insertTime`
|
2325
2356
|
# @return [String]
|
2326
2357
|
attr_accessor :insert_time
|
2327
2358
|
|
2328
|
-
# This is always
|
2359
|
+
# This is always `sql#operation`.
|
2329
2360
|
# Corresponds to the JSON property `kind`
|
2330
2361
|
# @return [String]
|
2331
2362
|
attr_accessor :kind
|
@@ -2337,10 +2368,9 @@ module Google
|
|
2337
2368
|
# @return [String]
|
2338
2369
|
attr_accessor :name
|
2339
2370
|
|
2340
|
-
# The type of the operation. Valid values are: *
|
2341
|
-
#
|
2342
|
-
#
|
2343
|
-
# DELETE_DATABASE**
|
2371
|
+
# The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` *
|
2372
|
+
# `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `
|
2373
|
+
# CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
|
2344
2374
|
# Corresponds to the JSON property `operationType`
|
2345
2375
|
# @return [String]
|
2346
2376
|
attr_accessor :operation_type
|
@@ -2351,13 +2381,12 @@ module Google
|
|
2351
2381
|
attr_accessor :self_link
|
2352
2382
|
|
2353
2383
|
# The time this operation actually started in UTC timezone in [RFC 3339](https://
|
2354
|
-
# tools.ietf.org/html/rfc3339) format, for example
|
2384
|
+
# tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
2355
2385
|
# Corresponds to the JSON property `startTime`
|
2356
2386
|
# @return [String]
|
2357
2387
|
attr_accessor :start_time
|
2358
2388
|
|
2359
|
-
# The status of an operation.
|
2360
|
-
# DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
|
2389
|
+
# The status of an operation.
|
2361
2390
|
# Corresponds to the JSON property `status`
|
2362
2391
|
# @return [String]
|
2363
2392
|
attr_accessor :status
|
@@ -2416,7 +2445,7 @@ module Google
|
|
2416
2445
|
# @return [String]
|
2417
2446
|
attr_accessor :code
|
2418
2447
|
|
2419
|
-
# This is always
|
2448
|
+
# This is always `sql#operationError`.
|
2420
2449
|
# Corresponds to the JSON property `kind`
|
2421
2450
|
# @return [String]
|
2422
2451
|
attr_accessor :kind
|
@@ -2447,7 +2476,7 @@ module Google
|
|
2447
2476
|
# @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
|
2448
2477
|
attr_accessor :errors
|
2449
2478
|
|
2450
|
-
# This is always
|
2479
|
+
# This is always `sql#operationErrors`.
|
2451
2480
|
# Corresponds to the JSON property `kind`
|
2452
2481
|
# @return [String]
|
2453
2482
|
attr_accessor :kind
|
@@ -2472,7 +2501,7 @@ module Google
|
|
2472
2501
|
# @return [Array<Google::Apis::SqladminV1beta4::Operation>]
|
2473
2502
|
attr_accessor :items
|
2474
2503
|
|
2475
|
-
# This is always
|
2504
|
+
# This is always `sql#operationsList`.
|
2476
2505
|
# Corresponds to the JSON property `kind`
|
2477
2506
|
# @return [String]
|
2478
2507
|
attr_accessor :kind
|
@@ -2495,12 +2524,83 @@ module Google
|
|
2495
2524
|
end
|
2496
2525
|
end
|
2497
2526
|
|
2527
|
+
# Read-only password status.
|
2528
|
+
class PasswordStatus
|
2529
|
+
include Google::Apis::Core::Hashable
|
2530
|
+
|
2531
|
+
# If true, user does not have login privileges.
|
2532
|
+
# Corresponds to the JSON property `locked`
|
2533
|
+
# @return [Boolean]
|
2534
|
+
attr_accessor :locked
|
2535
|
+
alias_method :locked?, :locked
|
2536
|
+
|
2537
|
+
# The expiration time of the current password.
|
2538
|
+
# Corresponds to the JSON property `passwordExpirationTime`
|
2539
|
+
# @return [String]
|
2540
|
+
attr_accessor :password_expiration_time
|
2541
|
+
|
2542
|
+
def initialize(**args)
|
2543
|
+
update!(**args)
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
# Update properties of this object
|
2547
|
+
def update!(**args)
|
2548
|
+
@locked = args[:locked] if args.key?(:locked)
|
2549
|
+
@password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time)
|
2550
|
+
end
|
2551
|
+
end
|
2552
|
+
|
2553
|
+
# Database instance local user password validation policy
|
2554
|
+
class PasswordValidationPolicy
|
2555
|
+
include Google::Apis::Core::Hashable
|
2556
|
+
|
2557
|
+
# The complexity of the password.
|
2558
|
+
# Corresponds to the JSON property `complexity`
|
2559
|
+
# @return [String]
|
2560
|
+
attr_accessor :complexity
|
2561
|
+
|
2562
|
+
# Disallow username as a part of the password.
|
2563
|
+
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2564
|
+
# @return [Boolean]
|
2565
|
+
attr_accessor :disallow_username_substring
|
2566
|
+
alias_method :disallow_username_substring?, :disallow_username_substring
|
2567
|
+
|
2568
|
+
# Minimum number of characters allowed.
|
2569
|
+
# Corresponds to the JSON property `minLength`
|
2570
|
+
# @return [Fixnum]
|
2571
|
+
attr_accessor :min_length
|
2572
|
+
|
2573
|
+
# Minimum interval after which the password can be changed. This flag is only
|
2574
|
+
# supported for PostgresSQL.
|
2575
|
+
# Corresponds to the JSON property `passwordChangeInterval`
|
2576
|
+
# @return [String]
|
2577
|
+
attr_accessor :password_change_interval
|
2578
|
+
|
2579
|
+
# Number of previous passwords that cannot be reused.
|
2580
|
+
# Corresponds to the JSON property `reuseInterval`
|
2581
|
+
# @return [Fixnum]
|
2582
|
+
attr_accessor :reuse_interval
|
2583
|
+
|
2584
|
+
def initialize(**args)
|
2585
|
+
update!(**args)
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
# Update properties of this object
|
2589
|
+
def update!(**args)
|
2590
|
+
@complexity = args[:complexity] if args.key?(:complexity)
|
2591
|
+
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2592
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
2593
|
+
@password_change_interval = args[:password_change_interval] if args.key?(:password_change_interval)
|
2594
|
+
@reuse_interval = args[:reuse_interval] if args.key?(:reuse_interval)
|
2595
|
+
end
|
2596
|
+
end
|
2597
|
+
|
2498
2598
|
# Read-replica configuration for connecting to the primary instance.
|
2499
2599
|
class ReplicaConfiguration
|
2500
2600
|
include Google::Apis::Core::Hashable
|
2501
2601
|
|
2502
|
-
# Specifies if the replica is the failover target. If the field is set to
|
2503
|
-
#
|
2602
|
+
# Specifies if the replica is the failover target. If the field is set to `true`
|
2603
|
+
# the replica will be designated as a failover replica. In case the primary
|
2504
2604
|
# instance fails, the replica instance will be promoted as the new primary
|
2505
2605
|
# instance. Only one replica can be specified as failover target, and the
|
2506
2606
|
# replica has to be in different zone with the primary instance.
|
@@ -2509,7 +2609,7 @@ module Google
|
|
2509
2609
|
attr_accessor :failover_target
|
2510
2610
|
alias_method :failover_target?, :failover_target
|
2511
2611
|
|
2512
|
-
# This is always
|
2612
|
+
# This is always `sql#replicaConfiguration`.
|
2513
2613
|
# Corresponds to the JSON property `kind`
|
2514
2614
|
# @return [String]
|
2515
2615
|
attr_accessor :kind
|
@@ -2542,7 +2642,7 @@ module Google
|
|
2542
2642
|
|
2543
2643
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
2544
2644
|
# reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/
|
2545
|
-
# rfc3339) format, for example
|
2645
|
+
# rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
2546
2646
|
# Corresponds to the JSON property `scheduleTime`
|
2547
2647
|
# @return [String]
|
2548
2648
|
attr_accessor :schedule_time
|
@@ -2573,7 +2673,7 @@ module Google
|
|
2573
2673
|
# @return [String]
|
2574
2674
|
attr_accessor :instance_id
|
2575
2675
|
|
2576
|
-
# This is always
|
2676
|
+
# This is always `sql#restoreBackupContext`.
|
2577
2677
|
# Corresponds to the JSON property `kind`
|
2578
2678
|
# @return [String]
|
2579
2679
|
attr_accessor :kind
|
@@ -2600,7 +2700,7 @@ module Google
|
|
2600
2700
|
class RotateServerCaContext
|
2601
2701
|
include Google::Apis::Core::Hashable
|
2602
2702
|
|
2603
|
-
# This is always
|
2703
|
+
# This is always `sql#rotateServerCaContext`.
|
2604
2704
|
# Corresponds to the JSON property `kind`
|
2605
2705
|
# @return [String]
|
2606
2706
|
attr_accessor :kind
|
@@ -2627,10 +2727,10 @@ module Google
|
|
2627
2727
|
include Google::Apis::Core::Hashable
|
2628
2728
|
|
2629
2729
|
# The activation policy specifies when the instance is activated; it is
|
2630
|
-
# applicable only when the instance state is RUNNABLE. Valid values: *
|
2631
|
-
#
|
2632
|
-
#
|
2633
|
-
#
|
2730
|
+
# applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`:
|
2731
|
+
# The instance is on, and remains so even in the absence of connection requests.
|
2732
|
+
# * `NEVER`: The instance is off; it is not activated, even if a connection
|
2733
|
+
# request arrives.
|
2634
2734
|
# Corresponds to the JSON property `activationPolicy`
|
2635
2735
|
# @return [String]
|
2636
2736
|
attr_accessor :activation_policy
|
@@ -2646,12 +2746,11 @@ module Google
|
|
2646
2746
|
# @return [Array<String>]
|
2647
2747
|
attr_accessor :authorized_gae_applications
|
2648
2748
|
|
2649
|
-
# Availability type. Potential values: *
|
2650
|
-
#
|
2651
|
-
#
|
2652
|
-
#
|
2653
|
-
#
|
2654
|
-
# availability).
|
2749
|
+
# Availability type. Potential values: * `ZONAL`: The instance serves data from
|
2750
|
+
# only one zone. Outages in that zone affect data accessibility. * `REGIONAL`:
|
2751
|
+
# The instance can serve data from more than one zone in a region (it is highly
|
2752
|
+
# available)./ For more information, see [Overview of the High Availability
|
2753
|
+
# Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
|
2655
2754
|
# Corresponds to the JSON property `availabilityType`
|
2656
2755
|
# @return [String]
|
2657
2756
|
attr_accessor :availability_type
|
@@ -2679,7 +2778,7 @@ module Google
|
|
2679
2778
|
# @return [Fixnum]
|
2680
2779
|
attr_accessor :data_disk_size_gb
|
2681
2780
|
|
2682
|
-
# The type of data disk:
|
2781
|
+
# The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First
|
2683
2782
|
# Generation instances.
|
2684
2783
|
# Corresponds to the JSON property `dataDiskType`
|
2685
2784
|
# @return [String]
|
@@ -2691,7 +2790,7 @@ module Google
|
|
2691
2790
|
attr_accessor :database_flags
|
2692
2791
|
|
2693
2792
|
# Configuration specific to read replica instances. Indicates whether
|
2694
|
-
# replication is enabled or not.
|
2793
|
+
# replication is enabled or not. WARNING: Changing this restarts the instance.
|
2695
2794
|
# Corresponds to the JSON property `databaseReplicationEnabled`
|
2696
2795
|
# @return [Boolean]
|
2697
2796
|
attr_accessor :database_replication_enabled
|
@@ -2713,7 +2812,7 @@ module Google
|
|
2713
2812
|
# @return [Google::Apis::SqladminV1beta4::IpConfiguration]
|
2714
2813
|
attr_accessor :ip_configuration
|
2715
2814
|
|
2716
|
-
# This is always
|
2815
|
+
# This is always `sql#settings`.
|
2717
2816
|
# Corresponds to the JSON property `kind`
|
2718
2817
|
# @return [String]
|
2719
2818
|
attr_accessor :kind
|
@@ -2731,14 +2830,19 @@ module Google
|
|
2731
2830
|
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
2732
2831
|
attr_accessor :maintenance_window
|
2733
2832
|
|
2734
|
-
#
|
2735
|
-
#
|
2833
|
+
# Database instance local user password validation policy
|
2834
|
+
# Corresponds to the JSON property `passwordValidationPolicy`
|
2835
|
+
# @return [Google::Apis::SqladminV1beta4::PasswordValidationPolicy]
|
2836
|
+
attr_accessor :password_validation_policy
|
2837
|
+
|
2838
|
+
# The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`.
|
2839
|
+
# Only `PER_USE` is supported for Second Generation instances.
|
2736
2840
|
# Corresponds to the JSON property `pricingPlan`
|
2737
2841
|
# @return [String]
|
2738
2842
|
attr_accessor :pricing_plan
|
2739
2843
|
|
2740
|
-
# The type of replication this instance uses. This can be either
|
2741
|
-
# or
|
2844
|
+
# The type of replication this instance uses. This can be either `ASYNCHRONOUS`
|
2845
|
+
# or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First
|
2742
2846
|
# Generation instances.
|
2743
2847
|
# Corresponds to the JSON property `replicationType`
|
2744
2848
|
# @return [String]
|
@@ -2770,7 +2874,8 @@ module Google
|
|
2770
2874
|
# @return [Fixnum]
|
2771
2875
|
attr_accessor :storage_auto_resize_limit
|
2772
2876
|
|
2773
|
-
# The tier (or machine type) for this instance, for example
|
2877
|
+
# The tier (or machine type) for this instance, for example `db-custom-1-3840`.
|
2878
|
+
# WARNING: Changing this restarts the instance.
|
2774
2879
|
# Corresponds to the JSON property `tier`
|
2775
2880
|
# @return [String]
|
2776
2881
|
attr_accessor :tier
|
@@ -2804,6 +2909,7 @@ module Google
|
|
2804
2909
|
@kind = args[:kind] if args.key?(:kind)
|
2805
2910
|
@location_preference = args[:location_preference] if args.key?(:location_preference)
|
2806
2911
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
2912
|
+
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
|
2807
2913
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
2808
2914
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
2809
2915
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
@@ -2849,7 +2955,7 @@ module Google
|
|
2849
2955
|
# @return [String]
|
2850
2956
|
attr_accessor :detail
|
2851
2957
|
|
2852
|
-
# Can be
|
2958
|
+
# Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
|
2853
2959
|
# Corresponds to the JSON property `kind`
|
2854
2960
|
# @return [String]
|
2855
2961
|
attr_accessor :kind
|
@@ -2970,7 +3076,7 @@ module Google
|
|
2970
3076
|
# @return [Array<Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError>]
|
2971
3077
|
attr_accessor :errors
|
2972
3078
|
|
2973
|
-
# This is always
|
3079
|
+
# This is always `sql#migrationSettingErrorList`.
|
2974
3080
|
# Corresponds to the JSON property `kind`
|
2975
3081
|
# @return [String]
|
2976
3082
|
attr_accessor :kind
|
@@ -3156,13 +3262,13 @@ module Google
|
|
3156
3262
|
attr_accessor :common_name
|
3157
3263
|
|
3158
3264
|
# The time when the certificate was created in [RFC 3339](https://tools.ietf.org/
|
3159
|
-
# html/rfc3339) format, for example
|
3265
|
+
# html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
3160
3266
|
# Corresponds to the JSON property `createTime`
|
3161
3267
|
# @return [String]
|
3162
3268
|
attr_accessor :create_time
|
3163
3269
|
|
3164
3270
|
# The time when the certificate expires in [RFC 3339](https://tools.ietf.org/
|
3165
|
-
# html/rfc3339) format, for example
|
3271
|
+
# html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
|
3166
3272
|
# Corresponds to the JSON property `expirationTime`
|
3167
3273
|
# @return [String]
|
3168
3274
|
attr_accessor :expiration_time
|
@@ -3172,7 +3278,7 @@ module Google
|
|
3172
3278
|
# @return [String]
|
3173
3279
|
attr_accessor :instance
|
3174
3280
|
|
3175
|
-
# This is always
|
3281
|
+
# This is always `sql#sslCert`.
|
3176
3282
|
# Corresponds to the JSON property `kind`
|
3177
3283
|
# @return [String]
|
3178
3284
|
attr_accessor :kind
|
@@ -3285,7 +3391,7 @@ module Google
|
|
3285
3391
|
# @return [Google::Apis::SqladminV1beta4::SslCertDetail]
|
3286
3392
|
attr_accessor :client_cert
|
3287
3393
|
|
3288
|
-
# This is always
|
3394
|
+
# This is always `sql#sslCertsInsert`.
|
3289
3395
|
# Corresponds to the JSON property `kind`
|
3290
3396
|
# @return [String]
|
3291
3397
|
attr_accessor :kind
|
@@ -3324,7 +3430,7 @@ module Google
|
|
3324
3430
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
3325
3431
|
attr_accessor :items
|
3326
3432
|
|
3327
|
-
# This is always
|
3433
|
+
# This is always `sql#sslCertsList`.
|
3328
3434
|
# Corresponds to the JSON property `kind`
|
3329
3435
|
# @return [String]
|
3330
3436
|
attr_accessor :kind
|
@@ -3381,7 +3487,7 @@ module Google
|
|
3381
3487
|
# @return [Fixnum]
|
3382
3488
|
attr_accessor :ram
|
3383
3489
|
|
3384
|
-
# This is always
|
3490
|
+
# This is always `sql#tier`.
|
3385
3491
|
# Corresponds to the JSON property `kind`
|
3386
3492
|
# @return [String]
|
3387
3493
|
attr_accessor :kind
|
@@ -3391,8 +3497,8 @@ module Google
|
|
3391
3497
|
# @return [Array<String>]
|
3392
3498
|
attr_accessor :region
|
3393
3499
|
|
3394
|
-
# An identifier for the machine type, for example, db-custom-1-3840
|
3395
|
-
# information, see Pricing.
|
3500
|
+
# An identifier for the machine type, for example, `db-custom-1-3840`. For
|
3501
|
+
# related information, see [Pricing](/sql/pricing).
|
3396
3502
|
# Corresponds to the JSON property `tier`
|
3397
3503
|
# @return [String]
|
3398
3504
|
attr_accessor :tier
|
@@ -3420,7 +3526,7 @@ module Google
|
|
3420
3526
|
# @return [Array<Google::Apis::SqladminV1beta4::Tier>]
|
3421
3527
|
attr_accessor :items
|
3422
3528
|
|
3423
|
-
# This is always
|
3529
|
+
# This is always `sql#tiersList`.
|
3424
3530
|
# Corresponds to the JSON property `kind`
|
3425
3531
|
# @return [String]
|
3426
3532
|
attr_accessor :kind
|
@@ -3440,13 +3546,13 @@ module Google
|
|
3440
3546
|
class TruncateLogContext
|
3441
3547
|
include Google::Apis::Core::Hashable
|
3442
3548
|
|
3443
|
-
# This is always
|
3549
|
+
# This is always `sql#truncateLogContext`.
|
3444
3550
|
# Corresponds to the JSON property `kind`
|
3445
3551
|
# @return [String]
|
3446
3552
|
attr_accessor :kind
|
3447
3553
|
|
3448
|
-
# The type of log to truncate. Valid values are
|
3449
|
-
# MYSQL_SLOW_TABLE
|
3554
|
+
# The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `
|
3555
|
+
# MYSQL_SLOW_TABLE`.
|
3450
3556
|
# Corresponds to the JSON property `logType`
|
3451
3557
|
# @return [String]
|
3452
3558
|
attr_accessor :log_type
|
@@ -3471,26 +3577,28 @@ module Google
|
|
3471
3577
|
# @return [String]
|
3472
3578
|
attr_accessor :etag
|
3473
3579
|
|
3474
|
-
# The host
|
3475
|
-
# defaults to an empty string. For
|
3476
|
-
# part of the request URL. The host name cannot be updated after insertion.
|
3580
|
+
# Optional. The host from which the user can connect. For `insert` operations,
|
3581
|
+
# host defaults to an empty string. For `update` operations, host is specified
|
3582
|
+
# as part of the request URL. The host name cannot be updated after insertion.
|
3583
|
+
# For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance,
|
3584
|
+
# it's optional.
|
3477
3585
|
# Corresponds to the JSON property `host`
|
3478
3586
|
# @return [String]
|
3479
3587
|
attr_accessor :host
|
3480
3588
|
|
3481
3589
|
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
3482
|
-
# be omitted for *update*
|
3590
|
+
# be omitted for *update* because it is already specified on the URL.
|
3483
3591
|
# Corresponds to the JSON property `instance`
|
3484
3592
|
# @return [String]
|
3485
3593
|
attr_accessor :instance
|
3486
3594
|
|
3487
|
-
# This is always
|
3595
|
+
# This is always `sql#user`.
|
3488
3596
|
# Corresponds to the JSON property `kind`
|
3489
3597
|
# @return [String]
|
3490
3598
|
attr_accessor :kind
|
3491
3599
|
|
3492
|
-
# The name of the user in the Cloud SQL instance. Can be omitted for
|
3493
|
-
#
|
3600
|
+
# The name of the user in the Cloud SQL instance. Can be omitted for `update`
|
3601
|
+
# because it is already specified in the URL.
|
3494
3602
|
# Corresponds to the JSON property `name`
|
3495
3603
|
# @return [String]
|
3496
3604
|
attr_accessor :name
|
@@ -3500,9 +3608,14 @@ module Google
|
|
3500
3608
|
# @return [String]
|
3501
3609
|
attr_accessor :password
|
3502
3610
|
|
3611
|
+
# User level password validation policy.
|
3612
|
+
# Corresponds to the JSON property `passwordPolicy`
|
3613
|
+
# @return [Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy]
|
3614
|
+
attr_accessor :password_policy
|
3615
|
+
|
3503
3616
|
# The project ID of the project containing the Cloud SQL database. The Google
|
3504
|
-
# apps domain is prefixed if applicable. Can be omitted for *update*
|
3505
|
-
# already specified on the URL.
|
3617
|
+
# apps domain is prefixed if applicable. Can be omitted for *update* because it
|
3618
|
+
# is already specified on the URL.
|
3506
3619
|
# Corresponds to the JSON property `project`
|
3507
3620
|
# @return [String]
|
3508
3621
|
attr_accessor :project
|
@@ -3530,12 +3643,51 @@ module Google
|
|
3530
3643
|
@kind = args[:kind] if args.key?(:kind)
|
3531
3644
|
@name = args[:name] if args.key?(:name)
|
3532
3645
|
@password = args[:password] if args.key?(:password)
|
3646
|
+
@password_policy = args[:password_policy] if args.key?(:password_policy)
|
3533
3647
|
@project = args[:project] if args.key?(:project)
|
3534
3648
|
@sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
|
3535
3649
|
@type = args[:type] if args.key?(:type)
|
3536
3650
|
end
|
3537
3651
|
end
|
3538
3652
|
|
3653
|
+
# User level password validation policy.
|
3654
|
+
class UserPasswordValidationPolicy
|
3655
|
+
include Google::Apis::Core::Hashable
|
3656
|
+
|
3657
|
+
# Number of failed login attempts allowed before user get locked.
|
3658
|
+
# Corresponds to the JSON property `allowedFailedAttempts`
|
3659
|
+
# @return [Fixnum]
|
3660
|
+
attr_accessor :allowed_failed_attempts
|
3661
|
+
|
3662
|
+
# If true, failed login attempts check will be enabled.
|
3663
|
+
# Corresponds to the JSON property `enableFailedAttemptsCheck`
|
3664
|
+
# @return [Boolean]
|
3665
|
+
attr_accessor :enable_failed_attempts_check
|
3666
|
+
alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
|
3667
|
+
|
3668
|
+
# Expiration duration after password is updated.
|
3669
|
+
# Corresponds to the JSON property `passwordExpirationDuration`
|
3670
|
+
# @return [String]
|
3671
|
+
attr_accessor :password_expiration_duration
|
3672
|
+
|
3673
|
+
# Read-only password status.
|
3674
|
+
# Corresponds to the JSON property `status`
|
3675
|
+
# @return [Google::Apis::SqladminV1beta4::PasswordStatus]
|
3676
|
+
attr_accessor :status
|
3677
|
+
|
3678
|
+
def initialize(**args)
|
3679
|
+
update!(**args)
|
3680
|
+
end
|
3681
|
+
|
3682
|
+
# Update properties of this object
|
3683
|
+
def update!(**args)
|
3684
|
+
@allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
|
3685
|
+
@enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
|
3686
|
+
@password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
|
3687
|
+
@status = args[:status] if args.key?(:status)
|
3688
|
+
end
|
3689
|
+
end
|
3690
|
+
|
3539
3691
|
# User list response.
|
3540
3692
|
class ListUsersResponse
|
3541
3693
|
include Google::Apis::Core::Hashable
|