@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20250412 → 0.0.20250427

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 +82 -6
  2. package/package.json +1 -1
  3. package/readme.md +6 -1
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=v1beta4
12
- // Revision: 20250412
12
+ // Revision: 20250427
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -119,6 +119,8 @@ declare namespace gapi.client {
119
119
  interface BackupConfiguration {
120
120
  /** Backup retention settings. */
121
121
  backupRetentionSettings?: BackupRetentionSettings;
122
+ /** Output only. Backup tier that manages the backups for the instance. */
123
+ backupTier?: string;
122
124
  /** (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well. */
123
125
  binaryLogEnabled?: boolean;
124
126
  /** Whether this configuration is enabled. */
@@ -802,6 +804,8 @@ declare namespace gapi.client {
802
804
  interface InstancesRestoreBackupRequest {
803
805
  /** The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input. */
804
806
  backup?: string;
807
+ /** The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input. */
808
+ backupdrBackup?: string;
805
809
  /** Parameters required to perform the restore backup operation. */
806
810
  restoreBackupContext?: RestoreBackupContext;
807
811
  /** Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances. */
@@ -1040,6 +1044,22 @@ declare namespace gapi.client {
1040
1044
  /** The target disk shrink size in GigaBytes. */
1041
1045
  targetSizeGb?: string;
1042
1046
  }
1047
+ interface PointInTimeRestoreContext {
1048
+ /** Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use. http://go/speckle-subnet-picker-clone */
1049
+ allocatedIpRange?: string;
1050
+ /** The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}. */
1051
+ datasource?: string;
1052
+ /** Required. The date and time to which you want to restore the instance. */
1053
+ pointInTime?: string;
1054
+ /** Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. */
1055
+ preferredSecondaryZone?: string;
1056
+ /** Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance. */
1057
+ preferredZone?: string;
1058
+ /** Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. */
1059
+ privateNetwork?: string;
1060
+ /** Target instance name. */
1061
+ targetInstance?: string;
1062
+ }
1043
1063
  interface PoolNodeConfig {
1044
1064
  /** Output only. The DNS name of the read pool node. */
1045
1065
  dnsName?: string;
@@ -1411,8 +1431,6 @@ declare namespace gapi.client {
1411
1431
  etag?: string;
1412
1432
  /** Optional. The host from which the user can connect. For `insert` operations, host defaults to an empty string. For `update` operations, host is specified as part of the request URL. The host name cannot be updated after insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, it's optional. */
1413
1433
  host?: string;
1414
- /** Indicates if user is active for IAM Authentication. */
1415
- iamStatus?: string;
1416
1434
  /** The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for *update* because it is already specified on the URL. */
1417
1435
  instance?: string;
1418
1436
  /** This is always `sql#user`. */
@@ -1754,7 +1772,7 @@ declare namespace gapi.client {
1754
1772
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1755
1773
  uploadType?: string;
1756
1774
  }): Request<ListBackupsResponse>;
1757
- /** Updates the retention period and the description of the backup. You can use this API to update final backups only. */
1775
+ /** This API updates the following: 1- retention period and description of backup in case of final backups only. 2- gcbdr_soft_delete_status of backup in case of GCBDR managed backups only. */
1758
1776
  updateBackup(request: {
1759
1777
  /** V1 error format. */
1760
1778
  '$.xgafv'?: string;
@@ -1776,7 +1794,7 @@ declare namespace gapi.client {
1776
1794
  prettyPrint?: boolean;
1777
1795
  /** 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. */
1778
1796
  quotaUser?: string;
1779
- /** The list of fields that you can update. You can update only the description and retention period of the final backup. */
1797
+ /** The list of fields that you can update. 1- You can update only the description and retention period for a final backup. 2- You can update only the gcbdr_soft_delete_status for GCBDR managed backup. */
1780
1798
  updateMask?: string;
1781
1799
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1782
1800
  upload_protocol?: string;
@@ -1807,7 +1825,7 @@ declare namespace gapi.client {
1807
1825
  prettyPrint?: boolean;
1808
1826
  /** 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. */
1809
1827
  quotaUser?: string;
1810
- /** The list of fields that you can update. You can update only the description and retention period of the final backup. */
1828
+ /** The list of fields that you can update. 1- You can update only the description and retention period for a final backup. 2- You can update only the gcbdr_soft_delete_status for GCBDR managed backup. */
1811
1829
  updateMask?: string;
1812
1830
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1813
1831
  upload_protocol?: string;
@@ -3000,6 +3018,64 @@ declare namespace gapi.client {
3000
3018
  },
3001
3019
  body: DatabaseInstance,
3002
3020
  ): Request<Operation>;
3021
+ /** Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery. */
3022
+ pointInTimeRestore(request: {
3023
+ /** V1 error format. */
3024
+ '$.xgafv'?: string;
3025
+ /** OAuth access token. */
3026
+ access_token?: string;
3027
+ /** Data format for response. */
3028
+ alt?: string;
3029
+ /** JSONP */
3030
+ callback?: string;
3031
+ /** Selector specifying which fields to include in a partial response. */
3032
+ fields?: string;
3033
+ /** 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. */
3034
+ key?: string;
3035
+ /** OAuth 2.0 token for the current user. */
3036
+ oauth_token?: string;
3037
+ /** Required. The parent resource where you created this instance. Format: projects/{project} */
3038
+ parent: string;
3039
+ /** Returns response with indentations and line breaks. */
3040
+ prettyPrint?: boolean;
3041
+ /** 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. */
3042
+ quotaUser?: string;
3043
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3044
+ upload_protocol?: string;
3045
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3046
+ uploadType?: string;
3047
+ /** Request body */
3048
+ resource: PointInTimeRestoreContext;
3049
+ }): Request<Operation>;
3050
+ pointInTimeRestore(
3051
+ request: {
3052
+ /** V1 error format. */
3053
+ '$.xgafv'?: string;
3054
+ /** OAuth access token. */
3055
+ access_token?: string;
3056
+ /** Data format for response. */
3057
+ alt?: string;
3058
+ /** JSONP */
3059
+ callback?: string;
3060
+ /** Selector specifying which fields to include in a partial response. */
3061
+ fields?: string;
3062
+ /** 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. */
3063
+ key?: string;
3064
+ /** OAuth 2.0 token for the current user. */
3065
+ oauth_token?: string;
3066
+ /** Required. The parent resource where you created this instance. Format: projects/{project} */
3067
+ parent: string;
3068
+ /** Returns response with indentations and line breaks. */
3069
+ prettyPrint?: boolean;
3070
+ /** 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. */
3071
+ quotaUser?: string;
3072
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3073
+ upload_protocol?: string;
3074
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3075
+ uploadType?: string;
3076
+ },
3077
+ body: PointInTimeRestoreContext,
3078
+ ): Request<Operation>;
3003
3079
  /** Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart. */
3004
3080
  promoteReplica(request?: {
3005
3081
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20250412",
3
+ "version": "0.0.20250427",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -127,7 +127,7 @@ Lists all backups associated with the project.
127
127
  await gapi.client.sql.backups.listBackups({parent: 'parent'});
128
128
 
129
129
  /*
130
- Updates the retention period and the description of the backup. You can use this API to update final backups only.
130
+ This API updates the following: 1- retention period and description of backup in case of final backups only. 2- gcbdr_soft_delete_status of backup in case of GCBDR managed backups only.
131
131
  */
132
132
  await gapi.client.sql.backups.updateBackup({name: 'name'});
133
133
 
@@ -320,6 +320,11 @@ await gapi.client.sql.instances.patch({
320
320
  project: 'project',
321
321
  });
322
322
 
323
+ /*
324
+ Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.
325
+ */
326
+ await gapi.client.sql.instances.pointInTimeRestore({parent: 'parent'});
327
+
323
328
  /*
324
329
  Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.
325
330
  */