@maxim_mazurok/gapi.client.sqladmin-v1 0.1.20251107 → 0.1.20251201

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.
Files changed (3) hide show
  1. package/index.d.ts +51 -2
  2. package/package.json +1 -1
  3. package/readme.md +8 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20251107
12
+ // Revision: 20251201
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1090,7 +1090,7 @@ declare namespace gapi.client {
1090
1090
  disallowCompromisedCredentials?: boolean;
1091
1091
  /** Disallow username as a part of the password. */
1092
1092
  disallowUsernameSubstring?: boolean;
1093
- /** Whether the password policy is enabled or not. */
1093
+ /** Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords. */
1094
1094
  enablePasswordPolicy?: boolean;
1095
1095
  /** Minimum number of characters allowed. */
1096
1096
  minLength?: number;
@@ -1099,6 +1099,20 @@ declare namespace gapi.client {
1099
1099
  /** Number of previous passwords that cannot be reused. */
1100
1100
  reuseInterval?: number;
1101
1101
  }
1102
+ interface PerformanceCaptureConfig {
1103
+ /** Optional. Enable or disable the Performance Capture feature. */
1104
+ enabled?: boolean;
1105
+ /** Optional. The minimum number of consecutive readings above threshold that triggers instance state capture. */
1106
+ probeThreshold?: number;
1107
+ /** Optional. The time interval in seconds between any two probes. */
1108
+ probingIntervalSeconds?: number;
1109
+ /** Optional. The minimum number of server threads running to trigger the capture on primary. */
1110
+ runningThreadsThreshold?: number;
1111
+ /** Optional. The minimum number of seconds replica must be lagging behind primary to trigger capture on replica. */
1112
+ secondsBehindSourceThreshold?: number;
1113
+ /** Optional. The amount of time in seconds that a transaction needs to have been open before the watcher starts recording it. */
1114
+ transactionDurationThreshold?: number;
1115
+ }
1102
1116
  interface PerformDiskShrinkContext {
1103
1117
  /** The target disk shrink size in GigaBytes. */
1104
1118
  targetSizeGb?: string;
@@ -1130,6 +1144,10 @@ declare namespace gapi.client {
1130
1144
  ipAddresses?: IpMapping[];
1131
1145
  /** Output only. The name of the read pool node, to be used for retrieving metrics and logs. */
1132
1146
  name?: string;
1147
+ /** Output only. The list of settings for requested automatically-setup Private Service Connect (PSC) consumer endpoints that can be used to connect to this read pool node. */
1148
+ pscAutoConnections?: PscAutoConnectionConfig[];
1149
+ /** Output only. The Private Service Connect (PSC) service attachment of the read pool node. */
1150
+ pscServiceAttachmentLink?: string;
1133
1151
  /** Output only. The current state of the read pool node. */
1134
1152
  state?: string;
1135
1153
  }
@@ -1324,6 +1342,8 @@ declare namespace gapi.client {
1324
1342
  maintenanceWindow?: MaintenanceWindow;
1325
1343
  /** The local user password validation policy of the instance. */
1326
1344
  passwordValidationPolicy?: PasswordValidationPolicy;
1345
+ /** Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations. */
1346
+ performanceCaptureConfig?: PerformanceCaptureConfig;
1327
1347
  /** The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. */
1328
1348
  pricingPlan?: string;
1329
1349
  /** Optional. The read pool auto-scale configuration for the instance. */
@@ -2492,6 +2512,35 @@ declare namespace gapi.client {
2492
2512
  },
2493
2513
  body: InstancesAcquireSsrsLeaseRequest,
2494
2514
  ): Request<SqlInstancesAcquireSsrsLeaseResponse>;
2515
+ /** 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. */
2516
+ addEntraIdCertificate(request?: {
2517
+ /** V1 error format. */
2518
+ '$.xgafv'?: string;
2519
+ /** OAuth access token. */
2520
+ access_token?: string;
2521
+ /** Data format for response. */
2522
+ alt?: string;
2523
+ /** JSONP */
2524
+ callback?: string;
2525
+ /** Selector specifying which fields to include in a partial response. */
2526
+ fields?: string;
2527
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
2528
+ instance: string;
2529
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2530
+ key?: string;
2531
+ /** OAuth 2.0 token for the current user. */
2532
+ oauth_token?: string;
2533
+ /** Returns response with indentations and line breaks. */
2534
+ prettyPrint?: boolean;
2535
+ /** Required. Project ID of the project that contains the instance. */
2536
+ project: string;
2537
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2538
+ quotaUser?: string;
2539
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2540
+ upload_protocol?: string;
2541
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2542
+ uploadType?: string;
2543
+ }): Request<Operation>;
2495
2544
  /** Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate. */
2496
2545
  addServerCa(request?: {
2497
2546
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.1.20251107",
3
+ "version": "0.1.20251201",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -209,6 +209,14 @@ await gapi.client.sql.instances.acquireSsrsLease({
209
209
  project: 'project',
210
210
  });
211
211
 
212
+ /*
213
+ 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.
214
+ */
215
+ await gapi.client.sql.instances.addEntraIdCertificate({
216
+ instance: 'instance',
217
+ project: 'project',
218
+ });
219
+
212
220
  /*
213
221
  Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
214
222
  */