google-apis-sqladmin_v1 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/sqladmin_v1/classes.rb +174 -0
- data/lib/google/apis/sqladmin_v1/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1/representations.rb +80 -0
- data/lib/google/apis/sqladmin_v1/service.rb +9 -52
- data/lib/google/apis/sqladmin_v1.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d994421e91c61577792402b42b754ebec4732c8e06876ab48bb05462f901b55
|
4
|
+
data.tar.gz: c3875f250ace0d9494409434b422b3d4f73d86eca0fa6070df215607925cb05b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb16135bb66b81d9f27b80ce4ec4e59778915836a57f77e2084baa735ffd7160c6ebed44c93b2d7ab2995af3a332afe6a8acc703701db155eaa33974fc2944e5
|
7
|
+
data.tar.gz: 7630fbbe17f22b925417a36622e053ba95353358720ce3c1b000874a43856152aa4823f137e7c152e35b388e2ba184201a88e9b250c103fda25f7c152bd84aa8
|
data/CHANGELOG.md
CHANGED
@@ -605,6 +605,12 @@ module Google
|
|
605
605
|
# @return [String]
|
606
606
|
attr_accessor :connection_name
|
607
607
|
|
608
|
+
# Output only. The time when the instance was created in RFC 3339 format (https:/
|
609
|
+
# /tools.ietf.org/html/rfc3339), for example 2012-11-15T16:19:00.094Z
|
610
|
+
# Corresponds to the JSON property `createTime`
|
611
|
+
# @return [String]
|
612
|
+
attr_accessor :create_time
|
613
|
+
|
608
614
|
# The current disk usage of the instance in bytes. This property has been
|
609
615
|
# deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
|
610
616
|
# in Cloud Monitoring API instead. Please see this announcement for details.
|
@@ -793,6 +799,7 @@ module Google
|
|
793
799
|
def update!(**args)
|
794
800
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
795
801
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
802
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
796
803
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
797
804
|
@database_version = args[:database_version] if args.key?(:database_version)
|
798
805
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
@@ -926,6 +933,12 @@ module Google
|
|
926
933
|
# @return [Google::Apis::SqladminV1::DemoteMasterConfiguration]
|
927
934
|
attr_accessor :replica_configuration
|
928
935
|
|
936
|
+
# Flag to skip replication setup on the instance.
|
937
|
+
# Corresponds to the JSON property `skipReplicationSetup`
|
938
|
+
# @return [Boolean]
|
939
|
+
attr_accessor :skip_replication_setup
|
940
|
+
alias_method :skip_replication_setup?, :skip_replication_setup
|
941
|
+
|
929
942
|
# Verify GTID consistency for demote operation. Default value: *True*. Setting
|
930
943
|
# this flag to false enables you to bypass GTID consistency check between on-
|
931
944
|
# premises primary instance and Cloud SQL instance during the demotion operation
|
@@ -946,6 +959,7 @@ module Google
|
|
946
959
|
@kind = args[:kind] if args.key?(:kind)
|
947
960
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
948
961
|
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
962
|
+
@skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup)
|
949
963
|
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
950
964
|
end
|
951
965
|
end
|
@@ -1610,6 +1624,39 @@ module Google
|
|
1610
1624
|
end
|
1611
1625
|
end
|
1612
1626
|
|
1627
|
+
# Reference to another Cloud SQL instance.
|
1628
|
+
class InstanceReference
|
1629
|
+
include Google::Apis::Core::Hashable
|
1630
|
+
|
1631
|
+
# The name of the Cloud SQL instance being referenced. This does not include the
|
1632
|
+
# project ID.
|
1633
|
+
# Corresponds to the JSON property `name`
|
1634
|
+
# @return [String]
|
1635
|
+
attr_accessor :name
|
1636
|
+
|
1637
|
+
# The project ID of the Cloud SQL instance being referenced. The default is the
|
1638
|
+
# same project ID as the instance references it.
|
1639
|
+
# Corresponds to the JSON property `project`
|
1640
|
+
# @return [String]
|
1641
|
+
attr_accessor :project
|
1642
|
+
|
1643
|
+
# The region of the Cloud SQL instance being referenced.
|
1644
|
+
# Corresponds to the JSON property `region`
|
1645
|
+
# @return [String]
|
1646
|
+
attr_accessor :region
|
1647
|
+
|
1648
|
+
def initialize(**args)
|
1649
|
+
update!(**args)
|
1650
|
+
end
|
1651
|
+
|
1652
|
+
# Update properties of this object
|
1653
|
+
def update!(**args)
|
1654
|
+
@name = args[:name] if args.key?(:name)
|
1655
|
+
@project = args[:project] if args.key?(:project)
|
1656
|
+
@region = args[:region] if args.key?(:region)
|
1657
|
+
end
|
1658
|
+
end
|
1659
|
+
|
1613
1660
|
# Database instance clone request.
|
1614
1661
|
class InstancesCloneRequest
|
1615
1662
|
include Google::Apis::Core::Hashable
|
@@ -1836,6 +1883,16 @@ module Google
|
|
1836
1883
|
class IpConfiguration
|
1837
1884
|
include Google::Apis::Core::Hashable
|
1838
1885
|
|
1886
|
+
# The name of the allocated ip range for the private ip CloudSQL instance. For
|
1887
|
+
# example: "google-managed-services-default". If set, the instance ip will be
|
1888
|
+
# created in the allocated range. The range name must comply with [RFC 1035](
|
1889
|
+
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1890
|
+
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1891
|
+
# Reserved for future use.
|
1892
|
+
# Corresponds to the JSON property `allocatedIpRange`
|
1893
|
+
# @return [String]
|
1894
|
+
attr_accessor :allocated_ip_range
|
1895
|
+
|
1839
1896
|
# The list of external networks that are allowed to connect to the instance
|
1840
1897
|
# using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
1841
1898
|
# **192.168.100.0/24**).
|
@@ -1869,6 +1926,7 @@ module Google
|
|
1869
1926
|
|
1870
1927
|
# Update properties of this object
|
1871
1928
|
def update!(**args)
|
1929
|
+
@allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
|
1872
1930
|
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
1873
1931
|
@ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
|
1874
1932
|
@private_network = args[:private_network] if args.key?(:private_network)
|
@@ -2080,6 +2138,25 @@ module Google
|
|
2080
2138
|
end
|
2081
2139
|
end
|
2082
2140
|
|
2141
|
+
# MySQL-specific external server sync settings.
|
2142
|
+
class MySqlSyncConfig
|
2143
|
+
include Google::Apis::Core::Hashable
|
2144
|
+
|
2145
|
+
# Flags to use for the initial dump.
|
2146
|
+
# Corresponds to the JSON property `initialSyncFlags`
|
2147
|
+
# @return [Array<Google::Apis::SqladminV1::SyncFlags>]
|
2148
|
+
attr_accessor :initial_sync_flags
|
2149
|
+
|
2150
|
+
def initialize(**args)
|
2151
|
+
update!(**args)
|
2152
|
+
end
|
2153
|
+
|
2154
|
+
# Update properties of this object
|
2155
|
+
def update!(**args)
|
2156
|
+
@initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags)
|
2157
|
+
end
|
2158
|
+
end
|
2159
|
+
|
2083
2160
|
# On-premises instance configuration.
|
2084
2161
|
class OnPremisesConfiguration
|
2085
2162
|
include Google::Apis::Core::Hashable
|
@@ -2120,6 +2197,11 @@ module Google
|
|
2120
2197
|
# @return [String]
|
2121
2198
|
attr_accessor :password
|
2122
2199
|
|
2200
|
+
# Reference to another Cloud SQL instance.
|
2201
|
+
# Corresponds to the JSON property `sourceInstance`
|
2202
|
+
# @return [Google::Apis::SqladminV1::InstanceReference]
|
2203
|
+
attr_accessor :source_instance
|
2204
|
+
|
2123
2205
|
# The username for connecting to on-premises instance.
|
2124
2206
|
# Corresponds to the JSON property `username`
|
2125
2207
|
# @return [String]
|
@@ -2138,6 +2220,7 @@ module Google
|
|
2138
2220
|
@host_port = args[:host_port] if args.key?(:host_port)
|
2139
2221
|
@kind = args[:kind] if args.key?(:kind)
|
2140
2222
|
@password = args[:password] if args.key?(:password)
|
2223
|
+
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
2141
2224
|
@username = args[:username] if args.key?(:username)
|
2142
2225
|
end
|
2143
2226
|
end
|
@@ -2736,6 +2819,70 @@ module Google
|
|
2736
2819
|
end
|
2737
2820
|
end
|
2738
2821
|
|
2822
|
+
# Instance start external sync request.
|
2823
|
+
class SqlInstancesStartExternalSyncRequest
|
2824
|
+
include Google::Apis::Core::Hashable
|
2825
|
+
|
2826
|
+
# MySQL-specific external server sync settings.
|
2827
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2828
|
+
# @return [Google::Apis::SqladminV1::MySqlSyncConfig]
|
2829
|
+
attr_accessor :mysql_sync_config
|
2830
|
+
|
2831
|
+
# Whether to skip the verification step (VESS).
|
2832
|
+
# Corresponds to the JSON property `skipVerification`
|
2833
|
+
# @return [Boolean]
|
2834
|
+
attr_accessor :skip_verification
|
2835
|
+
alias_method :skip_verification?, :skip_verification
|
2836
|
+
|
2837
|
+
# External sync mode.
|
2838
|
+
# Corresponds to the JSON property `syncMode`
|
2839
|
+
# @return [String]
|
2840
|
+
attr_accessor :sync_mode
|
2841
|
+
|
2842
|
+
def initialize(**args)
|
2843
|
+
update!(**args)
|
2844
|
+
end
|
2845
|
+
|
2846
|
+
# Update properties of this object
|
2847
|
+
def update!(**args)
|
2848
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2849
|
+
@skip_verification = args[:skip_verification] if args.key?(:skip_verification)
|
2850
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2851
|
+
end
|
2852
|
+
end
|
2853
|
+
|
2854
|
+
# Instance verify external sync settings request.
|
2855
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
2856
|
+
include Google::Apis::Core::Hashable
|
2857
|
+
|
2858
|
+
# MySQL-specific external server sync settings.
|
2859
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2860
|
+
# @return [Google::Apis::SqladminV1::MySqlSyncConfig]
|
2861
|
+
attr_accessor :mysql_sync_config
|
2862
|
+
|
2863
|
+
# External sync mode
|
2864
|
+
# Corresponds to the JSON property `syncMode`
|
2865
|
+
# @return [String]
|
2866
|
+
attr_accessor :sync_mode
|
2867
|
+
|
2868
|
+
# Flag to enable verifying connection only
|
2869
|
+
# Corresponds to the JSON property `verifyConnectionOnly`
|
2870
|
+
# @return [Boolean]
|
2871
|
+
attr_accessor :verify_connection_only
|
2872
|
+
alias_method :verify_connection_only?, :verify_connection_only
|
2873
|
+
|
2874
|
+
def initialize(**args)
|
2875
|
+
update!(**args)
|
2876
|
+
end
|
2877
|
+
|
2878
|
+
# Update properties of this object
|
2879
|
+
def update!(**args)
|
2880
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2881
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2882
|
+
@verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
|
2883
|
+
end
|
2884
|
+
end
|
2885
|
+
|
2739
2886
|
# Instance verify external sync settings response.
|
2740
2887
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
2741
2888
|
include Google::Apis::Core::Hashable
|
@@ -3090,6 +3237,33 @@ module Google
|
|
3090
3237
|
end
|
3091
3238
|
end
|
3092
3239
|
|
3240
|
+
# Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
|
3241
|
+
# external server initial dump.
|
3242
|
+
class SyncFlags
|
3243
|
+
include Google::Apis::Core::Hashable
|
3244
|
+
|
3245
|
+
# The name of the flag.
|
3246
|
+
# Corresponds to the JSON property `name`
|
3247
|
+
# @return [String]
|
3248
|
+
attr_accessor :name
|
3249
|
+
|
3250
|
+
# The value of the flag. This field must be omitted if the flag doesn't take a
|
3251
|
+
# value.
|
3252
|
+
# Corresponds to the JSON property `value`
|
3253
|
+
# @return [String]
|
3254
|
+
attr_accessor :value
|
3255
|
+
|
3256
|
+
def initialize(**args)
|
3257
|
+
update!(**args)
|
3258
|
+
end
|
3259
|
+
|
3260
|
+
# Update properties of this object
|
3261
|
+
def update!(**args)
|
3262
|
+
@name = args[:name] if args.key?(:name)
|
3263
|
+
@value = args[:value] if args.key?(:value)
|
3264
|
+
end
|
3265
|
+
end
|
3266
|
+
|
3093
3267
|
# A Google Cloud SQL service tier resource.
|
3094
3268
|
class Tier
|
3095
3269
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SqladminV1
|
18
18
|
# Version of the google-apis-sqladmin_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210816"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -232,6 +232,12 @@ module Google
|
|
232
232
|
include Google::Apis::Core::JsonObjectSupport
|
233
233
|
end
|
234
234
|
|
235
|
+
class InstanceReference
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
235
241
|
class InstancesCloneRequest
|
236
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
243
|
|
@@ -322,6 +328,12 @@ module Google
|
|
322
328
|
include Google::Apis::Core::JsonObjectSupport
|
323
329
|
end
|
324
330
|
|
331
|
+
class MySqlSyncConfig
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
325
337
|
class OnPremisesConfiguration
|
326
338
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
339
|
|
@@ -400,6 +412,18 @@ module Google
|
|
400
412
|
include Google::Apis::Core::JsonObjectSupport
|
401
413
|
end
|
402
414
|
|
415
|
+
class SqlInstancesStartExternalSyncRequest
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
421
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
403
427
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
404
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
429
|
|
@@ -466,6 +490,12 @@ module Google
|
|
466
490
|
include Google::Apis::Core::JsonObjectSupport
|
467
491
|
end
|
468
492
|
|
493
|
+
class SyncFlags
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
469
499
|
class Tier
|
470
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
501
|
|
@@ -645,6 +675,7 @@ module Google
|
|
645
675
|
class Representation < Google::Apis::Core::JsonRepresentation
|
646
676
|
property :backend_type, as: 'backendType'
|
647
677
|
property :connection_name, as: 'connectionName'
|
678
|
+
property :create_time, as: 'createTime'
|
648
679
|
property :current_disk_size, :numeric_string => true, as: 'currentDiskSize'
|
649
680
|
property :database_version, as: 'databaseVersion'
|
650
681
|
property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1::DiskEncryptionConfiguration::Representation
|
@@ -721,6 +752,7 @@ module Google
|
|
721
752
|
property :master_instance_name, as: 'masterInstanceName'
|
722
753
|
property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1::DemoteMasterConfiguration::Representation
|
723
754
|
|
755
|
+
property :skip_replication_setup, as: 'skipReplicationSetup'
|
724
756
|
property :verify_gtid_consistency, as: 'verifyGtidConsistency'
|
725
757
|
end
|
726
758
|
end
|
@@ -902,6 +934,15 @@ module Google
|
|
902
934
|
end
|
903
935
|
end
|
904
936
|
|
937
|
+
class InstanceReference
|
938
|
+
# @private
|
939
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
940
|
+
property :name, as: 'name'
|
941
|
+
property :project, as: 'project'
|
942
|
+
property :region, as: 'region'
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
905
946
|
class InstancesCloneRequest
|
906
947
|
# @private
|
907
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -991,6 +1032,7 @@ module Google
|
|
991
1032
|
class IpConfiguration
|
992
1033
|
# @private
|
993
1034
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1035
|
+
property :allocated_ip_range, as: 'allocatedIpRange'
|
994
1036
|
collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1::AclEntry, decorator: Google::Apis::SqladminV1::AclEntry::Representation
|
995
1037
|
|
996
1038
|
property :ipv4_enabled, as: 'ipv4Enabled'
|
@@ -1045,6 +1087,14 @@ module Google
|
|
1045
1087
|
end
|
1046
1088
|
end
|
1047
1089
|
|
1090
|
+
class MySqlSyncConfig
|
1091
|
+
# @private
|
1092
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1093
|
+
collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1::SyncFlags, decorator: Google::Apis::SqladminV1::SyncFlags::Representation
|
1094
|
+
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1048
1098
|
class OnPremisesConfiguration
|
1049
1099
|
# @private
|
1050
1100
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1055,6 +1105,8 @@ module Google
|
|
1055
1105
|
property :host_port, as: 'hostPort'
|
1056
1106
|
property :kind, as: 'kind'
|
1057
1107
|
property :password, as: 'password'
|
1108
|
+
property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1::InstanceReference, decorator: Google::Apis::SqladminV1::InstanceReference::Representation
|
1109
|
+
|
1058
1110
|
property :username, as: 'username'
|
1059
1111
|
end
|
1060
1112
|
end
|
@@ -1212,6 +1264,26 @@ module Google
|
|
1212
1264
|
end
|
1213
1265
|
end
|
1214
1266
|
|
1267
|
+
class SqlInstancesStartExternalSyncRequest
|
1268
|
+
# @private
|
1269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1270
|
+
property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1::MySqlSyncConfig, decorator: Google::Apis::SqladminV1::MySqlSyncConfig::Representation
|
1271
|
+
|
1272
|
+
property :skip_verification, as: 'skipVerification'
|
1273
|
+
property :sync_mode, as: 'syncMode'
|
1274
|
+
end
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
1278
|
+
# @private
|
1279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1280
|
+
property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1::MySqlSyncConfig, decorator: Google::Apis::SqladminV1::MySqlSyncConfig::Representation
|
1281
|
+
|
1282
|
+
property :sync_mode, as: 'syncMode'
|
1283
|
+
property :verify_connection_only, as: 'verifyConnectionOnly'
|
1284
|
+
end
|
1285
|
+
end
|
1286
|
+
|
1215
1287
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
1216
1288
|
# @private
|
1217
1289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1318,6 +1390,14 @@ module Google
|
|
1318
1390
|
end
|
1319
1391
|
end
|
1320
1392
|
|
1393
|
+
class SyncFlags
|
1394
|
+
# @private
|
1395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1396
|
+
property :name, as: 'name'
|
1397
|
+
property :value, as: 'value'
|
1398
|
+
end
|
1399
|
+
end
|
1400
|
+
|
1321
1401
|
class Tier
|
1322
1402
|
# @private
|
1323
1403
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1402,10 +1402,7 @@ module Google
|
|
1402
1402
|
# ID of the project that contains the instance.
|
1403
1403
|
# @param [String] instance
|
1404
1404
|
# Cloud SQL instance ID. This does not include the project ID.
|
1405
|
-
# @param [
|
1406
|
-
# Whether to skip the verification step (VESS).
|
1407
|
-
# @param [String] sync_mode
|
1408
|
-
# External sync mode.
|
1405
|
+
# @param [Google::Apis::SqladminV1::SqlInstancesStartExternalSyncRequest] sql_instances_start_external_sync_request_object
|
1409
1406
|
# @param [String] fields
|
1410
1407
|
# Selector specifying which fields to include in a partial response.
|
1411
1408
|
# @param [String] quota_user
|
@@ -1423,14 +1420,14 @@ module Google
|
|
1423
1420
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1424
1421
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1425
1422
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1426
|
-
def start_project_instance_external_sync(project, instance,
|
1423
|
+
def start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1427
1424
|
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/startExternalSync', options)
|
1425
|
+
command.request_representation = Google::Apis::SqladminV1::SqlInstancesStartExternalSyncRequest::Representation
|
1426
|
+
command.request_object = sql_instances_start_external_sync_request_object
|
1428
1427
|
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
|
1429
1428
|
command.response_class = Google::Apis::SqladminV1::Operation
|
1430
1429
|
command.params['project'] = project unless project.nil?
|
1431
1430
|
command.params['instance'] = instance unless instance.nil?
|
1432
|
-
command.query['skipVerification'] = skip_verification unless skip_verification.nil?
|
1433
|
-
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
1434
1431
|
command.query['fields'] = fields unless fields.nil?
|
1435
1432
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1436
1433
|
execute_or_queue_command(command, &block)
|
@@ -1441,10 +1438,7 @@ module Google
|
|
1441
1438
|
# Project ID of the project that contains the instance.
|
1442
1439
|
# @param [String] instance
|
1443
1440
|
# Cloud SQL instance ID. This does not include the project ID.
|
1444
|
-
# @param [
|
1445
|
-
# External sync mode
|
1446
|
-
# @param [Boolean] verify_connection_only
|
1447
|
-
# Flag to enable verifying connection only
|
1441
|
+
# @param [Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsRequest] sql_instances_verify_external_sync_settings_request_object
|
1448
1442
|
# @param [String] fields
|
1449
1443
|
# Selector specifying which fields to include in a partial response.
|
1450
1444
|
# @param [String] quota_user
|
@@ -1462,14 +1456,14 @@ module Google
|
|
1462
1456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1463
1457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1464
1458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1465
|
-
def verify_project_instance_external_sync_settings(project, instance,
|
1459
|
+
def verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1466
1460
|
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
|
1461
|
+
command.request_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsRequest::Representation
|
1462
|
+
command.request_object = sql_instances_verify_external_sync_settings_request_object
|
1467
1463
|
command.response_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
|
1468
1464
|
command.response_class = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse
|
1469
1465
|
command.params['project'] = project unless project.nil?
|
1470
1466
|
command.params['instance'] = instance unless instance.nil?
|
1471
|
-
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
1472
|
-
command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
|
1473
1467
|
command.query['fields'] = fields unless fields.nil?
|
1474
1468
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1475
1469
|
execute_or_queue_command(command, &block)
|
@@ -1770,33 +1764,6 @@ module Google
|
|
1770
1764
|
# Project ID of the project that contains the instance.
|
1771
1765
|
# @param [String] instance
|
1772
1766
|
# Database instance ID. This does not include the project ID.
|
1773
|
-
# @param [String] body_etag
|
1774
|
-
# This field is deprecated and will be removed from a future version of the API.
|
1775
|
-
# @param [String] body_host
|
1776
|
-
# The host name from which the user can connect. For *insert* operations, host
|
1777
|
-
# defaults to an empty string. For *update* operations, host is specified as
|
1778
|
-
# part of the request URL. The host name cannot be updated after insertion.
|
1779
|
-
# @param [String] body_instance
|
1780
|
-
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
1781
|
-
# be omitted for *update* since it is already specified on the URL.
|
1782
|
-
# @param [String] body_kind
|
1783
|
-
# This is always *sql#user*.
|
1784
|
-
# @param [String] body_name
|
1785
|
-
# The name of the user in the Cloud SQL instance. Can be omitted for *update*
|
1786
|
-
# since it is already specified in the URL.
|
1787
|
-
# @param [String] body_password
|
1788
|
-
# The password for the user.
|
1789
|
-
# @param [String] body_project
|
1790
|
-
# The project ID of the project containing the Cloud SQL database. The Google
|
1791
|
-
# apps domain is prefixed if applicable. Can be omitted for *update* since it is
|
1792
|
-
# already specified on the URL.
|
1793
|
-
# @param [Boolean] body_sqlserver_user_details_disabled
|
1794
|
-
# If the user has been disabled
|
1795
|
-
# @param [Array<String>, String] body_sqlserver_user_details_server_roles
|
1796
|
-
# The server roles for this user
|
1797
|
-
# @param [String] body_type
|
1798
|
-
# The user type. It determines the method to authenticate the user during login.
|
1799
|
-
# The default is the database's built-in user type.
|
1800
1767
|
# @param [String] fields
|
1801
1768
|
# Selector specifying which fields to include in a partial response.
|
1802
1769
|
# @param [String] quota_user
|
@@ -1814,22 +1781,12 @@ module Google
|
|
1814
1781
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1815
1782
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1816
1783
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1817
|
-
def list_users(project, instance,
|
1784
|
+
def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1818
1785
|
command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/users', options)
|
1819
1786
|
command.response_representation = Google::Apis::SqladminV1::UsersListResponse::Representation
|
1820
1787
|
command.response_class = Google::Apis::SqladminV1::UsersListResponse
|
1821
1788
|
command.params['project'] = project unless project.nil?
|
1822
1789
|
command.params['instance'] = instance unless instance.nil?
|
1823
|
-
command.query['body.etag'] = body_etag unless body_etag.nil?
|
1824
|
-
command.query['body.host'] = body_host unless body_host.nil?
|
1825
|
-
command.query['body.instance'] = body_instance unless body_instance.nil?
|
1826
|
-
command.query['body.kind'] = body_kind unless body_kind.nil?
|
1827
|
-
command.query['body.name'] = body_name unless body_name.nil?
|
1828
|
-
command.query['body.password'] = body_password unless body_password.nil?
|
1829
|
-
command.query['body.project'] = body_project unless body_project.nil?
|
1830
|
-
command.query['body.sqlserverUserDetails.disabled'] = body_sqlserver_user_details_disabled unless body_sqlserver_user_details_disabled.nil?
|
1831
|
-
command.query['body.sqlserverUserDetails.serverRoles'] = body_sqlserver_user_details_server_roles unless body_sqlserver_user_details_server_roles.nil?
|
1832
|
-
command.query['body.type'] = body_type unless body_type.nil?
|
1833
1790
|
command.query['fields'] = fields unless fields.nil?
|
1834
1791
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1835
1792
|
execute_or_queue_command(command, &block)
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
|
35
35
|
# Manage your Google SQL Service instances
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-sqladmin_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.4.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|