@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20241210 → 0.0.20250129

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 +36 -34
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20241210
12
+ // Revision: 20250129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud SQL Admin API v1 */
18
18
  function load(
19
- urlOrObject: 'https://sqladmin.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://sqladmin.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'sqladmin', version: 'v1'): Promise<void>;
@@ -364,7 +364,7 @@ declare namespace gapi.client {
364
364
  caCertificate?: string;
365
365
  /** PEM representation of the replica's x509 certificate. */
366
366
  clientCertificate?: string;
367
- /** PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8. */
367
+ /** PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8. */
368
368
  clientKey?: string;
369
369
  /** This is always `sql#demoteMasterMysqlReplicaConfiguration`. */
370
370
  kind?: string;
@@ -741,7 +741,7 @@ declare namespace gapi.client {
741
741
  caCertificate?: string;
742
742
  /** PEM representation of the replica's x509 certificate. */
743
743
  clientCertificate?: string;
744
- /** PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. */
744
+ /** PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. */
745
745
  clientKey?: string;
746
746
  /** Seconds to wait between connect retries. MySQL's default is 60 seconds. */
747
747
  connectRetryInterval?: number;
@@ -769,7 +769,7 @@ declare namespace gapi.client {
769
769
  caCertificate?: string;
770
770
  /** PEM representation of the replica's x509 certificate. */
771
771
  clientCertificate?: string;
772
- /** PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. */
772
+ /** PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. */
773
773
  clientKey?: string;
774
774
  /** The dump file to create the Cloud SQL replica. */
775
775
  dumpFilePath?: string;
@@ -1013,6 +1013,8 @@ declare namespace gapi.client {
1013
1013
  passwordValidationPolicy?: PasswordValidationPolicy;
1014
1014
  /** The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances. */
1015
1015
  pricingPlan?: string;
1016
+ /** Optional. Configuration value for recreation of replica after certain replication lag */
1017
+ replicationLagMaxSeconds?: number;
1016
1018
  /** The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances. */
1017
1019
  replicationType?: string;
1018
1020
  /** The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. */
@@ -1396,7 +1398,7 @@ declare namespace gapi.client {
1396
1398
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1397
1399
  uploadType?: string;
1398
1400
  },
1399
- body: BackupRun
1401
+ body: BackupRun,
1400
1402
  ): Request<Operation>;
1401
1403
  /** Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time. */
1402
1404
  list(request?: {
@@ -1493,7 +1495,7 @@ declare namespace gapi.client {
1493
1495
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1494
1496
  uploadType?: string;
1495
1497
  },
1496
- body: GenerateEphemeralCertRequest
1498
+ body: GenerateEphemeralCertRequest,
1497
1499
  ): Request<GenerateEphemeralCertResponse>;
1498
1500
  /** Retrieves connect settings about a Cloud SQL instance. */
1499
1501
  get(request?: {
@@ -1650,7 +1652,7 @@ declare namespace gapi.client {
1650
1652
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1651
1653
  uploadType?: string;
1652
1654
  },
1653
- body: Database
1655
+ body: Database,
1654
1656
  ): Request<Operation>;
1655
1657
  /** Lists databases in the specified Cloud SQL instance. */
1656
1658
  list(request?: {
@@ -1745,7 +1747,7 @@ declare namespace gapi.client {
1745
1747
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1746
1748
  uploadType?: string;
1747
1749
  },
1748
- body: Database
1750
+ body: Database,
1749
1751
  ): Request<Operation>;
1750
1752
  /** Updates a resource containing information about a database inside a Cloud SQL instance. */
1751
1753
  update(request: {
@@ -1811,7 +1813,7 @@ declare namespace gapi.client {
1811
1813
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1812
1814
  uploadType?: string;
1813
1815
  },
1814
- body: Database
1816
+ body: Database,
1815
1817
  ): Request<Operation>;
1816
1818
  }
1817
1819
  interface FlagsResource {
@@ -1904,7 +1906,7 @@ declare namespace gapi.client {
1904
1906
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1905
1907
  uploadType?: string;
1906
1908
  },
1907
- body: InstancesAcquireSsrsLeaseRequest
1909
+ body: InstancesAcquireSsrsLeaseRequest,
1908
1910
  ): Request<SqlInstancesAcquireSsrsLeaseResponse>;
1909
1911
  /** 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. */
1910
1912
  addServerCa(request?: {
@@ -2024,7 +2026,7 @@ declare namespace gapi.client {
2024
2026
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2025
2027
  uploadType?: string;
2026
2028
  },
2027
- body: InstancesCloneRequest
2029
+ body: InstancesCloneRequest,
2028
2030
  ): Request<Operation>;
2029
2031
  /** Deletes a Cloud SQL instance. */
2030
2032
  delete(request?: {
@@ -2115,7 +2117,7 @@ declare namespace gapi.client {
2115
2117
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2116
2118
  uploadType?: string;
2117
2119
  },
2118
- body: InstancesDemoteRequest
2120
+ body: InstancesDemoteRequest,
2119
2121
  ): Request<Operation>;
2120
2122
  /** Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server. */
2121
2123
  demoteMaster(request: {
@@ -2177,7 +2179,7 @@ declare namespace gapi.client {
2177
2179
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2178
2180
  uploadType?: string;
2179
2181
  },
2180
- body: InstancesDemoteMasterRequest
2182
+ body: InstancesDemoteMasterRequest,
2181
2183
  ): Request<Operation>;
2182
2184
  /** Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file. */
2183
2185
  export(request: {
@@ -2239,7 +2241,7 @@ declare namespace gapi.client {
2239
2241
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2240
2242
  uploadType?: string;
2241
2243
  },
2242
- body: InstancesExportRequest
2244
+ body: InstancesExportRequest,
2243
2245
  ): Request<Operation>;
2244
2246
  /** Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance. */
2245
2247
  failover(request: {
@@ -2301,7 +2303,7 @@ declare namespace gapi.client {
2301
2303
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2302
2304
  uploadType?: string;
2303
2305
  },
2304
- body: InstancesFailoverRequest
2306
+ body: InstancesFailoverRequest,
2305
2307
  ): Request<Operation>;
2306
2308
  /** Retrieves a resource containing information about a Cloud SQL instance. */
2307
2309
  get(request?: {
@@ -2392,7 +2394,7 @@ declare namespace gapi.client {
2392
2394
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2393
2395
  uploadType?: string;
2394
2396
  },
2395
- body: InstancesImportRequest
2397
+ body: InstancesImportRequest,
2396
2398
  ): Request<Operation>;
2397
2399
  /** Creates a new Cloud SQL instance. */
2398
2400
  insert(request: {
@@ -2450,7 +2452,7 @@ declare namespace gapi.client {
2450
2452
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2451
2453
  uploadType?: string;
2452
2454
  },
2453
- body: DatabaseInstance
2455
+ body: DatabaseInstance,
2454
2456
  ): Request<Operation>;
2455
2457
  /** Lists instances under a given project. */
2456
2458
  list(request?: {
@@ -2603,7 +2605,7 @@ declare namespace gapi.client {
2603
2605
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2604
2606
  uploadType?: string;
2605
2607
  },
2606
- body: DatabaseInstance
2608
+ body: DatabaseInstance,
2607
2609
  ): Request<Operation>;
2608
2610
  /** Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart. */
2609
2611
  promoteReplica(request?: {
@@ -2696,7 +2698,7 @@ declare namespace gapi.client {
2696
2698
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2697
2699
  uploadType?: string;
2698
2700
  },
2699
- body: InstancesReencryptRequest
2701
+ body: InstancesReencryptRequest,
2700
2702
  ): Request<Operation>;
2701
2703
  /** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
2702
2704
  releaseSsrsLease(request?: {
@@ -2845,7 +2847,7 @@ declare namespace gapi.client {
2845
2847
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2846
2848
  uploadType?: string;
2847
2849
  },
2848
- body: InstancesRestoreBackupRequest
2850
+ body: InstancesRestoreBackupRequest,
2849
2851
  ): Request<Operation>;
2850
2852
  /** 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. */
2851
2853
  rotateServerCa(request: {
@@ -2907,7 +2909,7 @@ declare namespace gapi.client {
2907
2909
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2908
2910
  uploadType?: string;
2909
2911
  },
2910
- body: InstancesRotateServerCaRequest
2912
+ body: InstancesRotateServerCaRequest,
2911
2913
  ): Request<Operation>;
2912
2914
  /** Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead. */
2913
2915
  RotateServerCertificate(request: {
@@ -2969,7 +2971,7 @@ declare namespace gapi.client {
2969
2971
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2970
2972
  uploadType?: string;
2971
2973
  },
2972
- body: InstancesRotateServerCertificateRequest
2974
+ body: InstancesRotateServerCertificateRequest,
2973
2975
  ): Request<Operation>;
2974
2976
  /** Starts the replication in the read replica instance. */
2975
2977
  startReplica(request?: {
@@ -3120,7 +3122,7 @@ declare namespace gapi.client {
3120
3122
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3121
3123
  uploadType?: string;
3122
3124
  },
3123
- body: InstancesTruncateLogRequest
3125
+ body: InstancesTruncateLogRequest,
3124
3126
  ): Request<Operation>;
3125
3127
  /** Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart. */
3126
3128
  update(request: {
@@ -3182,7 +3184,7 @@ declare namespace gapi.client {
3182
3184
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3183
3185
  uploadType?: string;
3184
3186
  },
3185
- body: DatabaseInstance
3187
+ body: DatabaseInstance,
3186
3188
  ): Request<Operation>;
3187
3189
  }
3188
3190
  interface OperationsResource {
@@ -3397,7 +3399,7 @@ declare namespace gapi.client {
3397
3399
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3398
3400
  uploadType?: string;
3399
3401
  },
3400
- body: PerformDiskShrinkContext
3402
+ body: PerformDiskShrinkContext,
3401
3403
  ): Request<Operation>;
3402
3404
  /** Reschedules the maintenance on the given instance. */
3403
3405
  rescheduleMaintenance(request: {
@@ -3459,7 +3461,7 @@ declare namespace gapi.client {
3459
3461
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3460
3462
  uploadType?: string;
3461
3463
  },
3462
- body: SqlInstancesRescheduleMaintenanceRequestBody
3464
+ body: SqlInstancesRescheduleMaintenanceRequestBody,
3463
3465
  ): Request<Operation>;
3464
3466
  /** Reset Replica Size to primary instance disk size. */
3465
3467
  resetReplicaSize(request: {
@@ -3521,7 +3523,7 @@ declare namespace gapi.client {
3521
3523
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3522
3524
  uploadType?: string;
3523
3525
  },
3524
- body: SqlInstancesResetReplicaSizeRequest
3526
+ body: SqlInstancesResetReplicaSizeRequest,
3525
3527
  ): Request<Operation>;
3526
3528
  /** Start External primary instance migration. */
3527
3529
  startExternalSync(request: {
@@ -3583,7 +3585,7 @@ declare namespace gapi.client {
3583
3585
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3584
3586
  uploadType?: string;
3585
3587
  },
3586
- body: SqlInstancesStartExternalSyncRequest
3588
+ body: SqlInstancesStartExternalSyncRequest,
3587
3589
  ): Request<Operation>;
3588
3590
  /** Verify External primary instance external sync settings. */
3589
3591
  verifyExternalSyncSettings(request: {
@@ -3645,7 +3647,7 @@ declare namespace gapi.client {
3645
3647
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3646
3648
  uploadType?: string;
3647
3649
  },
3648
- body: SqlInstancesVerifyExternalSyncSettingsRequest
3650
+ body: SqlInstancesVerifyExternalSyncSettingsRequest,
3649
3651
  ): Request<SqlInstancesVerifyExternalSyncSettingsResponse>;
3650
3652
  }
3651
3653
  interface ProjectsResource {
@@ -3712,7 +3714,7 @@ declare namespace gapi.client {
3712
3714
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3713
3715
  uploadType?: string;
3714
3716
  },
3715
- body: SslCertsCreateEphemeralRequest
3717
+ body: SslCertsCreateEphemeralRequest,
3716
3718
  ): Request<SslCert>;
3717
3719
  /** Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted. */
3718
3720
  delete(request?: {
@@ -3836,7 +3838,7 @@ declare namespace gapi.client {
3836
3838
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3837
3839
  uploadType?: string;
3838
3840
  },
3839
- body: SslCertsInsertRequest
3841
+ body: SslCertsInsertRequest,
3840
3842
  ): Request<SslCertsInsertResponse>;
3841
3843
  /** Lists all of the current SSL certificates for the instance. */
3842
3844
  list(request?: {
@@ -4024,7 +4026,7 @@ declare namespace gapi.client {
4024
4026
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4025
4027
  uploadType?: string;
4026
4028
  },
4027
- body: User
4029
+ body: User,
4028
4030
  ): Request<Operation>;
4029
4031
  /** Lists users in the specified Cloud SQL instance. */
4030
4032
  list(request?: {
@@ -4123,7 +4125,7 @@ declare namespace gapi.client {
4123
4125
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4124
4126
  uploadType?: string;
4125
4127
  },
4126
- body: User
4128
+ body: User,
4127
4129
  ): Request<Operation>;
4128
4130
  }
4129
4131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20241210",
3
+ "version": "0.0.20250129",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.sql
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -65,7 +65,7 @@ gapi.auth.authorize(
65
65
  } else {
66
66
  /* handle authorization error */
67
67
  }
68
- }
68
+ },
69
69
  );
70
70
  ```
71
71