@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/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
  */
@@ -1022,6 +1084,10 @@ export namespace sqladmin_v1beta4 {
1022
1084
  * This is always `sql#importContext`.
1023
1085
  */
1024
1086
  kind?: string | null;
1087
+ /**
1088
+ * Optional. Options for importing data from SQL statements.
1089
+ */
1090
+ sqlImportOptions?: {parallel?: boolean; threads?: number} | null;
1025
1091
  /**
1026
1092
  * 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.
1027
1093
  */
@@ -1069,6 +1135,15 @@ export namespace sqladmin_v1beta4 {
1069
1135
  */
1070
1136
  region?: string | null;
1071
1137
  }
1138
+ /**
1139
+ * Request to acquire an SSRS lease for an instance.
1140
+ */
1141
+ export interface Schema$InstancesAcquireSsrsLeaseRequest {
1142
+ /**
1143
+ * Contains details about the acquire SSRS lease operation.
1144
+ */
1145
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1146
+ }
1072
1147
  /**
1073
1148
  * Database instance clone request.
1074
1149
  */
@@ -1223,11 +1298,11 @@ export namespace sqladmin_v1beta4 {
1223
1298
  */
1224
1299
  pscConfig?: Schema$PscConfig;
1225
1300
  /**
1226
- * 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 legacy `require_ssl` flag.
1301
+ * 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 legacy `require_ssl` flag.
1227
1302
  */
1228
1303
  requireSsl?: boolean | null;
1229
1304
  /**
1230
- * 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`.
1305
+ * 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.
1231
1306
  */
1232
1307
  sslMode?: string | null;
1233
1308
  }
@@ -1393,6 +1468,10 @@ export namespace sqladmin_v1beta4 {
1393
1468
  * An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
1394
1469
  */
1395
1470
  export interface Schema$Operation {
1471
+ /**
1472
+ * The context for acquire SSRS lease operation, if applicable.
1473
+ */
1474
+ acquireSsrsLeaseContext?: Schema$AcquireSsrsLeaseContext;
1396
1475
  /**
1397
1476
  * An Admin API warning message.
1398
1477
  */
@@ -1628,6 +1707,19 @@ export namespace sqladmin_v1beta4 {
1628
1707
  */
1629
1708
  mysqlReplicaConfiguration?: Schema$MySqlReplicaConfiguration;
1630
1709
  }
1710
+ /**
1711
+ * Primary-DR replica pair
1712
+ */
1713
+ export interface Schema$ReplicationCluster {
1714
+ /**
1715
+ * Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.
1716
+ */
1717
+ drReplica?: boolean | null;
1718
+ /**
1719
+ * 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.
1720
+ */
1721
+ failoverDrReplicaName?: string | null;
1722
+ }
1631
1723
  export interface Schema$Reschedule {
1632
1724
  /**
1633
1725
  * Required. The type of the reschedule.
@@ -1744,6 +1836,10 @@ export namespace sqladmin_v1beta4 {
1744
1836
  * Optional. The edition of the instance.
1745
1837
  */
1746
1838
  edition?: string | null;
1839
+ /**
1840
+ * 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.
1841
+ */
1842
+ enableGoogleMlIntegration?: boolean | null;
1747
1843
  /**
1748
1844
  * Insights configuration, for now relevant only for Postgres.
1749
1845
  */
@@ -1835,6 +1931,15 @@ export namespace sqladmin_v1beta4 {
1835
1931
  */
1836
1932
  type?: string | null;
1837
1933
  }
1934
+ /**
1935
+ * Acquire SSRS lease response.
1936
+ */
1937
+ export interface Schema$SqlInstancesAcquireSsrsLeaseResponse {
1938
+ /**
1939
+ * The unique identifier for this operation.
1940
+ */
1941
+ operationId?: string | null;
1942
+ }
1838
1943
  /**
1839
1944
  * Instance get disk shrink config response.
1840
1945
  */
@@ -1865,6 +1970,15 @@ export namespace sqladmin_v1beta4 {
1865
1970
  */
1866
1971
  latestRecoveryTime?: string | null;
1867
1972
  }
1973
+ /**
1974
+ * The response for the release of the SSRS lease.
1975
+ */
1976
+ export interface Schema$SqlInstancesReleaseSsrsLeaseResponse {
1977
+ /**
1978
+ * The operation ID.
1979
+ */
1980
+ operationId?: string | null;
1981
+ }
1868
1982
  /**
1869
1983
  * Reschedule options for maintenance windows.
1870
1984
  */
@@ -1879,6 +1993,10 @@ export namespace sqladmin_v1beta4 {
1879
1993
  */
1880
1994
  export interface Schema$SqlInstancesResetReplicaSizeRequest {}
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
  */
@@ -1897,6 +2015,10 @@ export namespace sqladmin_v1beta4 {
1897
2015
  syncParallelLevel?: string | null;
1898
2016
  }
1899
2017
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
2018
+ /**
2019
+ * Optional. MigrationType field decides if the migration is a physical file based migration or logical migration
2020
+ */
2021
+ migrationType?: string | null;
1900
2022
  /**
1901
2023
  * Optional. MySQL-specific settings for start external sync.
1902
2024
  */
@@ -1905,6 +2027,10 @@ export namespace sqladmin_v1beta4 {
1905
2027
  * External sync mode
1906
2028
  */
1907
2029
  syncMode?: string | null;
2030
+ /**
2031
+ * Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.
2032
+ */
2033
+ syncParallelLevel?: string | null;
1908
2034
  /**
1909
2035
  * Flag to enable verifying connection only
1910
2036
  */
@@ -2347,6 +2473,7 @@ export namespace sqladmin_v1beta4 {
2347
2473
  '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}'
2348
2474
  ).replace(/([^:]\/)\/+/g, '$1'),
2349
2475
  method: 'DELETE',
2476
+ apiVersion: '',
2350
2477
  },
2351
2478
  options
2352
2479
  ),
@@ -2433,6 +2560,7 @@ export namespace sqladmin_v1beta4 {
2433
2560
  '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}'
2434
2561
  ).replace(/([^:]\/)\/+/g, '$1'),
2435
2562
  method: 'GET',
2563
+ apiVersion: '',
2436
2564
  },
2437
2565
  options
2438
2566
  ),
@@ -2520,6 +2648,7 @@ export namespace sqladmin_v1beta4 {
2520
2648
  '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns'
2521
2649
  ).replace(/([^:]\/)\/+/g, '$1'),
2522
2650
  method: 'POST',
2651
+ apiVersion: '',
2523
2652
  },
2524
2653
  options
2525
2654
  ),
@@ -2611,6 +2740,7 @@ export namespace sqladmin_v1beta4 {
2611
2740
  '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns'
2612
2741
  ).replace(/([^:]\/)\/+/g, '$1'),
2613
2742
  method: 'GET',
2743
+ apiVersion: '',
2614
2744
  },
2615
2745
  options
2616
2746
  ),
@@ -2776,6 +2906,7 @@ export namespace sqladmin_v1beta4 {
2776
2906
  '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert'
2777
2907
  ).replace(/([^:]\/)\/+/g, '$1'),
2778
2908
  method: 'POST',
2909
+ apiVersion: '',
2779
2910
  },
2780
2911
  options
2781
2912
  ),
@@ -2864,6 +2995,7 @@ export namespace sqladmin_v1beta4 {
2864
2995
  '/sql/v1beta4/projects/{project}/instances/{instance}/connectSettings'
2865
2996
  ).replace(/([^:]\/)\/+/g, '$1'),
2866
2997
  method: 'GET',
2998
+ apiVersion: '',
2867
2999
  },
2868
3000
  options
2869
3001
  ),
@@ -2988,6 +3120,7 @@ export namespace sqladmin_v1beta4 {
2988
3120
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}'
2989
3121
  ).replace(/([^:]\/)\/+/g, '$1'),
2990
3122
  method: 'DELETE',
3123
+ apiVersion: '',
2991
3124
  },
2992
3125
  options
2993
3126
  ),
@@ -3074,6 +3207,7 @@ export namespace sqladmin_v1beta4 {
3074
3207
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}'
3075
3208
  ).replace(/([^:]\/)\/+/g, '$1'),
3076
3209
  method: 'GET',
3210
+ apiVersion: '',
3077
3211
  },
3078
3212
  options
3079
3213
  ),
@@ -3160,6 +3294,7 @@ export namespace sqladmin_v1beta4 {
3160
3294
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases'
3161
3295
  ).replace(/([^:]\/)\/+/g, '$1'),
3162
3296
  method: 'POST',
3297
+ apiVersion: '',
3163
3298
  },
3164
3299
  options
3165
3300
  ),
@@ -3251,6 +3386,7 @@ export namespace sqladmin_v1beta4 {
3251
3386
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases'
3252
3387
  ).replace(/([^:]\/)\/+/g, '$1'),
3253
3388
  method: 'GET',
3389
+ apiVersion: '',
3254
3390
  },
3255
3391
  options
3256
3392
  ),
@@ -3337,6 +3473,7 @@ export namespace sqladmin_v1beta4 {
3337
3473
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}'
3338
3474
  ).replace(/([^:]\/)\/+/g, '$1'),
3339
3475
  method: 'PATCH',
3476
+ apiVersion: '',
3340
3477
  },
3341
3478
  options
3342
3479
  ),
@@ -3423,6 +3560,7 @@ export namespace sqladmin_v1beta4 {
3423
3560
  '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}'
3424
3561
  ).replace(/([^:]\/)\/+/g, '$1'),
3425
3562
  method: 'PUT',
3563
+ apiVersion: '',
3426
3564
  },
3427
3565
  options
3428
3566
  ),
@@ -3608,6 +3746,7 @@ export namespace sqladmin_v1beta4 {
3608
3746
  {
3609
3747
  url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'),
3610
3748
  method: 'GET',
3749
+ apiVersion: '',
3611
3750
  },
3612
3751
  options
3613
3752
  ),
@@ -3640,6 +3779,103 @@ export namespace sqladmin_v1beta4 {
3640
3779
  this.context = context;
3641
3780
  }
3642
3781
 
3782
+ /**
3783
+ * Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
3784
+ *
3785
+ * @param params - Parameters for request
3786
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3787
+ * @param callback - Optional callback that handles the response.
3788
+ * @returns A promise if used with async/await, or void if used with a callback.
3789
+ */
3790
+ acquireSsrsLease(
3791
+ params: Params$Resource$Instances$Acquiressrslease,
3792
+ options: StreamMethodOptions
3793
+ ): GaxiosPromise<Readable>;
3794
+ acquireSsrsLease(
3795
+ params?: Params$Resource$Instances$Acquiressrslease,
3796
+ options?: MethodOptions
3797
+ ): GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>;
3798
+ acquireSsrsLease(
3799
+ params: Params$Resource$Instances$Acquiressrslease,
3800
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3801
+ callback: BodyResponseCallback<Readable>
3802
+ ): void;
3803
+ acquireSsrsLease(
3804
+ params: Params$Resource$Instances$Acquiressrslease,
3805
+ options:
3806
+ | MethodOptions
3807
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>,
3808
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3809
+ ): void;
3810
+ acquireSsrsLease(
3811
+ params: Params$Resource$Instances$Acquiressrslease,
3812
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3813
+ ): void;
3814
+ acquireSsrsLease(
3815
+ callback: BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3816
+ ): void;
3817
+ acquireSsrsLease(
3818
+ paramsOrCallback?:
3819
+ | Params$Resource$Instances$Acquiressrslease
3820
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3821
+ | BodyResponseCallback<Readable>,
3822
+ optionsOrCallback?:
3823
+ | MethodOptions
3824
+ | StreamMethodOptions
3825
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3826
+ | BodyResponseCallback<Readable>,
3827
+ callback?:
3828
+ | BodyResponseCallback<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3829
+ | BodyResponseCallback<Readable>
3830
+ ):
3831
+ | void
3832
+ | GaxiosPromise<Schema$SqlInstancesAcquireSsrsLeaseResponse>
3833
+ | GaxiosPromise<Readable> {
3834
+ let params = (paramsOrCallback ||
3835
+ {}) as Params$Resource$Instances$Acquiressrslease;
3836
+ let options = (optionsOrCallback || {}) as MethodOptions;
3837
+
3838
+ if (typeof paramsOrCallback === 'function') {
3839
+ callback = paramsOrCallback;
3840
+ params = {} as Params$Resource$Instances$Acquiressrslease;
3841
+ options = {};
3842
+ }
3843
+
3844
+ if (typeof optionsOrCallback === 'function') {
3845
+ callback = optionsOrCallback;
3846
+ options = {};
3847
+ }
3848
+
3849
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
3850
+ const parameters = {
3851
+ options: Object.assign(
3852
+ {
3853
+ url: (
3854
+ rootUrl +
3855
+ '/sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease'
3856
+ ).replace(/([^:]\/)\/+/g, '$1'),
3857
+ method: 'POST',
3858
+ apiVersion: '',
3859
+ },
3860
+ options
3861
+ ),
3862
+ params,
3863
+ requiredParams: ['project', 'instance'],
3864
+ pathParams: ['instance', 'project'],
3865
+ context: this.context,
3866
+ };
3867
+ if (callback) {
3868
+ createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3869
+ parameters,
3870
+ callback as BodyResponseCallback<unknown>
3871
+ );
3872
+ } else {
3873
+ return createAPIRequest<Schema$SqlInstancesAcquireSsrsLeaseResponse>(
3874
+ parameters
3875
+ );
3876
+ }
3877
+ }
3878
+
3643
3879
  /**
3644
3880
  * 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
3881
  *
@@ -3709,6 +3945,7 @@ export namespace sqladmin_v1beta4 {
3709
3945
  '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa'
3710
3946
  ).replace(/([^:]\/)\/+/g, '$1'),
3711
3947
  method: 'POST',
3948
+ apiVersion: '',
3712
3949
  },
3713
3950
  options
3714
3951
  ),
@@ -3795,6 +4032,7 @@ export namespace sqladmin_v1beta4 {
3795
4032
  '/sql/v1beta4/projects/{project}/instances/{instance}/clone'
3796
4033
  ).replace(/([^:]\/)\/+/g, '$1'),
3797
4034
  method: 'POST',
4035
+ apiVersion: '',
3798
4036
  },
3799
4037
  options
3800
4038
  ),
@@ -3880,6 +4118,7 @@ export namespace sqladmin_v1beta4 {
3880
4118
  rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}'
3881
4119
  ).replace(/([^:]\/)\/+/g, '$1'),
3882
4120
  method: 'DELETE',
4121
+ apiVersion: '',
3883
4122
  },
3884
4123
  options
3885
4124
  ),
@@ -3966,6 +4205,7 @@ export namespace sqladmin_v1beta4 {
3966
4205
  '/sql/v1beta4/projects/{project}/instances/{instance}/demote'
3967
4206
  ).replace(/([^:]\/)\/+/g, '$1'),
3968
4207
  method: 'POST',
4208
+ apiVersion: '',
3969
4209
  },
3970
4210
  options
3971
4211
  ),
@@ -4053,6 +4293,7 @@ export namespace sqladmin_v1beta4 {
4053
4293
  '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster'
4054
4294
  ).replace(/([^:]\/)\/+/g, '$1'),
4055
4295
  method: 'POST',
4296
+ apiVersion: '',
4056
4297
  },
4057
4298
  options
4058
4299
  ),
@@ -4139,6 +4380,7 @@ export namespace sqladmin_v1beta4 {
4139
4380
  '/sql/v1beta4/projects/{project}/instances/{instance}/export'
4140
4381
  ).replace(/([^:]\/)\/+/g, '$1'),
4141
4382
  method: 'POST',
4383
+ apiVersion: '',
4142
4384
  },
4143
4385
  options
4144
4386
  ),
@@ -4226,6 +4468,7 @@ export namespace sqladmin_v1beta4 {
4226
4468
  '/sql/v1beta4/projects/{project}/instances/{instance}/failover'
4227
4469
  ).replace(/([^:]\/)\/+/g, '$1'),
4228
4470
  method: 'POST',
4471
+ apiVersion: '',
4229
4472
  },
4230
4473
  options
4231
4474
  ),
@@ -4311,6 +4554,7 @@ export namespace sqladmin_v1beta4 {
4311
4554
  rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}'
4312
4555
  ).replace(/([^:]\/)\/+/g, '$1'),
4313
4556
  method: 'GET',
4557
+ apiVersion: '',
4314
4558
  },
4315
4559
  options
4316
4560
  ),
@@ -4397,6 +4641,7 @@ export namespace sqladmin_v1beta4 {
4397
4641
  '/sql/v1beta4/projects/{project}/instances/{instance}/import'
4398
4642
  ).replace(/([^:]\/)\/+/g, '$1'),
4399
4643
  method: 'POST',
4644
+ apiVersion: '',
4400
4645
  },
4401
4646
  options
4402
4647
  ),
@@ -4482,6 +4727,7 @@ export namespace sqladmin_v1beta4 {
4482
4727
  rootUrl + '/sql/v1beta4/projects/{project}/instances'
4483
4728
  ).replace(/([^:]\/)\/+/g, '$1'),
4484
4729
  method: 'POST',
4730
+ apiVersion: '',
4485
4731
  },
4486
4732
  options
4487
4733
  ),
@@ -4572,6 +4818,7 @@ export namespace sqladmin_v1beta4 {
4572
4818
  rootUrl + '/sql/v1beta4/projects/{project}/instances'
4573
4819
  ).replace(/([^:]\/)\/+/g, '$1'),
4574
4820
  method: 'GET',
4821
+ apiVersion: '',
4575
4822
  },
4576
4823
  options
4577
4824
  ),
@@ -4666,6 +4913,7 @@ export namespace sqladmin_v1beta4 {
4666
4913
  '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas'
4667
4914
  ).replace(/([^:]\/)\/+/g, '$1'),
4668
4915
  method: 'GET',
4916
+ apiVersion: '',
4669
4917
  },
4670
4918
  options
4671
4919
  ),
@@ -4753,6 +5001,7 @@ export namespace sqladmin_v1beta4 {
4753
5001
  rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}'
4754
5002
  ).replace(/([^:]\/)\/+/g, '$1'),
4755
5003
  method: 'PATCH',
5004
+ apiVersion: '',
4756
5005
  },
4757
5006
  options
4758
5007
  ),
@@ -4840,6 +5089,7 @@ export namespace sqladmin_v1beta4 {
4840
5089
  '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica'
4841
5090
  ).replace(/([^:]\/)\/+/g, '$1'),
4842
5091
  method: 'POST',
5092
+ apiVersion: '',
4843
5093
  },
4844
5094
  options
4845
5095
  ),
@@ -4927,6 +5177,7 @@ export namespace sqladmin_v1beta4 {
4927
5177
  '/sql/v1beta4/projects/{project}/instances/{instance}/reencrypt'
4928
5178
  ).replace(/([^:]\/)\/+/g, '$1'),
4929
5179
  method: 'POST',
5180
+ apiVersion: '',
4930
5181
  },
4931
5182
  options
4932
5183
  ),
@@ -4945,6 +5196,103 @@ export namespace sqladmin_v1beta4 {
4945
5196
  }
4946
5197
  }
4947
5198
 
5199
+ /**
5200
+ * Release a lease for the setup of SQL Server Reporting Services (SSRS).
5201
+ *
5202
+ * @param params - Parameters for request
5203
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5204
+ * @param callback - Optional callback that handles the response.
5205
+ * @returns A promise if used with async/await, or void if used with a callback.
5206
+ */
5207
+ releaseSsrsLease(
5208
+ params: Params$Resource$Instances$Releasessrslease,
5209
+ options: StreamMethodOptions
5210
+ ): GaxiosPromise<Readable>;
5211
+ releaseSsrsLease(
5212
+ params?: Params$Resource$Instances$Releasessrslease,
5213
+ options?: MethodOptions
5214
+ ): GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>;
5215
+ releaseSsrsLease(
5216
+ params: Params$Resource$Instances$Releasessrslease,
5217
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5218
+ callback: BodyResponseCallback<Readable>
5219
+ ): void;
5220
+ releaseSsrsLease(
5221
+ params: Params$Resource$Instances$Releasessrslease,
5222
+ options:
5223
+ | MethodOptions
5224
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>,
5225
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5226
+ ): void;
5227
+ releaseSsrsLease(
5228
+ params: Params$Resource$Instances$Releasessrslease,
5229
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5230
+ ): void;
5231
+ releaseSsrsLease(
5232
+ callback: BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5233
+ ): void;
5234
+ releaseSsrsLease(
5235
+ paramsOrCallback?:
5236
+ | Params$Resource$Instances$Releasessrslease
5237
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5238
+ | BodyResponseCallback<Readable>,
5239
+ optionsOrCallback?:
5240
+ | MethodOptions
5241
+ | StreamMethodOptions
5242
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5243
+ | BodyResponseCallback<Readable>,
5244
+ callback?:
5245
+ | BodyResponseCallback<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5246
+ | BodyResponseCallback<Readable>
5247
+ ):
5248
+ | void
5249
+ | GaxiosPromise<Schema$SqlInstancesReleaseSsrsLeaseResponse>
5250
+ | GaxiosPromise<Readable> {
5251
+ let params = (paramsOrCallback ||
5252
+ {}) as Params$Resource$Instances$Releasessrslease;
5253
+ let options = (optionsOrCallback || {}) as MethodOptions;
5254
+
5255
+ if (typeof paramsOrCallback === 'function') {
5256
+ callback = paramsOrCallback;
5257
+ params = {} as Params$Resource$Instances$Releasessrslease;
5258
+ options = {};
5259
+ }
5260
+
5261
+ if (typeof optionsOrCallback === 'function') {
5262
+ callback = optionsOrCallback;
5263
+ options = {};
5264
+ }
5265
+
5266
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5267
+ const parameters = {
5268
+ options: Object.assign(
5269
+ {
5270
+ url: (
5271
+ rootUrl +
5272
+ '/sql/v1beta4/projects/{project}/instances/{instance}/releaseSsrsLease'
5273
+ ).replace(/([^:]\/)\/+/g, '$1'),
5274
+ method: 'POST',
5275
+ apiVersion: '',
5276
+ },
5277
+ options
5278
+ ),
5279
+ params,
5280
+ requiredParams: ['project', 'instance'],
5281
+ pathParams: ['instance', 'project'],
5282
+ context: this.context,
5283
+ };
5284
+ if (callback) {
5285
+ createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5286
+ parameters,
5287
+ callback as BodyResponseCallback<unknown>
5288
+ );
5289
+ } else {
5290
+ return createAPIRequest<Schema$SqlInstancesReleaseSsrsLeaseResponse>(
5291
+ parameters
5292
+ );
5293
+ }
5294
+ }
5295
+
4948
5296
  /**
4949
5297
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
4950
5298
  *
@@ -5014,6 +5362,7 @@ export namespace sqladmin_v1beta4 {
5014
5362
  '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig'
5015
5363
  ).replace(/([^:]\/)\/+/g, '$1'),
5016
5364
  method: 'POST',
5365
+ apiVersion: '',
5017
5366
  },
5018
5367
  options
5019
5368
  ),
@@ -5101,6 +5450,7 @@ export namespace sqladmin_v1beta4 {
5101
5450
  '/sql/v1beta4/projects/{project}/instances/{instance}/restart'
5102
5451
  ).replace(/([^:]\/)\/+/g, '$1'),
5103
5452
  method: 'POST',
5453
+ apiVersion: '',
5104
5454
  },
5105
5455
  options
5106
5456
  ),
@@ -5188,6 +5538,7 @@ export namespace sqladmin_v1beta4 {
5188
5538
  '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup'
5189
5539
  ).replace(/([^:]\/)\/+/g, '$1'),
5190
5540
  method: 'POST',
5541
+ apiVersion: '',
5191
5542
  },
5192
5543
  options
5193
5544
  ),
@@ -5275,6 +5626,7 @@ export namespace sqladmin_v1beta4 {
5275
5626
  '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa'
5276
5627
  ).replace(/([^:]\/)\/+/g, '$1'),
5277
5628
  method: 'POST',
5629
+ apiVersion: '',
5278
5630
  },
5279
5631
  options
5280
5632
  ),
@@ -5362,6 +5714,7 @@ export namespace sqladmin_v1beta4 {
5362
5714
  '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica'
5363
5715
  ).replace(/([^:]\/)\/+/g, '$1'),
5364
5716
  method: 'POST',
5717
+ apiVersion: '',
5365
5718
  },
5366
5719
  options
5367
5720
  ),
@@ -5449,6 +5802,7 @@ export namespace sqladmin_v1beta4 {
5449
5802
  '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica'
5450
5803
  ).replace(/([^:]\/)\/+/g, '$1'),
5451
5804
  method: 'POST',
5805
+ apiVersion: '',
5452
5806
  },
5453
5807
  options
5454
5808
  ),
@@ -5536,6 +5890,7 @@ export namespace sqladmin_v1beta4 {
5536
5890
  '/sql/v1beta4/projects/{project}/instances/{instance}/switchover'
5537
5891
  ).replace(/([^:]\/)\/+/g, '$1'),
5538
5892
  method: 'POST',
5893
+ apiVersion: '',
5539
5894
  },
5540
5895
  options
5541
5896
  ),
@@ -5623,6 +5978,7 @@ export namespace sqladmin_v1beta4 {
5623
5978
  '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog'
5624
5979
  ).replace(/([^:]\/)\/+/g, '$1'),
5625
5980
  method: 'POST',
5981
+ apiVersion: '',
5626
5982
  },
5627
5983
  options
5628
5984
  ),
@@ -5708,6 +6064,7 @@ export namespace sqladmin_v1beta4 {
5708
6064
  rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}'
5709
6065
  ).replace(/([^:]\/)\/+/g, '$1'),
5710
6066
  method: 'PUT',
6067
+ apiVersion: '',
5711
6068
  },
5712
6069
  options
5713
6070
  ),
@@ -5727,6 +6084,22 @@ export namespace sqladmin_v1beta4 {
5727
6084
  }
5728
6085
  }
5729
6086
 
6087
+ export interface Params$Resource$Instances$Acquiressrslease
6088
+ extends StandardParameters {
6089
+ /**
6090
+ * 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).
6091
+ */
6092
+ instance?: string;
6093
+ /**
6094
+ * Required. ID of the project that contains the instance (Example: project-id).
6095
+ */
6096
+ project?: string;
6097
+
6098
+ /**
6099
+ * Request body metadata
6100
+ */
6101
+ requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
6102
+ }
5730
6103
  export interface Params$Resource$Instances$Addserverca
5731
6104
  extends StandardParameters {
5732
6105
  /**
@@ -5936,6 +6309,17 @@ export namespace sqladmin_v1beta4 {
5936
6309
  */
5937
6310
  requestBody?: Schema$InstancesReencryptRequest;
5938
6311
  }
6312
+ export interface Params$Resource$Instances$Releasessrslease
6313
+ extends StandardParameters {
6314
+ /**
6315
+ * 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).
6316
+ */
6317
+ instance?: string;
6318
+ /**
6319
+ * Required. The ID of the project that contains the instance (Example: project-id).
6320
+ */
6321
+ project?: string;
6322
+ }
5939
6323
  export interface Params$Resource$Instances$Resetsslconfig
5940
6324
  extends StandardParameters {
5941
6325
  /**
@@ -6134,6 +6518,7 @@ export namespace sqladmin_v1beta4 {
6134
6518
  '/sql/v1beta4/projects/{project}/operations/{operation}/cancel'
6135
6519
  ).replace(/([^:]\/)\/+/g, '$1'),
6136
6520
  method: 'POST',
6521
+ apiVersion: '',
6137
6522
  },
6138
6523
  options
6139
6524
  ),
@@ -6219,6 +6604,7 @@ export namespace sqladmin_v1beta4 {
6219
6604
  rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}'
6220
6605
  ).replace(/([^:]\/)\/+/g, '$1'),
6221
6606
  method: 'GET',
6607
+ apiVersion: '',
6222
6608
  },
6223
6609
  options
6224
6610
  ),
@@ -6309,6 +6695,7 @@ export namespace sqladmin_v1beta4 {
6309
6695
  rootUrl + '/sql/v1beta4/projects/{project}/operations'
6310
6696
  ).replace(/([^:]\/)\/+/g, '$1'),
6311
6697
  method: 'GET',
6698
+ apiVersion: '',
6312
6699
  },
6313
6700
  options
6314
6701
  ),
@@ -6459,6 +6846,7 @@ export namespace sqladmin_v1beta4 {
6459
6846
  '/sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig'
6460
6847
  ).replace(/([^:]\/)\/+/g, '$1'),
6461
6848
  method: 'GET',
6849
+ apiVersion: '',
6462
6850
  },
6463
6851
  options
6464
6852
  ),
@@ -6555,6 +6943,7 @@ export namespace sqladmin_v1beta4 {
6555
6943
  '/sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime'
6556
6944
  ).replace(/([^:]\/)\/+/g, '$1'),
6557
6945
  method: 'GET',
6946
+ apiVersion: '',
6558
6947
  },
6559
6948
  options
6560
6949
  ),
@@ -6644,6 +7033,7 @@ export namespace sqladmin_v1beta4 {
6644
7033
  '/sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink'
6645
7034
  ).replace(/([^:]\/)\/+/g, '$1'),
6646
7035
  method: 'POST',
7036
+ apiVersion: '',
6647
7037
  },
6648
7038
  options
6649
7039
  ),
@@ -6733,6 +7123,7 @@ export namespace sqladmin_v1beta4 {
6733
7123
  '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance'
6734
7124
  ).replace(/([^:]\/)\/+/g, '$1'),
6735
7125
  method: 'POST',
7126
+ apiVersion: '',
6736
7127
  },
6737
7128
  options
6738
7129
  ),
@@ -6820,6 +7211,7 @@ export namespace sqladmin_v1beta4 {
6820
7211
  '/sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize'
6821
7212
  ).replace(/([^:]\/)\/+/g, '$1'),
6822
7213
  method: 'POST',
7214
+ apiVersion: '',
6823
7215
  },
6824
7216
  options
6825
7217
  ),
@@ -6907,6 +7299,7 @@ export namespace sqladmin_v1beta4 {
6907
7299
  '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync'
6908
7300
  ).replace(/([^:]\/)\/+/g, '$1'),
6909
7301
  method: 'POST',
7302
+ apiVersion: '',
6910
7303
  },
6911
7304
  options
6912
7305
  ),
@@ -7002,6 +7395,7 @@ export namespace sqladmin_v1beta4 {
7002
7395
  '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings'
7003
7396
  ).replace(/([^:]\/)\/+/g, '$1'),
7004
7397
  method: 'POST',
7398
+ apiVersion: '',
7005
7399
  },
7006
7400
  options
7007
7401
  ),
@@ -7201,6 +7595,7 @@ export namespace sqladmin_v1beta4 {
7201
7595
  '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral'
7202
7596
  ).replace(/([^:]\/)\/+/g, '$1'),
7203
7597
  method: 'POST',
7598
+ apiVersion: '',
7204
7599
  },
7205
7600
  options
7206
7601
  ),
@@ -7287,6 +7682,7 @@ export namespace sqladmin_v1beta4 {
7287
7682
  '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
7288
7683
  ).replace(/([^:]\/)\/+/g, '$1'),
7289
7684
  method: 'DELETE',
7685
+ apiVersion: '',
7290
7686
  },
7291
7687
  options
7292
7688
  ),
@@ -7373,6 +7769,7 @@ export namespace sqladmin_v1beta4 {
7373
7769
  '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
7374
7770
  ).replace(/([^:]\/)\/+/g, '$1'),
7375
7771
  method: 'GET',
7772
+ apiVersion: '',
7376
7773
  },
7377
7774
  options
7378
7775
  ),
@@ -7464,6 +7861,7 @@ export namespace sqladmin_v1beta4 {
7464
7861
  '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts'
7465
7862
  ).replace(/([^:]\/)\/+/g, '$1'),
7466
7863
  method: 'POST',
7864
+ apiVersion: '',
7467
7865
  },
7468
7866
  options
7469
7867
  ),
@@ -7555,6 +7953,7 @@ export namespace sqladmin_v1beta4 {
7555
7953
  '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts'
7556
7954
  ).replace(/([^:]\/)\/+/g, '$1'),
7557
7955
  method: 'GET',
7956
+ apiVersion: '',
7558
7957
  },
7559
7958
  options
7560
7959
  ),
@@ -7721,6 +8120,7 @@ export namespace sqladmin_v1beta4 {
7721
8120
  '$1'
7722
8121
  ),
7723
8122
  method: 'GET',
8123
+ apiVersion: '',
7724
8124
  },
7725
8125
  options
7726
8126
  ),
@@ -7821,6 +8221,7 @@ export namespace sqladmin_v1beta4 {
7821
8221
  '/sql/v1beta4/projects/{project}/instances/{instance}/users'
7822
8222
  ).replace(/([^:]\/)\/+/g, '$1'),
7823
8223
  method: 'DELETE',
8224
+ apiVersion: '',
7824
8225
  },
7825
8226
  options
7826
8227
  ),
@@ -7907,6 +8308,7 @@ export namespace sqladmin_v1beta4 {
7907
8308
  '/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}'
7908
8309
  ).replace(/([^:]\/)\/+/g, '$1'),
7909
8310
  method: 'GET',
8311
+ apiVersion: '',
7910
8312
  },
7911
8313
  options
7912
8314
  ),
@@ -7993,6 +8395,7 @@ export namespace sqladmin_v1beta4 {
7993
8395
  '/sql/v1beta4/projects/{project}/instances/{instance}/users'
7994
8396
  ).replace(/([^:]\/)\/+/g, '$1'),
7995
8397
  method: 'POST',
8398
+ apiVersion: '',
7996
8399
  },
7997
8400
  options
7998
8401
  ),
@@ -8082,6 +8485,7 @@ export namespace sqladmin_v1beta4 {
8082
8485
  '/sql/v1beta4/projects/{project}/instances/{instance}/users'
8083
8486
  ).replace(/([^:]\/)\/+/g, '$1'),
8084
8487
  method: 'GET',
8488
+ apiVersion: '',
8085
8489
  },
8086
8490
  options
8087
8491
  ),
@@ -8168,6 +8572,7 @@ export namespace sqladmin_v1beta4 {
8168
8572
  '/sql/v1beta4/projects/{project}/instances/{instance}/users'
8169
8573
  ).replace(/([^:]\/)\/+/g, '$1'),
8170
8574
  method: 'PUT',
8575
+ apiVersion: '',
8171
8576
  },
8172
8577
  options
8173
8578
  ),