google-apis-sqladmin_v1 0.56.0 → 0.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0bcc7df6c85ee79128cbf93aaf306b8236ae2f095b741b84cd085d6bedc3dd5
4
- data.tar.gz: 979b4b1418357db3d1abb4b9da7889f61151e56aca72ef3485a9235ae1537179
3
+ metadata.gz: c708c73467e7a2bd1e611c63327f89ecb83740bb5ce7dc92ca7447eddd4ffc04
4
+ data.tar.gz: ed5e91a2a329803473a6675f0c3648a33275731f8c7e60ad5aac98e42360e691
5
5
  SHA512:
6
- metadata.gz: 1cbbb34479db278de3b263d78f23e0f68570c57ee27696f3990c55e8565213acb4a4ed07c1d2c098fefea19f3863cb1c0d3698727c9e2da5787f3ac99c3f66b4
7
- data.tar.gz: 48a1ff2aff0e4eb12e3730677f45f17bd2c0832541a41e97fc5ae43f5416b85ab313c50e425b8979d6facd8af3a269d38690af1d79d5f0d33d0ed7d3b416ee53
6
+ metadata.gz: f3183d1e82bc8ffea65f40b4062b6b8baf94f99629bae3a9284ab491d870fddcf63e2fafc32843606bd23cb082cdb8c061e6c41e3024c88008f85dde5c373d35
7
+ data.tar.gz: 2ef16ce56bf9516484fae8e2b86ff126b779a35fb932fc8d3caa6043016fe929169a700627318e887dce1947fd5d8ddfc720b79b1c8532b5f8f1da837f9cc0b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.58.0 (2024-05-05)
4
+
5
+ * Regenerated from discovery document revision 20240425
6
+
7
+ ### v0.57.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240324
10
+
3
11
  ### v0.56.0 (2024-03-24)
4
12
 
5
13
  * Regenerated from discovery document revision 20240317
@@ -207,7 +207,7 @@ module Google
207
207
  attr_accessor :transaction_log_retention_days
208
208
 
209
209
  # Output only. This value contains the storage location of transactional logs
210
- # for the database for point-in-time recovery.
210
+ # used to perform point-in-time recovery (PITR) for the database.
211
211
  # Corresponds to the JSON property `transactionalLogStorageState`
212
212
  # @return [String]
213
213
  attr_accessor :transactional_log_storage_state
@@ -839,7 +839,7 @@ module Google
839
839
  # @return [String]
840
840
  attr_accessor :gce_zone
841
841
 
842
- # Gemini configuration.
842
+ # Gemini instance configuration.
843
843
  # Corresponds to the JSON property `geminiConfig`
844
844
  # @return [Google::Apis::SqladminV1::GeminiInstanceConfig]
845
845
  attr_accessor :gemini_config
@@ -929,7 +929,9 @@ module Google
929
929
  # @return [Array<String>]
930
930
  attr_accessor :replica_names
931
931
 
932
- # Primary-DR replica pair
932
+ # A primary instance and disaster recovery (DR) replica pair. A DR replica is a
933
+ # cross-region replica that you designate for failover in the event that the
934
+ # primary instance experiences regional failure. Only applicable to MySQL.
933
935
  # Corresponds to the JSON property `replicationCluster`
934
936
  # @return [Google::Apis::SqladminV1::ReplicationCluster]
935
937
  attr_accessor :replication_cluster
@@ -1741,41 +1743,41 @@ module Google
1741
1743
  end
1742
1744
  end
1743
1745
 
1744
- # Gemini configuration.
1746
+ # Gemini instance configuration.
1745
1747
  class GeminiInstanceConfig
1746
1748
  include Google::Apis::Core::Hashable
1747
1749
 
1748
- # Output only. Whether active query is enabled.
1750
+ # Output only. Whether the active query is enabled.
1749
1751
  # Corresponds to the JSON property `activeQueryEnabled`
1750
1752
  # @return [Boolean]
1751
1753
  attr_accessor :active_query_enabled
1752
1754
  alias_method :active_query_enabled?, :active_query_enabled
1753
1755
 
1754
- # Output only. Whether gemini is enabled.
1756
+ # Output only. Whether Gemini is enabled.
1755
1757
  # Corresponds to the JSON property `entitled`
1756
1758
  # @return [Boolean]
1757
1759
  attr_accessor :entitled
1758
1760
  alias_method :entitled?, :entitled
1759
1761
 
1760
- # Output only. Whether flag recommender is enabled.
1762
+ # Output only. Whether the flag recommender is enabled.
1761
1763
  # Corresponds to the JSON property `flagRecommenderEnabled`
1762
1764
  # @return [Boolean]
1763
1765
  attr_accessor :flag_recommender_enabled
1764
1766
  alias_method :flag_recommender_enabled?, :flag_recommender_enabled
1765
1767
 
1766
- # Output only. Whether vacuum management is enabled.
1768
+ # Output only. Whether the vacuum management is enabled.
1767
1769
  # Corresponds to the JSON property `googleVacuumMgmtEnabled`
1768
1770
  # @return [Boolean]
1769
1771
  attr_accessor :google_vacuum_mgmt_enabled
1770
1772
  alias_method :google_vacuum_mgmt_enabled?, :google_vacuum_mgmt_enabled
1771
1773
 
1772
- # Output only. Whether index advisor is enabled.
1774
+ # Output only. Whether the index advisor is enabled.
1773
1775
  # Corresponds to the JSON property `indexAdvisorEnabled`
1774
1776
  # @return [Boolean]
1775
1777
  attr_accessor :index_advisor_enabled
1776
1778
  alias_method :index_advisor_enabled?, :index_advisor_enabled
1777
1779
 
1778
- # Output only. Whether oom session cancel is enabled.
1780
+ # Output only. Whether canceling the out-of-memory (OOM) session is enabled.
1779
1781
  # Corresponds to the JSON property `oomSessionCancelEnabled`
1780
1782
  # @return [Boolean]
1781
1783
  attr_accessor :oom_session_cancel_enabled
@@ -1890,6 +1892,11 @@ module Google
1890
1892
  # @return [String]
1891
1893
  attr_accessor :kind
1892
1894
 
1895
+ # Optional. Options for importing data from SQL statements.
1896
+ # Corresponds to the JSON property `sqlImportOptions`
1897
+ # @return [Google::Apis::SqladminV1::ImportContext::SqlImportOptions]
1898
+ attr_accessor :sql_import_options
1899
+
1893
1900
  # Path to the import file in Cloud Storage, in the form `gs://bucketName/
1894
1901
  # fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`.
1895
1902
  # The instance must have write permissions to the bucket and read access to the
@@ -1910,6 +1917,7 @@ module Google
1910
1917
  @file_type = args[:file_type] if args.key?(:file_type)
1911
1918
  @import_user = args[:import_user] if args.key?(:import_user)
1912
1919
  @kind = args[:kind] if args.key?(:kind)
1920
+ @sql_import_options = args[:sql_import_options] if args.key?(:sql_import_options)
1913
1921
  @uri = args[:uri] if args.key?(:uri)
1914
1922
  end
1915
1923
 
@@ -2068,6 +2076,32 @@ module Google
2068
2076
  @table = args[:table] if args.key?(:table)
2069
2077
  end
2070
2078
  end
2079
+
2080
+ # Optional. Options for importing data from SQL statements.
2081
+ class SqlImportOptions
2082
+ include Google::Apis::Core::Hashable
2083
+
2084
+ # Optional. Whether or not the import should be parallel.
2085
+ # Corresponds to the JSON property `parallel`
2086
+ # @return [Boolean]
2087
+ attr_accessor :parallel
2088
+ alias_method :parallel?, :parallel
2089
+
2090
+ # Optional. The number of threads to use for parallel import.
2091
+ # Corresponds to the JSON property `threads`
2092
+ # @return [Fixnum]
2093
+ attr_accessor :threads
2094
+
2095
+ def initialize(**args)
2096
+ update!(**args)
2097
+ end
2098
+
2099
+ # Update properties of this object
2100
+ def update!(**args)
2101
+ @parallel = args[:parallel] if args.key?(:parallel)
2102
+ @threads = args[:threads] if args.key?(:threads)
2103
+ end
2104
+ end
2071
2105
  end
2072
2106
 
2073
2107
  # Insights configuration. This specifies when Cloud SQL Insights feature is
@@ -2481,31 +2515,31 @@ module Google
2481
2515
  # @return [Google::Apis::SqladminV1::PscConfig]
2482
2516
  attr_accessor :psc_config
2483
2517
 
2484
- # Use `ssl_mode` instead for MySQL and PostgreSQL. SQL Server uses this flag.
2485
- # Whether SSL/TLS connections over IP are enforced. If set to false, then allow
2486
- # both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the
2487
- # client certificate won't be verified. If set to true, then only allow
2488
- # connections encrypted with SSL/TLS and with valid client certificates. If you
2489
- # want to enforce SSL/TLS without enforcing the requirement for valid client
2490
- # certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
2518
+ # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If
2519
+ # set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/
2520
+ # TLS connections, the client certificate won't be verified. If set to true,
2521
+ # then only allow connections encrypted with SSL/TLS and with valid client
2522
+ # certificates. If you want to enforce SSL/TLS without enforcing the requirement
2523
+ # for valid client certificates, then use the `ssl_mode` flag instead of the `
2524
+ # require_ssl` flag.
2491
2525
  # Corresponds to the JSON property `requireSsl`
2492
2526
  # @return [Boolean]
2493
2527
  attr_accessor :require_ssl
2494
2528
  alias_method :require_ssl?, :require_ssl
2495
2529
 
2496
- # Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL
2497
- # use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward
2498
- # compatibility, then only the following value pairs are valid: * `ssl_mode=
2530
+ # Specify how SSL/TLS is enforced in database connections. If you must use the `
2531
+ # require_ssl` flag for backward compatibility, then only the following value
2532
+ # pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=
2499
2533
  # ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=
2500
2534
  # ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=
2501
- # TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `
2502
- # ssl_mode` gets priority over the value of `require_ssl`. For example, for the
2503
- # pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=
2504
- # ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=
2505
- # false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL
2506
- # databases respect `ssl_mode` in this case and accept only SSL connections. SQL
2507
- # Server uses the `require_ssl` flag. You can set the value for this flag to `
2508
- # true` or `false`.
2535
+ # TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `
2536
+ # ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=
2537
+ # ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority
2538
+ # over the value of `require_ssl`. For example, for the pair `ssl_mode=
2539
+ # ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means
2540
+ # accept only SSL connections, while `require_ssl=false` means accept both non-
2541
+ # SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `
2542
+ # ssl_mode` and accepts only SSL connections.
2509
2543
  # Corresponds to the JSON property `sslMode`
2510
2544
  # @return [String]
2511
2545
  attr_accessor :ssl_mode
@@ -3274,12 +3308,14 @@ module Google
3274
3308
  end
3275
3309
  end
3276
3310
 
3277
- # Primary-DR replica pair
3311
+ # A primary instance and disaster recovery (DR) replica pair. A DR replica is a
3312
+ # cross-region replica that you designate for failover in the event that the
3313
+ # primary instance experiences regional failure. Only applicable to MySQL.
3278
3314
  class ReplicationCluster
3279
3315
  include Google::Apis::Core::Hashable
3280
3316
 
3281
- # Output only. read-only field that indicates if the replica is a dr_replica;
3282
- # not set for a primary.
3317
+ # Output only. Read-only field that indicates whether the replica is a DR
3318
+ # replica. This field is not set if the instance is a primary instance.
3283
3319
  # Corresponds to the JSON property `drReplica`
3284
3320
  # @return [Boolean]
3285
3321
  attr_accessor :dr_replica
@@ -3288,8 +3324,9 @@ module Google
3288
3324
  # Optional. If the instance is a primary instance, then this field identifies
3289
3325
  # the disaster recovery (DR) replica. A DR replica is an optional configuration
3290
3326
  # for Enterprise Plus edition instances. If the instance is a read replica, then
3291
- # the field is not set. Users can set this field to set a designated DR replica
3292
- # for a primary. Removing this field removes the DR replica.
3327
+ # the field is not set. Set this field to a replica name to designate a DR
3328
+ # replica for a primary instance. Remove the replica name to remove the DR
3329
+ # replica designation.
3293
3330
  # Corresponds to the JSON property `failoverDrReplicaName`
3294
3331
  # @return [String]
3295
3332
  attr_accessor :failover_dr_replica_name
@@ -3834,8 +3871,9 @@ module Google
3834
3871
  class SqlInstancesStartExternalSyncRequest
3835
3872
  include Google::Apis::Core::Hashable
3836
3873
 
3837
- # Optional. MigrationType decides if the migration is a physical file based
3838
- # migration or logical migration.
3874
+ # Optional. MigrationType configures the migration to use physical files or
3875
+ # logical dump files. If not set, then the logical dump file configuration is
3876
+ # used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
3839
3877
  # Corresponds to the JSON property `migrationType`
3840
3878
  # @return [String]
3841
3879
  attr_accessor :migration_type
@@ -3880,8 +3918,9 @@ module Google
3880
3918
  class SqlInstancesVerifyExternalSyncSettingsRequest
3881
3919
  include Google::Apis::Core::Hashable
3882
3920
 
3883
- # Optional. MigrationType decides if the migration is a physical file based
3884
- # migration or logical migration
3921
+ # Optional. MigrationType configures the migration to use physical files or
3922
+ # logical dump files. If not set, then the logical dump file configuration is
3923
+ # used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
3885
3924
  # Corresponds to the JSON property `migrationType`
3886
3925
  # @return [String]
3887
3926
  attr_accessor :migration_type
@@ -3896,8 +3935,7 @@ module Google
3896
3935
  # @return [String]
3897
3936
  attr_accessor :sync_mode
3898
3937
 
3899
- # Optional. Parallel level for initial data sync. Currently only applicable for
3900
- # PostgreSQL.
3938
+ # Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
3901
3939
  # Corresponds to the JSON property `syncParallelLevel`
3902
3940
  # @return [String]
3903
3941
  attr_accessor :sync_parallel_level
@@ -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.56.0"
19
+ GEM_VERSION = "0.58.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240317"
25
+ REVISION = "20240425"
26
26
  end
27
27
  end
28
28
  end
@@ -270,6 +270,12 @@ module Google
270
270
 
271
271
  include Google::Apis::Core::JsonObjectSupport
272
272
  end
273
+
274
+ class SqlImportOptions
275
+ class Representation < Google::Apis::Core::JsonRepresentation; end
276
+
277
+ include Google::Apis::Core::JsonObjectSupport
278
+ end
273
279
 
274
280
  include Google::Apis::Core::JsonObjectSupport
275
281
  end
@@ -1136,6 +1142,8 @@ module Google
1136
1142
  property :file_type, as: 'fileType'
1137
1143
  property :import_user, as: 'importUser'
1138
1144
  property :kind, as: 'kind'
1145
+ property :sql_import_options, as: 'sqlImportOptions', class: Google::Apis::SqladminV1::ImportContext::SqlImportOptions, decorator: Google::Apis::SqladminV1::ImportContext::SqlImportOptions::Representation
1146
+
1139
1147
  property :uri, as: 'uri'
1140
1148
  end
1141
1149
 
@@ -1173,6 +1181,14 @@ module Google
1173
1181
  property :table, as: 'table'
1174
1182
  end
1175
1183
  end
1184
+
1185
+ class SqlImportOptions
1186
+ # @private
1187
+ class Representation < Google::Apis::Core::JsonRepresentation
1188
+ property :parallel, as: 'parallel'
1189
+ property :threads, as: 'threads'
1190
+ end
1191
+ end
1176
1192
  end
1177
1193
 
1178
1194
  class InsightsConfig
@@ -1056,16 +1056,19 @@ module Google
1056
1056
  execute_or_queue_command(command, &block)
1057
1057
  end
1058
1058
 
1059
- # Promotes the read replica instance to be a stand-alone Cloud SQL instance.
1060
- # Using this operation might cause your instance to restart.
1059
+ # Promotes the read replica instance to be an independent Cloud SQL primary
1060
+ # instance. Using this operation might cause your instance to restart.
1061
1061
  # @param [String] project
1062
1062
  # ID of the project that contains the read replica.
1063
1063
  # @param [String] instance
1064
1064
  # Cloud SQL read replica instance name.
1065
1065
  # @param [Boolean] failover
1066
- # Set to true if the promote operation should attempt to re-add the original
1067
- # primary as a replica when it comes back online. Otherwise, if this value is
1068
- # false or not set, the original primary will be a standalone instance.
1066
+ # Set to true to invoke a replica failover to the designated DR replica. As part
1067
+ # of replica failover, the promote operation attempts to add the original
1068
+ # primary instance as a replica of the promoted DR replica when the original
1069
+ # primary instance comes back online. If set to false or not specified, then the
1070
+ # original primary instance becomes an independent Cloud SQL primary instance.
1071
+ # Only applicable to MySQL.
1069
1072
  # @param [String] fields
1070
1073
  # Selector specifying which fields to include in a partial response.
1071
1074
  # @param [String] quota_user
@@ -1373,7 +1376,7 @@ module Google
1373
1376
  execute_or_queue_command(command, &block)
1374
1377
  end
1375
1378
 
1376
- # Switches over from the primary instance to the replica instance.
1379
+ # Switches over from the primary instance to the designated DR replica instance.
1377
1380
  # @param [String] project
1378
1381
  # ID of the project that contains the replica.
1379
1382
  # @param [String] instance
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.56.0
4
+ version: 0.58.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: 2024-03-24 00:00:00.000000000 Z
11
+ date: 2024-05-05 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/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.58.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
63
63
  post_install_message:
64
64
  rdoc_options: []