@googleapis/sqladmin 34.1.0 → 34.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +263 -3
- package/build/v1.js +66 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +378 -3
- package/build/v1beta4.js +99 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +469 -81
- package/v1beta4.ts +663 -81
package/v1beta4.ts
CHANGED
|
@@ -1564,6 +1564,23 @@ export namespace sqladmin_v1beta4 {
|
|
|
1564
1564
|
*/
|
|
1565
1565
|
importContext?: Schema$ImportContext;
|
|
1566
1566
|
}
|
|
1567
|
+
/**
|
|
1568
|
+
* Instances ListEntraIdCertificates response.
|
|
1569
|
+
*/
|
|
1570
|
+
export interface Schema$InstancesListEntraIdCertificatesResponse {
|
|
1571
|
+
/**
|
|
1572
|
+
* The `sha1_fingerprint` of the active certificate from `certs`.
|
|
1573
|
+
*/
|
|
1574
|
+
activeVersion?: string | null;
|
|
1575
|
+
/**
|
|
1576
|
+
* List of Entra ID certificates for the instance.
|
|
1577
|
+
*/
|
|
1578
|
+
certs?: Schema$SslCert[];
|
|
1579
|
+
/**
|
|
1580
|
+
* This is always `sql#instancesListEntraIdCertificates`.
|
|
1581
|
+
*/
|
|
1582
|
+
kind?: string | null;
|
|
1583
|
+
}
|
|
1567
1584
|
/**
|
|
1568
1585
|
* Database instances list response.
|
|
1569
1586
|
*/
|
|
@@ -1663,6 +1680,15 @@ export namespace sqladmin_v1beta4 {
|
|
|
1663
1680
|
*/
|
|
1664
1681
|
restoreInstanceSettings?: Schema$DatabaseInstance;
|
|
1665
1682
|
}
|
|
1683
|
+
/**
|
|
1684
|
+
* Rotate Entra ID Certificate request.
|
|
1685
|
+
*/
|
|
1686
|
+
export interface Schema$InstancesRotateEntraIdCertificateRequest {
|
|
1687
|
+
/**
|
|
1688
|
+
* Optional. Contains details about the rotate Entra ID certificate operation.
|
|
1689
|
+
*/
|
|
1690
|
+
rotateEntraIdCertificateContext?: Schema$RotateEntraIdCertificateContext;
|
|
1691
|
+
}
|
|
1666
1692
|
/**
|
|
1667
1693
|
* Rotate Server CA request.
|
|
1668
1694
|
*/
|
|
@@ -1747,6 +1773,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
1747
1773
|
* Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT\}/locations/{REGION\}/caPools/{CA_POOL_ID\}
|
|
1748
1774
|
*/
|
|
1749
1775
|
serverCaPool?: string | null;
|
|
1776
|
+
/**
|
|
1777
|
+
* Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
|
|
1778
|
+
*/
|
|
1779
|
+
serverCertificateRotationMode?: string | null;
|
|
1750
1780
|
/**
|
|
1751
1781
|
* 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` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
|
|
1752
1782
|
*/
|
|
@@ -2175,7 +2205,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2175
2205
|
targetSizeGb?: string | null;
|
|
2176
2206
|
}
|
|
2177
2207
|
/**
|
|
2178
|
-
* Context to perform a point-in-time restore of an instance managed by
|
|
2208
|
+
* Context to perform a point-in-time restore of an instance managed by Backup and Disaster Recovery (DR) Service.
|
|
2179
2209
|
*/
|
|
2180
2210
|
export interface Schema$PointInTimeRestoreContext {
|
|
2181
2211
|
/**
|
|
@@ -2183,7 +2213,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2183
2213
|
*/
|
|
2184
2214
|
allocatedIpRange?: string | null;
|
|
2185
2215
|
/**
|
|
2186
|
-
* The
|
|
2216
|
+
* The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project\}/locations/{region\}/backupVaults/{backupvault\}/dataSources/{datasource\}.
|
|
2187
2217
|
*/
|
|
2188
2218
|
datasource?: string | null;
|
|
2189
2219
|
/**
|
|
@@ -2443,6 +2473,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
2443
2473
|
*/
|
|
2444
2474
|
project?: string | null;
|
|
2445
2475
|
}
|
|
2476
|
+
/**
|
|
2477
|
+
* Instance rotate Entra ID certificate context.
|
|
2478
|
+
*/
|
|
2479
|
+
export interface Schema$RotateEntraIdCertificateContext {
|
|
2480
|
+
/**
|
|
2481
|
+
* Optional. This is always `sql#rotateEntraIdCertificateContext`.
|
|
2482
|
+
*/
|
|
2483
|
+
kind?: string | null;
|
|
2484
|
+
/**
|
|
2485
|
+
* Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added Entra ID certificate version.
|
|
2486
|
+
*/
|
|
2487
|
+
nextVersion?: string | null;
|
|
2488
|
+
}
|
|
2446
2489
|
/**
|
|
2447
2490
|
* Instance rotate server CA context.
|
|
2448
2491
|
*/
|
|
@@ -2536,7 +2579,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
2536
2579
|
*/
|
|
2537
2580
|
crashSafeReplicationEnabled?: boolean | null;
|
|
2538
2581
|
/**
|
|
2539
|
-
* This parameter controls whether to allow using
|
|
2582
|
+
* This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
|
|
2540
2583
|
*/
|
|
2541
2584
|
dataApiAccess?: string | null;
|
|
2542
2585
|
/**
|
|
@@ -2587,6 +2630,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2587
2630
|
* 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 MySQL and Cloud SQL for PostgreSQL instances.
|
|
2588
2631
|
*/
|
|
2589
2632
|
enableGoogleMlIntegration?: boolean | null;
|
|
2633
|
+
/**
|
|
2634
|
+
* Optional. The Microsoft Entra ID configuration for the SQL Server instance.
|
|
2635
|
+
*/
|
|
2636
|
+
entraidConfig?: Schema$SqlServerEntraIdConfig;
|
|
2590
2637
|
/**
|
|
2591
2638
|
* Optional. The final backup configuration for the instance.
|
|
2592
2639
|
*/
|
|
@@ -2719,6 +2766,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
2719
2766
|
*/
|
|
2720
2767
|
operationId?: string | null;
|
|
2721
2768
|
}
|
|
2769
|
+
/**
|
|
2770
|
+
* Request for AddEntraIdCertificate RPC.
|
|
2771
|
+
*/
|
|
2772
|
+
export interface Schema$SqlInstancesAddEntraIdCertificateRequest {}
|
|
2722
2773
|
/**
|
|
2723
2774
|
* Execute SQL statements response.
|
|
2724
2775
|
*/
|
|
@@ -2934,6 +2985,23 @@ export namespace sqladmin_v1beta4 {
|
|
|
2934
2985
|
*/
|
|
2935
2986
|
recoveryModel?: string | null;
|
|
2936
2987
|
}
|
|
2988
|
+
/**
|
|
2989
|
+
* SQL Server Entra ID configuration.
|
|
2990
|
+
*/
|
|
2991
|
+
export interface Schema$SqlServerEntraIdConfig {
|
|
2992
|
+
/**
|
|
2993
|
+
* Optional. The application ID for the Entra ID configuration.
|
|
2994
|
+
*/
|
|
2995
|
+
applicationId?: string | null;
|
|
2996
|
+
/**
|
|
2997
|
+
* Output only. This is always sql#sqlServerEntraIdConfig
|
|
2998
|
+
*/
|
|
2999
|
+
kind?: string | null;
|
|
3000
|
+
/**
|
|
3001
|
+
* Optional. The tenant ID for the Entra ID configuration.
|
|
3002
|
+
*/
|
|
3003
|
+
tenantId?: string | null;
|
|
3004
|
+
}
|
|
2937
3005
|
/**
|
|
2938
3006
|
* Represents a Sql Server user on the Cloud SQL instance.
|
|
2939
3007
|
*/
|
|
@@ -3164,6 +3232,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
3164
3232
|
* A Cloud SQL user resource.
|
|
3165
3233
|
*/
|
|
3166
3234
|
export interface Schema$User {
|
|
3235
|
+
/**
|
|
3236
|
+
* Optional. Role memberships of the user
|
|
3237
|
+
*/
|
|
3238
|
+
databaseRoles?: string[] | null;
|
|
3167
3239
|
/**
|
|
3168
3240
|
* Dual password status for the user.
|
|
3169
3241
|
*/
|
|
@@ -3937,8 +4009,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3937
4009
|
}
|
|
3938
4010
|
}
|
|
3939
4011
|
|
|
3940
|
-
export interface Params$Resource$Backupruns$Delete
|
|
3941
|
-
extends StandardParameters {
|
|
4012
|
+
export interface Params$Resource$Backupruns$Delete extends StandardParameters {
|
|
3942
4013
|
/**
|
|
3943
4014
|
* The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/backupRuns/list) method.
|
|
3944
4015
|
*/
|
|
@@ -3966,8 +4037,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
3966
4037
|
*/
|
|
3967
4038
|
project?: string;
|
|
3968
4039
|
}
|
|
3969
|
-
export interface Params$Resource$Backupruns$Insert
|
|
3970
|
-
extends StandardParameters {
|
|
4040
|
+
export interface Params$Resource$Backupruns$Insert extends StandardParameters {
|
|
3971
4041
|
/**
|
|
3972
4042
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
3973
4043
|
*/
|
|
@@ -4859,8 +4929,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4859
4929
|
}
|
|
4860
4930
|
}
|
|
4861
4931
|
|
|
4862
|
-
export interface Params$Resource$Backups$Createbackup
|
|
4863
|
-
extends StandardParameters {
|
|
4932
|
+
export interface Params$Resource$Backups$Createbackup extends StandardParameters {
|
|
4864
4933
|
/**
|
|
4865
4934
|
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
4866
4935
|
*/
|
|
@@ -4871,22 +4940,19 @@ export namespace sqladmin_v1beta4 {
|
|
|
4871
4940
|
*/
|
|
4872
4941
|
requestBody?: Schema$Backup;
|
|
4873
4942
|
}
|
|
4874
|
-
export interface Params$Resource$Backups$Deletebackup
|
|
4875
|
-
extends StandardParameters {
|
|
4943
|
+
export interface Params$Resource$Backups$Deletebackup extends StandardParameters {
|
|
4876
4944
|
/**
|
|
4877
4945
|
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
4878
4946
|
*/
|
|
4879
4947
|
name?: string;
|
|
4880
4948
|
}
|
|
4881
|
-
export interface Params$Resource$Backups$Getbackup
|
|
4882
|
-
extends StandardParameters {
|
|
4949
|
+
export interface Params$Resource$Backups$Getbackup extends StandardParameters {
|
|
4883
4950
|
/**
|
|
4884
4951
|
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
4885
4952
|
*/
|
|
4886
4953
|
name?: string;
|
|
4887
4954
|
}
|
|
4888
|
-
export interface Params$Resource$Backups$Listbackups
|
|
4889
|
-
extends StandardParameters {
|
|
4955
|
+
export interface Params$Resource$Backups$Listbackups extends StandardParameters {
|
|
4890
4956
|
/**
|
|
4891
4957
|
* Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime\>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.
|
|
4892
4958
|
*/
|
|
@@ -4904,8 +4970,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
4904
4970
|
*/
|
|
4905
4971
|
parent?: string;
|
|
4906
4972
|
}
|
|
4907
|
-
export interface Params$Resource$Backups$Updatebackup
|
|
4908
|
-
extends StandardParameters {
|
|
4973
|
+
export interface Params$Resource$Backups$Updatebackup extends StandardParameters {
|
|
4909
4974
|
/**
|
|
4910
4975
|
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
4911
4976
|
*/
|
|
@@ -5243,8 +5308,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
5243
5308
|
}
|
|
5244
5309
|
}
|
|
5245
5310
|
|
|
5246
|
-
export interface Params$Resource$Connect$Generateephemeralcert
|
|
5247
|
-
extends StandardParameters {
|
|
5311
|
+
export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
|
|
5248
5312
|
/**
|
|
5249
5313
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
5250
5314
|
*/
|
|
@@ -6685,6 +6749,175 @@ export namespace sqladmin_v1beta4 {
|
|
|
6685
6749
|
}
|
|
6686
6750
|
}
|
|
6687
6751
|
|
|
6752
|
+
/**
|
|
6753
|
+
* Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.
|
|
6754
|
+
* @example
|
|
6755
|
+
* ```js
|
|
6756
|
+
* // Before running the sample:
|
|
6757
|
+
* // - Enable the API at:
|
|
6758
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6759
|
+
* // - Login into gcloud by running:
|
|
6760
|
+
* // ```sh
|
|
6761
|
+
* // $ gcloud auth application-default login
|
|
6762
|
+
* // ```
|
|
6763
|
+
* // - Install the npm module by running:
|
|
6764
|
+
* // ```sh
|
|
6765
|
+
* // $ npm install googleapis
|
|
6766
|
+
* // ```
|
|
6767
|
+
*
|
|
6768
|
+
* const {google} = require('googleapis');
|
|
6769
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
6770
|
+
*
|
|
6771
|
+
* async function main() {
|
|
6772
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6773
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6774
|
+
* scopes: [
|
|
6775
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6776
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6777
|
+
* ],
|
|
6778
|
+
* });
|
|
6779
|
+
*
|
|
6780
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6781
|
+
* const authClient = await auth.getClient();
|
|
6782
|
+
* google.options({auth: authClient});
|
|
6783
|
+
*
|
|
6784
|
+
* // Do the magic
|
|
6785
|
+
* const res = await sql.instances.addEntraIdCertificate({
|
|
6786
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
6787
|
+
* instance: 'placeholder-value',
|
|
6788
|
+
* // Required. Project ID of the project that contains the instance.
|
|
6789
|
+
* project: 'placeholder-value',
|
|
6790
|
+
*
|
|
6791
|
+
* // Request body metadata
|
|
6792
|
+
* requestBody: {
|
|
6793
|
+
* // request body parameters
|
|
6794
|
+
* // {}
|
|
6795
|
+
* },
|
|
6796
|
+
* });
|
|
6797
|
+
* console.log(res.data);
|
|
6798
|
+
*
|
|
6799
|
+
* // Example response
|
|
6800
|
+
* // {
|
|
6801
|
+
* // "acquireSsrsLeaseContext": {},
|
|
6802
|
+
* // "apiWarning": {},
|
|
6803
|
+
* // "backupContext": {},
|
|
6804
|
+
* // "endTime": "my_endTime",
|
|
6805
|
+
* // "error": {},
|
|
6806
|
+
* // "exportContext": {},
|
|
6807
|
+
* // "importContext": {},
|
|
6808
|
+
* // "insertTime": "my_insertTime",
|
|
6809
|
+
* // "kind": "my_kind",
|
|
6810
|
+
* // "name": "my_name",
|
|
6811
|
+
* // "operationType": "my_operationType",
|
|
6812
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
6813
|
+
* // "selfLink": "my_selfLink",
|
|
6814
|
+
* // "startTime": "my_startTime",
|
|
6815
|
+
* // "status": "my_status",
|
|
6816
|
+
* // "subOperationType": {},
|
|
6817
|
+
* // "targetId": "my_targetId",
|
|
6818
|
+
* // "targetLink": "my_targetLink",
|
|
6819
|
+
* // "targetProject": "my_targetProject",
|
|
6820
|
+
* // "user": "my_user"
|
|
6821
|
+
* // }
|
|
6822
|
+
* }
|
|
6823
|
+
*
|
|
6824
|
+
* main().catch(e => {
|
|
6825
|
+
* console.error(e);
|
|
6826
|
+
* throw e;
|
|
6827
|
+
* });
|
|
6828
|
+
*
|
|
6829
|
+
* ```
|
|
6830
|
+
*
|
|
6831
|
+
* @param params - Parameters for request
|
|
6832
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6833
|
+
* @param callback - Optional callback that handles the response.
|
|
6834
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6835
|
+
*/
|
|
6836
|
+
addEntraIdCertificate(
|
|
6837
|
+
params: Params$Resource$Instances$Addentraidcertificate,
|
|
6838
|
+
options: StreamMethodOptions
|
|
6839
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6840
|
+
addEntraIdCertificate(
|
|
6841
|
+
params?: Params$Resource$Instances$Addentraidcertificate,
|
|
6842
|
+
options?: MethodOptions
|
|
6843
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6844
|
+
addEntraIdCertificate(
|
|
6845
|
+
params: Params$Resource$Instances$Addentraidcertificate,
|
|
6846
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6847
|
+
callback: BodyResponseCallback<Readable>
|
|
6848
|
+
): void;
|
|
6849
|
+
addEntraIdCertificate(
|
|
6850
|
+
params: Params$Resource$Instances$Addentraidcertificate,
|
|
6851
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6852
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6853
|
+
): void;
|
|
6854
|
+
addEntraIdCertificate(
|
|
6855
|
+
params: Params$Resource$Instances$Addentraidcertificate,
|
|
6856
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6857
|
+
): void;
|
|
6858
|
+
addEntraIdCertificate(
|
|
6859
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6860
|
+
): void;
|
|
6861
|
+
addEntraIdCertificate(
|
|
6862
|
+
paramsOrCallback?:
|
|
6863
|
+
| Params$Resource$Instances$Addentraidcertificate
|
|
6864
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6865
|
+
| BodyResponseCallback<Readable>,
|
|
6866
|
+
optionsOrCallback?:
|
|
6867
|
+
| MethodOptions
|
|
6868
|
+
| StreamMethodOptions
|
|
6869
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6870
|
+
| BodyResponseCallback<Readable>,
|
|
6871
|
+
callback?:
|
|
6872
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6873
|
+
| BodyResponseCallback<Readable>
|
|
6874
|
+
):
|
|
6875
|
+
| void
|
|
6876
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
6877
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
6878
|
+
let params = (paramsOrCallback ||
|
|
6879
|
+
{}) as Params$Resource$Instances$Addentraidcertificate;
|
|
6880
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6881
|
+
|
|
6882
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6883
|
+
callback = paramsOrCallback;
|
|
6884
|
+
params = {} as Params$Resource$Instances$Addentraidcertificate;
|
|
6885
|
+
options = {};
|
|
6886
|
+
}
|
|
6887
|
+
|
|
6888
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6889
|
+
callback = optionsOrCallback;
|
|
6890
|
+
options = {};
|
|
6891
|
+
}
|
|
6892
|
+
|
|
6893
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6894
|
+
const parameters = {
|
|
6895
|
+
options: Object.assign(
|
|
6896
|
+
{
|
|
6897
|
+
url: (
|
|
6898
|
+
rootUrl +
|
|
6899
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/addEntraIdCertificate'
|
|
6900
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6901
|
+
method: 'POST',
|
|
6902
|
+
apiVersion: '',
|
|
6903
|
+
},
|
|
6904
|
+
options
|
|
6905
|
+
),
|
|
6906
|
+
params,
|
|
6907
|
+
requiredParams: ['project', 'instance'],
|
|
6908
|
+
pathParams: ['instance', 'project'],
|
|
6909
|
+
context: this.context,
|
|
6910
|
+
};
|
|
6911
|
+
if (callback) {
|
|
6912
|
+
createAPIRequest<Schema$Operation>(
|
|
6913
|
+
parameters,
|
|
6914
|
+
callback as BodyResponseCallback<unknown>
|
|
6915
|
+
);
|
|
6916
|
+
} else {
|
|
6917
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6918
|
+
}
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6688
6921
|
/**
|
|
6689
6922
|
* 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. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
|
|
6690
6923
|
* @example
|
|
@@ -8898,6 +9131,160 @@ export namespace sqladmin_v1beta4 {
|
|
|
8898
9131
|
}
|
|
8899
9132
|
}
|
|
8900
9133
|
|
|
9134
|
+
/**
|
|
9135
|
+
* Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.
|
|
9136
|
+
* @example
|
|
9137
|
+
* ```js
|
|
9138
|
+
* // Before running the sample:
|
|
9139
|
+
* // - Enable the API at:
|
|
9140
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
9141
|
+
* // - Login into gcloud by running:
|
|
9142
|
+
* // ```sh
|
|
9143
|
+
* // $ gcloud auth application-default login
|
|
9144
|
+
* // ```
|
|
9145
|
+
* // - Install the npm module by running:
|
|
9146
|
+
* // ```sh
|
|
9147
|
+
* // $ npm install googleapis
|
|
9148
|
+
* // ```
|
|
9149
|
+
*
|
|
9150
|
+
* const {google} = require('googleapis');
|
|
9151
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
9152
|
+
*
|
|
9153
|
+
* async function main() {
|
|
9154
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9155
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9156
|
+
* scopes: [
|
|
9157
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
9158
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
9159
|
+
* ],
|
|
9160
|
+
* });
|
|
9161
|
+
*
|
|
9162
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9163
|
+
* const authClient = await auth.getClient();
|
|
9164
|
+
* google.options({auth: authClient});
|
|
9165
|
+
*
|
|
9166
|
+
* // Do the magic
|
|
9167
|
+
* const res = await sql.instances.ListEntraIdCertificates({
|
|
9168
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
9169
|
+
* instance: 'placeholder-value',
|
|
9170
|
+
* // Required. Project ID of the project that contains the instance.
|
|
9171
|
+
* project: 'placeholder-value',
|
|
9172
|
+
* });
|
|
9173
|
+
* console.log(res.data);
|
|
9174
|
+
*
|
|
9175
|
+
* // Example response
|
|
9176
|
+
* // {
|
|
9177
|
+
* // "activeVersion": "my_activeVersion",
|
|
9178
|
+
* // "certs": [],
|
|
9179
|
+
* // "kind": "my_kind"
|
|
9180
|
+
* // }
|
|
9181
|
+
* }
|
|
9182
|
+
*
|
|
9183
|
+
* main().catch(e => {
|
|
9184
|
+
* console.error(e);
|
|
9185
|
+
* throw e;
|
|
9186
|
+
* });
|
|
9187
|
+
*
|
|
9188
|
+
* ```
|
|
9189
|
+
*
|
|
9190
|
+
* @param params - Parameters for request
|
|
9191
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9192
|
+
* @param callback - Optional callback that handles the response.
|
|
9193
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9194
|
+
*/
|
|
9195
|
+
ListEntraIdCertificates(
|
|
9196
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9197
|
+
options: StreamMethodOptions
|
|
9198
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9199
|
+
ListEntraIdCertificates(
|
|
9200
|
+
params?: Params$Resource$Instances$Listentraidcertificates,
|
|
9201
|
+
options?: MethodOptions
|
|
9202
|
+
): Promise<
|
|
9203
|
+
GaxiosResponseWithHTTP2<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9204
|
+
>;
|
|
9205
|
+
ListEntraIdCertificates(
|
|
9206
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9207
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9208
|
+
callback: BodyResponseCallback<Readable>
|
|
9209
|
+
): void;
|
|
9210
|
+
ListEntraIdCertificates(
|
|
9211
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9212
|
+
options:
|
|
9213
|
+
| MethodOptions
|
|
9214
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>,
|
|
9215
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9216
|
+
): void;
|
|
9217
|
+
ListEntraIdCertificates(
|
|
9218
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9219
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9220
|
+
): void;
|
|
9221
|
+
ListEntraIdCertificates(
|
|
9222
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9223
|
+
): void;
|
|
9224
|
+
ListEntraIdCertificates(
|
|
9225
|
+
paramsOrCallback?:
|
|
9226
|
+
| Params$Resource$Instances$Listentraidcertificates
|
|
9227
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9228
|
+
| BodyResponseCallback<Readable>,
|
|
9229
|
+
optionsOrCallback?:
|
|
9230
|
+
| MethodOptions
|
|
9231
|
+
| StreamMethodOptions
|
|
9232
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9233
|
+
| BodyResponseCallback<Readable>,
|
|
9234
|
+
callback?:
|
|
9235
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9236
|
+
| BodyResponseCallback<Readable>
|
|
9237
|
+
):
|
|
9238
|
+
| void
|
|
9239
|
+
| Promise<
|
|
9240
|
+
GaxiosResponseWithHTTP2<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9241
|
+
>
|
|
9242
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9243
|
+
let params = (paramsOrCallback ||
|
|
9244
|
+
{}) as Params$Resource$Instances$Listentraidcertificates;
|
|
9245
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9246
|
+
|
|
9247
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9248
|
+
callback = paramsOrCallback;
|
|
9249
|
+
params = {} as Params$Resource$Instances$Listentraidcertificates;
|
|
9250
|
+
options = {};
|
|
9251
|
+
}
|
|
9252
|
+
|
|
9253
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9254
|
+
callback = optionsOrCallback;
|
|
9255
|
+
options = {};
|
|
9256
|
+
}
|
|
9257
|
+
|
|
9258
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
9259
|
+
const parameters = {
|
|
9260
|
+
options: Object.assign(
|
|
9261
|
+
{
|
|
9262
|
+
url: (
|
|
9263
|
+
rootUrl +
|
|
9264
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/listEntraIdCertificates'
|
|
9265
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9266
|
+
method: 'GET',
|
|
9267
|
+
apiVersion: '',
|
|
9268
|
+
},
|
|
9269
|
+
options
|
|
9270
|
+
),
|
|
9271
|
+
params,
|
|
9272
|
+
requiredParams: ['project', 'instance'],
|
|
9273
|
+
pathParams: ['instance', 'project'],
|
|
9274
|
+
context: this.context,
|
|
9275
|
+
};
|
|
9276
|
+
if (callback) {
|
|
9277
|
+
createAPIRequest<Schema$InstancesListEntraIdCertificatesResponse>(
|
|
9278
|
+
parameters,
|
|
9279
|
+
callback as BodyResponseCallback<unknown>
|
|
9280
|
+
);
|
|
9281
|
+
} else {
|
|
9282
|
+
return createAPIRequest<Schema$InstancesListEntraIdCertificatesResponse>(
|
|
9283
|
+
parameters
|
|
9284
|
+
);
|
|
9285
|
+
}
|
|
9286
|
+
}
|
|
9287
|
+
|
|
8901
9288
|
/**
|
|
8902
9289
|
* Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
|
|
8903
9290
|
* @example
|
|
@@ -10744,6 +11131,177 @@ export namespace sqladmin_v1beta4 {
|
|
|
10744
11131
|
}
|
|
10745
11132
|
}
|
|
10746
11133
|
|
|
11134
|
+
/**
|
|
11135
|
+
* Rotates the Entra Id certificate version to one previously added with the addEntraIdCertificate method.
|
|
11136
|
+
* @example
|
|
11137
|
+
* ```js
|
|
11138
|
+
* // Before running the sample:
|
|
11139
|
+
* // - Enable the API at:
|
|
11140
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
11141
|
+
* // - Login into gcloud by running:
|
|
11142
|
+
* // ```sh
|
|
11143
|
+
* // $ gcloud auth application-default login
|
|
11144
|
+
* // ```
|
|
11145
|
+
* // - Install the npm module by running:
|
|
11146
|
+
* // ```sh
|
|
11147
|
+
* // $ npm install googleapis
|
|
11148
|
+
* // ```
|
|
11149
|
+
*
|
|
11150
|
+
* const {google} = require('googleapis');
|
|
11151
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
11152
|
+
*
|
|
11153
|
+
* async function main() {
|
|
11154
|
+
* const auth = new google.auth.GoogleAuth({
|
|
11155
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
11156
|
+
* scopes: [
|
|
11157
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
11158
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
11159
|
+
* ],
|
|
11160
|
+
* });
|
|
11161
|
+
*
|
|
11162
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
11163
|
+
* const authClient = await auth.getClient();
|
|
11164
|
+
* google.options({auth: authClient});
|
|
11165
|
+
*
|
|
11166
|
+
* // Do the magic
|
|
11167
|
+
* const res = await sql.instances.RotateEntraIdCertificate({
|
|
11168
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
11169
|
+
* instance: 'placeholder-value',
|
|
11170
|
+
* // Required. Project ID of the project that contains the instance.
|
|
11171
|
+
* project: 'placeholder-value',
|
|
11172
|
+
*
|
|
11173
|
+
* // Request body metadata
|
|
11174
|
+
* requestBody: {
|
|
11175
|
+
* // request body parameters
|
|
11176
|
+
* // {
|
|
11177
|
+
* // "rotateEntraIdCertificateContext": {}
|
|
11178
|
+
* // }
|
|
11179
|
+
* },
|
|
11180
|
+
* });
|
|
11181
|
+
* console.log(res.data);
|
|
11182
|
+
*
|
|
11183
|
+
* // Example response
|
|
11184
|
+
* // {
|
|
11185
|
+
* // "acquireSsrsLeaseContext": {},
|
|
11186
|
+
* // "apiWarning": {},
|
|
11187
|
+
* // "backupContext": {},
|
|
11188
|
+
* // "endTime": "my_endTime",
|
|
11189
|
+
* // "error": {},
|
|
11190
|
+
* // "exportContext": {},
|
|
11191
|
+
* // "importContext": {},
|
|
11192
|
+
* // "insertTime": "my_insertTime",
|
|
11193
|
+
* // "kind": "my_kind",
|
|
11194
|
+
* // "name": "my_name",
|
|
11195
|
+
* // "operationType": "my_operationType",
|
|
11196
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11197
|
+
* // "selfLink": "my_selfLink",
|
|
11198
|
+
* // "startTime": "my_startTime",
|
|
11199
|
+
* // "status": "my_status",
|
|
11200
|
+
* // "subOperationType": {},
|
|
11201
|
+
* // "targetId": "my_targetId",
|
|
11202
|
+
* // "targetLink": "my_targetLink",
|
|
11203
|
+
* // "targetProject": "my_targetProject",
|
|
11204
|
+
* // "user": "my_user"
|
|
11205
|
+
* // }
|
|
11206
|
+
* }
|
|
11207
|
+
*
|
|
11208
|
+
* main().catch(e => {
|
|
11209
|
+
* console.error(e);
|
|
11210
|
+
* throw e;
|
|
11211
|
+
* });
|
|
11212
|
+
*
|
|
11213
|
+
* ```
|
|
11214
|
+
*
|
|
11215
|
+
* @param params - Parameters for request
|
|
11216
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11217
|
+
* @param callback - Optional callback that handles the response.
|
|
11218
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11219
|
+
*/
|
|
11220
|
+
RotateEntraIdCertificate(
|
|
11221
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11222
|
+
options: StreamMethodOptions
|
|
11223
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11224
|
+
RotateEntraIdCertificate(
|
|
11225
|
+
params?: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11226
|
+
options?: MethodOptions
|
|
11227
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
11228
|
+
RotateEntraIdCertificate(
|
|
11229
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11230
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
11231
|
+
callback: BodyResponseCallback<Readable>
|
|
11232
|
+
): void;
|
|
11233
|
+
RotateEntraIdCertificate(
|
|
11234
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11235
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
11236
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11237
|
+
): void;
|
|
11238
|
+
RotateEntraIdCertificate(
|
|
11239
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11240
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11241
|
+
): void;
|
|
11242
|
+
RotateEntraIdCertificate(
|
|
11243
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11244
|
+
): void;
|
|
11245
|
+
RotateEntraIdCertificate(
|
|
11246
|
+
paramsOrCallback?:
|
|
11247
|
+
| Params$Resource$Instances$Rotateentraidcertificate
|
|
11248
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11249
|
+
| BodyResponseCallback<Readable>,
|
|
11250
|
+
optionsOrCallback?:
|
|
11251
|
+
| MethodOptions
|
|
11252
|
+
| StreamMethodOptions
|
|
11253
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11254
|
+
| BodyResponseCallback<Readable>,
|
|
11255
|
+
callback?:
|
|
11256
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11257
|
+
| BodyResponseCallback<Readable>
|
|
11258
|
+
):
|
|
11259
|
+
| void
|
|
11260
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
11261
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
11262
|
+
let params = (paramsOrCallback ||
|
|
11263
|
+
{}) as Params$Resource$Instances$Rotateentraidcertificate;
|
|
11264
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
11265
|
+
|
|
11266
|
+
if (typeof paramsOrCallback === 'function') {
|
|
11267
|
+
callback = paramsOrCallback;
|
|
11268
|
+
params = {} as Params$Resource$Instances$Rotateentraidcertificate;
|
|
11269
|
+
options = {};
|
|
11270
|
+
}
|
|
11271
|
+
|
|
11272
|
+
if (typeof optionsOrCallback === 'function') {
|
|
11273
|
+
callback = optionsOrCallback;
|
|
11274
|
+
options = {};
|
|
11275
|
+
}
|
|
11276
|
+
|
|
11277
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
11278
|
+
const parameters = {
|
|
11279
|
+
options: Object.assign(
|
|
11280
|
+
{
|
|
11281
|
+
url: (
|
|
11282
|
+
rootUrl +
|
|
11283
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/rotateEntraIdCertificate'
|
|
11284
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
11285
|
+
method: 'POST',
|
|
11286
|
+
apiVersion: '',
|
|
11287
|
+
},
|
|
11288
|
+
options
|
|
11289
|
+
),
|
|
11290
|
+
params,
|
|
11291
|
+
requiredParams: ['project', 'instance'],
|
|
11292
|
+
pathParams: ['instance', 'project'],
|
|
11293
|
+
context: this.context,
|
|
11294
|
+
};
|
|
11295
|
+
if (callback) {
|
|
11296
|
+
createAPIRequest<Schema$Operation>(
|
|
11297
|
+
parameters,
|
|
11298
|
+
callback as BodyResponseCallback<unknown>
|
|
11299
|
+
);
|
|
11300
|
+
} else {
|
|
11301
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
11302
|
+
}
|
|
11303
|
+
}
|
|
11304
|
+
|
|
10747
11305
|
/**
|
|
10748
11306
|
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
|
|
10749
11307
|
* @example
|
|
@@ -11956,8 +12514,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11956
12514
|
}
|
|
11957
12515
|
}
|
|
11958
12516
|
|
|
11959
|
-
export interface Params$Resource$Instances$Acquiressrslease
|
|
11960
|
-
extends StandardParameters {
|
|
12517
|
+
export interface Params$Resource$Instances$Acquiressrslease extends StandardParameters {
|
|
11961
12518
|
/**
|
|
11962
12519
|
* 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).
|
|
11963
12520
|
*/
|
|
@@ -11972,8 +12529,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
11972
12529
|
*/
|
|
11973
12530
|
requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
|
|
11974
12531
|
}
|
|
11975
|
-
export interface Params$Resource$Instances$
|
|
11976
|
-
|
|
12532
|
+
export interface Params$Resource$Instances$Addentraidcertificate extends StandardParameters {
|
|
12533
|
+
/**
|
|
12534
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12535
|
+
*/
|
|
12536
|
+
instance?: string;
|
|
12537
|
+
/**
|
|
12538
|
+
* Required. Project ID of the project that contains the instance.
|
|
12539
|
+
*/
|
|
12540
|
+
project?: string;
|
|
12541
|
+
|
|
12542
|
+
/**
|
|
12543
|
+
* Request body metadata
|
|
12544
|
+
*/
|
|
12545
|
+
requestBody?: Schema$SqlInstancesAddEntraIdCertificateRequest;
|
|
12546
|
+
}
|
|
12547
|
+
export interface Params$Resource$Instances$Addserverca extends StandardParameters {
|
|
11977
12548
|
/**
|
|
11978
12549
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
11979
12550
|
*/
|
|
@@ -11983,8 +12554,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
11983
12554
|
*/
|
|
11984
12555
|
project?: string;
|
|
11985
12556
|
}
|
|
11986
|
-
export interface Params$Resource$Instances$Addservercertificate
|
|
11987
|
-
extends StandardParameters {
|
|
12557
|
+
export interface Params$Resource$Instances$Addservercertificate extends StandardParameters {
|
|
11988
12558
|
/**
|
|
11989
12559
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
11990
12560
|
*/
|
|
@@ -12050,8 +12620,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12050
12620
|
*/
|
|
12051
12621
|
requestBody?: Schema$InstancesDemoteRequest;
|
|
12052
12622
|
}
|
|
12053
|
-
export interface Params$Resource$Instances$Demotemaster
|
|
12054
|
-
extends StandardParameters {
|
|
12623
|
+
export interface Params$Resource$Instances$Demotemaster extends StandardParameters {
|
|
12055
12624
|
/**
|
|
12056
12625
|
* Cloud SQL instance name.
|
|
12057
12626
|
*/
|
|
@@ -12066,8 +12635,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12066
12635
|
*/
|
|
12067
12636
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
12068
12637
|
}
|
|
12069
|
-
export interface Params$Resource$Instances$Executesql
|
|
12070
|
-
extends StandardParameters {
|
|
12638
|
+
export interface Params$Resource$Instances$Executesql extends StandardParameters {
|
|
12071
12639
|
/**
|
|
12072
12640
|
* Required. Database instance ID. This does not include the project ID.
|
|
12073
12641
|
*/
|
|
@@ -12097,8 +12665,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12097
12665
|
*/
|
|
12098
12666
|
requestBody?: Schema$InstancesExportRequest;
|
|
12099
12667
|
}
|
|
12100
|
-
export interface Params$Resource$Instances$Failover
|
|
12101
|
-
extends StandardParameters {
|
|
12668
|
+
export interface Params$Resource$Instances$Failover extends StandardParameters {
|
|
12102
12669
|
/**
|
|
12103
12670
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12104
12671
|
*/
|
|
@@ -12167,8 +12734,17 @@ export namespace sqladmin_v1beta4 {
|
|
|
12167
12734
|
*/
|
|
12168
12735
|
project?: string;
|
|
12169
12736
|
}
|
|
12170
|
-
export interface Params$Resource$Instances$
|
|
12171
|
-
|
|
12737
|
+
export interface Params$Resource$Instances$Listentraidcertificates extends StandardParameters {
|
|
12738
|
+
/**
|
|
12739
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12740
|
+
*/
|
|
12741
|
+
instance?: string;
|
|
12742
|
+
/**
|
|
12743
|
+
* Required. Project ID of the project that contains the instance.
|
|
12744
|
+
*/
|
|
12745
|
+
project?: string;
|
|
12746
|
+
}
|
|
12747
|
+
export interface Params$Resource$Instances$Listservercas extends StandardParameters {
|
|
12172
12748
|
/**
|
|
12173
12749
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12174
12750
|
*/
|
|
@@ -12178,8 +12754,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12178
12754
|
*/
|
|
12179
12755
|
project?: string;
|
|
12180
12756
|
}
|
|
12181
|
-
export interface Params$Resource$Instances$Listservercertificates
|
|
12182
|
-
extends StandardParameters {
|
|
12757
|
+
export interface Params$Resource$Instances$Listservercertificates extends StandardParameters {
|
|
12183
12758
|
/**
|
|
12184
12759
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12185
12760
|
*/
|
|
@@ -12204,8 +12779,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12204
12779
|
*/
|
|
12205
12780
|
requestBody?: Schema$DatabaseInstance;
|
|
12206
12781
|
}
|
|
12207
|
-
export interface Params$Resource$Instances$Pointintimerestore
|
|
12208
|
-
extends StandardParameters {
|
|
12782
|
+
export interface Params$Resource$Instances$Pointintimerestore extends StandardParameters {
|
|
12209
12783
|
/**
|
|
12210
12784
|
* Required. The parent resource where you created this instance. Format: projects/{project\}
|
|
12211
12785
|
*/
|
|
@@ -12216,8 +12790,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12216
12790
|
*/
|
|
12217
12791
|
requestBody?: Schema$PointInTimeRestoreContext;
|
|
12218
12792
|
}
|
|
12219
|
-
export interface Params$Resource$Instances$Precheckmajorversionupgrade
|
|
12220
|
-
extends StandardParameters {
|
|
12793
|
+
export interface Params$Resource$Instances$Precheckmajorversionupgrade extends StandardParameters {
|
|
12221
12794
|
/**
|
|
12222
12795
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12223
12796
|
*/
|
|
@@ -12232,8 +12805,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12232
12805
|
*/
|
|
12233
12806
|
requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
|
|
12234
12807
|
}
|
|
12235
|
-
export interface Params$Resource$Instances$Promotereplica
|
|
12236
|
-
extends StandardParameters {
|
|
12808
|
+
export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
|
|
12237
12809
|
/**
|
|
12238
12810
|
* Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
|
|
12239
12811
|
*/
|
|
@@ -12247,8 +12819,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12247
12819
|
*/
|
|
12248
12820
|
project?: string;
|
|
12249
12821
|
}
|
|
12250
|
-
export interface Params$Resource$Instances$Reencrypt
|
|
12251
|
-
extends StandardParameters {
|
|
12822
|
+
export interface Params$Resource$Instances$Reencrypt extends StandardParameters {
|
|
12252
12823
|
/**
|
|
12253
12824
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12254
12825
|
*/
|
|
@@ -12263,8 +12834,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12263
12834
|
*/
|
|
12264
12835
|
requestBody?: Schema$InstancesReencryptRequest;
|
|
12265
12836
|
}
|
|
12266
|
-
export interface Params$Resource$Instances$Releasessrslease
|
|
12267
|
-
extends StandardParameters {
|
|
12837
|
+
export interface Params$Resource$Instances$Releasessrslease extends StandardParameters {
|
|
12268
12838
|
/**
|
|
12269
12839
|
* 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).
|
|
12270
12840
|
*/
|
|
@@ -12274,8 +12844,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12274
12844
|
*/
|
|
12275
12845
|
project?: string;
|
|
12276
12846
|
}
|
|
12277
|
-
export interface Params$Resource$Instances$Resetsslconfig
|
|
12278
|
-
extends StandardParameters {
|
|
12847
|
+
export interface Params$Resource$Instances$Resetsslconfig extends StandardParameters {
|
|
12279
12848
|
/**
|
|
12280
12849
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12281
12850
|
*/
|
|
@@ -12289,8 +12858,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12289
12858
|
*/
|
|
12290
12859
|
project?: string;
|
|
12291
12860
|
}
|
|
12292
|
-
export interface Params$Resource$Instances$Restart
|
|
12293
|
-
extends StandardParameters {
|
|
12861
|
+
export interface Params$Resource$Instances$Restart extends StandardParameters {
|
|
12294
12862
|
/**
|
|
12295
12863
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12296
12864
|
*/
|
|
@@ -12300,8 +12868,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12300
12868
|
*/
|
|
12301
12869
|
project?: string;
|
|
12302
12870
|
}
|
|
12303
|
-
export interface Params$Resource$Instances$Restorebackup
|
|
12304
|
-
extends StandardParameters {
|
|
12871
|
+
export interface Params$Resource$Instances$Restorebackup extends StandardParameters {
|
|
12305
12872
|
/**
|
|
12306
12873
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12307
12874
|
*/
|
|
@@ -12316,8 +12883,22 @@ export namespace sqladmin_v1beta4 {
|
|
|
12316
12883
|
*/
|
|
12317
12884
|
requestBody?: Schema$InstancesRestoreBackupRequest;
|
|
12318
12885
|
}
|
|
12319
|
-
export interface Params$Resource$Instances$
|
|
12320
|
-
|
|
12886
|
+
export interface Params$Resource$Instances$Rotateentraidcertificate extends StandardParameters {
|
|
12887
|
+
/**
|
|
12888
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12889
|
+
*/
|
|
12890
|
+
instance?: string;
|
|
12891
|
+
/**
|
|
12892
|
+
* Required. Project ID of the project that contains the instance.
|
|
12893
|
+
*/
|
|
12894
|
+
project?: string;
|
|
12895
|
+
|
|
12896
|
+
/**
|
|
12897
|
+
* Request body metadata
|
|
12898
|
+
*/
|
|
12899
|
+
requestBody?: Schema$InstancesRotateEntraIdCertificateRequest;
|
|
12900
|
+
}
|
|
12901
|
+
export interface Params$Resource$Instances$Rotateserverca extends StandardParameters {
|
|
12321
12902
|
/**
|
|
12322
12903
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12323
12904
|
*/
|
|
@@ -12332,8 +12913,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12332
12913
|
*/
|
|
12333
12914
|
requestBody?: Schema$InstancesRotateServerCaRequest;
|
|
12334
12915
|
}
|
|
12335
|
-
export interface Params$Resource$Instances$Rotateservercertificate
|
|
12336
|
-
extends StandardParameters {
|
|
12916
|
+
export interface Params$Resource$Instances$Rotateservercertificate extends StandardParameters {
|
|
12337
12917
|
/**
|
|
12338
12918
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12339
12919
|
*/
|
|
@@ -12348,8 +12928,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12348
12928
|
*/
|
|
12349
12929
|
requestBody?: Schema$InstancesRotateServerCertificateRequest;
|
|
12350
12930
|
}
|
|
12351
|
-
export interface Params$Resource$Instances$Startreplica
|
|
12352
|
-
extends StandardParameters {
|
|
12931
|
+
export interface Params$Resource$Instances$Startreplica extends StandardParameters {
|
|
12353
12932
|
/**
|
|
12354
12933
|
* Cloud SQL read replica instance name.
|
|
12355
12934
|
*/
|
|
@@ -12359,8 +12938,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12359
12938
|
*/
|
|
12360
12939
|
project?: string;
|
|
12361
12940
|
}
|
|
12362
|
-
export interface Params$Resource$Instances$Stopreplica
|
|
12363
|
-
extends StandardParameters {
|
|
12941
|
+
export interface Params$Resource$Instances$Stopreplica extends StandardParameters {
|
|
12364
12942
|
/**
|
|
12365
12943
|
* Cloud SQL read replica instance name.
|
|
12366
12944
|
*/
|
|
@@ -12370,8 +12948,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12370
12948
|
*/
|
|
12371
12949
|
project?: string;
|
|
12372
12950
|
}
|
|
12373
|
-
export interface Params$Resource$Instances$Switchover
|
|
12374
|
-
extends StandardParameters {
|
|
12951
|
+
export interface Params$Resource$Instances$Switchover extends StandardParameters {
|
|
12375
12952
|
/**
|
|
12376
12953
|
* Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
|
|
12377
12954
|
*/
|
|
@@ -12385,8 +12962,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12385
12962
|
*/
|
|
12386
12963
|
project?: string;
|
|
12387
12964
|
}
|
|
12388
|
-
export interface Params$Resource$Instances$Truncatelog
|
|
12389
|
-
extends StandardParameters {
|
|
12965
|
+
export interface Params$Resource$Instances$Truncatelog extends StandardParameters {
|
|
12390
12966
|
/**
|
|
12391
12967
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12392
12968
|
*/
|
|
@@ -12871,8 +13447,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
12871
13447
|
}
|
|
12872
13448
|
}
|
|
12873
13449
|
|
|
12874
|
-
export interface Params$Resource$Operations$Cancel
|
|
12875
|
-
extends StandardParameters {
|
|
13450
|
+
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
12876
13451
|
/**
|
|
12877
13452
|
* Instance operation ID.
|
|
12878
13453
|
*/
|
|
@@ -14087,8 +14662,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14087
14662
|
}
|
|
14088
14663
|
}
|
|
14089
14664
|
|
|
14090
|
-
export interface Params$Resource$Projects$Instances$Getdiskshrinkconfig
|
|
14091
|
-
extends StandardParameters {
|
|
14665
|
+
export interface Params$Resource$Projects$Instances$Getdiskshrinkconfig extends StandardParameters {
|
|
14092
14666
|
/**
|
|
14093
14667
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14094
14668
|
*/
|
|
@@ -14098,8 +14672,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14098
14672
|
*/
|
|
14099
14673
|
project?: string;
|
|
14100
14674
|
}
|
|
14101
|
-
export interface Params$Resource$Projects$Instances$Getlatestrecoverytime
|
|
14102
|
-
extends StandardParameters {
|
|
14675
|
+
export interface Params$Resource$Projects$Instances$Getlatestrecoverytime extends StandardParameters {
|
|
14103
14676
|
/**
|
|
14104
14677
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14105
14678
|
*/
|
|
@@ -14113,8 +14686,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14113
14686
|
*/
|
|
14114
14687
|
sourceInstanceDeletionTime?: string;
|
|
14115
14688
|
}
|
|
14116
|
-
export interface Params$Resource$Projects$Instances$Performdiskshrink
|
|
14117
|
-
extends StandardParameters {
|
|
14689
|
+
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
14118
14690
|
/**
|
|
14119
14691
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14120
14692
|
*/
|
|
@@ -14129,8 +14701,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14129
14701
|
*/
|
|
14130
14702
|
requestBody?: Schema$PerformDiskShrinkContext;
|
|
14131
14703
|
}
|
|
14132
|
-
export interface Params$Resource$Projects$Instances$Reschedulemaintenance
|
|
14133
|
-
extends StandardParameters {
|
|
14704
|
+
export interface Params$Resource$Projects$Instances$Reschedulemaintenance extends StandardParameters {
|
|
14134
14705
|
/**
|
|
14135
14706
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14136
14707
|
*/
|
|
@@ -14145,8 +14716,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14145
14716
|
*/
|
|
14146
14717
|
requestBody?: Schema$SqlInstancesRescheduleMaintenanceRequestBody;
|
|
14147
14718
|
}
|
|
14148
|
-
export interface Params$Resource$Projects$Instances$Resetreplicasize
|
|
14149
|
-
extends StandardParameters {
|
|
14719
|
+
export interface Params$Resource$Projects$Instances$Resetreplicasize extends StandardParameters {
|
|
14150
14720
|
/**
|
|
14151
14721
|
* Cloud SQL read replica instance name.
|
|
14152
14722
|
*/
|
|
@@ -14161,8 +14731,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14161
14731
|
*/
|
|
14162
14732
|
requestBody?: Schema$SqlInstancesResetReplicaSizeRequest;
|
|
14163
14733
|
}
|
|
14164
|
-
export interface Params$Resource$Projects$Instances$Startexternalsync
|
|
14165
|
-
extends StandardParameters {
|
|
14734
|
+
export interface Params$Resource$Projects$Instances$Startexternalsync extends StandardParameters {
|
|
14166
14735
|
/**
|
|
14167
14736
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14168
14737
|
*/
|
|
@@ -14177,8 +14746,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14177
14746
|
*/
|
|
14178
14747
|
requestBody?: Schema$SqlInstancesStartExternalSyncRequest;
|
|
14179
14748
|
}
|
|
14180
|
-
export interface Params$Resource$Projects$Instances$Verifyexternalsyncsettings
|
|
14181
|
-
extends StandardParameters {
|
|
14749
|
+
export interface Params$Resource$Projects$Instances$Verifyexternalsyncsettings extends StandardParameters {
|
|
14182
14750
|
/**
|
|
14183
14751
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14184
14752
|
*/
|
|
@@ -14971,8 +15539,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
14971
15539
|
}
|
|
14972
15540
|
}
|
|
14973
15541
|
|
|
14974
|
-
export interface Params$Resource$Sslcerts$Createephemeral
|
|
14975
|
-
extends StandardParameters {
|
|
15542
|
+
export interface Params$Resource$Sslcerts$Createephemeral extends StandardParameters {
|
|
14976
15543
|
/**
|
|
14977
15544
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14978
15545
|
*/
|
|
@@ -15412,6 +15979,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15412
15979
|
*
|
|
15413
15980
|
* // Example response
|
|
15414
15981
|
* // {
|
|
15982
|
+
* // "databaseRoles": [],
|
|
15415
15983
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15416
15984
|
* // "etag": "my_etag",
|
|
15417
15985
|
* // "host": "my_host",
|
|
@@ -15565,6 +16133,7 @@ export namespace sqladmin_v1beta4 {
|
|
|
15565
16133
|
* requestBody: {
|
|
15566
16134
|
* // request body parameters
|
|
15567
16135
|
* // {
|
|
16136
|
+
* // "databaseRoles": [],
|
|
15568
16137
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15569
16138
|
* // "etag": "my_etag",
|
|
15570
16139
|
* // "host": "my_host",
|
|
@@ -15879,6 +16448,8 @@ export namespace sqladmin_v1beta4 {
|
|
|
15879
16448
|
*
|
|
15880
16449
|
* // Do the magic
|
|
15881
16450
|
* const res = await sql.users.update({
|
|
16451
|
+
* // Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.
|
|
16452
|
+
* databaseRoles: 'placeholder-value',
|
|
15882
16453
|
* // Optional. Host of the user in the instance.
|
|
15883
16454
|
* host: 'placeholder-value',
|
|
15884
16455
|
* // Database instance ID. This does not include the project ID.
|
|
@@ -15887,11 +16458,14 @@ export namespace sqladmin_v1beta4 {
|
|
|
15887
16458
|
* name: 'placeholder-value',
|
|
15888
16459
|
* // Project ID of the project that contains the instance.
|
|
15889
16460
|
* project: 'placeholder-value',
|
|
16461
|
+
* // Optional. revoke the existing roles granted to the user.
|
|
16462
|
+
* revokeExistingRoles: 'placeholder-value',
|
|
15890
16463
|
*
|
|
15891
16464
|
* // Request body metadata
|
|
15892
16465
|
* requestBody: {
|
|
15893
16466
|
* // request body parameters
|
|
15894
16467
|
* // {
|
|
16468
|
+
* // "databaseRoles": [],
|
|
15895
16469
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15896
16470
|
* // "etag": "my_etag",
|
|
15897
16471
|
* // "host": "my_host",
|
|
@@ -16092,6 +16666,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16092
16666
|
project?: string;
|
|
16093
16667
|
}
|
|
16094
16668
|
export interface Params$Resource$Users$Update extends StandardParameters {
|
|
16669
|
+
/**
|
|
16670
|
+
* Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.
|
|
16671
|
+
*/
|
|
16672
|
+
databaseRoles?: string[];
|
|
16095
16673
|
/**
|
|
16096
16674
|
* Optional. Host of the user in the instance.
|
|
16097
16675
|
*/
|
|
@@ -16108,6 +16686,10 @@ export namespace sqladmin_v1beta4 {
|
|
|
16108
16686
|
* Project ID of the project that contains the instance.
|
|
16109
16687
|
*/
|
|
16110
16688
|
project?: string;
|
|
16689
|
+
/**
|
|
16690
|
+
* Optional. revoke the existing roles granted to the user.
|
|
16691
|
+
*/
|
|
16692
|
+
revokeExistingRoles?: boolean;
|
|
16111
16693
|
|
|
16112
16694
|
/**
|
|
16113
16695
|
* Request body metadata
|