google-apis-sqladmin_v1beta4 0.76.0 → 0.78.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d05ee32b978ea0c1ece26b24aa5c176c51c108c5f9f1e6390906a87e275a8f50
4
- data.tar.gz: 5864da1c745b42b98d49ed90733d39c43d94bbaabdbfafb959e453626461f3c2
3
+ metadata.gz: 56e1aa0b7aadae604e77932f967302687c22cbf5f52e18995fd7751ffc2bfd80
4
+ data.tar.gz: bd42d8962a727d46cab329653f912ddc94af74fe3176c15e4d480cf529d1f2cf
5
5
  SHA512:
6
- metadata.gz: a0d6ec4dd56a7a51378d2f5d8f497d6c97c855dc54d19734716b180082d87f69d80379800212f01d59b8d7bba223fab513135b6b7c4b803b5c0e182d46cb0272
7
- data.tar.gz: ea1a978cab754307ae2317238a43c6ed8c65f8d2348c60e057be013c039988380023e6b69dd5c0c557594de635a52fe2b8c74b974e802f27c5063607051aa7b1
6
+ metadata.gz: f7ba92ff624b38086f35619e763f43fa2f49431089f3311b3bfbda7a7f26f73219ead0bdf62f1700a6f0a699d0e3fa3d0df7a0f5780b1b780cd2d401ea028456
7
+ data.tar.gz: c3effb0bb88300c6ab06e052f2ecacefd0f41d89637e47293a9330714332d793f3a616a1fb20e86d6e57c12315fe708ffb3dc1cc9b2e57a4123753695b6be311
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.78.0 (2025-03-02)
4
+
5
+ * Regenerated from discovery document revision 20250216
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.77.0 (2025-01-05)
9
+
10
+ * Regenerated from discovery document revision 20241210
11
+
3
12
  ### v0.76.0 (2024-12-15)
4
13
 
5
14
  * Regenerated from discovery document revision 20241204
@@ -181,6 +181,153 @@ module Google
181
181
  end
182
182
  end
183
183
 
184
+ # A backup resource.
185
+ class Backup
186
+ include Google::Apis::Core::Hashable
187
+
188
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
189
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
190
+ # When the start equals the end, the interval is empty (matches no time). When
191
+ # both start and end are unspecified, the interval matches any time.
192
+ # Corresponds to the JSON property `backupInterval`
193
+ # @return [Google::Apis::SqladminV1beta4::Interval]
194
+ attr_accessor :backup_interval
195
+
196
+ # Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.
197
+ # Corresponds to the JSON property `backupKind`
198
+ # @return [String]
199
+ attr_accessor :backup_kind
200
+
201
+ # Output only. The mapping to backup run resource used for IAM validations.
202
+ # Corresponds to the JSON property `backupRun`
203
+ # @return [String]
204
+ attr_accessor :backup_run
205
+
206
+ # The description of this backup.
207
+ # Corresponds to the JSON property `description`
208
+ # @return [String]
209
+ attr_accessor :description
210
+
211
+ # Database instance operation error.
212
+ # Corresponds to the JSON property `error`
213
+ # @return [Google::Apis::SqladminV1beta4::OperationError]
214
+ attr_accessor :error
215
+
216
+ # Backup expiration time. A UTC timestamp of when this resource expired.
217
+ # Corresponds to the JSON property `expiryTime`
218
+ # @return [String]
219
+ attr_accessor :expiry_time
220
+
221
+ # The name of the database instance.
222
+ # Corresponds to the JSON property `instance`
223
+ # @return [String]
224
+ attr_accessor :instance
225
+
226
+ # Output only. This is always `sql#backup`.
227
+ # Corresponds to the JSON property `kind`
228
+ # @return [String]
229
+ attr_accessor :kind
230
+
231
+ # Output only. This output contains the encryption configuration for a backup
232
+ # and the resource name of the KMS key for disk encryption.
233
+ # Corresponds to the JSON property `kmsKey`
234
+ # @return [String]
235
+ attr_accessor :kms_key
236
+
237
+ # Output only. This output contains the encryption status for a backup and the
238
+ # version of the KMS key that's used to encrypt the Cloud SQL instance.
239
+ # Corresponds to the JSON property `kmsKeyVersion`
240
+ # @return [String]
241
+ attr_accessor :kms_key_version
242
+
243
+ # The storage location of the backups. The location can be multi-regional.
244
+ # Corresponds to the JSON property `location`
245
+ # @return [String]
246
+ attr_accessor :location
247
+
248
+ # Output only. The maximum chargeable bytes for the backup.
249
+ # Corresponds to the JSON property `maxChargeableBytes`
250
+ # @return [Fixnum]
251
+ attr_accessor :max_chargeable_bytes
252
+
253
+ # Output only. The resource name of the backup. Format: projects/`project`/
254
+ # backups/`backup`.
255
+ # Corresponds to the JSON property `name`
256
+ # @return [String]
257
+ attr_accessor :name
258
+
259
+ # Output only. This status indicates whether the backup satisfies PZI. The
260
+ # status is reserved for future use.
261
+ # Corresponds to the JSON property `satisfiesPzi`
262
+ # @return [Boolean]
263
+ attr_accessor :satisfies_pzi
264
+ alias_method :satisfies_pzi?, :satisfies_pzi
265
+
266
+ # Output only. This status indicates whether the backup satisfies PZS. The
267
+ # status is reserved for future use.
268
+ # Corresponds to the JSON property `satisfiesPzs`
269
+ # @return [Boolean]
270
+ attr_accessor :satisfies_pzs
271
+ alias_method :satisfies_pzs?, :satisfies_pzs
272
+
273
+ # Output only. The URI of this resource.
274
+ # Corresponds to the JSON property `selfLink`
275
+ # @return [String]
276
+ attr_accessor :self_link
277
+
278
+ # Output only. The state of this backup.
279
+ # Corresponds to the JSON property `state`
280
+ # @return [String]
281
+ attr_accessor :state
282
+
283
+ # Output only. This output contains a backup time zone. If a Cloud SQL for SQL
284
+ # Server instance has a different time zone from the backup's time zone, then
285
+ # the restore to the instance doesn't happen.
286
+ # Corresponds to the JSON property `timeZone`
287
+ # @return [String]
288
+ attr_accessor :time_zone
289
+
290
+ # Input only. The time-to-live (TTL) interval for this resource (in days). For
291
+ # example: ttlDays:7 means 7 days.
292
+ # Corresponds to the JSON property `ttlDays`
293
+ # @return [Fixnum]
294
+ attr_accessor :ttl_days
295
+
296
+ # Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND",
297
+ # or “FINAL”.
298
+ # Corresponds to the JSON property `type`
299
+ # @return [String]
300
+ attr_accessor :type
301
+
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
305
+
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @backup_interval = args[:backup_interval] if args.key?(:backup_interval)
309
+ @backup_kind = args[:backup_kind] if args.key?(:backup_kind)
310
+ @backup_run = args[:backup_run] if args.key?(:backup_run)
311
+ @description = args[:description] if args.key?(:description)
312
+ @error = args[:error] if args.key?(:error)
313
+ @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
314
+ @instance = args[:instance] if args.key?(:instance)
315
+ @kind = args[:kind] if args.key?(:kind)
316
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
317
+ @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version)
318
+ @location = args[:location] if args.key?(:location)
319
+ @max_chargeable_bytes = args[:max_chargeable_bytes] if args.key?(:max_chargeable_bytes)
320
+ @name = args[:name] if args.key?(:name)
321
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
322
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
323
+ @self_link = args[:self_link] if args.key?(:self_link)
324
+ @state = args[:state] if args.key?(:state)
325
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
326
+ @ttl_days = args[:ttl_days] if args.key?(:ttl_days)
327
+ @type = args[:type] if args.key?(:type)
328
+ end
329
+ end
330
+
184
331
  # Database instance backup configuration.
185
332
  class BackupConfiguration
186
333
  include Google::Apis::Core::Hashable
@@ -277,6 +424,11 @@ module Google
277
424
  # @return [String]
278
425
  attr_accessor :kind
279
426
 
427
+ # The name of the backup. Format: projects/`project`/backups/`backup`
428
+ # Corresponds to the JSON property `name`
429
+ # @return [String]
430
+ attr_accessor :name
431
+
280
432
  def initialize(**args)
281
433
  update!(**args)
282
434
  end
@@ -285,6 +437,7 @@ module Google
285
437
  def update!(**args)
286
438
  @backup_id = args[:backup_id] if args.key?(:backup_id)
287
439
  @kind = args[:kind] if args.key?(:kind)
440
+ @name = args[:name] if args.key?(:name)
288
441
  end
289
442
  end
290
443
 
@@ -902,6 +1055,14 @@ module Google
902
1055
  # @return [Google::Apis::SqladminV1beta4::GeminiInstanceConfig]
903
1056
  attr_accessor :gemini_config
904
1057
 
1058
+ # Input only. Determines whether an in-place major version upgrade of replicas
1059
+ # happens when an in-place major version upgrade of a primary instance is
1060
+ # initiated.
1061
+ # Corresponds to the JSON property `includeReplicasForMajorVersionUpgrade`
1062
+ # @return [Boolean]
1063
+ attr_accessor :include_replicas_for_major_version_upgrade
1064
+ alias_method :include_replicas_for_major_version_upgrade?, :include_replicas_for_major_version_upgrade
1065
+
905
1066
  # The instance type.
906
1067
  # Corresponds to the JSON property `instanceType`
907
1068
  # @return [String]
@@ -1110,6 +1271,7 @@ module Google
1110
1271
  @failover_replica = args[:failover_replica] if args.key?(:failover_replica)
1111
1272
  @gce_zone = args[:gce_zone] if args.key?(:gce_zone)
1112
1273
  @gemini_config = args[:gemini_config] if args.key?(:gemini_config)
1274
+ @include_replicas_for_major_version_upgrade = args[:include_replicas_for_major_version_upgrade] if args.key?(:include_replicas_for_major_version_upgrade)
1113
1275
  @instance_type = args[:instance_type] if args.key?(:instance_type)
1114
1276
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1115
1277
  @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
@@ -1318,7 +1480,7 @@ module Google
1318
1480
  # @return [String]
1319
1481
  attr_accessor :client_certificate
1320
1482
 
1321
- # PEM representation of the replica's private key. The corresponsing public key
1483
+ # PEM representation of the replica's private key. The corresponding public key
1322
1484
  # is encoded in the client's certificate. The format of the replica's private
1323
1485
  # key can be either PKCS #1 or PKCS #8.
1324
1486
  # Corresponds to the JSON property `clientKey`
@@ -1508,6 +1670,11 @@ module Google
1508
1670
  # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions]
1509
1671
  attr_accessor :sql_export_options
1510
1672
 
1673
+ # Optional. Export parameters specific to SQL Server TDE certificates
1674
+ # Corresponds to the JSON property `tdeExportOptions`
1675
+ # @return [Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions]
1676
+ attr_accessor :tde_export_options
1677
+
1511
1678
  # The path to the file in Google Cloud Storage where the export will be stored.
1512
1679
  # The URI is in the form `gs://bucketName/fileName`. If the file already exists,
1513
1680
  # the request succeeds, but the operation fails. If `fileType` is `SQL` and the
@@ -1529,6 +1696,7 @@ module Google
1529
1696
  @kind = args[:kind] if args.key?(:kind)
1530
1697
  @offload = args[:offload] if args.key?(:offload)
1531
1698
  @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
1699
+ @tde_export_options = args[:tde_export_options] if args.key?(:tde_export_options)
1532
1700
  @uri = args[:uri] if args.key?(:uri)
1533
1701
  end
1534
1702
 
@@ -1750,6 +1918,47 @@ module Google
1750
1918
  end
1751
1919
  end
1752
1920
  end
1921
+
1922
+ # Optional. Export parameters specific to SQL Server TDE certificates
1923
+ class TdeExportOptions
1924
+ include Google::Apis::Core::Hashable
1925
+
1926
+ # Required. Path to the TDE certificate public key in the form gs://bucketName/
1927
+ # fileName. The instance must have write access to the location. Applicable only
1928
+ # for SQL Server instances.
1929
+ # Corresponds to the JSON property `certificatePath`
1930
+ # @return [String]
1931
+ attr_accessor :certificate_path
1932
+
1933
+ # Required. Certificate name. Applicable only for SQL Server instances.
1934
+ # Corresponds to the JSON property `name`
1935
+ # @return [String]
1936
+ attr_accessor :name
1937
+
1938
+ # Required. Password that encrypts the private key.
1939
+ # Corresponds to the JSON property `privateKeyPassword`
1940
+ # @return [String]
1941
+ attr_accessor :private_key_password
1942
+
1943
+ # Required. Path to the TDE certificate private key in the form gs://bucketName/
1944
+ # fileName. The instance must have write access to the location. Applicable only
1945
+ # for SQL Server instances.
1946
+ # Corresponds to the JSON property `privateKeyPath`
1947
+ # @return [String]
1948
+ attr_accessor :private_key_path
1949
+
1950
+ def initialize(**args)
1951
+ update!(**args)
1952
+ end
1953
+
1954
+ # Update properties of this object
1955
+ def update!(**args)
1956
+ @certificate_path = args[:certificate_path] if args.key?(:certificate_path)
1957
+ @name = args[:name] if args.key?(:name)
1958
+ @private_key_password = args[:private_key_password] if args.key?(:private_key_password)
1959
+ @private_key_path = args[:private_key_path] if args.key?(:private_key_path)
1960
+ end
1961
+ end
1753
1962
  end
1754
1963
 
1755
1964
  # The selected object that Cloud SQL migrates.
@@ -2063,6 +2272,12 @@ module Google
2063
2272
  # @return [Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions]
2064
2273
  attr_accessor :sql_import_options
2065
2274
 
2275
+ # Optional. Import parameters specific to SQL Server .TDE files Import
2276
+ # parameters specific to SQL Server TDE certificates
2277
+ # Corresponds to the JSON property `tdeImportOptions`
2278
+ # @return [Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions]
2279
+ attr_accessor :tde_import_options
2280
+
2066
2281
  # Path to the import file in Cloud Storage, in the form `gs://bucketName/
2067
2282
  # fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`.
2068
2283
  # The instance must have write permissions to the bucket and read access to the
@@ -2084,6 +2299,7 @@ module Google
2084
2299
  @import_user = args[:import_user] if args.key?(:import_user)
2085
2300
  @kind = args[:kind] if args.key?(:kind)
2086
2301
  @sql_import_options = args[:sql_import_options] if args.key?(:sql_import_options)
2302
+ @tde_import_options = args[:tde_import_options] if args.key?(:tde_import_options)
2087
2303
  @uri = args[:uri] if args.key?(:uri)
2088
2304
  end
2089
2305
 
@@ -2165,6 +2381,12 @@ module Google
2165
2381
  # @return [String]
2166
2382
  attr_accessor :cert_path
2167
2383
 
2384
+ # Optional. Whether the imported file remains encrypted.
2385
+ # Corresponds to the JSON property `keepEncrypted`
2386
+ # @return [Boolean]
2387
+ attr_accessor :keep_encrypted
2388
+ alias_method :keep_encrypted?, :keep_encrypted
2389
+
2168
2390
  # Password that encrypts the private key
2169
2391
  # Corresponds to the JSON property `pvkPassword`
2170
2392
  # @return [String]
@@ -2184,6 +2406,7 @@ module Google
2184
2406
  # Update properties of this object
2185
2407
  def update!(**args)
2186
2408
  @cert_path = args[:cert_path] if args.key?(:cert_path)
2409
+ @keep_encrypted = args[:keep_encrypted] if args.key?(:keep_encrypted)
2187
2410
  @pvk_password = args[:pvk_password] if args.key?(:pvk_password)
2188
2411
  @pvk_path = args[:pvk_path] if args.key?(:pvk_path)
2189
2412
  end
@@ -2303,6 +2526,48 @@ module Google
2303
2526
  end
2304
2527
  end
2305
2528
  end
2529
+
2530
+ # Optional. Import parameters specific to SQL Server .TDE files Import
2531
+ # parameters specific to SQL Server TDE certificates
2532
+ class TdeImportOptions
2533
+ include Google::Apis::Core::Hashable
2534
+
2535
+ # Required. Path to the TDE certificate public key in the form gs://bucketName/
2536
+ # fileName. The instance must have read access to the file. Applicable only for
2537
+ # SQL Server instances.
2538
+ # Corresponds to the JSON property `certificatePath`
2539
+ # @return [String]
2540
+ attr_accessor :certificate_path
2541
+
2542
+ # Required. Certificate name. Applicable only for SQL Server instances.
2543
+ # Corresponds to the JSON property `name`
2544
+ # @return [String]
2545
+ attr_accessor :name
2546
+
2547
+ # Required. Password that encrypts the private key.
2548
+ # Corresponds to the JSON property `privateKeyPassword`
2549
+ # @return [String]
2550
+ attr_accessor :private_key_password
2551
+
2552
+ # Required. Path to the TDE certificate private key in the form gs://bucketName/
2553
+ # fileName. The instance must have read access to the file. Applicable only for
2554
+ # SQL Server instances.
2555
+ # Corresponds to the JSON property `privateKeyPath`
2556
+ # @return [String]
2557
+ attr_accessor :private_key_path
2558
+
2559
+ def initialize(**args)
2560
+ update!(**args)
2561
+ end
2562
+
2563
+ # Update properties of this object
2564
+ def update!(**args)
2565
+ @certificate_path = args[:certificate_path] if args.key?(:certificate_path)
2566
+ @name = args[:name] if args.key?(:name)
2567
+ @private_key_password = args[:private_key_password] if args.key?(:private_key_password)
2568
+ @private_key_path = args[:private_key_path] if args.key?(:private_key_path)
2569
+ end
2570
+ end
2306
2571
  end
2307
2572
 
2308
2573
  # Insights configuration. This specifies when Cloud SQL Insights feature is
@@ -2654,19 +2919,33 @@ module Google
2654
2919
  class RestoreInstancesBackupRequest
2655
2920
  include Google::Apis::Core::Hashable
2656
2921
 
2922
+ # The name of the backup that's used to restore a Cloud SQL instance: Format:
2923
+ # projects/`project-id`/backups/`backup-uid`. Only one of restore_backup_context,
2924
+ # backup, backupdr_backup can be passed to the input.
2925
+ # Corresponds to the JSON property `backup`
2926
+ # @return [String]
2927
+ attr_accessor :backup
2928
+
2657
2929
  # Database instance restore from backup context. Backup context contains source
2658
2930
  # instance id and project id.
2659
2931
  # Corresponds to the JSON property `restoreBackupContext`
2660
2932
  # @return [Google::Apis::SqladminV1beta4::RestoreBackupContext]
2661
2933
  attr_accessor :restore_backup_context
2662
2934
 
2935
+ # A Cloud SQL instance resource.
2936
+ # Corresponds to the JSON property `restoreInstanceSettings`
2937
+ # @return [Google::Apis::SqladminV1beta4::DatabaseInstance]
2938
+ attr_accessor :restore_instance_settings
2939
+
2663
2940
  def initialize(**args)
2664
2941
  update!(**args)
2665
2942
  end
2666
2943
 
2667
2944
  # Update properties of this object
2668
2945
  def update!(**args)
2946
+ @backup = args[:backup] if args.key?(:backup)
2669
2947
  @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
2948
+ @restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings)
2670
2949
  end
2671
2950
  end
2672
2951
 
@@ -2727,6 +3006,36 @@ module Google
2727
3006
  end
2728
3007
  end
2729
3008
 
3009
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
3010
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
3011
+ # When the start equals the end, the interval is empty (matches no time). When
3012
+ # both start and end are unspecified, the interval matches any time.
3013
+ class Interval
3014
+ include Google::Apis::Core::Hashable
3015
+
3016
+ # Optional. Exclusive end of the interval. If specified, a Timestamp matching
3017
+ # this interval will have to be before the end.
3018
+ # Corresponds to the JSON property `endTime`
3019
+ # @return [String]
3020
+ attr_accessor :end_time
3021
+
3022
+ # Optional. Inclusive start of the interval. If specified, a Timestamp matching
3023
+ # this interval will have to be the same or after the start.
3024
+ # Corresponds to the JSON property `startTime`
3025
+ # @return [String]
3026
+ attr_accessor :start_time
3027
+
3028
+ def initialize(**args)
3029
+ update!(**args)
3030
+ end
3031
+
3032
+ # Update properties of this object
3033
+ def update!(**args)
3034
+ @end_time = args[:end_time] if args.key?(:end_time)
3035
+ @start_time = args[:start_time] if args.key?(:start_time)
3036
+ end
3037
+ end
3038
+
2730
3039
  # IP Management configuration.
2731
3040
  class IpConfiguration
2732
3041
  include Google::Apis::Core::Hashable
@@ -2875,6 +3184,39 @@ module Google
2875
3184
  end
2876
3185
  end
2877
3186
 
3187
+ # The response payload containing a list of the backups.
3188
+ class ListBackupsResponse
3189
+ include Google::Apis::Core::Hashable
3190
+
3191
+ # A list of backups.
3192
+ # Corresponds to the JSON property `backups`
3193
+ # @return [Array<Google::Apis::SqladminV1beta4::Backup>]
3194
+ attr_accessor :backups
3195
+
3196
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
3197
+ # field is omitted, then there aren't subsequent pages.
3198
+ # Corresponds to the JSON property `nextPageToken`
3199
+ # @return [String]
3200
+ attr_accessor :next_page_token
3201
+
3202
+ # If a region isn't unavailable or if an unknown error occurs, then a warning
3203
+ # message is returned.
3204
+ # Corresponds to the JSON property `warnings`
3205
+ # @return [Array<Google::Apis::SqladminV1beta4::ApiWarning>]
3206
+ attr_accessor :warnings
3207
+
3208
+ def initialize(**args)
3209
+ update!(**args)
3210
+ end
3211
+
3212
+ # Update properties of this object
3213
+ def update!(**args)
3214
+ @backups = args[:backups] if args.key?(:backups)
3215
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3216
+ @warnings = args[:warnings] if args.key?(:warnings)
3217
+ end
3218
+ end
3219
+
2878
3220
  # Preferred location. This specifies where a Cloud SQL instance is located. Note
2879
3221
  # that if the preferred location is not available, the instance will be located
2880
3222
  # as close as possible within the region. Only one location may be specified.
@@ -2974,7 +3316,7 @@ module Google
2974
3316
  # @return [String]
2975
3317
  attr_accessor :client_certificate
2976
3318
 
2977
- # PEM representation of the replica's private key. The corresponsing public key
3319
+ # PEM representation of the replica's private key. The corresponding public key
2978
3320
  # is encoded in the client's certificate.
2979
3321
  # Corresponds to the JSON property `clientKey`
2980
3322
  # @return [String]
@@ -3079,7 +3421,7 @@ module Google
3079
3421
  # @return [String]
3080
3422
  attr_accessor :client_certificate
3081
3423
 
3082
- # PEM representation of the replica's private key. The corresponsing public key
3424
+ # PEM representation of the replica's private key. The corresponding public key
3083
3425
  # is encoded in the client's certificate.
3084
3426
  # Corresponds to the JSON property `clientKey`
3085
3427
  # @return [String]
@@ -3234,7 +3576,7 @@ module Google
3234
3576
  # @return [Google::Apis::SqladminV1beta4::SqlSubOperationType]
3235
3577
  attr_accessor :sub_operation_type
3236
3578
 
3237
- # Name of the database instance related to this operation.
3579
+ # Name of the resource on which this operation runs.
3238
3580
  # Corresponds to the JSON property `targetId`
3239
3581
  # @return [String]
3240
3582
  attr_accessor :target_id
@@ -4014,6 +4356,12 @@ module Google
4014
4356
  # @return [String]
4015
4357
  attr_accessor :pricing_plan
4016
4358
 
4359
+ # Optional. Configuration value for recreation of replica after certain
4360
+ # replication lag
4361
+ # Corresponds to the JSON property `replicationLagMaxSeconds`
4362
+ # @return [Fixnum]
4363
+ attr_accessor :replication_lag_max_seconds
4364
+
4017
4365
  # The type of replication this instance uses. This can be either `ASYNCHRONOUS`
4018
4366
  # or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First
4019
4367
  # Generation instances.
@@ -4096,6 +4444,7 @@ module Google
4096
4444
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
4097
4445
  @password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
4098
4446
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
4447
+ @replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
4099
4448
  @replication_type = args[:replication_type] if args.key?(:replication_type)
4100
4449
  @settings_version = args[:settings_version] if args.key?(:settings_version)
4101
4450
  @sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config)
@@ -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.76.0"
19
+ GEM_VERSION = "0.78.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241204"
25
+ REVISION = "20250216"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Backup
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class BackupConfiguration
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -222,6 +228,12 @@ module Google
222
228
 
223
229
  include Google::Apis::Core::JsonObjectSupport
224
230
  end
231
+
232
+ class TdeExportOptions
233
+ class Representation < Google::Apis::Core::JsonRepresentation; end
234
+
235
+ include Google::Apis::Core::JsonObjectSupport
236
+ end
225
237
 
226
238
  include Google::Apis::Core::JsonObjectSupport
227
239
  end
@@ -300,6 +312,12 @@ module Google
300
312
 
301
313
  include Google::Apis::Core::JsonObjectSupport
302
314
  end
315
+
316
+ class TdeImportOptions
317
+ class Representation < Google::Apis::Core::JsonRepresentation; end
318
+
319
+ include Google::Apis::Core::JsonObjectSupport
320
+ end
303
321
 
304
322
  include Google::Apis::Core::JsonObjectSupport
305
323
  end
@@ -406,6 +424,12 @@ module Google
406
424
  include Google::Apis::Core::JsonObjectSupport
407
425
  end
408
426
 
427
+ class Interval
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
409
433
  class IpConfiguration
410
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
435
 
@@ -418,6 +442,12 @@ module Google
418
442
  include Google::Apis::Core::JsonObjectSupport
419
443
  end
420
444
 
445
+ class ListBackupsResponse
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
421
451
  class LocationPreference
422
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
453
 
@@ -781,6 +811,34 @@ module Google
781
811
  end
782
812
  end
783
813
 
814
+ class Backup
815
+ # @private
816
+ class Representation < Google::Apis::Core::JsonRepresentation
817
+ property :backup_interval, as: 'backupInterval', class: Google::Apis::SqladminV1beta4::Interval, decorator: Google::Apis::SqladminV1beta4::Interval::Representation
818
+
819
+ property :backup_kind, as: 'backupKind'
820
+ property :backup_run, as: 'backupRun'
821
+ property :description, as: 'description'
822
+ property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation
823
+
824
+ property :expiry_time, as: 'expiryTime'
825
+ property :instance, as: 'instance'
826
+ property :kind, as: 'kind'
827
+ property :kms_key, as: 'kmsKey'
828
+ property :kms_key_version, as: 'kmsKeyVersion'
829
+ property :location, as: 'location'
830
+ property :max_chargeable_bytes, :numeric_string => true, as: 'maxChargeableBytes'
831
+ property :name, as: 'name'
832
+ property :satisfies_pzi, as: 'satisfiesPzi'
833
+ property :satisfies_pzs, as: 'satisfiesPzs'
834
+ property :self_link, as: 'selfLink'
835
+ property :state, as: 'state'
836
+ property :time_zone, as: 'timeZone'
837
+ property :ttl_days, :numeric_string => true, as: 'ttlDays'
838
+ property :type, as: 'type'
839
+ end
840
+ end
841
+
784
842
  class BackupConfiguration
785
843
  # @private
786
844
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -803,6 +861,7 @@ module Google
803
861
  class Representation < Google::Apis::Core::JsonRepresentation
804
862
  property :backup_id, :numeric_string => true, as: 'backupId'
805
863
  property :kind, as: 'kind'
864
+ property :name, as: 'name'
806
865
  end
807
866
  end
808
867
 
@@ -954,6 +1013,7 @@ module Google
954
1013
  property :gce_zone, as: 'gceZone'
955
1014
  property :gemini_config, as: 'geminiConfig', class: Google::Apis::SqladminV1beta4::GeminiInstanceConfig, decorator: Google::Apis::SqladminV1beta4::GeminiInstanceConfig::Representation
956
1015
 
1016
+ property :include_replicas_for_major_version_upgrade, as: 'includeReplicasForMajorVersionUpgrade'
957
1017
  property :instance_type, as: 'instanceType'
958
1018
  collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
959
1019
 
@@ -1101,6 +1161,8 @@ module Google
1101
1161
  property :offload, as: 'offload'
1102
1162
  property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::Representation
1103
1163
 
1164
+ property :tde_export_options, as: 'tdeExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions::Representation
1165
+
1104
1166
  property :uri, as: 'uri'
1105
1167
  end
1106
1168
 
@@ -1156,6 +1218,16 @@ module Google
1156
1218
  end
1157
1219
  end
1158
1220
  end
1221
+
1222
+ class TdeExportOptions
1223
+ # @private
1224
+ class Representation < Google::Apis::Core::JsonRepresentation
1225
+ property :certificate_path, as: 'certificatePath'
1226
+ property :name, as: 'name'
1227
+ property :private_key_password, as: 'privateKeyPassword'
1228
+ property :private_key_path, as: 'privateKeyPath'
1229
+ end
1230
+ end
1159
1231
  end
1160
1232
 
1161
1233
  class ExternalSyncSelectedObject
@@ -1241,6 +1313,8 @@ module Google
1241
1313
  property :kind, as: 'kind'
1242
1314
  property :sql_import_options, as: 'sqlImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::Representation
1243
1315
 
1316
+ property :tde_import_options, as: 'tdeImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions::Representation
1317
+
1244
1318
  property :uri, as: 'uri'
1245
1319
  end
1246
1320
 
@@ -1261,6 +1335,7 @@ module Google
1261
1335
  # @private
1262
1336
  class Representation < Google::Apis::Core::JsonRepresentation
1263
1337
  property :cert_path, as: 'certPath'
1338
+ property :keep_encrypted, as: 'keepEncrypted'
1264
1339
  property :pvk_password, as: 'pvkPassword'
1265
1340
  property :pvk_path, as: 'pvkPath'
1266
1341
  end
@@ -1296,6 +1371,16 @@ module Google
1296
1371
  end
1297
1372
  end
1298
1373
  end
1374
+
1375
+ class TdeImportOptions
1376
+ # @private
1377
+ class Representation < Google::Apis::Core::JsonRepresentation
1378
+ property :certificate_path, as: 'certificatePath'
1379
+ property :name, as: 'name'
1380
+ property :private_key_password, as: 'privateKeyPassword'
1381
+ property :private_key_path, as: 'privateKeyPath'
1382
+ end
1383
+ end
1299
1384
  end
1300
1385
 
1301
1386
  class InsightsConfig
@@ -1419,8 +1504,11 @@ module Google
1419
1504
  class RestoreInstancesBackupRequest
1420
1505
  # @private
1421
1506
  class Representation < Google::Apis::Core::JsonRepresentation
1507
+ property :backup, as: 'backup'
1422
1508
  property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1beta4::RestoreBackupContext, decorator: Google::Apis::SqladminV1beta4::RestoreBackupContext::Representation
1423
1509
 
1510
+ property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
1511
+
1424
1512
  end
1425
1513
  end
1426
1514
 
@@ -1448,6 +1536,14 @@ module Google
1448
1536
  end
1449
1537
  end
1450
1538
 
1539
+ class Interval
1540
+ # @private
1541
+ class Representation < Google::Apis::Core::JsonRepresentation
1542
+ property :end_time, as: 'endTime'
1543
+ property :start_time, as: 'startTime'
1544
+ end
1545
+ end
1546
+
1451
1547
  class IpConfiguration
1452
1548
  # @private
1453
1549
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1476,6 +1572,17 @@ module Google
1476
1572
  end
1477
1573
  end
1478
1574
 
1575
+ class ListBackupsResponse
1576
+ # @private
1577
+ class Representation < Google::Apis::Core::JsonRepresentation
1578
+ collection :backups, as: 'backups', class: Google::Apis::SqladminV1beta4::Backup, decorator: Google::Apis::SqladminV1beta4::Backup::Representation
1579
+
1580
+ property :next_page_token, as: 'nextPageToken'
1581
+ collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation
1582
+
1583
+ end
1584
+ end
1585
+
1479
1586
  class LocationPreference
1480
1587
  # @private
1481
1588
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1763,6 +1870,7 @@ module Google
1763
1870
  property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::PasswordValidationPolicy::Representation
1764
1871
 
1765
1872
  property :pricing_plan, as: 'pricingPlan'
1873
+ property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds'
1766
1874
  property :replication_type, as: 'replicationType'
1767
1875
  property :settings_version, :numeric_string => true, as: 'settingsVersion'
1768
1876
  property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1beta4::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerAuditConfig::Representation
@@ -203,6 +203,188 @@ module Google
203
203
  execute_or_queue_command(command, &block)
204
204
  end
205
205
 
206
+ # Creates a backup for a Cloud SQL instance. This API can be used only to create
207
+ # on-demand backups.
208
+ # @param [String] parent
209
+ # Required. The parent resource where this backup is created. Format: projects/`
210
+ # project`
211
+ # @param [Google::Apis::SqladminV1beta4::Backup] backup_object
212
+ # @param [String] fields
213
+ # Selector specifying which fields to include in a partial response.
214
+ # @param [String] quota_user
215
+ # Available to use for quota purposes for server-side applications. Can be any
216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
217
+ # @param [Google::Apis::RequestOptions] options
218
+ # Request-specific options
219
+ #
220
+ # @yield [result, err] Result & error if block supplied
221
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
222
+ # @yieldparam err [StandardError] error object if request failed
223
+ #
224
+ # @return [Google::Apis::SqladminV1beta4::Operation]
225
+ #
226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
229
+ def create_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil, &block)
230
+ command = make_simple_command(:post, 'sql/v1beta4/{+parent}/backups', options)
231
+ command.request_representation = Google::Apis::SqladminV1beta4::Backup::Representation
232
+ command.request_object = backup_object
233
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
234
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
235
+ command.params['parent'] = parent unless parent.nil?
236
+ command.query['fields'] = fields unless fields.nil?
237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
238
+ execute_or_queue_command(command, &block)
239
+ end
240
+
241
+ # Deletes the backup.
242
+ # @param [String] name
243
+ # Required. The name of the backup to delete. Format: projects/`project`/backups/
244
+ # `backup`
245
+ # @param [String] fields
246
+ # Selector specifying which fields to include in a partial response.
247
+ # @param [String] quota_user
248
+ # Available to use for quota purposes for server-side applications. Can be any
249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
250
+ # @param [Google::Apis::RequestOptions] options
251
+ # Request-specific options
252
+ #
253
+ # @yield [result, err] Result & error if block supplied
254
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
255
+ # @yieldparam err [StandardError] error object if request failed
256
+ #
257
+ # @return [Google::Apis::SqladminV1beta4::Operation]
258
+ #
259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
262
+ def delete_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block)
263
+ command = make_simple_command(:delete, 'sql/v1beta4/{+name}', options)
264
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
265
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
266
+ command.params['name'] = name unless name.nil?
267
+ command.query['fields'] = fields unless fields.nil?
268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
269
+ execute_or_queue_command(command, &block)
270
+ end
271
+
272
+ # Retrieves a resource containing information about a backup.
273
+ # @param [String] name
274
+ # Required. The name of the backup to retrieve. Format: projects/`project`/
275
+ # backups/`backup`
276
+ # @param [String] fields
277
+ # Selector specifying which fields to include in a partial response.
278
+ # @param [String] quota_user
279
+ # Available to use for quota purposes for server-side applications. Can be any
280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
281
+ # @param [Google::Apis::RequestOptions] options
282
+ # Request-specific options
283
+ #
284
+ # @yield [result, err] Result & error if block supplied
285
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Backup] parsed result object
286
+ # @yieldparam err [StandardError] error object if request failed
287
+ #
288
+ # @return [Google::Apis::SqladminV1beta4::Backup]
289
+ #
290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
293
+ def get_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block)
294
+ command = make_simple_command(:get, 'sql/v1beta4/{+name}', options)
295
+ command.response_representation = Google::Apis::SqladminV1beta4::Backup::Representation
296
+ command.response_class = Google::Apis::SqladminV1beta4::Backup
297
+ command.params['name'] = name unless name.nil?
298
+ command.query['fields'] = fields unless fields.nil?
299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
300
+ execute_or_queue_command(command, &block)
301
+ end
302
+
303
+ # Lists all backups associated with the project.
304
+ # @param [String] parent
305
+ # Required. The parent that owns this collection of backups. Format: projects/`
306
+ # project`
307
+ # @param [String] filter
308
+ # Multiple filter queries are separated by spaces. For example, 'instance:abc
309
+ # type:FINAL. You can filter by type, instance name, creation time, or location.
310
+ # @param [Fixnum] page_size
311
+ # The maximum number of backups to return per response. The service might return
312
+ # fewer backups than this value. If a value for this parameter isn't specified,
313
+ # then, at most, 500 backups are returned. The maximum value is 2,000. Any
314
+ # values that you set, which are greater than 2,000, are changed to 2,000.
315
+ # @param [String] page_token
316
+ # A page token, received from a previous `ListBackups` call. Provide this to
317
+ # retrieve the subsequent page. When paginating, all other parameters provided
318
+ # to `ListBackups` must match the call that provided the page token.
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupsResponse] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::SqladminV1beta4::ListBackupsResponse]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def list_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:get, 'sql/v1beta4/{+parent}/backups', options)
338
+ command.response_representation = Google::Apis::SqladminV1beta4::ListBackupsResponse::Representation
339
+ command.response_class = Google::Apis::SqladminV1beta4::ListBackupsResponse
340
+ command.params['parent'] = parent unless parent.nil?
341
+ command.query['filter'] = filter unless filter.nil?
342
+ command.query['pageSize'] = page_size unless page_size.nil?
343
+ command.query['pageToken'] = page_token unless page_token.nil?
344
+ command.query['fields'] = fields unless fields.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ execute_or_queue_command(command, &block)
347
+ end
348
+
349
+ # Updates the retention period and the description of the backup. You can use
350
+ # this API to update final backups only.
351
+ # @param [String] name
352
+ # Output only. The resource name of the backup. Format: projects/`project`/
353
+ # backups/`backup`.
354
+ # @param [Google::Apis::SqladminV1beta4::Backup] backup_object
355
+ # @param [String] update_mask
356
+ # The list of fields that you can update. You can update only the description
357
+ # and retention period of the final backup.
358
+ # @param [String] fields
359
+ # Selector specifying which fields to include in a partial response.
360
+ # @param [String] quota_user
361
+ # Available to use for quota purposes for server-side applications. Can be any
362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
363
+ # @param [Google::Apis::RequestOptions] options
364
+ # Request-specific options
365
+ #
366
+ # @yield [result, err] Result & error if block supplied
367
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
368
+ # @yieldparam err [StandardError] error object if request failed
369
+ #
370
+ # @return [Google::Apis::SqladminV1beta4::Operation]
371
+ #
372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
375
+ def update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ command = make_simple_command(:patch, 'sql/v1beta4/{+name}', options)
377
+ command.request_representation = Google::Apis::SqladminV1beta4::Backup::Representation
378
+ command.request_object = backup_object
379
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
380
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
381
+ command.params['name'] = name unless name.nil?
382
+ command.query['updateMask'] = update_mask unless update_mask.nil?
383
+ command.query['fields'] = fields unless fields.nil?
384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
385
+ execute_or_queue_command(command, &block)
386
+ end
387
+
206
388
  # Generates a short-lived X509 certificate containing the provided public key
207
389
  # and signed by a private key specific to the target instance. Users may use the
208
390
  # certificate to authenticate as themselves when connecting to the database.
@@ -764,6 +946,15 @@ module Google
764
946
  # Project ID of the project that contains the instance to be deleted.
765
947
  # @param [String] instance
766
948
  # Cloud SQL instance ID. This does not include the project ID.
949
+ # @param [Boolean] enable_final_backup
950
+ # Flag to opt-in for final backup. By default, it is turned off.
951
+ # @param [String] final_backup_description
952
+ # Optional. The description of the final backup.
953
+ # @param [String] final_backup_expiry_time
954
+ # Optional. Final Backup expiration time. Timestamp in UTC of when this resource
955
+ # is considered expired.
956
+ # @param [Fixnum] final_backup_ttl_days
957
+ # Optional. Retention period of the final backup.
767
958
  # @param [String] fields
768
959
  # Selector specifying which fields to include in a partial response.
769
960
  # @param [String] quota_user
@@ -781,12 +972,16 @@ module Google
781
972
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
782
973
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
974
  # @raise [Google::Apis::AuthorizationError] Authorization is required
784
- def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
975
+ def delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil, &block)
785
976
  command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
786
977
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
787
978
  command.response_class = Google::Apis::SqladminV1beta4::Operation
788
979
  command.params['project'] = project unless project.nil?
789
980
  command.params['instance'] = instance unless instance.nil?
981
+ command.query['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil?
982
+ command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil?
983
+ command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil?
984
+ command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.nil?
790
985
  command.query['fields'] = fields unless fields.nil?
791
986
  command.query['quotaUser'] = quota_user unless quota_user.nil?
792
987
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0
4
+ version: 0.78.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.76.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.78.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud SQL Admin API V1beta4
82
79
  test_files: []