@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/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
  */
@@ -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
  */
@@ -1019,6 +1081,10 @@ export namespace sqladmin_v1 {
1019
1081
  * This is always `sql#importContext`.
1020
1082
  */
1021
1083
  kind?: string | null;
1084
+ /**
1085
+ * Optional. Options for importing data from SQL statements.
1086
+ */
1087
+ sqlImportOptions?: {parallel?: boolean; threads?: number} | null;
1022
1088
  /**
1023
1089
  * 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.
1024
1090
  */
@@ -1066,6 +1132,15 @@ export namespace sqladmin_v1 {
1066
1132
  */
1067
1133
  region?: string | null;
1068
1134
  }
1135
+ /**
1136
+ * Request to acquire a lease for SSRS.
1137
+ */
1138
+ export interface Schema$InstancesAcquireSsrsLeaseRequest {
1139
+ /**
1140
+ * Contains details about the acquire SSRS lease operation.
1141
+ */
1142
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1143
+ }
1069
1144
  /**
1070
1145
  * Database instance clone request.
1071
1146
  */
@@ -1220,11 +1295,11 @@ export namespace sqladmin_v1 {
1220
1295
  */
1221
1296
  pscConfig?: Schema$PscConfig;
1222
1297
  /**
1223
- * 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.
1298
+ * 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.
1224
1299
  */
1225
1300
  requireSsl?: boolean | null;
1226
1301
  /**
1227
- * 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`.
1302
+ * 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.
1228
1303
  */
1229
1304
  sslMode?: string | null;
1230
1305
  }
@@ -1390,6 +1465,10 @@ export namespace sqladmin_v1 {
1390
1465
  * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1391
1466
  */
1392
1467
  export interface Schema$Operation {
1468
+ /**
1469
+ * The context for acquire SSRS lease operation, if applicable.
1470
+ */
1471
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1393
1472
  /**
1394
1473
  * An Admin API warning message.
1395
1474
  */
@@ -1625,6 +1704,19 @@ export namespace sqladmin_v1 {
1625
1704
  */
1626
1705
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1627
1706
  }
1707
+ /**
1708
+ * Primary-DR replica pair
1709
+ */
1710
+ export interface Schema$ReplicationCluster {
1711
+ /**
1712
+ * Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.
1713
+ */
1714
+ drReplica?: boolean | null;
1715
+ /**
1716
+ * 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.
1717
+ */
1718
+ failoverDrReplicaName?: string | null;
1719
+ }
1628
1720
  export interface Schema$Reschedule {
1629
1721
  /**
1630
1722
  * Required. The type of the reschedule.
@@ -1741,6 +1833,10 @@ export namespace sqladmin_v1 {
1741
1833
  * Optional. The edition of the instance.
1742
1834
  */
1743
1835
  edition?: string | null;
1836
+ /**
1837
+ * 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.
1838
+ */
1839
+ enableGoogleMlIntegration?: boolean | null;
1744
1840
  /**
1745
1841
  * Insights configuration, for now relevant only for Postgres.
1746
1842
  */
@@ -1832,6 +1928,15 @@ export namespace sqladmin_v1 {
1832
1928
  */
1833
1929
  type?: string | null;
1834
1930
  }
1931
+ /**
1932
+ * Response for the acquire SSRS lease request.
1933
+ */
1934
+ export interface Schema$SqlInstancesAcquireSsrsLeaseResponse {
1935
+ /**
1936
+ * The unique identifier for this operation.
1937
+ */
1938
+ operationId?: string | null;
1939
+ }
1835
1940
  /**
1836
1941
  * Instance get disk shrink config response.
1837
1942
  */
@@ -1862,6 +1967,15 @@ export namespace sqladmin_v1 {
1862
1967
  */
1863
1968
  latestRecoveryTime?: string | null;
1864
1969
  }
1970
+ /**
1971
+ * Response for the release SSRS lease request.
1972
+ */
1973
+ export interface Schema$SqlInstancesReleaseSsrsLeaseResponse {
1974
+ /**
1975
+ * The unique identifier for this operation.
1976
+ */
1977
+ operationId?: string | null;
1978
+ }
1865
1979
  /**
1866
1980
  * Reschedule options for maintenance windows.
1867
1981
  */
@@ -1879,6 +1993,10 @@ export namespace sqladmin_v1 {
1879
1993
  * Instance start external sync request.
1880
1994
  */
1881
1995
  export interface Schema$SqlInstancesStartExternalSyncRequest {
1996
+ /**
1997
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration.
1998
+ */
1999
+ migrationType?: string | null;
1882
2000
  /**
1883
2001
  * MySQL-specific settings for start external sync.
1884
2002
  */
@@ -1900,6 +2018,10 @@ export namespace sqladmin_v1 {
1900
2018
  * Instance verify external sync settings request.
1901
2019
  */
1902
2020
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
2021
+ /**
2022
+ * Optional. MigrationType decides if the migration is a physical file based migration or logical migration
2023
+ */
2024
+ migrationType?: string | null;
1903
2025
  /**
1904
2026
  * Optional. MySQL-specific settings for start external sync.
1905
2027
  */
@@ -1908,6 +2030,10 @@ export namespace sqladmin_v1 {
1908
2030
  * External sync mode
1909
2031
  */
1910
2032
  syncMode?: string | null;
2033
+ /**
2034
+ * Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.
2035
+ */
2036
+ syncParallelLevel?: string | null;
1911
2037
  /**
1912
2038
  * Flag to enable verifying connection only
1913
2039
  */
@@ -2350,6 +2476,7 @@ export namespace sqladmin_v1 {
2350
2476
  '/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
2351
2477
  ).replace(/([^:]\/)\/+/g, '$1'),
2352
2478
  method: 'DELETE',
2479
+ apiVersion: '',
2353
2480
  },
2354
2481
  options
2355
2482
  ),
@@ -2436,6 +2563,7 @@ export namespace sqladmin_v1 {
2436
2563
  '/v1/projects/{project}/instances/{instance}/backupRuns/{id}'
2437
2564
  ).replace(/([^:]\/)\/+/g, '$1'),
2438
2565
  method: 'GET',
2566
+ apiVersion: '',
2439
2567
  },
2440
2568
  options
2441
2569
  ),
@@ -2522,6 +2650,7 @@ export namespace sqladmin_v1 {
2522
2650
  rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns'
2523
2651
  ).replace(/([^:]\/)\/+/g, '$1'),
2524
2652
  method: 'POST',
2653
+ apiVersion: '',
2525
2654
  },
2526
2655
  options
2527
2656
  ),
@@ -2612,6 +2741,7 @@ export namespace sqladmin_v1 {
2612
2741
  rootUrl + '/v1/projects/{project}/instances/{instance}/backupRuns'
2613
2742
  ).replace(/([^:]\/)\/+/g, '$1'),
2614
2743
  method: 'GET',
2744
+ apiVersion: '',
2615
2745
  },
2616
2746
  options
2617
2747
  ),
@@ -2777,6 +2907,7 @@ export namespace sqladmin_v1 {
2777
2907
  '/v1/projects/{project}/instances/{instance}:generateEphemeralCert'
2778
2908
  ).replace(/([^:]\/)\/+/g, '$1'),
2779
2909
  method: 'POST',
2910
+ apiVersion: '',
2780
2911
  },
2781
2912
  options
2782
2913
  ),
@@ -2865,6 +2996,7 @@ export namespace sqladmin_v1 {
2865
2996
  '/v1/projects/{project}/instances/{instance}/connectSettings'
2866
2997
  ).replace(/([^:]\/)\/+/g, '$1'),
2867
2998
  method: 'GET',
2999
+ apiVersion: '',
2868
3000
  },
2869
3001
  options
2870
3002
  ),
@@ -2989,6 +3121,7 @@ export namespace sqladmin_v1 {
2989
3121
  '/v1/projects/{project}/instances/{instance}/databases/{database}'
2990
3122
  ).replace(/([^:]\/)\/+/g, '$1'),
2991
3123
  method: 'DELETE',
3124
+ apiVersion: '',
2992
3125
  },
2993
3126
  options
2994
3127
  ),
@@ -3075,6 +3208,7 @@ export namespace sqladmin_v1 {
3075
3208
  '/v1/projects/{project}/instances/{instance}/databases/{database}'
3076
3209
  ).replace(/([^:]\/)\/+/g, '$1'),
3077
3210
  method: 'GET',
3211
+ apiVersion: '',
3078
3212
  },
3079
3213
  options
3080
3214
  ),
@@ -3160,6 +3294,7 @@ export namespace sqladmin_v1 {
3160
3294
  rootUrl + '/v1/projects/{project}/instances/{instance}/databases'
3161
3295
  ).replace(/([^:]\/)\/+/g, '$1'),
3162
3296
  method: 'POST',
3297
+ apiVersion: '',
3163
3298
  },
3164
3299
  options
3165
3300
  ),
@@ -3250,6 +3385,7 @@ export namespace sqladmin_v1 {
3250
3385
  rootUrl + '/v1/projects/{project}/instances/{instance}/databases'
3251
3386
  ).replace(/([^:]\/)\/+/g, '$1'),
3252
3387
  method: 'GET',
3388
+ apiVersion: '',
3253
3389
  },
3254
3390
  options
3255
3391
  ),
@@ -3336,6 +3472,7 @@ export namespace sqladmin_v1 {
3336
3472
  '/v1/projects/{project}/instances/{instance}/databases/{database}'
3337
3473
  ).replace(/([^:]\/)\/+/g, '$1'),
3338
3474
  method: 'PATCH',
3475
+ apiVersion: '',
3339
3476
  },
3340
3477
  options
3341
3478
  ),
@@ -3422,6 +3559,7 @@ export namespace sqladmin_v1 {
3422
3559
  '/v1/projects/{project}/instances/{instance}/databases/{database}'
3423
3560
  ).replace(/([^:]\/)\/+/g, '$1'),
3424
3561
  method: 'PUT',
3562
+ apiVersion: '',
3425
3563
  },
3426
3564
  options
3427
3565
  ),
@@ -3607,6 +3745,7 @@ export namespace sqladmin_v1 {
3607
3745
  {
3608
3746
  url: (rootUrl + '/v1/flags').replace(/([^:]\/)\/+/g, '$1'),
3609
3747
  method: 'GET',
3748
+ apiVersion: '',
3610
3749
  },
3611
3750
  options
3612
3751
  ),
@@ -3639,6 +3778,103 @@ export namespace sqladmin_v1 {
3639
3778
  this.context = context;
3640
3779
  }
3641
3780
 
3781
+ /**
3782
+ * Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
3783
+ *
3784
+ * @param params - Parameters for request
3785
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3786
+ * @param callback - Optional callback that handles the response.
3787
+ * @returns A promise if used with async/await, or void if used with a callback.
3788
+ */
3789
+ acquireSsrsLease(
3790
+ params: Params$Resource$Instances$Acquiressrslease,
3791
+ options: StreamMethodOptions
3792
+ ): GaxiosPromise<Readable>;
3793
+ acquireSsrsLease(
3794
+ params?: Params$Resource$Instances$Acquiressrslease,
3795
+ options?: MethodOptions
3796
+ ): GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>;
3797
+ acquireSsrsLease(
3798
+ params: Params$Resource$Instances$Acquiressrslease,
3799
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3800
+ callback: BodyResponseCallback<Readable>
3801
+ ): void;
3802
+ acquireSsrsLease(
3803
+ params: Params$Resource$Instances$Acquiressrslease,
3804
+ options:
3805
+ | MethodOptions
3806
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>,
3807
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3808
+ ): void;
3809
+ acquireSsrsLease(
3810
+ params: Params$Resource$Instances$Acquiressrslease,
3811
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3812
+ ): void;
3813
+ acquireSsrsLease(
3814
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3815
+ ): void;
3816
+ acquireSsrsLease(
3817
+ paramsOrCallback?:
3818
+ | Params$Resource$Instances$Acquiressrslease
3819
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3820
+ | BodyResponseCallback<Readable>,
3821
+ optionsOrCallback?:
3822
+ | MethodOptions
3823
+ | StreamMethodOptions
3824
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3825
+ | BodyResponseCallback<Readable>,
3826
+ callback?:
3827
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3828
+ | BodyResponseCallback<Readable>
3829
+ ):
3830
+ | void
3831
+ | GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3832
+ | GaxiosPromise<Readable> {
3833
+ let params = (paramsOrCallback ||
3834
+ {}) as Params$Resource$Instances$Acquiressrslease;
3835
+ let options = (optionsOrCallback || {}) as MethodOptions;
3836
+
3837
+ if (typeof paramsOrCallback === 'function') {
3838
+ callback = paramsOrCallback;
3839
+ params = {} as Params$Resource$Instances$Acquiressrslease;
3840
+ options = {};
3841
+ }
3842
+
3843
+ if (typeof optionsOrCallback === 'function') {
3844
+ callback = optionsOrCallback;
3845
+ options = {};
3846
+ }
3847
+
3848
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
3849
+ const parameters = {
3850
+ options: Object.assign(
3851
+ {
3852
+ url: (
3853
+ rootUrl +
3854
+ '/v1/projects/{project}/instances/{instance}/acquireSsrsLease'
3855
+ ).replace(/([^:]\/)\/+/g, '$1'),
3856
+ method: 'POST',
3857
+ apiVersion: '',
3858
+ },
3859
+ options
3860
+ ),
3861
+ params,
3862
+ requiredParams: ['project', 'instance'],
3863
+ pathParams: ['instance', 'project'],
3864
+ context: this.context,
3865
+ };
3866
+ if (callback) {
3867
+ createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3868
+ parameters,
3869
+ callback as BodyResponseCallback<unknown>
3870
+ );
3871
+ } else {
3872
+ return createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3873
+ parameters
3874
+ );
3875
+ }
3876
+ }
3877
+
3642
3878
  /**
3643
3879
  * 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
3880
  *
@@ -3708,6 +3944,7 @@ export namespace sqladmin_v1 {
3708
3944
  '/v1/projects/{project}/instances/{instance}/addServerCa'
3709
3945
  ).replace(/([^:]\/)\/+/g, '$1'),
3710
3946
  method: 'POST',
3947
+ apiVersion: '',
3711
3948
  },
3712
3949
  options
3713
3950
  ),
@@ -3793,6 +4030,7 @@ export namespace sqladmin_v1 {
3793
4030
  rootUrl + '/v1/projects/{project}/instances/{instance}/clone'
3794
4031
  ).replace(/([^:]\/)\/+/g, '$1'),
3795
4032
  method: 'POST',
4033
+ apiVersion: '',
3796
4034
  },
3797
4035
  options
3798
4036
  ),
@@ -3878,6 +4116,7 @@ export namespace sqladmin_v1 {
3878
4116
  rootUrl + '/v1/projects/{project}/instances/{instance}'
3879
4117
  ).replace(/([^:]\/)\/+/g, '$1'),
3880
4118
  method: 'DELETE',
4119
+ apiVersion: '',
3881
4120
  },
3882
4121
  options
3883
4122
  ),
@@ -3963,6 +4202,7 @@ export namespace sqladmin_v1 {
3963
4202
  rootUrl + '/v1/projects/{project}/instances/{instance}/demote'
3964
4203
  ).replace(/([^:]\/)\/+/g, '$1'),
3965
4204
  method: 'POST',
4205
+ apiVersion: '',
3966
4206
  },
3967
4207
  options
3968
4208
  ),
@@ -4050,6 +4290,7 @@ export namespace sqladmin_v1 {
4050
4290
  '/v1/projects/{project}/instances/{instance}/demoteMaster'
4051
4291
  ).replace(/([^:]\/)\/+/g, '$1'),
4052
4292
  method: 'POST',
4293
+ apiVersion: '',
4053
4294
  },
4054
4295
  options
4055
4296
  ),
@@ -4135,6 +4376,7 @@ export namespace sqladmin_v1 {
4135
4376
  rootUrl + '/v1/projects/{project}/instances/{instance}/export'
4136
4377
  ).replace(/([^:]\/)\/+/g, '$1'),
4137
4378
  method: 'POST',
4379
+ apiVersion: '',
4138
4380
  },
4139
4381
  options
4140
4382
  ),
@@ -4221,6 +4463,7 @@ export namespace sqladmin_v1 {
4221
4463
  rootUrl + '/v1/projects/{project}/instances/{instance}/failover'
4222
4464
  ).replace(/([^:]\/)\/+/g, '$1'),
4223
4465
  method: 'POST',
4466
+ apiVersion: '',
4224
4467
  },
4225
4468
  options
4226
4469
  ),
@@ -4306,6 +4549,7 @@ export namespace sqladmin_v1 {
4306
4549
  rootUrl + '/v1/projects/{project}/instances/{instance}'
4307
4550
  ).replace(/([^:]\/)\/+/g, '$1'),
4308
4551
  method: 'GET',
4552
+ apiVersion: '',
4309
4553
  },
4310
4554
  options
4311
4555
  ),
@@ -4391,6 +4635,7 @@ export namespace sqladmin_v1 {
4391
4635
  rootUrl + '/v1/projects/{project}/instances/{instance}/import'
4392
4636
  ).replace(/([^:]\/)\/+/g, '$1'),
4393
4637
  method: 'POST',
4638
+ apiVersion: '',
4394
4639
  },
4395
4640
  options
4396
4641
  ),
@@ -4477,6 +4722,7 @@ export namespace sqladmin_v1 {
4477
4722
  '$1'
4478
4723
  ),
4479
4724
  method: 'POST',
4725
+ apiVersion: '',
4480
4726
  },
4481
4727
  options
4482
4728
  ),
@@ -4568,6 +4814,7 @@ export namespace sqladmin_v1 {
4568
4814
  '$1'
4569
4815
  ),
4570
4816
  method: 'GET',
4817
+ apiVersion: '',
4571
4818
  },
4572
4819
  options
4573
4820
  ),
@@ -4662,6 +4909,7 @@ export namespace sqladmin_v1 {
4662
4909
  '/v1/projects/{project}/instances/{instance}/listServerCas'
4663
4910
  ).replace(/([^:]\/)\/+/g, '$1'),
4664
4911
  method: 'GET',
4912
+ apiVersion: '',
4665
4913
  },
4666
4914
  options
4667
4915
  ),
@@ -4749,6 +4997,7 @@ export namespace sqladmin_v1 {
4749
4997
  rootUrl + '/v1/projects/{project}/instances/{instance}'
4750
4998
  ).replace(/([^:]\/)\/+/g, '$1'),
4751
4999
  method: 'PATCH',
5000
+ apiVersion: '',
4752
5001
  },
4753
5002
  options
4754
5003
  ),
@@ -4836,6 +5085,7 @@ export namespace sqladmin_v1 {
4836
5085
  '/v1/projects/{project}/instances/{instance}/promoteReplica'
4837
5086
  ).replace(/([^:]\/)\/+/g, '$1'),
4838
5087
  method: 'POST',
5088
+ apiVersion: '',
4839
5089
  },
4840
5090
  options
4841
5091
  ),
@@ -4922,6 +5172,7 @@ export namespace sqladmin_v1 {
4922
5172
  rootUrl + '/v1/projects/{project}/instances/{instance}/reencrypt'
4923
5173
  ).replace(/([^:]\/)\/+/g, '$1'),
4924
5174
  method: 'POST',
5175
+ apiVersion: '',
4925
5176
  },
4926
5177
  options
4927
5178
  ),
@@ -4940,6 +5191,103 @@ export namespace sqladmin_v1 {
4940
5191
  }
4941
5192
  }
4942
5193
 
5194
+ /**
5195
+ * Release a lease for the setup of SQL Server Reporting Services (SSRS).
5196
+ *
5197
+ * @param params - Parameters for request
5198
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5199
+ * @param callback - Optional callback that handles the response.
5200
+ * @returns A promise if used with async/await, or void if used with a callback.
5201
+ */
5202
+ releaseSsrsLease(
5203
+ params: Params$Resource$Instances$Releasessrslease,
5204
+ options: StreamMethodOptions
5205
+ ): GaxiosPromise<Readable>;
5206
+ releaseSsrsLease(
5207
+ params?: Params$Resource$Instances$Releasessrslease,
5208
+ options?: MethodOptions
5209
+ ): GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>;
5210
+ releaseSsrsLease(
5211
+ params: Params$Resource$Instances$Releasessrslease,
5212
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5213
+ callback: BodyResponseCallback<Readable>
5214
+ ): void;
5215
+ releaseSsrsLease(
5216
+ params: Params$Resource$Instances$Releasessrslease,
5217
+ options:
5218
+ | MethodOptions
5219
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>,
5220
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5221
+ ): void;
5222
+ releaseSsrsLease(
5223
+ params: Params$Resource$Instances$Releasessrslease,
5224
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5225
+ ): void;
5226
+ releaseSsrsLease(
5227
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5228
+ ): void;
5229
+ releaseSsrsLease(
5230
+ paramsOrCallback?:
5231
+ | Params$Resource$Instances$Releasessrslease
5232
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5233
+ | BodyResponseCallback<Readable>,
5234
+ optionsOrCallback?:
5235
+ | MethodOptions
5236
+ | StreamMethodOptions
5237
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5238
+ | BodyResponseCallback<Readable>,
5239
+ callback?:
5240
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5241
+ | BodyResponseCallback<Readable>
5242
+ ):
5243
+ | void
5244
+ | GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5245
+ | GaxiosPromise<Readable> {
5246
+ let params = (paramsOrCallback ||
5247
+ {}) as Params$Resource$Instances$Releasessrslease;
5248
+ let options = (optionsOrCallback || {}) as MethodOptions;
5249
+
5250
+ if (typeof paramsOrCallback === 'function') {
5251
+ callback = paramsOrCallback;
5252
+ params = {} as Params$Resource$Instances$Releasessrslease;
5253
+ options = {};
5254
+ }
5255
+
5256
+ if (typeof optionsOrCallback === 'function') {
5257
+ callback = optionsOrCallback;
5258
+ options = {};
5259
+ }
5260
+
5261
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5262
+ const parameters = {
5263
+ options: Object.assign(
5264
+ {
5265
+ url: (
5266
+ rootUrl +
5267
+ '/v1/projects/{project}/instances/{instance}/releaseSsrsLease'
5268
+ ).replace(/([^:]\/)\/+/g, '$1'),
5269
+ method: 'POST',
5270
+ apiVersion: '',
5271
+ },
5272
+ options
5273
+ ),
5274
+ params,
5275
+ requiredParams: ['project', 'instance'],
5276
+ pathParams: ['instance', 'project'],
5277
+ context: this.context,
5278
+ };
5279
+ if (callback) {
5280
+ createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5281
+ parameters,
5282
+ callback as BodyResponseCallback<unknown>
5283
+ );
5284
+ } else {
5285
+ return createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5286
+ parameters
5287
+ );
5288
+ }
5289
+ }
5290
+
4943
5291
  /**
4944
5292
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
4945
5293
  *
@@ -5009,6 +5357,7 @@ export namespace sqladmin_v1 {
5009
5357
  '/v1/projects/{project}/instances/{instance}/resetSslConfig'
5010
5358
  ).replace(/([^:]\/)\/+/g, '$1'),
5011
5359
  method: 'POST',
5360
+ apiVersion: '',
5012
5361
  },
5013
5362
  options
5014
5363
  ),
@@ -5095,6 +5444,7 @@ export namespace sqladmin_v1 {
5095
5444
  rootUrl + '/v1/projects/{project}/instances/{instance}/restart'
5096
5445
  ).replace(/([^:]\/)\/+/g, '$1'),
5097
5446
  method: 'POST',
5447
+ apiVersion: '',
5098
5448
  },
5099
5449
  options
5100
5450
  ),
@@ -5182,6 +5532,7 @@ export namespace sqladmin_v1 {
5182
5532
  '/v1/projects/{project}/instances/{instance}/restoreBackup'
5183
5533
  ).replace(/([^:]\/)\/+/g, '$1'),
5184
5534
  method: 'POST',
5535
+ apiVersion: '',
5185
5536
  },
5186
5537
  options
5187
5538
  ),
@@ -5269,6 +5620,7 @@ export namespace sqladmin_v1 {
5269
5620
  '/v1/projects/{project}/instances/{instance}/rotateServerCa'
5270
5621
  ).replace(/([^:]\/)\/+/g, '$1'),
5271
5622
  method: 'POST',
5623
+ apiVersion: '',
5272
5624
  },
5273
5625
  options
5274
5626
  ),
@@ -5356,6 +5708,7 @@ export namespace sqladmin_v1 {
5356
5708
  '/v1/projects/{project}/instances/{instance}/startReplica'
5357
5709
  ).replace(/([^:]\/)\/+/g, '$1'),
5358
5710
  method: 'POST',
5711
+ apiVersion: '',
5359
5712
  },
5360
5713
  options
5361
5714
  ),
@@ -5443,6 +5796,7 @@ export namespace sqladmin_v1 {
5443
5796
  '/v1/projects/{project}/instances/{instance}/stopReplica'
5444
5797
  ).replace(/([^:]\/)\/+/g, '$1'),
5445
5798
  method: 'POST',
5799
+ apiVersion: '',
5446
5800
  },
5447
5801
  options
5448
5802
  ),
@@ -5529,6 +5883,7 @@ export namespace sqladmin_v1 {
5529
5883
  rootUrl + '/v1/projects/{project}/instances/{instance}/switchover'
5530
5884
  ).replace(/([^:]\/)\/+/g, '$1'),
5531
5885
  method: 'POST',
5886
+ apiVersion: '',
5532
5887
  },
5533
5888
  options
5534
5889
  ),
@@ -5616,6 +5971,7 @@ export namespace sqladmin_v1 {
5616
5971
  '/v1/projects/{project}/instances/{instance}/truncateLog'
5617
5972
  ).replace(/([^:]\/)\/+/g, '$1'),
5618
5973
  method: 'POST',
5974
+ apiVersion: '',
5619
5975
  },
5620
5976
  options
5621
5977
  ),
@@ -5701,6 +6057,7 @@ export namespace sqladmin_v1 {
5701
6057
  rootUrl + '/v1/projects/{project}/instances/{instance}'
5702
6058
  ).replace(/([^:]\/)\/+/g, '$1'),
5703
6059
  method: 'PUT',
6060
+ apiVersion: '',
5704
6061
  },
5705
6062
  options
5706
6063
  ),
@@ -5720,6 +6077,22 @@ export namespace sqladmin_v1 {
5720
6077
  }
5721
6078
  }
5722
6079
 
6080
+ export interface Params$Resource$Instances$Acquiressrslease
6081
+ extends StandardParameters {
6082
+ /**
6083
+ * 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).
6084
+ */
6085
+ instance?: string;
6086
+ /**
6087
+ * Required. Project ID of the project that contains the instance (Example: project-id).
6088
+ */
6089
+ project?: string;
6090
+
6091
+ /**
6092
+ * Request body metadata
6093
+ */
6094
+ requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
6095
+ }
5723
6096
  export interface Params$Resource$Instances$Addserverca
5724
6097
  extends StandardParameters {
5725
6098
  /**
@@ -5929,6 +6302,17 @@ export namespace sqladmin_v1 {
5929
6302
  */
5930
6303
  requestBody?: Schema$InstancesReencryptRequest;
5931
6304
  }
6305
+ export interface Params$Resource$Instances$Releasessrslease
6306
+ extends StandardParameters {
6307
+ /**
6308
+ * 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.
6309
+ */
6310
+ instance?: string;
6311
+ /**
6312
+ * Required. The project ID that contains the instance.
6313
+ */
6314
+ project?: string;
6315
+ }
5932
6316
  export interface Params$Resource$Instances$Resetsslconfig
5933
6317
  extends StandardParameters {
5934
6318
  /**
@@ -6126,6 +6510,7 @@ export namespace sqladmin_v1 {
6126
6510
  rootUrl + '/v1/projects/{project}/operations/{operation}/cancel'
6127
6511
  ).replace(/([^:]\/)\/+/g, '$1'),
6128
6512
  method: 'POST',
6513
+ apiVersion: '',
6129
6514
  },
6130
6515
  options
6131
6516
  ),
@@ -6211,6 +6596,7 @@ export namespace sqladmin_v1 {
6211
6596
  rootUrl + '/v1/projects/{project}/operations/{operation}'
6212
6597
  ).replace(/([^:]\/)\/+/g, '$1'),
6213
6598
  method: 'GET',
6599
+ apiVersion: '',
6214
6600
  },
6215
6601
  options
6216
6602
  ),
@@ -6302,6 +6688,7 @@ export namespace sqladmin_v1 {
6302
6688
  '$1'
6303
6689
  ),
6304
6690
  method: 'GET',
6691
+ apiVersion: '',
6305
6692
  },
6306
6693
  options
6307
6694
  ),
@@ -6452,6 +6839,7 @@ export namespace sqladmin_v1 {
6452
6839
  '/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig'
6453
6840
  ).replace(/([^:]\/)\/+/g, '$1'),
6454
6841
  method: 'GET',
6842
+ apiVersion: '',
6455
6843
  },
6456
6844
  options
6457
6845
  ),
@@ -6548,6 +6936,7 @@ export namespace sqladmin_v1 {
6548
6936
  '/v1/projects/{project}/instances/{instance}/getLatestRecoveryTime'
6549
6937
  ).replace(/([^:]\/)\/+/g, '$1'),
6550
6938
  method: 'GET',
6939
+ apiVersion: '',
6551
6940
  },
6552
6941
  options
6553
6942
  ),
@@ -6637,6 +7026,7 @@ export namespace sqladmin_v1 {
6637
7026
  '/v1/projects/{project}/instances/{instance}/performDiskShrink'
6638
7027
  ).replace(/([^:]\/)\/+/g, '$1'),
6639
7028
  method: 'POST',
7029
+ apiVersion: '',
6640
7030
  },
6641
7031
  options
6642
7032
  ),
@@ -6726,6 +7116,7 @@ export namespace sqladmin_v1 {
6726
7116
  '/v1/projects/{project}/instances/{instance}/rescheduleMaintenance'
6727
7117
  ).replace(/([^:]\/)\/+/g, '$1'),
6728
7118
  method: 'POST',
7119
+ apiVersion: '',
6729
7120
  },
6730
7121
  options
6731
7122
  ),
@@ -6813,6 +7204,7 @@ export namespace sqladmin_v1 {
6813
7204
  '/v1/projects/{project}/instances/{instance}/resetReplicaSize'
6814
7205
  ).replace(/([^:]\/)\/+/g, '$1'),
6815
7206
  method: 'POST',
7207
+ apiVersion: '',
6816
7208
  },
6817
7209
  options
6818
7210
  ),
@@ -6900,6 +7292,7 @@ export namespace sqladmin_v1 {
6900
7292
  '/v1/projects/{project}/instances/{instance}/startExternalSync'
6901
7293
  ).replace(/([^:]\/)\/+/g, '$1'),
6902
7294
  method: 'POST',
7295
+ apiVersion: '',
6903
7296
  },
6904
7297
  options
6905
7298
  ),
@@ -6995,6 +7388,7 @@ export namespace sqladmin_v1 {
6995
7388
  '/v1/projects/{project}/instances/{instance}/verifyExternalSyncSettings'
6996
7389
  ).replace(/([^:]\/)\/+/g, '$1'),
6997
7390
  method: 'POST',
7391
+ apiVersion: '',
6998
7392
  },
6999
7393
  options
7000
7394
  ),
@@ -7194,6 +7588,7 @@ export namespace sqladmin_v1 {
7194
7588
  '/v1/projects/{project}/instances/{instance}/createEphemeral'
7195
7589
  ).replace(/([^:]\/)\/+/g, '$1'),
7196
7590
  method: 'POST',
7591
+ apiVersion: '',
7197
7592
  },
7198
7593
  options
7199
7594
  ),
@@ -7280,6 +7675,7 @@ export namespace sqladmin_v1 {
7280
7675
  '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
7281
7676
  ).replace(/([^:]\/)\/+/g, '$1'),
7282
7677
  method: 'DELETE',
7678
+ apiVersion: '',
7283
7679
  },
7284
7680
  options
7285
7681
  ),
@@ -7366,6 +7762,7 @@ export namespace sqladmin_v1 {
7366
7762
  '/v1/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
7367
7763
  ).replace(/([^:]\/)\/+/g, '$1'),
7368
7764
  method: 'GET',
7765
+ apiVersion: '',
7369
7766
  },
7370
7767
  options
7371
7768
  ),
@@ -7456,6 +7853,7 @@ export namespace sqladmin_v1 {
7456
7853
  rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts'
7457
7854
  ).replace(/([^:]\/)\/+/g, '$1'),
7458
7855
  method: 'POST',
7856
+ apiVersion: '',
7459
7857
  },
7460
7858
  options
7461
7859
  ),
@@ -7546,6 +7944,7 @@ export namespace sqladmin_v1 {
7546
7944
  rootUrl + '/v1/projects/{project}/instances/{instance}/sslCerts'
7547
7945
  ).replace(/([^:]\/)\/+/g, '$1'),
7548
7946
  method: 'GET',
7947
+ apiVersion: '',
7549
7948
  },
7550
7949
  options
7551
7950
  ),
@@ -7712,6 +8111,7 @@ export namespace sqladmin_v1 {
7712
8111
  '$1'
7713
8112
  ),
7714
8113
  method: 'GET',
8114
+ apiVersion: '',
7715
8115
  },
7716
8116
  options
7717
8117
  ),
@@ -7811,6 +8211,7 @@ export namespace sqladmin_v1 {
7811
8211
  rootUrl + '/v1/projects/{project}/instances/{instance}/users'
7812
8212
  ).replace(/([^:]\/)\/+/g, '$1'),
7813
8213
  method: 'DELETE',
8214
+ apiVersion: '',
7814
8215
  },
7815
8216
  options
7816
8217
  ),
@@ -7897,6 +8298,7 @@ export namespace sqladmin_v1 {
7897
8298
  '/v1/projects/{project}/instances/{instance}/users/{name}'
7898
8299
  ).replace(/([^:]\/)\/+/g, '$1'),
7899
8300
  method: 'GET',
8301
+ apiVersion: '',
7900
8302
  },
7901
8303
  options
7902
8304
  ),
@@ -7982,6 +8384,7 @@ export namespace sqladmin_v1 {
7982
8384
  rootUrl + '/v1/projects/{project}/instances/{instance}/users'
7983
8385
  ).replace(/([^:]\/)\/+/g, '$1'),
7984
8386
  method: 'POST',
8387
+ apiVersion: '',
7985
8388
  },
7986
8389
  options
7987
8390
  ),
@@ -8070,6 +8473,7 @@ export namespace sqladmin_v1 {
8070
8473
  rootUrl + '/v1/projects/{project}/instances/{instance}/users'
8071
8474
  ).replace(/([^:]\/)\/+/g, '$1'),
8072
8475
  method: 'GET',
8476
+ apiVersion: '',
8073
8477
  },
8074
8478
  options
8075
8479
  ),
@@ -8155,6 +8559,7 @@ export namespace sqladmin_v1 {
8155
8559
  rootUrl + '/v1/projects/{project}/instances/{instance}/users'
8156
8560
  ).replace(/([^:]\/)\/+/g, '$1'),
8157
8561
  method: 'PUT',
8562
+ apiVersion: '',
8158
8563
  },
8159
8564
  options
8160
8565
  ),