google-apis-sqladmin_v1beta4 0.73.0 → 0.75.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55e4186a8f24b68092f201c10613d370fd7ed5cca1bb56cd76bc0e93103eb3e5
4
- data.tar.gz: 16892fd6f224fcea8566894c57fd96fa9ec163a202907e48de29252c67feb16e
3
+ metadata.gz: 9b1e34b6b11f1d16030de792471042a2a287e450dec047616c95685228f25866
4
+ data.tar.gz: '053850a811b54810eea9ae040b3849025bca01b55d05e45157b375449cc1b684'
5
5
  SHA512:
6
- metadata.gz: a3d117622c4de2a79f92ae69bd56ef962240bb4c1dec702e65529e21c8404c66210cd76c33639f08c31c3b6b8999c0029fd7d2605ffa14c4b582334c576f7852
7
- data.tar.gz: b1a6ebdeedccbd612d2e934d0a1a13ee8c32d5b16ebd2cbfe44daacdd74cae1e3ffa29e6a95bae4707f59900fbd9cfb71aeab4cb667f200c7a0146ee1a25962d
6
+ metadata.gz: 1e9aa56a4843a07bfb85d8821dd85065ffc3a53afc6b6b3fb0c930bbe754a1970cf5c49a9e9a8ac1820421ade7a68ae327989545f7244551a2735499b97ff43a
7
+ data.tar.gz: 192723564c53a37fd455274dc51ea62f1474289a6f0a5ce1d0d7962f93f7195b41e24ae3ed72dc09c7c9f5cf8d9adfb6f30a22c21d86e3498449c0bf3a10ee33
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.75.0 (2024-12-02)
4
+
5
+ * Regenerated from discovery document revision 20241108
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.74.0 (2024-07-25)
9
+
10
+ * Regenerated from discovery document revision 20240711
11
+
3
12
  ### v0.73.0 (2024-06-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240618
@@ -403,6 +403,11 @@ module Google
403
403
  # @return [String]
404
404
  attr_accessor :location
405
405
 
406
+ # Output only. The maximum chargeable bytes for the backup.
407
+ # Corresponds to the JSON property `maxChargeableBytes`
408
+ # @return [Fixnum]
409
+ attr_accessor :max_chargeable_bytes
410
+
406
411
  # The URI of this resource.
407
412
  # Corresponds to the JSON property `selfLink`
408
413
  # @return [String]
@@ -457,6 +462,7 @@ module Google
457
462
  @instance = args[:instance] if args.key?(:instance)
458
463
  @kind = args[:kind] if args.key?(:kind)
459
464
  @location = args[:location] if args.key?(:location)
465
+ @max_chargeable_bytes = args[:max_chargeable_bytes] if args.key?(:max_chargeable_bytes)
460
466
  @self_link = args[:self_link] if args.key?(:self_link)
461
467
  @start_time = args[:start_time] if args.key?(:start_time)
462
468
  @status = args[:status] if args.key?(:status)
@@ -575,6 +581,13 @@ module Google
575
581
  # @return [String]
576
582
  attr_accessor :point_in_time
577
583
 
584
+ # Optional. Copy clone and point-in-time recovery clone of a regional instance
585
+ # in the specified zones. If not specified, clone to the same secondary zone as
586
+ # the source instance. This value cannot be the same as the preferred_zone field.
587
+ # Corresponds to the JSON property `preferredSecondaryZone`
588
+ # @return [String]
589
+ attr_accessor :preferred_secondary_zone
590
+
578
591
  # Optional. Copy clone and point-in-time recovery clone of an instance to the
579
592
  # specified zone. If no zone is specified, clone to the same primary zone as the
580
593
  # source instance.
@@ -595,6 +608,7 @@ module Google
595
608
  @kind = args[:kind] if args.key?(:kind)
596
609
  @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
597
610
  @point_in_time = args[:point_in_time] if args.key?(:point_in_time)
611
+ @preferred_secondary_zone = args[:preferred_secondary_zone] if args.key?(:preferred_secondary_zone)
598
612
  @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone)
599
613
  end
600
614
  end
@@ -654,6 +668,11 @@ module Google
654
668
  # @return [Google::Apis::SqladminV1beta4::SslCert]
655
669
  attr_accessor :server_ca_cert
656
670
 
671
+ # Specify what type of CA is used for the server certificate.
672
+ # Corresponds to the JSON property `serverCaMode`
673
+ # @return [String]
674
+ attr_accessor :server_ca_mode
675
+
657
676
  def initialize(**args)
658
677
  update!(**args)
659
678
  end
@@ -668,6 +687,7 @@ module Google
668
687
  @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled)
669
688
  @region = args[:region] if args.key?(:region)
670
689
  @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
690
+ @server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode)
671
691
  end
672
692
  end
673
693
 
@@ -974,6 +994,13 @@ module Google
974
994
  # @return [String]
975
995
  attr_accessor :root_password
976
996
 
997
+ # Output only. This status indicates whether the instance satisfies PZI. The
998
+ # status is reserved for future use.
999
+ # Corresponds to the JSON property `satisfiesPzi`
1000
+ # @return [Boolean]
1001
+ attr_accessor :satisfies_pzi
1002
+ alias_method :satisfies_pzi?, :satisfies_pzi
1003
+
977
1004
  # This status indicates whether the instance satisfies PZS. The status is
978
1005
  # reserved for future use.
979
1006
  # Corresponds to the JSON property `satisfiesPzs`
@@ -1030,6 +1057,13 @@ module Google
1030
1057
  # @return [Array<String>]
1031
1058
  attr_accessor :suspension_reason
1032
1059
 
1060
+ # Input only. Whether Cloud SQL is enabled to switch storing point-in-time
1061
+ # recovery log files from a data disk to Cloud Storage.
1062
+ # Corresponds to the JSON property `switchTransactionLogsToCloudStorageEnabled`
1063
+ # @return [Boolean]
1064
+ attr_accessor :switch_transaction_logs_to_cloud_storage_enabled
1065
+ alias_method :switch_transaction_logs_to_cloud_storage_enabled?, :switch_transaction_logs_to_cloud_storage_enabled
1066
+
1033
1067
  # Output only. All database versions that are available for upgrade.
1034
1068
  # Corresponds to the JSON property `upgradableDatabaseVersions`
1035
1069
  # @return [Array<Google::Apis::SqladminV1beta4::AvailableDatabaseVersion>]
@@ -1078,6 +1112,7 @@ module Google
1078
1112
  @replica_names = args[:replica_names] if args.key?(:replica_names)
1079
1113
  @replication_cluster = args[:replication_cluster] if args.key?(:replication_cluster)
1080
1114
  @root_password = args[:root_password] if args.key?(:root_password)
1115
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
1081
1116
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1082
1117
  @scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance)
1083
1118
  @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
@@ -1088,6 +1123,7 @@ module Google
1088
1123
  @sql_network_architecture = args[:sql_network_architecture] if args.key?(:sql_network_architecture)
1089
1124
  @state = args[:state] if args.key?(:state)
1090
1125
  @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
1126
+ @switch_transaction_logs_to_cloud_storage_enabled = args[:switch_transaction_logs_to_cloud_storage_enabled] if args.key?(:switch_transaction_logs_to_cloud_storage_enabled)
1091
1127
  @upgradable_database_versions = args[:upgradable_database_versions] if args.key?(:upgradable_database_versions)
1092
1128
  @write_endpoint = args[:write_endpoint] if args.key?(:write_endpoint)
1093
1129
  end
@@ -1501,6 +1537,23 @@ module Google
1501
1537
  attr_accessor :differential_base
1502
1538
  alias_method :differential_base?, :differential_base
1503
1539
 
1540
+ # Optional. The end timestamp when transaction log will be included in the
1541
+ # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for
1542
+ # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs
1543
+ # until current time will be included. Only applied to Cloud SQL for SQL Server.
1544
+ # Corresponds to the JSON property `exportLogEndTime`
1545
+ # @return [String]
1546
+ attr_accessor :export_log_end_time
1547
+
1548
+ # Optional. The begin timestamp when transaction log will be included in the
1549
+ # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for
1550
+ # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs
1551
+ # from the beginning of retention period will be included. Only applied to Cloud
1552
+ # SQL for SQL Server.
1553
+ # Corresponds to the JSON property `exportLogStartTime`
1554
+ # @return [String]
1555
+ attr_accessor :export_log_start_time
1556
+
1504
1557
  # Option for specifying how many stripes to use for the export. If blank, and
1505
1558
  # the value of the striped field is true, the number of stripes is automatically
1506
1559
  # chosen.
@@ -1523,6 +1576,8 @@ module Google
1523
1576
  @bak_type = args[:bak_type] if args.key?(:bak_type)
1524
1577
  @copy_only = args[:copy_only] if args.key?(:copy_only)
1525
1578
  @differential_base = args[:differential_base] if args.key?(:differential_base)
1579
+ @export_log_end_time = args[:export_log_end_time] if args.key?(:export_log_end_time)
1580
+ @export_log_start_time = args[:export_log_start_time] if args.key?(:export_log_start_time)
1526
1581
  @stripe_count = args[:stripe_count] if args.key?(:stripe_count)
1527
1582
  @striped = args[:striped] if args.key?(:striped)
1528
1583
  end
@@ -1589,6 +1644,11 @@ module Google
1589
1644
  attr_accessor :parallel
1590
1645
  alias_method :parallel?, :parallel
1591
1646
 
1647
+ # Options for exporting from a Cloud SQL for PostgreSQL instance.
1648
+ # Corresponds to the JSON property `postgresExportOptions`
1649
+ # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions]
1650
+ attr_accessor :postgres_export_options
1651
+
1592
1652
  # Export only schemas.
1593
1653
  # Corresponds to the JSON property `schemaOnly`
1594
1654
  # @return [Boolean]
@@ -1615,6 +1675,7 @@ module Google
1615
1675
  def update!(**args)
1616
1676
  @mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options)
1617
1677
  @parallel = args[:parallel] if args.key?(:parallel)
1678
+ @postgres_export_options = args[:postgres_export_options] if args.key?(:postgres_export_options)
1618
1679
  @schema_only = args[:schema_only] if args.key?(:schema_only)
1619
1680
  @tables = args[:tables] if args.key?(:tables)
1620
1681
  @threads = args[:threads] if args.key?(:threads)
@@ -1642,6 +1703,54 @@ module Google
1642
1703
  @master_data = args[:master_data] if args.key?(:master_data)
1643
1704
  end
1644
1705
  end
1706
+
1707
+ # Options for exporting from a Cloud SQL for PostgreSQL instance.
1708
+ class PostgresExportOptions
1709
+ include Google::Apis::Core::Hashable
1710
+
1711
+ # Optional. Use this option to include DROP SQL statements. These statements are
1712
+ # used to delete database objects before running the import operation.
1713
+ # Corresponds to the JSON property `clean`
1714
+ # @return [Boolean]
1715
+ attr_accessor :clean
1716
+ alias_method :clean?, :clean
1717
+
1718
+ # Optional. Option to include an IF EXISTS SQL statement with each DROP
1719
+ # statement produced by clean.
1720
+ # Corresponds to the JSON property `ifExists`
1721
+ # @return [Boolean]
1722
+ attr_accessor :if_exists
1723
+ alias_method :if_exists?, :if_exists
1724
+
1725
+ def initialize(**args)
1726
+ update!(**args)
1727
+ end
1728
+
1729
+ # Update properties of this object
1730
+ def update!(**args)
1731
+ @clean = args[:clean] if args.key?(:clean)
1732
+ @if_exists = args[:if_exists] if args.key?(:if_exists)
1733
+ end
1734
+ end
1735
+ end
1736
+ end
1737
+
1738
+ # The selected object that Cloud SQL migrates.
1739
+ class ExternalSyncSelectedObject
1740
+ include Google::Apis::Core::Hashable
1741
+
1742
+ # The name of the database that Cloud SQL migrates.
1743
+ # Corresponds to the JSON property `database`
1744
+ # @return [String]
1745
+ attr_accessor :database
1746
+
1747
+ def initialize(**args)
1748
+ update!(**args)
1749
+ end
1750
+
1751
+ # Update properties of this object
1752
+ def update!(**args)
1753
+ @database = args[:database] if args.key?(:database)
1645
1754
  end
1646
1755
  end
1647
1756
 
@@ -2127,6 +2236,11 @@ module Google
2127
2236
  attr_accessor :parallel
2128
2237
  alias_method :parallel?, :parallel
2129
2238
 
2239
+ # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2240
+ # Corresponds to the JSON property `postgresImportOptions`
2241
+ # @return [Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions]
2242
+ attr_accessor :postgres_import_options
2243
+
2130
2244
  # Optional. The number of threads to use for parallel import.
2131
2245
  # Corresponds to the JSON property `threads`
2132
2246
  # @return [Fixnum]
@@ -2139,8 +2253,38 @@ module Google
2139
2253
  # Update properties of this object
2140
2254
  def update!(**args)
2141
2255
  @parallel = args[:parallel] if args.key?(:parallel)
2256
+ @postgres_import_options = args[:postgres_import_options] if args.key?(:postgres_import_options)
2142
2257
  @threads = args[:threads] if args.key?(:threads)
2143
2258
  end
2259
+
2260
+ # Optional. Options for importing from a Cloud SQL for PostgreSQL instance.
2261
+ class PostgresImportOptions
2262
+ include Google::Apis::Core::Hashable
2263
+
2264
+ # Optional. The --clean flag for the pg_restore utility. This flag applies only
2265
+ # if you enabled Cloud SQL to import files in parallel.
2266
+ # Corresponds to the JSON property `clean`
2267
+ # @return [Boolean]
2268
+ attr_accessor :clean
2269
+ alias_method :clean?, :clean
2270
+
2271
+ # Optional. The --if-exists flag for the pg_restore utility. This flag applies
2272
+ # only if you enabled Cloud SQL to import files in parallel.
2273
+ # Corresponds to the JSON property `ifExists`
2274
+ # @return [Boolean]
2275
+ attr_accessor :if_exists
2276
+ alias_method :if_exists?, :if_exists
2277
+
2278
+ def initialize(**args)
2279
+ update!(**args)
2280
+ end
2281
+
2282
+ # Update properties of this object
2283
+ def update!(**args)
2284
+ @clean = args[:clean] if args.key?(:clean)
2285
+ @if_exists = args[:if_exists] if args.key?(:if_exists)
2286
+ end
2287
+ end
2144
2288
  end
2145
2289
  end
2146
2290
 
@@ -2432,6 +2576,44 @@ module Google
2432
2576
  end
2433
2577
  end
2434
2578
 
2579
+ # Instances ListServerCertificatess response.
2580
+ class InstancesListServerCertificatesResponse
2581
+ include Google::Apis::Core::Hashable
2582
+
2583
+ # The `sha1_fingerprint` of the active certificate from `server_certs`.
2584
+ # Corresponds to the JSON property `activeVersion`
2585
+ # @return [String]
2586
+ attr_accessor :active_version
2587
+
2588
+ # List of server CA certificates for the instance.
2589
+ # Corresponds to the JSON property `caCerts`
2590
+ # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
2591
+ attr_accessor :ca_certs
2592
+
2593
+ # This is always `sql#instancesListServerCertificates`.
2594
+ # Corresponds to the JSON property `kind`
2595
+ # @return [String]
2596
+ attr_accessor :kind
2597
+
2598
+ # List of server certificates for the instance, signed by the corresponding CA
2599
+ # from the `ca_certs` list.
2600
+ # Corresponds to the JSON property `serverCerts`
2601
+ # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
2602
+ attr_accessor :server_certs
2603
+
2604
+ def initialize(**args)
2605
+ update!(**args)
2606
+ end
2607
+
2608
+ # Update properties of this object
2609
+ def update!(**args)
2610
+ @active_version = args[:active_version] if args.key?(:active_version)
2611
+ @ca_certs = args[:ca_certs] if args.key?(:ca_certs)
2612
+ @kind = args[:kind] if args.key?(:kind)
2613
+ @server_certs = args[:server_certs] if args.key?(:server_certs)
2614
+ end
2615
+ end
2616
+
2435
2617
  # Database Instance reencrypt request.
2436
2618
  class InstancesReencryptRequest
2437
2619
  include Google::Apis::Core::Hashable
@@ -2490,6 +2672,25 @@ module Google
2490
2672
  end
2491
2673
  end
2492
2674
 
2675
+ # Rotate Server Certificate request.
2676
+ class InstancesRotateServerCertificateRequest
2677
+ include Google::Apis::Core::Hashable
2678
+
2679
+ # Instance rotate server certificate context.
2680
+ # Corresponds to the JSON property `rotateServerCertificateContext`
2681
+ # @return [Google::Apis::SqladminV1beta4::RotateServerCertificateContext]
2682
+ attr_accessor :rotate_server_certificate_context
2683
+
2684
+ def initialize(**args)
2685
+ update!(**args)
2686
+ end
2687
+
2688
+ # Update properties of this object
2689
+ def update!(**args)
2690
+ @rotate_server_certificate_context = args[:rotate_server_certificate_context] if args.key?(:rotate_server_certificate_context)
2691
+ end
2692
+ end
2693
+
2493
2694
  # Instance truncate log request.
2494
2695
  class InstancesTruncateLogRequest
2495
2696
  include Google::Apis::Core::Hashable
@@ -2567,6 +2768,11 @@ module Google
2567
2768
  attr_accessor :require_ssl
2568
2769
  alias_method :require_ssl?, :require_ssl
2569
2770
 
2771
+ # Specify what type of CA is used for the server certificate.
2772
+ # Corresponds to the JSON property `serverCaMode`
2773
+ # @return [String]
2774
+ attr_accessor :server_ca_mode
2775
+
2570
2776
  # Specify how SSL/TLS is enforced in database connections. If you must use the `
2571
2777
  # require_ssl` flag for backward compatibility, then only the following value
2572
2778
  # pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=
@@ -2597,6 +2803,7 @@ module Google
2597
2803
  @private_network = args[:private_network] if args.key?(:private_network)
2598
2804
  @psc_config = args[:psc_config] if args.key?(:psc_config)
2599
2805
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
2806
+ @server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode)
2600
2807
  @ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
2601
2808
  end
2602
2809
  end
@@ -2867,11 +3074,22 @@ module Google
2867
3074
  # @return [String]
2868
3075
  attr_accessor :password
2869
3076
 
3077
+ # Optional. A list of objects that the user selects for replication from an
3078
+ # external source instance.
3079
+ # Corresponds to the JSON property `selectedObjects`
3080
+ # @return [Array<Google::Apis::SqladminV1beta4::SelectedObjects>]
3081
+ attr_accessor :selected_objects
3082
+
2870
3083
  # Reference to another Cloud SQL instance.
2871
3084
  # Corresponds to the JSON property `sourceInstance`
2872
3085
  # @return [Google::Apis::SqladminV1beta4::InstanceReference]
2873
3086
  attr_accessor :source_instance
2874
3087
 
3088
+ # Optional. SslOption for replica connection to the on-premises source.
3089
+ # Corresponds to the JSON property `sslOption`
3090
+ # @return [String]
3091
+ attr_accessor :ssl_option
3092
+
2875
3093
  # The username for connecting to on-premises instance.
2876
3094
  # Corresponds to the JSON property `username`
2877
3095
  # @return [String]
@@ -2890,7 +3108,9 @@ module Google
2890
3108
  @host_port = args[:host_port] if args.key?(:host_port)
2891
3109
  @kind = args[:kind] if args.key?(:kind)
2892
3110
  @password = args[:password] if args.key?(:password)
3111
+ @selected_objects = args[:selected_objects] if args.key?(:selected_objects)
2893
3112
  @source_instance = args[:source_instance] if args.key?(:source_instance)
3113
+ @ssl_option = args[:ssl_option] if args.key?(:ssl_option)
2894
3114
  @username = args[:username] if args.key?(:username)
2895
3115
  end
2896
3116
  end
@@ -3276,6 +3496,54 @@ module Google
3276
3496
  end
3277
3497
  end
3278
3498
 
3499
+ # Settings for an automatically-setup Private Service Connect consumer endpoint
3500
+ # that is used to connect to a Cloud SQL instance.
3501
+ class PscAutoConnectionConfig
3502
+ include Google::Apis::Core::Hashable
3503
+
3504
+ # The consumer network of this consumer endpoint. This must be a resource path
3505
+ # that includes both the host project and the network name. For example, `
3506
+ # projects/project1/global/networks/network1`. The consumer host project of this
3507
+ # network might be different from the consumer service project.
3508
+ # Corresponds to the JSON property `consumerNetwork`
3509
+ # @return [String]
3510
+ attr_accessor :consumer_network
3511
+
3512
+ # The connection policy status of the consumer network.
3513
+ # Corresponds to the JSON property `consumerNetworkStatus`
3514
+ # @return [String]
3515
+ attr_accessor :consumer_network_status
3516
+
3517
+ # This is the project ID of consumer service project of this consumer endpoint.
3518
+ # Optional. This is only applicable if consumer_network is a shared vpc network.
3519
+ # Corresponds to the JSON property `consumerProject`
3520
+ # @return [String]
3521
+ attr_accessor :consumer_project
3522
+
3523
+ # The IP address of the consumer endpoint.
3524
+ # Corresponds to the JSON property `ipAddress`
3525
+ # @return [String]
3526
+ attr_accessor :ip_address
3527
+
3528
+ # The connection status of the consumer endpoint.
3529
+ # Corresponds to the JSON property `status`
3530
+ # @return [String]
3531
+ attr_accessor :status
3532
+
3533
+ def initialize(**args)
3534
+ update!(**args)
3535
+ end
3536
+
3537
+ # Update properties of this object
3538
+ def update!(**args)
3539
+ @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
3540
+ @consumer_network_status = args[:consumer_network_status] if args.key?(:consumer_network_status)
3541
+ @consumer_project = args[:consumer_project] if args.key?(:consumer_project)
3542
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
3543
+ @status = args[:status] if args.key?(:status)
3544
+ end
3545
+ end
3546
+
3279
3547
  # PSC settings for a Cloud SQL instance.
3280
3548
  class PscConfig
3281
3549
  include Google::Apis::Core::Hashable
@@ -3288,6 +3556,12 @@ module Google
3288
3556
  # @return [Array<String>]
3289
3557
  attr_accessor :allowed_consumer_projects
3290
3558
 
3559
+ # Optional. The list of settings for requested Private Service Connect consumer
3560
+ # endpoints that can be used to connect to this Cloud SQL instance.
3561
+ # Corresponds to the JSON property `pscAutoConnections`
3562
+ # @return [Array<Google::Apis::SqladminV1beta4::PscAutoConnectionConfig>]
3563
+ attr_accessor :psc_auto_connections
3564
+
3291
3565
  # Whether PSC connectivity is enabled for this instance.
3292
3566
  # Corresponds to the JSON property `pscEnabled`
3293
3567
  # @return [Boolean]
@@ -3301,6 +3575,7 @@ module Google
3301
3575
  # Update properties of this object
3302
3576
  def update!(**args)
3303
3577
  @allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects)
3578
+ @psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections)
3304
3579
  @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled)
3305
3580
  end
3306
3581
  end
@@ -3487,6 +3762,53 @@ module Google
3487
3762
  end
3488
3763
  end
3489
3764
 
3765
+ # Instance rotate server certificate context.
3766
+ class RotateServerCertificateContext
3767
+ include Google::Apis::Core::Hashable
3768
+
3769
+ # Optional. This is always `sql#rotateServerCertificateContext`.
3770
+ # Corresponds to the JSON property `kind`
3771
+ # @return [String]
3772
+ attr_accessor :kind
3773
+
3774
+ # Optional. The fingerprint of the next version to be rotated to. If left
3775
+ # unspecified, will be rotated to the most recently added server certificate
3776
+ # version.
3777
+ # Corresponds to the JSON property `nextVersion`
3778
+ # @return [String]
3779
+ attr_accessor :next_version
3780
+
3781
+ def initialize(**args)
3782
+ update!(**args)
3783
+ end
3784
+
3785
+ # Update properties of this object
3786
+ def update!(**args)
3787
+ @kind = args[:kind] if args.key?(:kind)
3788
+ @next_version = args[:next_version] if args.key?(:next_version)
3789
+ end
3790
+ end
3791
+
3792
+ # A list of objects that the user selects for replication from an external
3793
+ # source instance.
3794
+ class SelectedObjects
3795
+ include Google::Apis::Core::Hashable
3796
+
3797
+ # Required. The name of the database to migrate.
3798
+ # Corresponds to the JSON property `database`
3799
+ # @return [String]
3800
+ attr_accessor :database
3801
+
3802
+ def initialize(**args)
3803
+ update!(**args)
3804
+ end
3805
+
3806
+ # Update properties of this object
3807
+ def update!(**args)
3808
+ @database = args[:database] if args.key?(:database)
3809
+ end
3810
+ end
3811
+
3490
3812
  # Database instance settings.
3491
3813
  class Settings
3492
3814
  include Google::Apis::Core::Hashable
@@ -3993,6 +4315,12 @@ module Google
3993
4315
  # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
3994
4316
  attr_accessor :mysql_sync_config
3995
4317
 
4318
+ # Optional. Migrate only the specified objects from the source instance. If this
4319
+ # field is empty, then migrate all objects.
4320
+ # Corresponds to the JSON property `selectedObjects`
4321
+ # @return [Array<Google::Apis::SqladminV1beta4::ExternalSyncSelectedObject>]
4322
+ attr_accessor :selected_objects
4323
+
3996
4324
  # External sync mode
3997
4325
  # Corresponds to the JSON property `syncMode`
3998
4326
  # @return [String]
@@ -4023,6 +4351,7 @@ module Google
4023
4351
  def update!(**args)
4024
4352
  @migration_type = args[:migration_type] if args.key?(:migration_type)
4025
4353
  @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
4354
+ @selected_objects = args[:selected_objects] if args.key?(:selected_objects)
4026
4355
  @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
4027
4356
  @sync_parallel_level = args[:sync_parallel_level] if args.key?(:sync_parallel_level)
4028
4357
  @verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
@@ -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.73.0"
19
+ GEM_VERSION = "0.75.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240618"
25
+ REVISION = "20241108"
26
26
  end
27
27
  end
28
28
  end
@@ -213,6 +213,12 @@ module Google
213
213
 
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
+
217
+ class PostgresExportOptions
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
216
222
 
217
223
  include Google::Apis::Core::JsonObjectSupport
218
224
  end
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class ExternalSyncSelectedObject
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class FailoverContext
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -279,6 +291,12 @@ module Google
279
291
 
280
292
  class SqlImportOptions
281
293
  class Representation < Google::Apis::Core::JsonRepresentation; end
294
+
295
+ class PostgresImportOptions
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
282
300
 
283
301
  include Google::Apis::Core::JsonObjectSupport
284
302
  end
@@ -352,6 +370,12 @@ module Google
352
370
  include Google::Apis::Core::JsonObjectSupport
353
371
  end
354
372
 
373
+ class InstancesListServerCertificatesResponse
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
355
379
  class InstancesReencryptRequest
356
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
381
 
@@ -370,6 +394,12 @@ module Google
370
394
  include Google::Apis::Core::JsonObjectSupport
371
395
  end
372
396
 
397
+ class InstancesRotateServerCertificateRequest
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
373
403
  class InstancesTruncateLogRequest
374
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
405
 
@@ -466,6 +496,12 @@ module Google
466
496
  include Google::Apis::Core::JsonObjectSupport
467
497
  end
468
498
 
499
+ class PscAutoConnectionConfig
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
469
505
  class PscConfig
470
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
507
 
@@ -502,6 +538,18 @@ module Google
502
538
  include Google::Apis::Core::JsonObjectSupport
503
539
  end
504
540
 
541
+ class RotateServerCertificateContext
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
547
+ class SelectedObjects
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
505
553
  class Settings
506
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
555
 
@@ -785,6 +833,7 @@ module Google
785
833
  property :instance, as: 'instance'
786
834
  property :kind, as: 'kind'
787
835
  property :location, as: 'location'
836
+ property :max_chargeable_bytes, :numeric_string => true, as: 'maxChargeableBytes'
788
837
  property :self_link, as: 'selfLink'
789
838
  property :start_time, as: 'startTime'
790
839
  property :status, as: 'status'
@@ -824,6 +873,7 @@ module Google
824
873
  property :kind, as: 'kind'
825
874
  property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs'
826
875
  property :point_in_time, as: 'pointInTime'
876
+ property :preferred_secondary_zone, as: 'preferredSecondaryZone'
827
877
  property :preferred_zone, as: 'preferredZone'
828
878
  end
829
879
  end
@@ -841,6 +891,7 @@ module Google
841
891
  property :region, as: 'region'
842
892
  property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
843
893
 
894
+ property :server_ca_mode, as: 'serverCaMode'
844
895
  end
845
896
  end
846
897
 
@@ -919,6 +970,7 @@ module Google
919
970
  property :replication_cluster, as: 'replicationCluster', class: Google::Apis::SqladminV1beta4::ReplicationCluster, decorator: Google::Apis::SqladminV1beta4::ReplicationCluster::Representation
920
971
 
921
972
  property :root_password, as: 'rootPassword'
973
+ property :satisfies_pzi, as: 'satisfiesPzi'
922
974
  property :satisfies_pzs, as: 'satisfiesPzs'
923
975
  property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance::Representation
924
976
 
@@ -932,6 +984,7 @@ module Google
932
984
  property :sql_network_architecture, as: 'sqlNetworkArchitecture'
933
985
  property :state, as: 'state'
934
986
  collection :suspension_reason, as: 'suspensionReason'
987
+ property :switch_transaction_logs_to_cloud_storage_enabled, as: 'switchTransactionLogsToCloudStorageEnabled'
935
988
  collection :upgradable_database_versions, as: 'upgradableDatabaseVersions', class: Google::Apis::SqladminV1beta4::AvailableDatabaseVersion, decorator: Google::Apis::SqladminV1beta4::AvailableDatabaseVersion::Representation
936
989
 
937
990
  property :write_endpoint, as: 'writeEndpoint'
@@ -1049,6 +1102,8 @@ module Google
1049
1102
  property :bak_type, as: 'bakType'
1050
1103
  property :copy_only, as: 'copyOnly'
1051
1104
  property :differential_base, as: 'differentialBase'
1105
+ property :export_log_end_time, as: 'exportLogEndTime'
1106
+ property :export_log_start_time, as: 'exportLogStartTime'
1052
1107
  property :stripe_count, as: 'stripeCount'
1053
1108
  property :striped, as: 'striped'
1054
1109
  end
@@ -1071,6 +1126,8 @@ module Google
1071
1126
  property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation
1072
1127
 
1073
1128
  property :parallel, as: 'parallel'
1129
+ property :postgres_export_options, as: 'postgresExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions::Representation
1130
+
1074
1131
  property :schema_only, as: 'schemaOnly'
1075
1132
  collection :tables, as: 'tables'
1076
1133
  property :threads, as: 'threads'
@@ -1082,6 +1139,21 @@ module Google
1082
1139
  property :master_data, as: 'masterData'
1083
1140
  end
1084
1141
  end
1142
+
1143
+ class PostgresExportOptions
1144
+ # @private
1145
+ class Representation < Google::Apis::Core::JsonRepresentation
1146
+ property :clean, as: 'clean'
1147
+ property :if_exists, as: 'ifExists'
1148
+ end
1149
+ end
1150
+ end
1151
+ end
1152
+
1153
+ class ExternalSyncSelectedObject
1154
+ # @private
1155
+ class Representation < Google::Apis::Core::JsonRepresentation
1156
+ property :database, as: 'database'
1085
1157
  end
1086
1158
  end
1087
1159
 
@@ -1203,8 +1275,18 @@ module Google
1203
1275
  # @private
1204
1276
  class Representation < Google::Apis::Core::JsonRepresentation
1205
1277
  property :parallel, as: 'parallel'
1278
+ property :postgres_import_options, as: 'postgresImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions::Representation
1279
+
1206
1280
  property :threads, as: 'threads'
1207
1281
  end
1282
+
1283
+ class PostgresImportOptions
1284
+ # @private
1285
+ class Representation < Google::Apis::Core::JsonRepresentation
1286
+ property :clean, as: 'clean'
1287
+ property :if_exists, as: 'ifExists'
1288
+ end
1289
+ end
1208
1290
  end
1209
1291
  end
1210
1292
 
@@ -1306,6 +1388,18 @@ module Google
1306
1388
  end
1307
1389
  end
1308
1390
 
1391
+ class InstancesListServerCertificatesResponse
1392
+ # @private
1393
+ class Representation < Google::Apis::Core::JsonRepresentation
1394
+ property :active_version, as: 'activeVersion'
1395
+ collection :ca_certs, as: 'caCerts', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
1396
+
1397
+ property :kind, as: 'kind'
1398
+ collection :server_certs, as: 'serverCerts', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
1399
+
1400
+ end
1401
+ end
1402
+
1309
1403
  class InstancesReencryptRequest
1310
1404
  # @private
1311
1405
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1330,6 +1424,14 @@ module Google
1330
1424
  end
1331
1425
  end
1332
1426
 
1427
+ class InstancesRotateServerCertificateRequest
1428
+ # @private
1429
+ class Representation < Google::Apis::Core::JsonRepresentation
1430
+ property :rotate_server_certificate_context, as: 'rotateServerCertificateContext', class: Google::Apis::SqladminV1beta4::RotateServerCertificateContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCertificateContext::Representation
1431
+
1432
+ end
1433
+ end
1434
+
1333
1435
  class InstancesTruncateLogRequest
1334
1436
  # @private
1335
1437
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1350,6 +1452,7 @@ module Google
1350
1452
  property :psc_config, as: 'pscConfig', class: Google::Apis::SqladminV1beta4::PscConfig, decorator: Google::Apis::SqladminV1beta4::PscConfig::Representation
1351
1453
 
1352
1454
  property :require_ssl, as: 'requireSsl'
1455
+ property :server_ca_mode, as: 'serverCaMode'
1353
1456
  property :ssl_mode, as: 'sslMode'
1354
1457
  end
1355
1458
  end
@@ -1418,8 +1521,11 @@ module Google
1418
1521
  property :host_port, as: 'hostPort'
1419
1522
  property :kind, as: 'kind'
1420
1523
  property :password, as: 'password'
1524
+ collection :selected_objects, as: 'selectedObjects', class: Google::Apis::SqladminV1beta4::SelectedObjects, decorator: Google::Apis::SqladminV1beta4::SelectedObjects::Representation
1525
+
1421
1526
  property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation
1422
1527
 
1528
+ property :ssl_option, as: 'sslOption'
1423
1529
  property :username, as: 'username'
1424
1530
  end
1425
1531
  end
@@ -1523,10 +1629,23 @@ module Google
1523
1629
  end
1524
1630
  end
1525
1631
 
1632
+ class PscAutoConnectionConfig
1633
+ # @private
1634
+ class Representation < Google::Apis::Core::JsonRepresentation
1635
+ property :consumer_network, as: 'consumerNetwork'
1636
+ property :consumer_network_status, as: 'consumerNetworkStatus'
1637
+ property :consumer_project, as: 'consumerProject'
1638
+ property :ip_address, as: 'ipAddress'
1639
+ property :status, as: 'status'
1640
+ end
1641
+ end
1642
+
1526
1643
  class PscConfig
1527
1644
  # @private
1528
1645
  class Representation < Google::Apis::Core::JsonRepresentation
1529
1646
  collection :allowed_consumer_projects, as: 'allowedConsumerProjects'
1647
+ collection :psc_auto_connections, as: 'pscAutoConnections', class: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig, decorator: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig::Representation
1648
+
1530
1649
  property :psc_enabled, as: 'pscEnabled'
1531
1650
  end
1532
1651
  end
@@ -1577,6 +1696,21 @@ module Google
1577
1696
  end
1578
1697
  end
1579
1698
 
1699
+ class RotateServerCertificateContext
1700
+ # @private
1701
+ class Representation < Google::Apis::Core::JsonRepresentation
1702
+ property :kind, as: 'kind'
1703
+ property :next_version, as: 'nextVersion'
1704
+ end
1705
+ end
1706
+
1707
+ class SelectedObjects
1708
+ # @private
1709
+ class Representation < Google::Apis::Core::JsonRepresentation
1710
+ property :database, as: 'database'
1711
+ end
1712
+ end
1713
+
1580
1714
  class Settings
1581
1715
  # @private
1582
1716
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1709,6 +1843,8 @@ module Google
1709
1843
  property :migration_type, as: 'migrationType'
1710
1844
  property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
1711
1845
 
1846
+ collection :selected_objects, as: 'selectedObjects', class: Google::Apis::SqladminV1beta4::ExternalSyncSelectedObject, decorator: Google::Apis::SqladminV1beta4::ExternalSyncSelectedObject::Representation
1847
+
1712
1848
  property :sync_mode, as: 'syncMode'
1713
1849
  property :sync_parallel_level, as: 'syncParallelLevel'
1714
1850
  property :verify_connection_only, as: 'verifyConnectionOnly'
@@ -531,6 +531,82 @@ module Google
531
531
  execute_or_queue_command(command, &block)
532
532
  end
533
533
 
534
+ # Lists all versions of server certificates and certificate authorities (CAs)
535
+ # for the specified instance. There can be up to three sets of certs listed: the
536
+ # certificate that is currently in use, a future that has been added but not yet
537
+ # used to sign a certificate, and a certificate that has been rotated out. For
538
+ # instances not using Certificate Authority Service (CAS) server CA, use
539
+ # ListServerCas instead.
540
+ # @param [String] project
541
+ # Required. Project ID of the project that contains the instance.
542
+ # @param [String] instance
543
+ # Required. Cloud SQL instance ID. This does not include the project ID.
544
+ # @param [String] fields
545
+ # Selector specifying which fields to include in a partial response.
546
+ # @param [String] quota_user
547
+ # Available to use for quota purposes for server-side applications. Can be any
548
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
549
+ # @param [Google::Apis::RequestOptions] options
550
+ # Request-specific options
551
+ #
552
+ # @yield [result, err] Result & error if block supplied
553
+ # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse] parsed result object
554
+ # @yieldparam err [StandardError] error object if request failed
555
+ #
556
+ # @return [Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse]
557
+ #
558
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
561
+ def list_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block)
562
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCertificates', options)
563
+ command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse::Representation
564
+ command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse
565
+ command.params['project'] = project unless project.nil?
566
+ command.params['instance'] = instance unless instance.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
572
+ # Rotates the server certificate version to one previously added with the
573
+ # addServerCertificate method. For instances not using Certificate Authority
574
+ # Service (CAS) server CA, use RotateServerCa instead.
575
+ # @param [String] project
576
+ # Required. Project ID of the project that contains the instance.
577
+ # @param [String] instance
578
+ # Required. Cloud SQL instance ID. This does not include the project ID.
579
+ # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCertificateRequest] instances_rotate_server_certificate_request_object
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [String] quota_user
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::SqladminV1beta4::Operation]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
598
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate', options)
599
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCertificateRequest::Representation
600
+ command.request_object = instances_rotate_server_certificate_request_object
601
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
602
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
603
+ command.params['project'] = project unless project.nil?
604
+ command.params['instance'] = instance unless instance.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ execute_or_queue_command(command, &block)
608
+ end
609
+
534
610
  # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
535
611
  # @param [String] project
536
612
  # Required. ID of the project that contains the instance (Example: project-id).
@@ -573,7 +649,8 @@ module Google
573
649
  # instance. Required to prepare for a certificate rotation. If a CA version was
574
650
  # previously added but never used in a certificate rotation, this operation
575
651
  # replaces that version. There cannot be more than one CA version waiting to be
576
- # rotated in.
652
+ # rotated in. For instances that have enabled Certificate Authority Service (CAS)
653
+ # based server CA, use AddServerCertificate to add a new server certificate.
577
654
  # @param [String] project
578
655
  # Project ID of the project that contains the instance.
579
656
  # @param [String] instance
@@ -606,6 +683,44 @@ module Google
606
683
  execute_or_queue_command(command, &block)
607
684
  end
608
685
 
686
+ # Add a new trusted server certificate version for the specified instance using
687
+ # Certificate Authority Service (CAS) server CA. Required to prepare for a
688
+ # certificate rotation. If a server certificate version was previously added but
689
+ # never used in a certificate rotation, this operation replaces that version.
690
+ # There cannot be more than one certificate version waiting to be rotated in.
691
+ # For instances not using CAS server CA, use AddServerCa instead.
692
+ # @param [String] project
693
+ # Required. Project ID of the project that contains the instance.
694
+ # @param [String] instance
695
+ # Required. Cloud SQL instance ID. This does not include the project ID.
696
+ # @param [String] fields
697
+ # Selector specifying which fields to include in a partial response.
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [Google::Apis::RequestOptions] options
702
+ # Request-specific options
703
+ #
704
+ # @yield [result, err] Result & error if block supplied
705
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
706
+ # @yieldparam err [StandardError] error object if request failed
707
+ #
708
+ # @return [Google::Apis::SqladminV1beta4::Operation]
709
+ #
710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
713
+ def add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block)
714
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCertificate', options)
715
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
716
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
717
+ command.params['project'] = project unless project.nil?
718
+ command.params['instance'] = instance unless instance.nil?
719
+ command.query['fields'] = fields unless fields.nil?
720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
721
+ execute_or_queue_command(command, &block)
722
+ end
723
+
609
724
  # Creates a Cloud SQL instance as a clone of the source instance. Using this
610
725
  # operation might cause your instance to restart.
611
726
  # @param [String] project
@@ -1274,7 +1389,9 @@ module Google
1274
1389
  end
1275
1390
 
1276
1391
  # Rotates the server certificate to one signed by the Certificate Authority (CA)
1277
- # version previously added with the addServerCA method.
1392
+ # version previously added with the addServerCA method. For instances that have
1393
+ # enabled Certificate Authority Service (CAS) based server CA, use
1394
+ # RotateServerCertificate to rotate the server certificate.
1278
1395
  # @param [String] project
1279
1396
  # Project ID of the project that contains the instance.
1280
1397
  # @param [String] instance
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.0
4
+ version: 0.75.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.73.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.75.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud SQL Admin API V1beta4