@maxim_mazurok/gapi.client.sqladmin-v1 0.1.20250909 → 0.1.20250915

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 +90 -2
  2. package/package.json +1 -1
  3. package/readme.md +9 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* Type definitions for non-npm package Cloud SQL Admin API v1 0.0 */
2
- // Project: https://developers.google.com/cloud-sql/
2
+ // Project: https://cloud.google.com/sql/docs
3
3
  // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
@@ -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: 20250909
12
+ // Revision: 20250915
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -824,6 +824,10 @@ declare namespace gapi.client {
824
824
  /** List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list. */
825
825
  serverCerts?: SslCert[];
826
826
  }
827
+ interface InstancesPreCheckMajorVersionUpgradeRequest {
828
+ /** Required. Contains details about the pre-check major version upgrade operation. */
829
+ preCheckMajorVersionUpgradeContext?: PreCheckMajorVersionUpgradeContext;
830
+ }
827
831
  interface InstancesReencryptRequest {
828
832
  /** Configuration specific to backup re-encryption */
829
833
  backupReencryptionConfig?: BackupReencryptionConfig;
@@ -1003,6 +1007,8 @@ declare namespace gapi.client {
1003
1007
  name?: string;
1004
1008
  /** The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE` */
1005
1009
  operationType?: string;
1010
+ /** This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found). */
1011
+ preCheckMajorVersionUpgradeContext?: PreCheckMajorVersionUpgradeContext;
1006
1012
  /** The URI of this resource. */
1007
1013
  selfLink?: string;
1008
1014
  /** The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */
@@ -1113,6 +1119,22 @@ declare namespace gapi.client {
1113
1119
  /** Output only. The current state of the read pool node. */
1114
1120
  state?: string;
1115
1121
  }
1122
+ interface PreCheckMajorVersionUpgradeContext {
1123
+ /** Optional. This is always `sql#preCheckMajorVersionUpgradeContext`. */
1124
+ kind?: string;
1125
+ /** Output only. The responses from the precheck operation. */
1126
+ preCheckResponse?: PreCheckResponse[];
1127
+ /** Required. The target database version to upgrade to. */
1128
+ targetDatabaseVersion?: string;
1129
+ }
1130
+ interface PreCheckResponse {
1131
+ /** The actions that the user needs to take. Use repeated for multiple actions. */
1132
+ actionsRequired?: string[];
1133
+ /** The message to be displayed to the user. */
1134
+ message?: string;
1135
+ /** The type of message whether it is an info, warning, or error. */
1136
+ messageType?: string;
1137
+ }
1116
1138
  interface PscAutoConnectionConfig {
1117
1139
  /** Optional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. For example, `projects/project1/global/networks/network1`. The consumer host project of this network might be different from the consumer service project. */
1118
1140
  consumerNetwork?: string;
@@ -1154,6 +1176,10 @@ declare namespace gapi.client {
1154
1176
  maxNodeCount?: number;
1155
1177
  /** Minimum number of read pool nodes to be maintained. */
1156
1178
  minNodeCount?: number;
1179
+ /** The cooldown period for scale-in operations. */
1180
+ scaleInCooldownSeconds?: number;
1181
+ /** The cooldown period for scale-out operations. */
1182
+ scaleOutCooldownSeconds?: number;
1157
1183
  /** Optional. Target metrics for read pool auto scaling. */
1158
1184
  targetMetrics?: TargetMetric[];
1159
1185
  }
@@ -3243,6 +3269,68 @@ declare namespace gapi.client {
3243
3269
  },
3244
3270
  body: PointInTimeRestoreContext,
3245
3271
  ): Request<Operation>;
3272
+ /** Execute MVU Pre-checks */
3273
+ preCheckMajorVersionUpgrade(request: {
3274
+ /** V1 error format. */
3275
+ '$.xgafv'?: string;
3276
+ /** OAuth access token. */
3277
+ access_token?: string;
3278
+ /** Data format for response. */
3279
+ alt?: string;
3280
+ /** JSONP */
3281
+ callback?: string;
3282
+ /** Selector specifying which fields to include in a partial response. */
3283
+ fields?: string;
3284
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
3285
+ instance: string;
3286
+ /** 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. */
3287
+ key?: string;
3288
+ /** OAuth 2.0 token for the current user. */
3289
+ oauth_token?: string;
3290
+ /** Returns response with indentations and line breaks. */
3291
+ prettyPrint?: boolean;
3292
+ /** Required. Project ID of the project that contains the instance. */
3293
+ project: string;
3294
+ /** 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. */
3295
+ quotaUser?: string;
3296
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3297
+ upload_protocol?: string;
3298
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3299
+ uploadType?: string;
3300
+ /** Request body */
3301
+ resource: InstancesPreCheckMajorVersionUpgradeRequest;
3302
+ }): Request<Operation>;
3303
+ preCheckMajorVersionUpgrade(
3304
+ request: {
3305
+ /** V1 error format. */
3306
+ '$.xgafv'?: string;
3307
+ /** OAuth access token. */
3308
+ access_token?: string;
3309
+ /** Data format for response. */
3310
+ alt?: string;
3311
+ /** JSONP */
3312
+ callback?: string;
3313
+ /** Selector specifying which fields to include in a partial response. */
3314
+ fields?: string;
3315
+ /** Required. Cloud SQL instance ID. This does not include the project ID. */
3316
+ instance: string;
3317
+ /** 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. */
3318
+ key?: string;
3319
+ /** OAuth 2.0 token for the current user. */
3320
+ oauth_token?: string;
3321
+ /** Returns response with indentations and line breaks. */
3322
+ prettyPrint?: boolean;
3323
+ /** Required. Project ID of the project that contains the instance. */
3324
+ project: string;
3325
+ /** 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. */
3326
+ quotaUser?: string;
3327
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3328
+ upload_protocol?: string;
3329
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3330
+ uploadType?: string;
3331
+ },
3332
+ body: InstancesPreCheckMajorVersionUpgradeRequest,
3333
+ ): Request<Operation>;
3246
3334
  /** Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart. */
3247
3335
  promoteReplica(request?: {
3248
3336
  /** 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.20250909",
3
+ "version": "0.1.20250915",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # TypeScript typings for Cloud SQL Admin API v1
2
2
 
3
3
  API for Cloud SQL database instance management
4
- For detailed description please check [documentation](https://developers.google.com/cloud-sql/).
4
+ For detailed description please check [documentation](https://cloud.google.com/sql/docs).
5
5
 
6
6
  ## Installing
7
7
 
@@ -333,6 +333,14 @@ Point in time restore for an instance managed by Google Cloud Backup and Disaste
333
333
  */
334
334
  await gapi.client.sql.instances.pointInTimeRestore({parent: 'parent'});
335
335
 
336
+ /*
337
+ Execute MVU Pre-checks
338
+ */
339
+ await gapi.client.sql.instances.preCheckMajorVersionUpgrade({
340
+ instance: 'instance',
341
+ project: 'project',
342
+ });
343
+
336
344
  /*
337
345
  Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
338
346
  */