google-apis-sqladmin_v1beta4 0.13.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.17.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 = "20210627"
25
+ REVISION = "20210913"
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 CloneInstancesRequest
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
 
@@ -418,6 +442,12 @@ module Google
418
442
  include Google::Apis::Core::JsonObjectSupport
419
443
  end
420
444
 
445
+ class SqlServerAuditConfig
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
421
451
  class SqlServerDatabaseDetails
422
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
453
 
@@ -466,6 +496,12 @@ module Google
466
496
  include Google::Apis::Core::JsonObjectSupport
467
497
  end
468
498
 
499
+ class SyncFlags
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
469
505
  class Tier
470
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
507
 
@@ -611,6 +647,7 @@ module Google
611
647
  collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
612
648
 
613
649
  property :kind, as: 'kind'
650
+ property :region, as: 'region'
614
651
  property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
615
652
 
616
653
  end
@@ -645,6 +682,7 @@ module Google
645
682
  class Representation < Google::Apis::Core::JsonRepresentation
646
683
  property :backend_type, as: 'backendType'
647
684
  property :connection_name, as: 'connectionName'
685
+ property :create_time, as: 'createTime'
648
686
  property :current_disk_size, :numeric_string => true, as: 'currentDiskSize'
649
687
  property :database_version, as: 'databaseVersion'
650
688
  property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation
@@ -721,6 +759,7 @@ module Google
721
759
  property :master_instance_name, as: 'masterInstanceName'
722
760
  property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation
723
761
 
762
+ property :skip_replication_setup, as: 'skipReplicationSetup'
724
763
  property :verify_gtid_consistency, as: 'verifyGtidConsistency'
725
764
  end
726
765
  end
@@ -779,6 +818,10 @@ module Google
779
818
  class CsvExportOptions
780
819
  # @private
781
820
  class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :escape_character, as: 'escapeCharacter'
822
+ property :fields_terminated_by, as: 'fieldsTerminatedBy'
823
+ property :lines_terminated_by, as: 'linesTerminatedBy'
824
+ property :quote_character, as: 'quoteCharacter'
782
825
  property :select_query, as: 'selectQuery'
783
826
  end
784
827
  end
@@ -886,6 +929,10 @@ module Google
886
929
  # @private
887
930
  class Representation < Google::Apis::Core::JsonRepresentation
888
931
  collection :columns, as: 'columns'
932
+ property :escape_character, as: 'escapeCharacter'
933
+ property :fields_terminated_by, as: 'fieldsTerminatedBy'
934
+ property :lines_terminated_by, as: 'linesTerminatedBy'
935
+ property :quote_character, as: 'quoteCharacter'
889
936
  property :table, as: 'table'
890
937
  end
891
938
  end
@@ -902,6 +949,15 @@ module Google
902
949
  end
903
950
  end
904
951
 
952
+ class InstanceReference
953
+ # @private
954
+ class Representation < Google::Apis::Core::JsonRepresentation
955
+ property :name, as: 'name'
956
+ property :project, as: 'project'
957
+ property :region, as: 'region'
958
+ end
959
+ end
960
+
905
961
  class CloneInstancesRequest
906
962
  # @private
907
963
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -991,6 +1047,7 @@ module Google
991
1047
  class IpConfiguration
992
1048
  # @private
993
1049
  class Representation < Google::Apis::Core::JsonRepresentation
1050
+ property :allocated_ip_range, as: 'allocatedIpRange'
994
1051
  collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::AclEntry::Representation
995
1052
 
996
1053
  property :ipv4_enabled, as: 'ipv4Enabled'
@@ -1045,6 +1102,14 @@ module Google
1045
1102
  end
1046
1103
  end
1047
1104
 
1105
+ class MySqlSyncConfig
1106
+ # @private
1107
+ class Representation < Google::Apis::Core::JsonRepresentation
1108
+ collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1beta4::SyncFlags, decorator: Google::Apis::SqladminV1beta4::SyncFlags::Representation
1109
+
1110
+ end
1111
+ end
1112
+
1048
1113
  class OnPremisesConfiguration
1049
1114
  # @private
1050
1115
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1055,6 +1120,8 @@ module Google
1055
1120
  property :host_port, as: 'hostPort'
1056
1121
  property :kind, as: 'kind'
1057
1122
  property :password, as: 'password'
1123
+ property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation
1124
+
1058
1125
  property :username, as: 'username'
1059
1126
  end
1060
1127
  end
@@ -1180,6 +1247,8 @@ module Google
1180
1247
  property :pricing_plan, as: 'pricingPlan'
1181
1248
  property :replication_type, as: 'replicationType'
1182
1249
  property :settings_version, :numeric_string => true, as: 'settingsVersion'
1250
+ property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1beta4::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerAuditConfig::Representation
1251
+
1183
1252
  property :storage_auto_resize, as: 'storageAutoResize'
1184
1253
  property :storage_auto_resize_limit, :numeric_string => true, as: 'storageAutoResizeLimit'
1185
1254
  property :tier, as: 'tier'
@@ -1212,6 +1281,27 @@ module Google
1212
1281
  end
1213
1282
  end
1214
1283
 
1284
+ class SqlInstancesStartExternalSyncRequest
1285
+ # @private
1286
+ class Representation < Google::Apis::Core::JsonRepresentation
1287
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
1288
+
1289
+ property :skip_verification, as: 'skipVerification'
1290
+ property :sync_mode, as: 'syncMode'
1291
+ end
1292
+ end
1293
+
1294
+ class SqlInstancesVerifyExternalSyncSettingsRequest
1295
+ # @private
1296
+ class Representation < Google::Apis::Core::JsonRepresentation
1297
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
1298
+
1299
+ property :sync_mode, as: 'syncMode'
1300
+ property :verify_connection_only, as: 'verifyConnectionOnly'
1301
+ property :verify_replication_only, as: 'verifyReplicationOnly'
1302
+ end
1303
+ end
1304
+
1215
1305
  class SqlInstancesVerifyExternalSyncSettingsResponse
1216
1306
  # @private
1217
1307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1241,6 +1331,14 @@ module Google
1241
1331
  end
1242
1332
  end
1243
1333
 
1334
+ class SqlServerAuditConfig
1335
+ # @private
1336
+ class Representation < Google::Apis::Core::JsonRepresentation
1337
+ property :bucket, as: 'bucket'
1338
+ property :kind, as: 'kind'
1339
+ end
1340
+ end
1341
+
1244
1342
  class SqlServerDatabaseDetails
1245
1343
  # @private
1246
1344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1318,6 +1416,14 @@ module Google
1318
1416
  end
1319
1417
  end
1320
1418
 
1419
+ class SyncFlags
1420
+ # @private
1421
+ class Representation < Google::Apis::Core::JsonRepresentation
1422
+ property :name, as: 'name'
1423
+ property :value, as: 'value'
1424
+ end
1425
+ end
1426
+
1321
1427
  class Tier
1322
1428
  # @private
1323
1429
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,7 +55,7 @@ module Google
55
55
  # @param [String] instance
56
56
  # Cloud SQL instance ID. This does not include the project ID.
57
57
  # @param [Fixnum] id
58
- # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
58
+ # The ID of the backup run to delete. To find a backup run ID, use the list
59
59
  # method.
60
60
  # @param [String] fields
61
61
  # Selector specifying which fields to include in a partial response.
@@ -92,7 +92,7 @@ module Google
92
92
  # @param [String] instance
93
93
  # Cloud SQL instance ID. This does not include the project ID.
94
94
  # @param [Fixnum] id
95
- # The ID of this Backup Run.
95
+ # The ID of this backup run.
96
96
  # @param [String] fields
97
97
  # Selector specifying which fields to include in a partial response.
98
98
  # @param [String] quota_user
@@ -122,8 +122,7 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
- # Creates a new backup run on demand. This method is applicable only to Second
126
- # Generation instances.
125
+ # Creates a new backup run on demand.
127
126
  # @param [String] project
128
127
  # Project ID of the project that contains the instance.
129
128
  # @param [String] instance
@@ -498,7 +497,7 @@ module Google
498
497
  execute_or_queue_command(command, &block)
499
498
  end
500
499
 
501
- # List all available database flags for Cloud SQL instances.
500
+ # Lists all available database flags for Cloud SQL instances.
502
501
  # @param [String] database_version
503
502
  # Database type and version you want to retrieve flags for. By default, this
504
503
  # method returns flags for all database types and versions.
@@ -711,8 +710,11 @@ module Google
711
710
  execute_or_queue_command(command, &block)
712
711
  end
713
712
 
714
- # Failover the instance to its failover replica instance. Using this operation
715
- # might cause your instance to restart.
713
+ # Initiates a manual failover of a high availability (HA) primary instance to a
714
+ # standby instance, which becomes the primary instance. Users are then rerouted
715
+ # to the new primary. For more information, see the Overview of high
716
+ # availability page in the Cloud SQL documentation. If using Legacy HA (MySQL
717
+ # only), this causes the instance to failover to its failover replica instance.
716
718
  # @param [String] project
717
719
  # ID of the project that contains the read replica.
718
720
  # @param [String] instance
@@ -1400,10 +1402,7 @@ module Google
1400
1402
  # ID of the project that contains the instance.
1401
1403
  # @param [String] instance
1402
1404
  # Cloud SQL instance ID. This does not include the project ID.
1403
- # @param [Boolean] skip_verification
1404
- # Whether to skip the verification step (VESS).
1405
- # @param [String] sync_mode
1406
- # External sync mode.
1405
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest] sql_instances_start_external_sync_request_object
1407
1406
  # @param [String] fields
1408
1407
  # Selector specifying which fields to include in a partial response.
1409
1408
  # @param [String] quota_user
@@ -1421,14 +1420,14 @@ module Google
1421
1420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
1421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
1422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
- def start_project_instance_external_sync(project, instance, skip_verification: nil, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
1425
1424
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options)
1425
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest::Representation
1426
+ command.request_object = sql_instances_start_external_sync_request_object
1426
1427
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1427
1428
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1428
1429
  command.params['project'] = project unless project.nil?
1429
1430
  command.params['instance'] = instance unless instance.nil?
1430
- command.query['skipVerification'] = skip_verification unless skip_verification.nil?
1431
- command.query['syncMode'] = sync_mode unless sync_mode.nil?
1432
1431
  command.query['fields'] = fields unless fields.nil?
1433
1432
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1434
1433
  execute_or_queue_command(command, &block)
@@ -1439,10 +1438,7 @@ module Google
1439
1438
  # Project ID of the project that contains the instance.
1440
1439
  # @param [String] instance
1441
1440
  # Cloud SQL instance ID. This does not include the project ID.
1442
- # @param [String] sync_mode
1443
- # External sync mode
1444
- # @param [Boolean] verify_connection_only
1445
- # Flag to enable verifying connection only
1441
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest] sql_instances_verify_external_sync_settings_request_object
1446
1442
  # @param [String] fields
1447
1443
  # Selector specifying which fields to include in a partial response.
1448
1444
  # @param [String] quota_user
@@ -1460,14 +1456,14 @@ module Google
1460
1456
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1461
1457
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1462
1458
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1463
- def verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
1464
1460
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
1461
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest::Representation
1462
+ command.request_object = sql_instances_verify_external_sync_settings_request_object
1465
1463
  command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
1466
1464
  command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
1467
1465
  command.params['project'] = project unless project.nil?
1468
1466
  command.params['instance'] = instance unless instance.nil?
1469
- command.query['syncMode'] = sync_mode unless sync_mode.nil?
1470
- command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
1471
1467
  command.query['fields'] = fields unless fields.nil?
1472
1468
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1473
1469
  execute_or_queue_command(command, &block)
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1beta4'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
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_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.17.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-07-19 00:00:00.000000000 Z
11
+ date: 2021-09-22 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_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []