@googleapis/sqladmin 15.0.0 → 16.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [16.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v16.0.0...sqladmin-v16.1.0) (2024-05-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * **sqladmin:** update the API ([7cc6d5e](https://github.com/googleapis/google-api-nodejs-client/commit/7cc6d5e1283e44228e54acf2bdb10bbe5436996c))
9
+
10
+ ## [16.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v15.0.0...sqladmin-v16.0.0) (2024-04-04)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * This release has breaking changes.
16
+ * This release has breaking changes.
17
+
18
+ ### Features
19
+
20
+ * run the generator ([#3434](https://github.com/googleapis/google-api-nodejs-client/issues/3434)) ([f0db524](https://github.com/googleapis/google-api-nodejs-client/commit/f0db524bb26f05cea3dec4c0ed66b496399e3857))
21
+ * run the generator ([#3456](https://github.com/googleapis/google-api-nodejs-client/issues/3456)) ([a865e81](https://github.com/googleapis/google-api-nodejs-client/commit/a865e81539b315d3b321650663ba0b2555b1e5a1))
22
+ * **sqladmin:** update the API ([f17c99a](https://github.com/googleapis/google-api-nodejs-client/commit/f17c99aed62a4d186e4d56756b9fa24b038552e8))
23
+ * **sqladmin:** update the API ([a80b25a](https://github.com/googleapis/google-api-nodejs-client/commit/a80b25a55667abdc7afeca561b5744ddd55eca3b))
24
+ * **sqladmin:** update the API ([dcc2567](https://github.com/googleapis/google-api-nodejs-client/commit/dcc2567d656c302e16214032a55317b4512362b7))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * **sqladmin:** update the API ([de59e8d](https://github.com/googleapis/google-api-nodejs-client/commit/de59e8dd225ab7cf53698a47b6c5dac578749292))
30
+
3
31
  ## [15.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v14.1.0...sqladmin-v15.0.0) (2024-03-12)
4
32
 
5
33
 
package/build/v1.d.ts CHANGED
@@ -101,6 +101,27 @@ export declare namespace sqladmin_v1 {
101
101
  */
102
102
  value?: string | null;
103
103
  }
104
+ /**
105
+ * Acquire SSRS lease context.
106
+ */
107
+ export interface Schema$AcquireSsrsLeaseContext {
108
+ /**
109
+ * Lease duration needed for SSRS setup.
110
+ */
111
+ duration?: string | null;
112
+ /**
113
+ * The report database to be used for SSRS setup.
114
+ */
115
+ reportDatabase?: string | null;
116
+ /**
117
+ * The username to be used as the service login to connect to the report database for SSRS setup.
118
+ */
119
+ serviceLogin?: string | null;
120
+ /**
121
+ * The username to be used as the setup login to connect to the database server for SSRS setup.
122
+ */
123
+ setupLogin?: string | null;
124
+ }
104
125
  /**
105
126
  * Specifies options for controlling advanced machine features.
106
127
  */
@@ -163,6 +184,10 @@ export declare namespace sqladmin_v1 {
163
184
  * Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
164
185
  */
165
186
  startTime?: string | null;
187
+ /**
188
+ * Output only. This value contains the storage location of transactional logs for the database for point-in-time recovery.
189
+ */
190
+ transactionalLogStorageState?: string | null;
166
191
  /**
167
192
  * The number of days of transaction logs we retain for point in time restore, from 1-7.
168
193
  */
@@ -498,6 +523,10 @@ export declare namespace sqladmin_v1 {
498
523
  * The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
499
524
  */
500
525
  gceZone?: string | null;
526
+ /**
527
+ * Gemini configuration.
528
+ */
529
+ geminiConfig?: Schema$GeminiInstanceConfig;
501
530
  /**
502
531
  * The instance type.
503
532
  */
@@ -562,6 +591,10 @@ export declare namespace sqladmin_v1 {
562
591
  * The replicas of the instance.
563
592
  */
564
593
  replicaNames?: string[] | null;
594
+ /**
595
+ * Optional. The pair of a primary instance and disaster recovery (DR) replica. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance has regional failure.
596
+ */
597
+ replicationCluster?: Schema$ReplicationCluster;
565
598
  /**
566
599
  * Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
567
600
  */
@@ -886,6 +919,35 @@ export declare namespace sqladmin_v1 {
886
919
  */
887
920
  kind?: string | null;
888
921
  }
922
+ /**
923
+ * Gemini configuration.
924
+ */
925
+ export interface Schema$GeminiInstanceConfig {
926
+ /**
927
+ * Output only. Whether active query is enabled.
928
+ */
929
+ activeQueryEnabled?: boolean | null;
930
+ /**
931
+ * Output only. Whether gemini is enabled.
932
+ */
933
+ entitled?: boolean | null;
934
+ /**
935
+ * Output only. Whether flag recommender is enabled.
936
+ */
937
+ flagRecommenderEnabled?: boolean | null;
938
+ /**
939
+ * Output only. Whether vacuum management is enabled.
940
+ */
941
+ googleVacuumMgmtEnabled?: boolean | null;
942
+ /**
943
+ * Output only. Whether index advisor is enabled.
944
+ */
945
+ indexAdvisorEnabled?: boolean | null;
946
+ /**
947
+ * Output only. Whether oom session cancel is enabled.
948
+ */
949
+ oomSessionCancelEnabled?: boolean | null;
950
+ }
889
951
  /**
890
952
  * Ephemeral certificate creation request.
891
953
  */
@@ -963,6 +1025,13 @@ export declare namespace sqladmin_v1 {
963
1025
  * This is always `sql#importContext`.
964
1026
  */
965
1027
  kind?: string | null;
1028
+ /**
1029
+ * Optional. Options for importing data from SQL statements.
1030
+ */
1031
+ sqlImportOptions?: {
1032
+ parallel?: boolean;
1033
+ threads?: number;
1034
+ } | null;
966
1035
  /**
967
1036
  * Path to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
968
1037
  */
@@ -1010,6 +1079,15 @@ export declare namespace sqladmin_v1 {
1010
1079
  */
1011
1080
  region?: string | null;
1012
1081
  }
1082
+ /**
1083
+ * Request to acquire a lease for SSRS.
1084
+ */
1085
+ export interface Schema$InstancesAcquireSsrsLeaseRequest {
1086
+ /**
1087
+ * Contains details about the acquire SSRS lease operation.
1088
+ */
1089
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1090
+ }
1013
1091
  /**
1014
1092
  * Database instance clone request.
1015
1093
  */
@@ -1164,11 +1242,11 @@ export declare namespace sqladmin_v1 {
1164
1242
  */
1165
1243
  pscConfig?: Schema$PscConfig;
1166
1244
  /**
1167
- * Use `ssl_mode` instead for MySQL and PostgreSQL. SQL Server uses this flag. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
1245
+ * Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
1168
1246
  */
1169
1247
  requireSsl?: boolean | null;
1170
1248
  /**
1171
- * Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`.
1249
+ * Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections.
1172
1250
  */
1173
1251
  sslMode?: string | null;
1174
1252
  }
@@ -1334,6 +1412,10 @@ export declare namespace sqladmin_v1 {
1334
1412
  * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1335
1413
  */
1336
1414
  export interface Schema$Operation {
1415
+ /**
1416
+ * The context for acquire SSRS lease operation, if applicable.
1417
+ */
1418
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1337
1419
  /**
1338
1420
  * An Admin API warning message.
1339
1421
  */
@@ -1569,6 +1651,19 @@ export declare namespace sqladmin_v1 {
1569
1651
  */
1570
1652
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1571
1653
  }
1654
+ /**
1655
+ * Primary-DR replica pair
1656
+ */
1657
+ export interface Schema$ReplicationCluster {
1658
+ /**
1659
+ * Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.
1660
+ */
1661
+ drReplica?: boolean | null;
1662
+ /**
1663
+ * Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Users can set this field to set a designated DR replica for a primary. Removing this field removes the DR replica.
1664
+ */
1665
+ failoverDrReplicaName?: string | null;
1666
+ }
1572
1667
  export interface Schema$Reschedule {
1573
1668
  /**
1574
1669
  * Required. The type of the reschedule.
@@ -1685,6 +1780,10 @@ export declare namespace sqladmin_v1 {
1685
1780
  * Optional. The edition of the instance.
1686
1781
  */
1687
1782
  edition?: string | null;
1783
+ /**
1784
+ * Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.
1785
+ */
1786
+ enableGoogleMlIntegration?: boolean | null;
1688
1787
  /**
1689
1788
  * Insights configuration, for now relevant only for Postgres.
1690
1789
  */
@@ -1778,6 +1877,15 @@ export declare namespace sqladmin_v1 {
1778
1877
  */
1779
1878
  type?: string | null;
1780
1879
  }
1880
+ /**
1881
+ * Response for the acquire SSRS lease request.
1882
+ */
1883
+ export interface Schema$SqlInstancesAcquireSsrsLeaseResponse {
1884
+ /**
1885
+ * The unique identifier for this operation.
1886
+ */
1887
+ operationId?: string | null;
1888
+ }
1781
1889
  /**
1782
1890
  * Instance get disk shrink config response.
1783
1891
  */
@@ -1808,6 +1916,15 @@ export declare namespace sqladmin_v1 {
1808
1916
  */
1809
1917
  latestRecoveryTime?: string | null;
1810
1918
  }
1919
+ /**
1920
+ * Response for the release SSRS lease request.
1921
+ */
1922
+ export interface Schema$SqlInstancesReleaseSsrsLeaseResponse {
1923
+ /**
1924
+ * The unique identifier for this operation.
1925
+ */
1926
+ operationId?: string | null;
1927
+ }
1811
1928
  /**
1812
1929
  * Reschedule options for maintenance windows.
1813
1930
  */
@@ -1826,6 +1943,10 @@ export declare namespace sqladmin_v1 {
1826
1943
  * Instance start external sync request.
1827
1944
  */
1828
1945
  export interface Schema$SqlInstancesStartExternalSyncRequest {
1946
+ /**
1947
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration.
1948
+ */
1949
+ migrationType?: string | null;
1829
1950
  /**
1830
1951
  * MySQL-specific settings for start external sync.
1831
1952
  */
@@ -1847,6 +1968,10 @@ export declare namespace sqladmin_v1 {
1847
1968
  * Instance verify external sync settings request.
1848
1969
  */
1849
1970
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
1971
+ /**
1972
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration
1973
+ */
1974
+ migrationType?: string | null;
1850
1975
  /**
1851
1976
  * Optional. MySQL-specific settings for start external sync.
1852
1977
  */
@@ -1855,6 +1980,10 @@ export declare namespace sqladmin_v1 {
1855
1980
  * External sync mode
1856
1981
  */
1857
1982
  syncMode?: string | null;
1983
+ /**
1984
+ * Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.
1985
+ */
1986
+ syncParallelLevel?: string | null;
1858
1987
  /**
1859
1988
  * Flag to enable verifying connection only
1860
1989
  */
@@ -2604,6 +2733,20 @@ export declare namespace sqladmin_v1 {
2604
2733
  export class Resource$Instances {
2605
2734
  context: APIRequestContext;
2606
2735
  constructor(context: APIRequestContext);
2736
+ /**
2737
+ * Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
2738
+ *
2739
+ * @param params - Parameters for request
2740
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2741
+ * @param callback - Optional callback that handles the response.
2742
+ * @returns A promise if used with async/await, or void if used with a callback.
2743
+ */
2744
+ acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, options: StreamMethodOptions): GaxiosPromise<Readable>;
2745
+ acquireSsrsLease(params?: Params$Resource$Instances$Acquiressrslease, options?: MethodOptions): GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>;
2746
+ acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2747
+ acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>, callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
2748
+ acquireSsrsLease(params: Params$Resource$Instances$Acquiressrslease, callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
2749
+ acquireSsrsLease(callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>): void;
2607
2750
  /**
2608
2751
  * Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
2609
2752
  *
@@ -2814,6 +2957,20 @@ export declare namespace sqladmin_v1 {
2814
2957
  reencrypt(params: Params$Resource$Instances$Reencrypt, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2815
2958
  reencrypt(params: Params$Resource$Instances$Reencrypt, callback: BodyResponseCallback<Schema$Operation>): void;
2816
2959
  reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
2960
+ /**
2961
+ * Release a lease for the setup of SQL Server Reporting Services (SSRS).
2962
+ *
2963
+ * @param params - Parameters for request
2964
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2965
+ * @param callback - Optional callback that handles the response.
2966
+ * @returns A promise if used with async/await, or void if used with a callback.
2967
+ */
2968
+ releaseSsrsLease(params: Params$Resource$Instances$Releasessrslease, options: StreamMethodOptions): GaxiosPromise<Readable>;
2969
+ releaseSsrsLease(params?: Params$Resource$Instances$Releasessrslease, options?: MethodOptions): GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>;
2970
+ releaseSsrsLease(params: Params$Resource$Instances$Releasessrslease, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2971
+ releaseSsrsLease(params: Params$Resource$Instances$Releasessrslease, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>, callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>): void;
2972
+ releaseSsrsLease(params: Params$Resource$Instances$Releasessrslease, callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>): void;
2973
+ releaseSsrsLease(callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>): void;
2817
2974
  /**
2818
2975
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
2819
2976
  *
@@ -2941,6 +3098,20 @@ export declare namespace sqladmin_v1 {
2941
3098
  update(params: Params$Resource$Instances$Update, callback: BodyResponseCallback<Schema$Operation>): void;
2942
3099
  update(callback: BodyResponseCallback<Schema$Operation>): void;
2943
3100
  }
3101
+ export interface Params$Resource$Instances$Acquiressrslease extends StandardParameters {
3102
+ /**
3103
+ * Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
3104
+ */
3105
+ instance?: string;
3106
+ /**
3107
+ * Required. Project ID of the project that contains the instance (Example: project-id).
3108
+ */
3109
+ project?: string;
3110
+ /**
3111
+ * Request body metadata
3112
+ */
3113
+ requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
3114
+ }
2944
3115
  export interface Params$Resource$Instances$Addserverca extends StandardParameters {
2945
3116
  /**
2946
3117
  * Cloud SQL instance ID. This does not include the project ID.
@@ -3135,6 +3306,16 @@ export declare namespace sqladmin_v1 {
3135
3306
  */
3136
3307
  requestBody?: Schema$InstancesReencryptRequest;
3137
3308
  }
3309
+ export interface Params$Resource$Instances$Releasessrslease extends StandardParameters {
3310
+ /**
3311
+ * Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
3312
+ */
3313
+ instance?: string;
3314
+ /**
3315
+ * Required. The project ID that contains the instance.
3316
+ */
3317
+ project?: string;
3318
+ }
3138
3319
  export interface Params$Resource$Instances$Resetsslconfig extends StandardParameters {
3139
3320
  /**
3140
3321
  * Cloud SQL instance ID. This does not include the project ID.