@googleapis/sqladmin 14.1.0 → 16.0.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/v1.ts CHANGED
@@ -163,6 +163,27 @@ export namespace sqladmin_v1 {
163
163
  */
164
164
  value?: string | null;
165
165
  }
166
+ /**
167
+ * Acquire SSRS lease context.
168
+ */
169
+ export interface Schema$AcquireSsrsLeaseContext {
170
+ /**
171
+ * Lease duration needed for SSRS setup.
172
+ */
173
+ duration?: string | null;
174
+ /**
175
+ * The report database to be used for SSRS setup.
176
+ */
177
+ reportDatabase?: string | null;
178
+ /**
179
+ * The username to be used as the service login to connect to the report database for SSRS setup.
180
+ */
181
+ serviceLogin?: string | null;
182
+ /**
183
+ * The username to be used as the setup login to connect to the database server for SSRS setup.
184
+ */
185
+ setupLogin?: string | null;
186
+ }
166
187
  /**
167
188
  * Specifies options for controlling advanced machine features.
168
189
  */
@@ -225,6 +246,10 @@ export namespace sqladmin_v1 {
225
246
  * Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
226
247
  */
227
248
  startTime?: string | null;
249
+ /**
250
+ * Output only. This value contains the storage location of transactional logs for the database for point-in-time recovery.
251
+ */
252
+ transactionalLogStorageState?: string | null;
228
253
  /**
229
254
  * The number of days of transaction logs we retain for point in time restore, from 1-7.
230
255
  */
@@ -557,6 +582,10 @@ export namespace sqladmin_v1 {
557
582
  * 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.
558
583
  */
559
584
  gceZone?: string | null;
585
+ /**
586
+ * Gemini configuration.
587
+ */
588
+ geminiConfig?: Schema$GeminiInstanceConfig;
560
589
  /**
561
590
  * The instance type.
562
591
  */
@@ -610,7 +639,7 @@ export namespace sqladmin_v1 {
610
639
  */
611
640
  pscServiceAttachmentLink?: string | null;
612
641
  /**
613
- * The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation.
642
+ * The geographical region of the Cloud SQL instance. It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
614
643
  */
615
644
  region?: string | null;
616
645
  /**
@@ -621,6 +650,10 @@ export namespace sqladmin_v1 {
621
650
  * The replicas of the instance.
622
651
  */
623
652
  replicaNames?: string[] | null;
653
+ /**
654
+ * 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.
655
+ */
656
+ replicationCluster?: Schema$ReplicationCluster;
624
657
  /**
625
658
  * Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
626
659
  */
@@ -942,6 +975,35 @@ export namespace sqladmin_v1 {
942
975
  */
943
976
  kind?: string | null;
944
977
  }
978
+ /**
979
+ * Gemini configuration.
980
+ */
981
+ export interface Schema$GeminiInstanceConfig {
982
+ /**
983
+ * Output only. Whether active query is enabled.
984
+ */
985
+ activeQueryEnabled?: boolean | null;
986
+ /**
987
+ * Output only. Whether gemini is enabled.
988
+ */
989
+ entitled?: boolean | null;
990
+ /**
991
+ * Output only. Whether flag recommender is enabled.
992
+ */
993
+ flagRecommenderEnabled?: boolean | null;
994
+ /**
995
+ * Output only. Whether vacuum management is enabled.
996
+ */
997
+ googleVacuumMgmtEnabled?: boolean | null;
998
+ /**
999
+ * Output only. Whether index advisor is enabled.
1000
+ */
1001
+ indexAdvisorEnabled?: boolean | null;
1002
+ /**
1003
+ * Output only. Whether oom session cancel is enabled.
1004
+ */
1005
+ oomSessionCancelEnabled?: boolean | null;
1006
+ }
945
1007
  /**
946
1008
  * Ephemeral certificate creation request.
947
1009
  */
@@ -1066,6 +1128,15 @@ export namespace sqladmin_v1 {
1066
1128
  */
1067
1129
  region?: string | null;
1068
1130
  }
1131
+ /**
1132
+ * Request to acquire a lease for SSRS.
1133
+ */
1134
+ export interface Schema$InstancesAcquireSsrsLeaseRequest {
1135
+ /**
1136
+ * Contains details about the acquire SSRS lease operation.
1137
+ */
1138
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1139
+ }
1069
1140
  /**
1070
1141
  * Database instance clone request.
1071
1142
  */
@@ -1390,6 +1461,10 @@ export namespace sqladmin_v1 {
1390
1461
  * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1391
1462
  */
1392
1463
  export interface Schema$Operation {
1464
+ /**
1465
+ * The context for acquire SSRS lease operation, if applicable.
1466
+ */
1467
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1393
1468
  /**
1394
1469
  * An Admin API warning message.
1395
1470
  */
@@ -1558,7 +1633,7 @@ export namespace sqladmin_v1 {
1558
1633
  */
1559
1634
  complexity?: string | null;
1560
1635
  /**
1561
- * Disallow credentials that have been previously compromised by a public data breach.
1636
+ * This field is deprecated and will be removed in a future version of the API.
1562
1637
  */
1563
1638
  disallowCompromisedCredentials?: boolean | null;
1564
1639
  /**
@@ -1625,6 +1700,19 @@ export namespace sqladmin_v1 {
1625
1700
  */
1626
1701
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1627
1702
  }
1703
+ /**
1704
+ * Primary-DR replica pair
1705
+ */
1706
+ export interface Schema$ReplicationCluster {
1707
+ /**
1708
+ * Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.
1709
+ */
1710
+ drReplica?: boolean | null;
1711
+ /**
1712
+ * 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.
1713
+ */
1714
+ failoverDrReplicaName?: string | null;
1715
+ }
1628
1716
  export interface Schema$Reschedule {
1629
1717
  /**
1630
1718
  * Required. The type of the reschedule.
@@ -1741,6 +1829,10 @@ export namespace sqladmin_v1 {
1741
1829
  * Optional. The edition of the instance.
1742
1830
  */
1743
1831
  edition?: string | null;
1832
+ /**
1833
+ * 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.
1834
+ */
1835
+ enableGoogleMlIntegration?: boolean | null;
1744
1836
  /**
1745
1837
  * Insights configuration, for now relevant only for Postgres.
1746
1838
  */
@@ -1832,6 +1924,15 @@ export namespace sqladmin_v1 {
1832
1924
  */
1833
1925
  type?: string | null;
1834
1926
  }
1927
+ /**
1928
+ * Response for the acquire SSRS lease request.
1929
+ */
1930
+ export interface Schema$SqlInstancesAcquireSsrsLeaseResponse {
1931
+ /**
1932
+ * The unique identifier for this operation.
1933
+ */
1934
+ operationId?: string | null;
1935
+ }
1835
1936
  /**
1836
1937
  * Instance get disk shrink config response.
1837
1938
  */
@@ -1862,6 +1963,15 @@ export namespace sqladmin_v1 {
1862
1963
  */
1863
1964
  latestRecoveryTime?: string | null;
1864
1965
  }
1966
+ /**
1967
+ * Response for the release SSRS lease request.
1968
+ */
1969
+ export interface Schema$SqlInstancesReleaseSsrsLeaseResponse {
1970
+ /**
1971
+ * The unique identifier for this operation.
1972
+ */
1973
+ operationId?: string | null;
1974
+ }
1865
1975
  /**
1866
1976
  * Reschedule options for maintenance windows.
1867
1977
  */
@@ -1879,6 +1989,10 @@ export namespace sqladmin_v1 {
1879
1989
  * Instance start external sync request.
1880
1990
  */
1881
1991
  export interface Schema$SqlInstancesStartExternalSyncRequest {
1992
+ /**
1993
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration.
1994
+ */
1995
+ migrationType?: string | null;
1882
1996
  /**
1883
1997
  * MySQL-specific settings for start external sync.
1884
1998
  */
@@ -1900,6 +2014,10 @@ export namespace sqladmin_v1 {
1900
2014
  * Instance verify external sync settings request.
1901
2015
  */
1902
2016
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
2017
+ /**
2018
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration
2019
+ */
2020
+ migrationType?: string | null;
1903
2021
  /**
1904
2022
  * Optional. MySQL-specific settings for start external sync.
1905
2023
  */
@@ -1908,6 +2026,10 @@ export namespace sqladmin_v1 {
1908
2026
  * External sync mode
1909
2027
  */
1910
2028
  syncMode?: string | null;
2029
+ /**
2030
+ * Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.
2031
+ */
2032
+ syncParallelLevel?: string | null;
1911
2033
  /**
1912
2034
  * Flag to enable verifying connection only
1913
2035
  */
@@ -3639,6 +3761,102 @@ export namespace sqladmin_v1 {
3639
3761
  this.context = context;
3640
3762
  }
3641
3763
 
3764
+ /**
3765
+ * Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
3766
+ *
3767
+ * @param params - Parameters for request
3768
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3769
+ * @param callback - Optional callback that handles the response.
3770
+ * @returns A promise if used with async/await, or void if used with a callback.
3771
+ */
3772
+ acquireSsrsLease(
3773
+ params: Params$Resource$Instances$Acquiressrslease,
3774
+ options: StreamMethodOptions
3775
+ ): GaxiosPromise<Readable>;
3776
+ acquireSsrsLease(
3777
+ params?: Params$Resource$Instances$Acquiressrslease,
3778
+ options?: MethodOptions
3779
+ ): GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>;
3780
+ acquireSsrsLease(
3781
+ params: Params$Resource$Instances$Acquiressrslease,
3782
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3783
+ callback: BodyResponseCallback<Readable>
3784
+ ): void;
3785
+ acquireSsrsLease(
3786
+ params: Params$Resource$Instances$Acquiressrslease,
3787
+ options:
3788
+ | MethodOptions
3789
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>,
3790
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3791
+ ): void;
3792
+ acquireSsrsLease(
3793
+ params: Params$Resource$Instances$Acquiressrslease,
3794
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3795
+ ): void;
3796
+ acquireSsrsLease(
3797
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3798
+ ): void;
3799
+ acquireSsrsLease(
3800
+ paramsOrCallback?:
3801
+ | Params$Resource$Instances$Acquiressrslease
3802
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3803
+ | BodyResponseCallback<Readable>,
3804
+ optionsOrCallback?:
3805
+ | MethodOptions
3806
+ | StreamMethodOptions
3807
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3808
+ | BodyResponseCallback<Readable>,
3809
+ callback?:
3810
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3811
+ | BodyResponseCallback<Readable>
3812
+ ):
3813
+ | void
3814
+ | GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3815
+ | GaxiosPromise<Readable> {
3816
+ let params = (paramsOrCallback ||
3817
+ {}) as Params$Resource$Instances$Acquiressrslease;
3818
+ let options = (optionsOrCallback || {}) as MethodOptions;
3819
+
3820
+ if (typeof paramsOrCallback === 'function') {
3821
+ callback = paramsOrCallback;
3822
+ params = {} as Params$Resource$Instances$Acquiressrslease;
3823
+ options = {};
3824
+ }
3825
+
3826
+ if (typeof optionsOrCallback === 'function') {
3827
+ callback = optionsOrCallback;
3828
+ options = {};
3829
+ }
3830
+
3831
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
3832
+ const parameters = {
3833
+ options: Object.assign(
3834
+ {
3835
+ url: (
3836
+ rootUrl +
3837
+ '/v1/projects/{project}/instances/{instance}/acquireSsrsLease'
3838
+ ).replace(/([^:]\/)\/+/g, '$1'),
3839
+ method: 'POST',
3840
+ },
3841
+ options
3842
+ ),
3843
+ params,
3844
+ requiredParams: ['project', 'instance'],
3845
+ pathParams: ['instance', 'project'],
3846
+ context: this.context,
3847
+ };
3848
+ if (callback) {
3849
+ createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3850
+ parameters,
3851
+ callback as BodyResponseCallback<unknown>
3852
+ );
3853
+ } else {
3854
+ return createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3855
+ parameters
3856
+ );
3857
+ }
3858
+ }
3859
+
3642
3860
  /**
3643
3861
  * 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.
3644
3862
  *
@@ -4940,6 +5158,102 @@ export namespace sqladmin_v1 {
4940
5158
  }
4941
5159
  }
4942
5160
 
5161
+ /**
5162
+ * Release a lease for the setup of SQL Server Reporting Services (SSRS).
5163
+ *
5164
+ * @param params - Parameters for request
5165
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5166
+ * @param callback - Optional callback that handles the response.
5167
+ * @returns A promise if used with async/await, or void if used with a callback.
5168
+ */
5169
+ releaseSsrsLease(
5170
+ params: Params$Resource$Instances$Releasessrslease,
5171
+ options: StreamMethodOptions
5172
+ ): GaxiosPromise<Readable>;
5173
+ releaseSsrsLease(
5174
+ params?: Params$Resource$Instances$Releasessrslease,
5175
+ options?: MethodOptions
5176
+ ): GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>;
5177
+ releaseSsrsLease(
5178
+ params: Params$Resource$Instances$Releasessrslease,
5179
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5180
+ callback: BodyResponseCallback<Readable>
5181
+ ): void;
5182
+ releaseSsrsLease(
5183
+ params: Params$Resource$Instances$Releasessrslease,
5184
+ options:
5185
+ | MethodOptions
5186
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>,
5187
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5188
+ ): void;
5189
+ releaseSsrsLease(
5190
+ params: Params$Resource$Instances$Releasessrslease,
5191
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5192
+ ): void;
5193
+ releaseSsrsLease(
5194
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5195
+ ): void;
5196
+ releaseSsrsLease(
5197
+ paramsOrCallback?:
5198
+ | Params$Resource$Instances$Releasessrslease
5199
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5200
+ | BodyResponseCallback<Readable>,
5201
+ optionsOrCallback?:
5202
+ | MethodOptions
5203
+ | StreamMethodOptions
5204
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5205
+ | BodyResponseCallback<Readable>,
5206
+ callback?:
5207
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5208
+ | BodyResponseCallback<Readable>
5209
+ ):
5210
+ | void
5211
+ | GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5212
+ | GaxiosPromise<Readable> {
5213
+ let params = (paramsOrCallback ||
5214
+ {}) as Params$Resource$Instances$Releasessrslease;
5215
+ let options = (optionsOrCallback || {}) as MethodOptions;
5216
+
5217
+ if (typeof paramsOrCallback === 'function') {
5218
+ callback = paramsOrCallback;
5219
+ params = {} as Params$Resource$Instances$Releasessrslease;
5220
+ options = {};
5221
+ }
5222
+
5223
+ if (typeof optionsOrCallback === 'function') {
5224
+ callback = optionsOrCallback;
5225
+ options = {};
5226
+ }
5227
+
5228
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5229
+ const parameters = {
5230
+ options: Object.assign(
5231
+ {
5232
+ url: (
5233
+ rootUrl +
5234
+ '/v1/projects/{project}/instances/{instance}/releaseSsrsLease'
5235
+ ).replace(/([^:]\/)\/+/g, '$1'),
5236
+ method: 'POST',
5237
+ },
5238
+ options
5239
+ ),
5240
+ params,
5241
+ requiredParams: ['project', 'instance'],
5242
+ pathParams: ['instance', 'project'],
5243
+ context: this.context,
5244
+ };
5245
+ if (callback) {
5246
+ createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5247
+ parameters,
5248
+ callback as BodyResponseCallback<unknown>
5249
+ );
5250
+ } else {
5251
+ return createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5252
+ parameters
5253
+ );
5254
+ }
5255
+ }
5256
+
4943
5257
  /**
4944
5258
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
4945
5259
  *
@@ -5720,6 +6034,22 @@ export namespace sqladmin_v1 {
5720
6034
  }
5721
6035
  }
5722
6036
 
6037
+ export interface Params$Resource$Instances$Acquiressrslease
6038
+ extends StandardParameters {
6039
+ /**
6040
+ * 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).
6041
+ */
6042
+ instance?: string;
6043
+ /**
6044
+ * Required. Project ID of the project that contains the instance (Example: project-id).
6045
+ */
6046
+ project?: string;
6047
+
6048
+ /**
6049
+ * Request body metadata
6050
+ */
6051
+ requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
6052
+ }
5723
6053
  export interface Params$Resource$Instances$Addserverca
5724
6054
  extends StandardParameters {
5725
6055
  /**
@@ -5929,6 +6259,17 @@ export namespace sqladmin_v1 {
5929
6259
  */
5930
6260
  requestBody?: Schema$InstancesReencryptRequest;
5931
6261
  }
6262
+ export interface Params$Resource$Instances$Releasessrslease
6263
+ extends StandardParameters {
6264
+ /**
6265
+ * 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.
6266
+ */
6267
+ instance?: string;
6268
+ /**
6269
+ * Required. The project ID that contains the instance.
6270
+ */
6271
+ project?: string;
6272
+ }
5932
6273
  export interface Params$Resource$Instances$Resetsslconfig
5933
6274
  extends StandardParameters {
5934
6275
  /**