@googleapis/sqladmin 15.0.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/v1beta4.ts CHANGED
@@ -163,6 +163,27 @@ export namespace sqladmin_v1beta4 {
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 the SSRS setup.
172
+ */
173
+ duration?: string | null;
174
+ /**
175
+ * The report database to be used for the 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_v1beta4 {
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_v1beta4 {
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 instance configuration.
587
+ */
588
+ geminiConfig?: Schema$GeminiInstanceConfig;
560
589
  /**
561
590
  * The instance type.
562
591
  */
@@ -621,6 +650,10 @@ export namespace sqladmin_v1beta4 {
621
650
  * The replicas of the instance.
622
651
  */
623
652
  replicaNames?: string[] | null;
653
+ /**
654
+ * 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
  */
@@ -945,6 +978,35 @@ export namespace sqladmin_v1beta4 {
945
978
  */
946
979
  kind?: string | null;
947
980
  }
981
+ /**
982
+ * Gemini configuration.
983
+ */
984
+ export interface Schema$GeminiInstanceConfig {
985
+ /**
986
+ * Output only. Whether active query is enabled.
987
+ */
988
+ activeQueryEnabled?: boolean | null;
989
+ /**
990
+ * Output only. Whether Gemini is enabled.
991
+ */
992
+ entitled?: boolean | null;
993
+ /**
994
+ * Output only. Whether flag recommender is enabled.
995
+ */
996
+ flagRecommenderEnabled?: boolean | null;
997
+ /**
998
+ * Output only. Whether vacuum management is enabled.
999
+ */
1000
+ googleVacuumMgmtEnabled?: boolean | null;
1001
+ /**
1002
+ * Output only. Whether index advisor is enabled.
1003
+ */
1004
+ indexAdvisorEnabled?: boolean | null;
1005
+ /**
1006
+ * Output only. Whether oom session cancel is enabled.
1007
+ */
1008
+ oomSessionCancelEnabled?: boolean | null;
1009
+ }
948
1010
  /**
949
1011
  * Ephemeral certificate creation request.
950
1012
  */
@@ -1069,6 +1131,15 @@ export namespace sqladmin_v1beta4 {
1069
1131
  */
1070
1132
  region?: string | null;
1071
1133
  }
1134
+ /**
1135
+ * Request to acquire an SSRS lease for an instance.
1136
+ */
1137
+ export interface Schema$InstancesAcquireSsrsLeaseRequest {
1138
+ /**
1139
+ * Contains details about the acquire SSRS lease operation.
1140
+ */
1141
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1142
+ }
1072
1143
  /**
1073
1144
  * Database instance clone request.
1074
1145
  */
@@ -1393,6 +1464,10 @@ export namespace sqladmin_v1beta4 {
1393
1464
  * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1394
1465
  */
1395
1466
  export interface Schema$Operation {
1467
+ /**
1468
+ * The context for acquire SSRS lease operation, if applicable.
1469
+ */
1470
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1396
1471
  /**
1397
1472
  * An Admin API warning message.
1398
1473
  */
@@ -1628,6 +1703,19 @@ export namespace sqladmin_v1beta4 {
1628
1703
  */
1629
1704
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1630
1705
  }
1706
+ /**
1707
+ * Primary-DR replica pair
1708
+ */
1709
+ export interface Schema$ReplicationCluster {
1710
+ /**
1711
+ * Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.
1712
+ */
1713
+ drReplica?: boolean | null;
1714
+ /**
1715
+ * 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.
1716
+ */
1717
+ failoverDrReplicaName?: string | null;
1718
+ }
1631
1719
  export interface Schema$Reschedule {
1632
1720
  /**
1633
1721
  * Required. The type of the reschedule.
@@ -1744,6 +1832,10 @@ export namespace sqladmin_v1beta4 {
1744
1832
  * Optional. The edition of the instance.
1745
1833
  */
1746
1834
  edition?: string | null;
1835
+ /**
1836
+ * 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.
1837
+ */
1838
+ enableGoogleMlIntegration?: boolean | null;
1747
1839
  /**
1748
1840
  * Insights configuration, for now relevant only for Postgres.
1749
1841
  */
@@ -1835,6 +1927,15 @@ export namespace sqladmin_v1beta4 {
1835
1927
  */
1836
1928
  type?: string | null;
1837
1929
  }
1930
+ /**
1931
+ * Acquire SSRS lease response.
1932
+ */
1933
+ export interface Schema$SqlInstancesAcquireSsrsLeaseResponse {
1934
+ /**
1935
+ * The unique identifier for this operation.
1936
+ */
1937
+ operationId?: string | null;
1938
+ }
1838
1939
  /**
1839
1940
  * Instance get disk shrink config response.
1840
1941
  */
@@ -1865,6 +1966,15 @@ export namespace sqladmin_v1beta4 {
1865
1966
  */
1866
1967
  latestRecoveryTime?: string | null;
1867
1968
  }
1969
+ /**
1970
+ * The response for the release of the SSRS lease.
1971
+ */
1972
+ export interface Schema$SqlInstancesReleaseSsrsLeaseResponse {
1973
+ /**
1974
+ * The operation ID.
1975
+ */
1976
+ operationId?: string | null;
1977
+ }
1868
1978
  /**
1869
1979
  * Reschedule options for maintenance windows.
1870
1980
  */
@@ -1879,6 +1989,10 @@ export namespace sqladmin_v1beta4 {
1879
1989
  */
1880
1990
  export interface Schema$SqlInstancesResetReplicaSizeRequest {}
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
  */
@@ -1897,6 +2011,10 @@ export namespace sqladmin_v1beta4 {
1897
2011
  syncParallelLevel?: string | null;
1898
2012
  }
1899
2013
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
2014
+ /**
2015
+ * Optional. MigrationType field decides if the migration is a physical file based migration or logical migration
2016
+ */
2017
+ migrationType?: string | null;
1900
2018
  /**
1901
2019
  * Optional. MySQL-specific settings for start external sync.
1902
2020
  */
@@ -1905,6 +2023,10 @@ export namespace sqladmin_v1beta4 {
1905
2023
  * External sync mode
1906
2024
  */
1907
2025
  syncMode?: string | null;
2026
+ /**
2027
+ * Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.
2028
+ */
2029
+ syncParallelLevel?: string | null;
1908
2030
  /**
1909
2031
  * Flag to enable verifying connection only
1910
2032
  */
@@ -3640,6 +3762,102 @@ export namespace sqladmin_v1beta4 {
3640
3762
  this.context = context;
3641
3763
  }
3642
3764
 
3765
+ /**
3766
+ * Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
3767
+ *
3768
+ * @param params - Parameters for request
3769
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3770
+ * @param callback - Optional callback that handles the response.
3771
+ * @returns A promise if used with async/await, or void if used with a callback.
3772
+ */
3773
+ acquireSsrsLease(
3774
+ params: Params$Resource$Instances$Acquiressrslease,
3775
+ options: StreamMethodOptions
3776
+ ): GaxiosPromise<Readable>;
3777
+ acquireSsrsLease(
3778
+ params?: Params$Resource$Instances$Acquiressrslease,
3779
+ options?: MethodOptions
3780
+ ): GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>;
3781
+ acquireSsrsLease(
3782
+ params: Params$Resource$Instances$Acquiressrslease,
3783
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3784
+ callback: BodyResponseCallback<Readable>
3785
+ ): void;
3786
+ acquireSsrsLease(
3787
+ params: Params$Resource$Instances$Acquiressrslease,
3788
+ options:
3789
+ | MethodOptions
3790
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>,
3791
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3792
+ ): void;
3793
+ acquireSsrsLease(
3794
+ params: Params$Resource$Instances$Acquiressrslease,
3795
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3796
+ ): void;
3797
+ acquireSsrsLease(
3798
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3799
+ ): void;
3800
+ acquireSsrsLease(
3801
+ paramsOrCallback?:
3802
+ | Params$Resource$Instances$Acquiressrslease
3803
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3804
+ | BodyResponseCallback<Readable>,
3805
+ optionsOrCallback?:
3806
+ | MethodOptions
3807
+ | StreamMethodOptions
3808
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3809
+ | BodyResponseCallback<Readable>,
3810
+ callback?:
3811
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3812
+ | BodyResponseCallback<Readable>
3813
+ ):
3814
+ | void
3815
+ | GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3816
+ | GaxiosPromise<Readable> {
3817
+ let params = (paramsOrCallback ||
3818
+ {}) as Params$Resource$Instances$Acquiressrslease;
3819
+ let options = (optionsOrCallback || {}) as MethodOptions;
3820
+
3821
+ if (typeof paramsOrCallback === 'function') {
3822
+ callback = paramsOrCallback;
3823
+ params = {} as Params$Resource$Instances$Acquiressrslease;
3824
+ options = {};
3825
+ }
3826
+
3827
+ if (typeof optionsOrCallback === 'function') {
3828
+ callback = optionsOrCallback;
3829
+ options = {};
3830
+ }
3831
+
3832
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
3833
+ const parameters = {
3834
+ options: Object.assign(
3835
+ {
3836
+ url: (
3837
+ rootUrl +
3838
+ '/sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease'
3839
+ ).replace(/([^:]\/)\/+/g, '$1'),
3840
+ method: 'POST',
3841
+ },
3842
+ options
3843
+ ),
3844
+ params,
3845
+ requiredParams: ['project', 'instance'],
3846
+ pathParams: ['instance', 'project'],
3847
+ context: this.context,
3848
+ };
3849
+ if (callback) {
3850
+ createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3851
+ parameters,
3852
+ callback as BodyResponseCallback<unknown>
3853
+ );
3854
+ } else {
3855
+ return createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3856
+ parameters
3857
+ );
3858
+ }
3859
+ }
3860
+
3643
3861
  /**
3644
3862
  * Add 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.
3645
3863
  *
@@ -4945,6 +5163,102 @@ export namespace sqladmin_v1beta4 {
4945
5163
  }
4946
5164
  }
4947
5165
 
5166
+ /**
5167
+ * Release a lease for the setup of SQL Server Reporting Services (SSRS).
5168
+ *
5169
+ * @param params - Parameters for request
5170
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5171
+ * @param callback - Optional callback that handles the response.
5172
+ * @returns A promise if used with async/await, or void if used with a callback.
5173
+ */
5174
+ releaseSsrsLease(
5175
+ params: Params$Resource$Instances$Releasessrslease,
5176
+ options: StreamMethodOptions
5177
+ ): GaxiosPromise<Readable>;
5178
+ releaseSsrsLease(
5179
+ params?: Params$Resource$Instances$Releasessrslease,
5180
+ options?: MethodOptions
5181
+ ): GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>;
5182
+ releaseSsrsLease(
5183
+ params: Params$Resource$Instances$Releasessrslease,
5184
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5185
+ callback: BodyResponseCallback<Readable>
5186
+ ): void;
5187
+ releaseSsrsLease(
5188
+ params: Params$Resource$Instances$Releasessrslease,
5189
+ options:
5190
+ | MethodOptions
5191
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>,
5192
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5193
+ ): void;
5194
+ releaseSsrsLease(
5195
+ params: Params$Resource$Instances$Releasessrslease,
5196
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5197
+ ): void;
5198
+ releaseSsrsLease(
5199
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5200
+ ): void;
5201
+ releaseSsrsLease(
5202
+ paramsOrCallback?:
5203
+ | Params$Resource$Instances$Releasessrslease
5204
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5205
+ | BodyResponseCallback<Readable>,
5206
+ optionsOrCallback?:
5207
+ | MethodOptions
5208
+ | StreamMethodOptions
5209
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5210
+ | BodyResponseCallback<Readable>,
5211
+ callback?:
5212
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5213
+ | BodyResponseCallback<Readable>
5214
+ ):
5215
+ | void
5216
+ | GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5217
+ | GaxiosPromise<Readable> {
5218
+ let params = (paramsOrCallback ||
5219
+ {}) as Params$Resource$Instances$Releasessrslease;
5220
+ let options = (optionsOrCallback || {}) as MethodOptions;
5221
+
5222
+ if (typeof paramsOrCallback === 'function') {
5223
+ callback = paramsOrCallback;
5224
+ params = {} as Params$Resource$Instances$Releasessrslease;
5225
+ options = {};
5226
+ }
5227
+
5228
+ if (typeof optionsOrCallback === 'function') {
5229
+ callback = optionsOrCallback;
5230
+ options = {};
5231
+ }
5232
+
5233
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5234
+ const parameters = {
5235
+ options: Object.assign(
5236
+ {
5237
+ url: (
5238
+ rootUrl +
5239
+ '/sql/v1beta4/projects/{project}/instances/{instance}/releaseSsrsLease'
5240
+ ).replace(/([^:]\/)\/+/g, '$1'),
5241
+ method: 'POST',
5242
+ },
5243
+ options
5244
+ ),
5245
+ params,
5246
+ requiredParams: ['project', 'instance'],
5247
+ pathParams: ['instance', 'project'],
5248
+ context: this.context,
5249
+ };
5250
+ if (callback) {
5251
+ createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5252
+ parameters,
5253
+ callback as BodyResponseCallback<unknown>
5254
+ );
5255
+ } else {
5256
+ return createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5257
+ parameters
5258
+ );
5259
+ }
5260
+ }
5261
+
4948
5262
  /**
4949
5263
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
4950
5264
  *
@@ -5727,6 +6041,22 @@ export namespace sqladmin_v1beta4 {
5727
6041
  }
5728
6042
  }
5729
6043
 
6044
+ export interface Params$Resource$Instances$Acquiressrslease
6045
+ extends StandardParameters {
6046
+ /**
6047
+ * 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).
6048
+ */
6049
+ instance?: string;
6050
+ /**
6051
+ * Required. ID of the project that contains the instance (Example: project-id).
6052
+ */
6053
+ project?: string;
6054
+
6055
+ /**
6056
+ * Request body metadata
6057
+ */
6058
+ requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
6059
+ }
5730
6060
  export interface Params$Resource$Instances$Addserverca
5731
6061
  extends StandardParameters {
5732
6062
  /**
@@ -5936,6 +6266,17 @@ export namespace sqladmin_v1beta4 {
5936
6266
  */
5937
6267
  requestBody?: Schema$InstancesReencryptRequest;
5938
6268
  }
6269
+ export interface Params$Resource$Instances$Releasessrslease
6270
+ extends StandardParameters {
6271
+ /**
6272
+ * Required. The 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).
6273
+ */
6274
+ instance?: string;
6275
+ /**
6276
+ * Required. The ID of the project that contains the instance (Example: project-id).
6277
+ */
6278
+ project?: string;
6279
+ }
5939
6280
  export interface Params$Resource$Instances$Resetsslconfig
5940
6281
  extends StandardParameters {
5941
6282
  /**