google-apis-sqladmin_v1 0.3.0 → 0.7.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 SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.7.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 = "20210715"
25
+ REVISION = "20210929"
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
 
@@ -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::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::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::SqladminV1::SslCert, decorator: Google::Apis::SqladminV1::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::SqladminV1::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1::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::SqladminV1::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1::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
@@ -840,6 +883,7 @@ module Google
840
883
  property :access_token, as: 'access_token'
841
884
  property :public_key, as: 'public_key'
842
885
  property :read_time, as: 'readTime'
886
+ property :valid_duration, as: 'validDuration'
843
887
  end
844
888
  end
845
889
 
@@ -886,6 +930,10 @@ module Google
886
930
  # @private
887
931
  class Representation < Google::Apis::Core::JsonRepresentation
888
932
  collection :columns, as: 'columns'
933
+ property :escape_character, as: 'escapeCharacter'
934
+ property :fields_terminated_by, as: 'fieldsTerminatedBy'
935
+ property :lines_terminated_by, as: 'linesTerminatedBy'
936
+ property :quote_character, as: 'quoteCharacter'
889
937
  property :table, as: 'table'
890
938
  end
891
939
  end
@@ -902,6 +950,15 @@ module Google
902
950
  end
903
951
  end
904
952
 
953
+ class InstanceReference
954
+ # @private
955
+ class Representation < Google::Apis::Core::JsonRepresentation
956
+ property :name, as: 'name'
957
+ property :project, as: 'project'
958
+ property :region, as: 'region'
959
+ end
960
+ end
961
+
905
962
  class InstancesCloneRequest
906
963
  # @private
907
964
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -991,6 +1048,7 @@ module Google
991
1048
  class IpConfiguration
992
1049
  # @private
993
1050
  class Representation < Google::Apis::Core::JsonRepresentation
1051
+ property :allocated_ip_range, as: 'allocatedIpRange'
994
1052
  collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1::AclEntry, decorator: Google::Apis::SqladminV1::AclEntry::Representation
995
1053
 
996
1054
  property :ipv4_enabled, as: 'ipv4Enabled'
@@ -1045,6 +1103,14 @@ module Google
1045
1103
  end
1046
1104
  end
1047
1105
 
1106
+ class MySqlSyncConfig
1107
+ # @private
1108
+ class Representation < Google::Apis::Core::JsonRepresentation
1109
+ collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1::SyncFlags, decorator: Google::Apis::SqladminV1::SyncFlags::Representation
1110
+
1111
+ end
1112
+ end
1113
+
1048
1114
  class OnPremisesConfiguration
1049
1115
  # @private
1050
1116
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1055,6 +1121,8 @@ module Google
1055
1121
  property :host_port, as: 'hostPort'
1056
1122
  property :kind, as: 'kind'
1057
1123
  property :password, as: 'password'
1124
+ property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1::InstanceReference, decorator: Google::Apis::SqladminV1::InstanceReference::Representation
1125
+
1058
1126
  property :username, as: 'username'
1059
1127
  end
1060
1128
  end
@@ -1180,6 +1248,8 @@ module Google
1180
1248
  property :pricing_plan, as: 'pricingPlan'
1181
1249
  property :replication_type, as: 'replicationType'
1182
1250
  property :settings_version, :numeric_string => true, as: 'settingsVersion'
1251
+ property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1::SqlServerAuditConfig::Representation
1252
+
1183
1253
  property :storage_auto_resize, as: 'storageAutoResize'
1184
1254
  property :storage_auto_resize_limit, :numeric_string => true, as: 'storageAutoResizeLimit'
1185
1255
  property :tier, as: 'tier'
@@ -1212,6 +1282,27 @@ module Google
1212
1282
  end
1213
1283
  end
1214
1284
 
1285
+ class SqlInstancesStartExternalSyncRequest
1286
+ # @private
1287
+ class Representation < Google::Apis::Core::JsonRepresentation
1288
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1::MySqlSyncConfig, decorator: Google::Apis::SqladminV1::MySqlSyncConfig::Representation
1289
+
1290
+ property :skip_verification, as: 'skipVerification'
1291
+ property :sync_mode, as: 'syncMode'
1292
+ end
1293
+ end
1294
+
1295
+ class SqlInstancesVerifyExternalSyncSettingsRequest
1296
+ # @private
1297
+ class Representation < Google::Apis::Core::JsonRepresentation
1298
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1::MySqlSyncConfig, decorator: Google::Apis::SqladminV1::MySqlSyncConfig::Representation
1299
+
1300
+ property :sync_mode, as: 'syncMode'
1301
+ property :verify_connection_only, as: 'verifyConnectionOnly'
1302
+ property :verify_replication_only, as: 'verifyReplicationOnly'
1303
+ end
1304
+ end
1305
+
1215
1306
  class SqlInstancesVerifyExternalSyncSettingsResponse
1216
1307
  # @private
1217
1308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1241,6 +1332,14 @@ module Google
1241
1332
  end
1242
1333
  end
1243
1334
 
1335
+ class SqlServerAuditConfig
1336
+ # @private
1337
+ class Representation < Google::Apis::Core::JsonRepresentation
1338
+ property :bucket, as: 'bucket'
1339
+ property :kind, as: 'kind'
1340
+ end
1341
+ end
1342
+
1244
1343
  class SqlServerDatabaseDetails
1245
1344
  # @private
1246
1345
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1318,6 +1417,14 @@ module Google
1318
1417
  end
1319
1418
  end
1320
1419
 
1420
+ class SyncFlags
1421
+ # @private
1422
+ class Representation < Google::Apis::Core::JsonRepresentation
1423
+ property :name, as: 'name'
1424
+ property :value, as: 'value'
1425
+ end
1426
+ end
1427
+
1321
1428
  class Tier
1322
1429
  # @private
1323
1430
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,7 +55,8 @@ 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
+ # https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list)
59
60
  # method.
60
61
  # @param [String] fields
61
62
  # Selector specifying which fields to include in a partial response.
@@ -712,9 +713,10 @@ module Google
712
713
 
713
714
  # Initiates a manual failover of a high availability (HA) primary instance to a
714
715
  # 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
+ # to the new primary. For more information, see the [Overview of high
717
+ # availability](https://cloud.google.com/sql/docs/mysql/high-availability) page
718
+ # in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes
719
+ # the instance to failover to its failover replica instance.
718
720
  # @param [String] project
719
721
  # ID of the project that contains the read replica.
720
722
  # @param [String] instance
@@ -1402,10 +1404,7 @@ module Google
1402
1404
  # ID of the project that contains the instance.
1403
1405
  # @param [String] instance
1404
1406
  # Cloud SQL instance ID. This does not include the project ID.
1405
- # @param [Boolean] skip_verification
1406
- # Whether to skip the verification step (VESS).
1407
- # @param [String] sync_mode
1408
- # External sync mode.
1407
+ # @param [Google::Apis::SqladminV1::SqlInstancesStartExternalSyncRequest] sql_instances_start_external_sync_request_object
1409
1408
  # @param [String] fields
1410
1409
  # Selector specifying which fields to include in a partial response.
1411
1410
  # @param [String] quota_user
@@ -1423,14 +1422,14 @@ module Google
1423
1422
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1424
1423
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1425
1424
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1426
- def start_project_instance_external_sync(project, instance, skip_verification: nil, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
1425
+ 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
1426
  command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/startExternalSync', options)
1427
+ command.request_representation = Google::Apis::SqladminV1::SqlInstancesStartExternalSyncRequest::Representation
1428
+ command.request_object = sql_instances_start_external_sync_request_object
1428
1429
  command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1429
1430
  command.response_class = Google::Apis::SqladminV1::Operation
1430
1431
  command.params['project'] = project unless project.nil?
1431
1432
  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
1433
  command.query['fields'] = fields unless fields.nil?
1435
1434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
1435
  execute_or_queue_command(command, &block)
@@ -1441,10 +1440,7 @@ module Google
1441
1440
  # Project ID of the project that contains the instance.
1442
1441
  # @param [String] instance
1443
1442
  # Cloud SQL instance ID. This does not include the project ID.
1444
- # @param [String] sync_mode
1445
- # External sync mode
1446
- # @param [Boolean] verify_connection_only
1447
- # Flag to enable verifying connection only
1443
+ # @param [Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsRequest] sql_instances_verify_external_sync_settings_request_object
1448
1444
  # @param [String] fields
1449
1445
  # Selector specifying which fields to include in a partial response.
1450
1446
  # @param [String] quota_user
@@ -1462,14 +1458,14 @@ module Google
1462
1458
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1463
1459
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1464
1460
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1465
- def verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1461
+ 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
1462
  command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
1463
+ command.request_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsRequest::Representation
1464
+ command.request_object = sql_instances_verify_external_sync_settings_request_object
1467
1465
  command.response_representation = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
1468
1466
  command.response_class = Google::Apis::SqladminV1::SqlInstancesVerifyExternalSyncSettingsResponse
1469
1467
  command.params['project'] = project unless project.nil?
1470
1468
  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
1469
  command.query['fields'] = fields unless fields.nil?
1474
1470
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1475
1471
  execute_or_queue_command(command, &block)
@@ -1770,33 +1766,6 @@ module Google
1770
1766
  # Project ID of the project that contains the instance.
1771
1767
  # @param [String] instance
1772
1768
  # 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
1769
  # @param [String] fields
1801
1770
  # Selector specifying which fields to include in a partial response.
1802
1771
  # @param [String] quota_user
@@ -1814,22 +1783,12 @@ module Google
1814
1783
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
1784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
1785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
- def list_users(project, instance, body_etag: nil, body_host: nil, body_instance: nil, body_kind: nil, body_name: nil, body_password: nil, body_project: nil, body_sqlserver_user_details_disabled: nil, body_sqlserver_user_details_server_roles: nil, body_type: nil, fields: nil, quota_user: nil, options: nil, &block)
1786
+ def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1818
1787
  command = make_simple_command(:get, 'v1/projects/{project}/instances/{instance}/users', options)
1819
1788
  command.response_representation = Google::Apis::SqladminV1::UsersListResponse::Representation
1820
1789
  command.response_class = Google::Apis::SqladminV1::UsersListResponse
1821
1790
  command.params['project'] = project unless project.nil?
1822
1791
  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
1792
  command.query['fields'] = fields unless fields.nil?
1834
1793
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1835
1794
  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 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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.7.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-08-02 00:00:00.000000000 Z
11
+ date: 2021-10-11 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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.7.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: []