google-apis-sqladmin_v1 0.72.0 → 0.73.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: 662f37bb6595df03fbf2020b038c7f1406ff713d46af56c182c6809638a2d712
4
- data.tar.gz: 439cba28cab931187e3a91a40e8f9520ac045e260be3c8f530d0ee3c1508e887
3
+ metadata.gz: '08670204bb8382dcfbe545ecf3c90e18aedc787d05a8b2a108050bb1159af4a2'
4
+ data.tar.gz: 2e7a3f6e660127fdf798d5595640c4241dd83c4ff24a4037390f86e48d5ab9f9
5
5
  SHA512:
6
- metadata.gz: 17017b020b1864a83d91cf1a3b86a6174b69e201ff4060705c4ae8a9b4208e0e9f8ec5e4ca57b85c8aa0c34fa964c58c344cfc92c90b92e5b863af5b8e776b59
7
- data.tar.gz: 4cf83298de907a7cdbaa98f7101d8a5e686337680b37e317862e9d368da6a972539af5bc92d37a2dcd12260f38390cfcf19c4873e9e0d04010e9970858386255
6
+ metadata.gz: 80bfec5def7bb4da6945785bf1f5a9620afd8c37b662f3604c150e064c7bb829c060cebcce65c89d0fe871c2cb8900a655beb057cb2aa10bdbcfe35c3a173cbe
7
+ data.tar.gz: f3bfaa0809b1d450f792e2634e6e28af4135057ee1046d8e81c588380b20bb34566d7f5c7da98596bbcec6ac4aabf039da2dd6110497d2509c212b79cb79085d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.73.0 (2025-03-02)
4
+
5
+ * Regenerated from discovery document revision 20250216
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.72.0 (2025-01-08)
4
9
 
5
10
  * Regenerated from discovery document revision 20241210
@@ -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::SqladminV1::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::SqladminV1::OperationError]
214
+ attr_accessor :error
215
+
216
+ # Backup expiration time. A UTC timestamp of when this backup expired.
217
+ # Corresponds to the JSON property `expiryTime`
218
+ # @return [String]
219
+ attr_accessor :expiry_time
220
+
221
+ # The name of the source 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 status 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
 
@@ -903,6 +1056,14 @@ module Google
903
1056
  # @return [Google::Apis::SqladminV1::GeminiInstanceConfig]
904
1057
  attr_accessor :gemini_config
905
1058
 
1059
+ # Input only. Determines whether an in-place major version upgrade of replicas
1060
+ # happens when an in-place major version upgrade of a primary instance is
1061
+ # initiated.
1062
+ # Corresponds to the JSON property `includeReplicasForMajorVersionUpgrade`
1063
+ # @return [Boolean]
1064
+ attr_accessor :include_replicas_for_major_version_upgrade
1065
+ alias_method :include_replicas_for_major_version_upgrade?, :include_replicas_for_major_version_upgrade
1066
+
906
1067
  # The instance type.
907
1068
  # Corresponds to the JSON property `instanceType`
908
1069
  # @return [String]
@@ -1112,6 +1273,7 @@ module Google
1112
1273
  @failover_replica = args[:failover_replica] if args.key?(:failover_replica)
1113
1274
  @gce_zone = args[:gce_zone] if args.key?(:gce_zone)
1114
1275
  @gemini_config = args[:gemini_config] if args.key?(:gemini_config)
1276
+ @include_replicas_for_major_version_upgrade = args[:include_replicas_for_major_version_upgrade] if args.key?(:include_replicas_for_major_version_upgrade)
1115
1277
  @instance_type = args[:instance_type] if args.key?(:instance_type)
1116
1278
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1117
1279
  @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
@@ -1320,7 +1482,7 @@ module Google
1320
1482
  # @return [String]
1321
1483
  attr_accessor :client_certificate
1322
1484
 
1323
- # PEM representation of the replica's private key. The corresponsing public key
1485
+ # PEM representation of the replica's private key. The corresponding public key
1324
1486
  # is encoded in the client's certificate. The format of the replica's private
1325
1487
  # key can be either PKCS #1 or PKCS #8.
1326
1488
  # Corresponds to the JSON property `clientKey`
@@ -1510,6 +1672,11 @@ module Google
1510
1672
  # @return [Google::Apis::SqladminV1::ExportContext::SqlExportOptions]
1511
1673
  attr_accessor :sql_export_options
1512
1674
 
1675
+ # Optional. Export parameters specific to SQL Server TDE certificates
1676
+ # Corresponds to the JSON property `tdeExportOptions`
1677
+ # @return [Google::Apis::SqladminV1::ExportContext::TdeExportOptions]
1678
+ attr_accessor :tde_export_options
1679
+
1513
1680
  # The path to the file in Google Cloud Storage where the export will be stored.
1514
1681
  # The URI is in the form `gs://bucketName/fileName`. If the file already exists,
1515
1682
  # the request succeeds, but the operation fails. If `fileType` is `SQL` and the
@@ -1531,6 +1698,7 @@ module Google
1531
1698
  @kind = args[:kind] if args.key?(:kind)
1532
1699
  @offload = args[:offload] if args.key?(:offload)
1533
1700
  @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
1701
+ @tde_export_options = args[:tde_export_options] if args.key?(:tde_export_options)
1534
1702
  @uri = args[:uri] if args.key?(:uri)
1535
1703
  end
1536
1704
 
@@ -1752,6 +1920,47 @@ module Google
1752
1920
  end
1753
1921
  end
1754
1922
  end
1923
+
1924
+ # Optional. Export parameters specific to SQL Server TDE certificates
1925
+ class TdeExportOptions
1926
+ include Google::Apis::Core::Hashable
1927
+
1928
+ # Required. Path to the TDE certificate public key in the form gs://bucketName/
1929
+ # fileName. The instance must have write access to the bucket. Applicable only
1930
+ # for SQL Server instances.
1931
+ # Corresponds to the JSON property `certificatePath`
1932
+ # @return [String]
1933
+ attr_accessor :certificate_path
1934
+
1935
+ # Required. Certificate name. Applicable only for SQL Server instances.
1936
+ # Corresponds to the JSON property `name`
1937
+ # @return [String]
1938
+ attr_accessor :name
1939
+
1940
+ # Required. Password that encrypts the private key.
1941
+ # Corresponds to the JSON property `privateKeyPassword`
1942
+ # @return [String]
1943
+ attr_accessor :private_key_password
1944
+
1945
+ # Required. Path to the TDE certificate private key in the form gs://bucketName/
1946
+ # fileName. The instance must have write access to the location. Applicable only
1947
+ # for SQL Server instances.
1948
+ # Corresponds to the JSON property `privateKeyPath`
1949
+ # @return [String]
1950
+ attr_accessor :private_key_path
1951
+
1952
+ def initialize(**args)
1953
+ update!(**args)
1954
+ end
1955
+
1956
+ # Update properties of this object
1957
+ def update!(**args)
1958
+ @certificate_path = args[:certificate_path] if args.key?(:certificate_path)
1959
+ @name = args[:name] if args.key?(:name)
1960
+ @private_key_password = args[:private_key_password] if args.key?(:private_key_password)
1961
+ @private_key_path = args[:private_key_path] if args.key?(:private_key_path)
1962
+ end
1963
+ end
1755
1964
  end
1756
1965
 
1757
1966
  # The selected object that Cloud SQL migrates.
@@ -2064,6 +2273,11 @@ module Google
2064
2273
  # @return [Google::Apis::SqladminV1::ImportContext::SqlImportOptions]
2065
2274
  attr_accessor :sql_import_options
2066
2275
 
2276
+ # Optional. Import parameters specific to SQL Server TDE certificates
2277
+ # Corresponds to the JSON property `tdeImportOptions`
2278
+ # @return [Google::Apis::SqladminV1::ImportContext::TdeImportOptions]
2279
+ attr_accessor :tde_import_options
2280
+
2067
2281
  # Path to the import file in Cloud Storage, in the form `gs://bucketName/
2068
2282
  # fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`.
2069
2283
  # The instance must have write permissions to the bucket and read access to the
@@ -2085,6 +2299,7 @@ module Google
2085
2299
  @import_user = args[:import_user] if args.key?(:import_user)
2086
2300
  @kind = args[:kind] if args.key?(:kind)
2087
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)
2088
2303
  @uri = args[:uri] if args.key?(:uri)
2089
2304
  end
2090
2305
 
@@ -2166,6 +2381,12 @@ module Google
2166
2381
  # @return [String]
2167
2382
  attr_accessor :cert_path
2168
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
+
2169
2390
  # Password that encrypts the private key
2170
2391
  # Corresponds to the JSON property `pvkPassword`
2171
2392
  # @return [String]
@@ -2185,6 +2406,7 @@ module Google
2185
2406
  # Update properties of this object
2186
2407
  def update!(**args)
2187
2408
  @cert_path = args[:cert_path] if args.key?(:cert_path)
2409
+ @keep_encrypted = args[:keep_encrypted] if args.key?(:keep_encrypted)
2188
2410
  @pvk_password = args[:pvk_password] if args.key?(:pvk_password)
2189
2411
  @pvk_path = args[:pvk_path] if args.key?(:pvk_path)
2190
2412
  end
@@ -2304,6 +2526,47 @@ module Google
2304
2526
  end
2305
2527
  end
2306
2528
  end
2529
+
2530
+ # Optional. Import parameters specific to SQL Server TDE certificates
2531
+ class TdeImportOptions
2532
+ include Google::Apis::Core::Hashable
2533
+
2534
+ # Required. Path to the TDE certificate public key in the form gs://bucketName/
2535
+ # fileName. The instance must have read access to the file. Applicable only for
2536
+ # SQL Server instances.
2537
+ # Corresponds to the JSON property `certificatePath`
2538
+ # @return [String]
2539
+ attr_accessor :certificate_path
2540
+
2541
+ # Required. Certificate name. Applicable only for SQL Server instances.
2542
+ # Corresponds to the JSON property `name`
2543
+ # @return [String]
2544
+ attr_accessor :name
2545
+
2546
+ # Required. Password that encrypts the private key.
2547
+ # Corresponds to the JSON property `privateKeyPassword`
2548
+ # @return [String]
2549
+ attr_accessor :private_key_password
2550
+
2551
+ # Required. Path to the TDE certificate private key in the form gs://bucketName/
2552
+ # fileName. The instance must have read access to the file. Applicable only for
2553
+ # SQL Server instances.
2554
+ # Corresponds to the JSON property `privateKeyPath`
2555
+ # @return [String]
2556
+ attr_accessor :private_key_path
2557
+
2558
+ def initialize(**args)
2559
+ update!(**args)
2560
+ end
2561
+
2562
+ # Update properties of this object
2563
+ def update!(**args)
2564
+ @certificate_path = args[:certificate_path] if args.key?(:certificate_path)
2565
+ @name = args[:name] if args.key?(:name)
2566
+ @private_key_password = args[:private_key_password] if args.key?(:private_key_password)
2567
+ @private_key_path = args[:private_key_path] if args.key?(:private_key_path)
2568
+ end
2569
+ end
2307
2570
  end
2308
2571
 
2309
2572
  # Insights configuration. This specifies when Cloud SQL Insights feature is
@@ -2655,19 +2918,33 @@ module Google
2655
2918
  class InstancesRestoreBackupRequest
2656
2919
  include Google::Apis::Core::Hashable
2657
2920
 
2921
+ # The name of the backup that's used to restore a Cloud SQL instance: Format:
2922
+ # projects/`project-id`/backups/`backup-uid`. Only one of restore_backup_context,
2923
+ # backup, backupdr_backup can be passed to the input.
2924
+ # Corresponds to the JSON property `backup`
2925
+ # @return [String]
2926
+ attr_accessor :backup
2927
+
2658
2928
  # Database instance restore from backup context. Backup context contains source
2659
2929
  # instance id and project id.
2660
2930
  # Corresponds to the JSON property `restoreBackupContext`
2661
2931
  # @return [Google::Apis::SqladminV1::RestoreBackupContext]
2662
2932
  attr_accessor :restore_backup_context
2663
2933
 
2934
+ # A Cloud SQL instance resource.
2935
+ # Corresponds to the JSON property `restoreInstanceSettings`
2936
+ # @return [Google::Apis::SqladminV1::DatabaseInstance]
2937
+ attr_accessor :restore_instance_settings
2938
+
2664
2939
  def initialize(**args)
2665
2940
  update!(**args)
2666
2941
  end
2667
2942
 
2668
2943
  # Update properties of this object
2669
2944
  def update!(**args)
2945
+ @backup = args[:backup] if args.key?(:backup)
2670
2946
  @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
2947
+ @restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings)
2671
2948
  end
2672
2949
  end
2673
2950
 
@@ -2728,6 +3005,36 @@ module Google
2728
3005
  end
2729
3006
  end
2730
3007
 
3008
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
3009
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
3010
+ # When the start equals the end, the interval is empty (matches no time). When
3011
+ # both start and end are unspecified, the interval matches any time.
3012
+ class Interval
3013
+ include Google::Apis::Core::Hashable
3014
+
3015
+ # Optional. Exclusive end of the interval. If specified, a Timestamp matching
3016
+ # this interval will have to be before the end.
3017
+ # Corresponds to the JSON property `endTime`
3018
+ # @return [String]
3019
+ attr_accessor :end_time
3020
+
3021
+ # Optional. Inclusive start of the interval. If specified, a Timestamp matching
3022
+ # this interval will have to be the same or after the start.
3023
+ # Corresponds to the JSON property `startTime`
3024
+ # @return [String]
3025
+ attr_accessor :start_time
3026
+
3027
+ def initialize(**args)
3028
+ update!(**args)
3029
+ end
3030
+
3031
+ # Update properties of this object
3032
+ def update!(**args)
3033
+ @end_time = args[:end_time] if args.key?(:end_time)
3034
+ @start_time = args[:start_time] if args.key?(:start_time)
3035
+ end
3036
+ end
3037
+
2731
3038
  # IP Management configuration.
2732
3039
  class IpConfiguration
2733
3040
  include Google::Apis::Core::Hashable
@@ -2876,6 +3183,39 @@ module Google
2876
3183
  end
2877
3184
  end
2878
3185
 
3186
+ # The response payload containing a list of the backups.
3187
+ class ListBackupsResponse
3188
+ include Google::Apis::Core::Hashable
3189
+
3190
+ # A list of backups.
3191
+ # Corresponds to the JSON property `backups`
3192
+ # @return [Array<Google::Apis::SqladminV1::Backup>]
3193
+ attr_accessor :backups
3194
+
3195
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
3196
+ # field is omitted, then there aren't subsequent pages.
3197
+ # Corresponds to the JSON property `nextPageToken`
3198
+ # @return [String]
3199
+ attr_accessor :next_page_token
3200
+
3201
+ # If a region isn't unavailable or if an unknown error occurs, then a warning
3202
+ # message is returned.
3203
+ # Corresponds to the JSON property `warnings`
3204
+ # @return [Array<Google::Apis::SqladminV1::ApiWarning>]
3205
+ attr_accessor :warnings
3206
+
3207
+ def initialize(**args)
3208
+ update!(**args)
3209
+ end
3210
+
3211
+ # Update properties of this object
3212
+ def update!(**args)
3213
+ @backups = args[:backups] if args.key?(:backups)
3214
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3215
+ @warnings = args[:warnings] if args.key?(:warnings)
3216
+ end
3217
+ end
3218
+
2879
3219
  # Preferred location. This specifies where a Cloud SQL instance is located. Note
2880
3220
  # that if the preferred location is not available, the instance will be located
2881
3221
  # as close as possible within the region. Only one location may be specified.
@@ -2975,7 +3315,7 @@ module Google
2975
3315
  # @return [String]
2976
3316
  attr_accessor :client_certificate
2977
3317
 
2978
- # PEM representation of the replica's private key. The corresponsing public key
3318
+ # PEM representation of the replica's private key. The corresponding public key
2979
3319
  # is encoded in the client's certificate.
2980
3320
  # Corresponds to the JSON property `clientKey`
2981
3321
  # @return [String]
@@ -3080,7 +3420,7 @@ module Google
3080
3420
  # @return [String]
3081
3421
  attr_accessor :client_certificate
3082
3422
 
3083
- # PEM representation of the replica's private key. The corresponsing public key
3423
+ # PEM representation of the replica's private key. The corresponding public key
3084
3424
  # is encoded in the client's certificate.
3085
3425
  # Corresponds to the JSON property `clientKey`
3086
3426
  # @return [String]
@@ -3235,7 +3575,7 @@ module Google
3235
3575
  # @return [Google::Apis::SqladminV1::SqlSubOperationType]
3236
3576
  attr_accessor :sub_operation_type
3237
3577
 
3238
- #
3578
+ # Name of the resource on which this operation runs.
3239
3579
  # Corresponds to the JSON property `targetId`
3240
3580
  # @return [String]
3241
3581
  attr_accessor :target_id
@@ -4015,6 +4355,12 @@ module Google
4015
4355
  # @return [String]
4016
4356
  attr_accessor :pricing_plan
4017
4357
 
4358
+ # Optional. Configuration value for recreation of replica after certain
4359
+ # replication lag
4360
+ # Corresponds to the JSON property `replicationLagMaxSeconds`
4361
+ # @return [Fixnum]
4362
+ attr_accessor :replication_lag_max_seconds
4363
+
4018
4364
  # The type of replication this instance uses. This can be either `ASYNCHRONOUS`
4019
4365
  # or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First
4020
4366
  # Generation instances.
@@ -4097,6 +4443,7 @@ module Google
4097
4443
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
4098
4444
  @password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
4099
4445
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
4446
+ @replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds)
4100
4447
  @replication_type = args[:replication_type] if args.key?(:replication_type)
4101
4448
  @settings_version = args[:settings_version] if args.key?(:settings_version)
4102
4449
  @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 SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.72.0"
19
+ GEM_VERSION = "0.73.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 = "20241210"
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::SqladminV1::Interval, decorator: Google::Apis::SqladminV1::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::SqladminV1::OperationError, decorator: Google::Apis::SqladminV1::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::SqladminV1::GeminiInstanceConfig, decorator: Google::Apis::SqladminV1::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::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::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::SqladminV1::ExportContext::SqlExportOptions, decorator: Google::Apis::SqladminV1::ExportContext::SqlExportOptions::Representation
1103
1163
 
1164
+ property :tde_export_options, as: 'tdeExportOptions', class: Google::Apis::SqladminV1::ExportContext::TdeExportOptions, decorator: Google::Apis::SqladminV1::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::SqladminV1::ImportContext::SqlImportOptions, decorator: Google::Apis::SqladminV1::ImportContext::SqlImportOptions::Representation
1243
1315
 
1316
+ property :tde_import_options, as: 'tdeImportOptions', class: Google::Apis::SqladminV1::ImportContext::TdeImportOptions, decorator: Google::Apis::SqladminV1::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 InstancesRestoreBackupRequest
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::SqladminV1::RestoreBackupContext, decorator: Google::Apis::SqladminV1::RestoreBackupContext::Representation
1423
1509
 
1510
+ property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1::DatabaseInstance, decorator: Google::Apis::SqladminV1::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::SqladminV1::Backup, decorator: Google::Apis::SqladminV1::Backup::Representation
1579
+
1580
+ property :next_page_token, as: 'nextPageToken'
1581
+ collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1::ApiWarning, decorator: Google::Apis::SqladminV1::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::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::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::SqladminV1::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1::SqlServerAuditConfig::Representation
@@ -51,6 +51,188 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Creates a backup for a Cloud SQL instance. This API can be used only to create
55
+ # on-demand backups.
56
+ # @param [String] parent
57
+ # Required. The parent resource where this backup is created. Format: projects/`
58
+ # project`
59
+ # @param [Google::Apis::SqladminV1::Backup] backup_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::SqladminV1::Operation]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
77
+ def create_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil, &block)
78
+ command = make_simple_command(:post, 'v1/{+parent}/backups', options)
79
+ command.request_representation = Google::Apis::SqladminV1::Backup::Representation
80
+ command.request_object = backup_object
81
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
82
+ command.response_class = Google::Apis::SqladminV1::Operation
83
+ command.params['parent'] = parent unless parent.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Deletes the backup.
90
+ # @param [String] name
91
+ # Required. The name of the backup to delete. Format: projects/`project`/backups/
92
+ # `backup`
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::SqladminV1::Operation]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def delete_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:delete, 'v1/{+name}', options)
112
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
113
+ command.response_class = Google::Apis::SqladminV1::Operation
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Retrieves a resource containing information about a backup.
121
+ # @param [String] name
122
+ # Required. The name of the backup to retrieve. Format: projects/`project`/
123
+ # backups/`backup`
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [Google::Apis::RequestOptions] options
130
+ # Request-specific options
131
+ #
132
+ # @yield [result, err] Result & error if block supplied
133
+ # @yieldparam result [Google::Apis::SqladminV1::Backup] parsed result object
134
+ # @yieldparam err [StandardError] error object if request failed
135
+ #
136
+ # @return [Google::Apis::SqladminV1::Backup]
137
+ #
138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
141
+ def get_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block)
142
+ command = make_simple_command(:get, 'v1/{+name}', options)
143
+ command.response_representation = Google::Apis::SqladminV1::Backup::Representation
144
+ command.response_class = Google::Apis::SqladminV1::Backup
145
+ command.params['name'] = name unless name.nil?
146
+ command.query['fields'] = fields unless fields.nil?
147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
148
+ execute_or_queue_command(command, &block)
149
+ end
150
+
151
+ # Lists all backups associated with the project.
152
+ # @param [String] parent
153
+ # Required. The parent that owns this collection of backups. Format: projects/`
154
+ # project`
155
+ # @param [String] filter
156
+ # Multiple filter queries are separated by spaces. For example, 'instance:abc
157
+ # type:FINAL. You can filter by type, instance name, creation time or location.
158
+ # @param [Fixnum] page_size
159
+ # The maximum number of backups to return per response. The service might return
160
+ # fewer backups than this value. If a value for this parameter isn't specified,
161
+ # then, at most, 500 backups are returned. The maximum value is 2,000. Any
162
+ # values that you set, which are greater than 2,000, are changed to 2,000.
163
+ # @param [String] page_token
164
+ # A page token, received from a previous `ListBackups` call. Provide this to
165
+ # retrieve the subsequent page. When paginating, all other parameters provided
166
+ # to `ListBackups` must match the call that provided the page token.
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
172
+ # @param [Google::Apis::RequestOptions] options
173
+ # Request-specific options
174
+ #
175
+ # @yield [result, err] Result & error if block supplied
176
+ # @yieldparam result [Google::Apis::SqladminV1::ListBackupsResponse] parsed result object
177
+ # @yieldparam err [StandardError] error object if request failed
178
+ #
179
+ # @return [Google::Apis::SqladminV1::ListBackupsResponse]
180
+ #
181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
184
+ def list_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:get, 'v1/{+parent}/backups', options)
186
+ command.response_representation = Google::Apis::SqladminV1::ListBackupsResponse::Representation
187
+ command.response_class = Google::Apis::SqladminV1::ListBackupsResponse
188
+ command.params['parent'] = parent unless parent.nil?
189
+ command.query['filter'] = filter unless filter.nil?
190
+ command.query['pageSize'] = page_size unless page_size.nil?
191
+ command.query['pageToken'] = page_token unless page_token.nil?
192
+ command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Updates the retention period and description of the backup. You can use this
198
+ # API to update final backups only.
199
+ # @param [String] name
200
+ # Output only. The resource name of the backup. Format: projects/`project`/
201
+ # backups/`backup`.
202
+ # @param [Google::Apis::SqladminV1::Backup] backup_object
203
+ # @param [String] update_mask
204
+ # The list of fields that you can update. You can update only the description
205
+ # and retention period of the final backup.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::SqladminV1::Operation] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::SqladminV1::Operation]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:patch, 'v1/{+name}', options)
225
+ command.request_representation = Google::Apis::SqladminV1::Backup::Representation
226
+ command.request_object = backup_object
227
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
228
+ command.response_class = Google::Apis::SqladminV1::Operation
229
+ command.params['name'] = name unless name.nil?
230
+ command.query['updateMask'] = update_mask unless update_mask.nil?
231
+ command.query['fields'] = fields unless fields.nil?
232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
233
+ execute_or_queue_command(command, &block)
234
+ end
235
+
54
236
  # Deletes the backup taken by a backup run.
55
237
  # @param [String] project
56
238
  # Project ID of the project that contains the instance.
@@ -765,6 +947,15 @@ module Google
765
947
  # Project ID of the project that contains the instance to be deleted.
766
948
  # @param [String] instance
767
949
  # Cloud SQL instance ID. This does not include the project ID.
950
+ # @param [Boolean] enable_final_backup
951
+ # Flag to opt-in for final backup. By default, it is turned off.
952
+ # @param [String] final_backup_description
953
+ # Optional. The description of the final backup.
954
+ # @param [String] final_backup_expiry_time
955
+ # Optional. Final Backup expiration time. Timestamp in UTC of when this resource
956
+ # is considered expired.
957
+ # @param [Fixnum] final_backup_ttl_days
958
+ # Optional. Retention period of the final backup.
768
959
  # @param [String] fields
769
960
  # Selector specifying which fields to include in a partial response.
770
961
  # @param [String] quota_user
@@ -782,12 +973,16 @@ module Google
782
973
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
974
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
975
  # @raise [Google::Apis::AuthorizationError] Authorization is required
785
- def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
976
+ 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)
786
977
  command = make_simple_command(:delete, 'v1/projects/{project}/instances/{instance}', options)
787
978
  command.response_representation = Google::Apis::SqladminV1::Operation::Representation
788
979
  command.response_class = Google::Apis::SqladminV1::Operation
789
980
  command.params['project'] = project unless project.nil?
790
981
  command.params['instance'] = instance unless instance.nil?
982
+ command.query['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil?
983
+ command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil?
984
+ command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil?
985
+ command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.nil?
791
986
  command.query['fields'] = fields unless fields.nil?
792
987
  command.query['quotaUser'] = quota_user unless quota_user.nil?
793
988
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.0
4
+ version: 0.73.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-12 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.72.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.73.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.2
76
+ rubygems_version: 3.6.5
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Cloud SQL Admin API V1
79
79
  test_files: []