@maxim_mazurok/gapi.client.sqladmin-v1 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.
- package/index.d.ts +82 -6
- package/package.json +1 -1
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250427
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -115,6 +115,8 @@ declare namespace gapi.client {
|
|
|
115
115
|
interface BackupConfiguration {
|
|
116
116
|
/** Backup retention settings. */
|
|
117
117
|
backupRetentionSettings?: BackupRetentionSettings;
|
|
118
|
+
/** Output only. Backup tier that manages the backups for the instance. */
|
|
119
|
+
backupTier?: string;
|
|
118
120
|
/** (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well. */
|
|
119
121
|
binaryLogEnabled?: boolean;
|
|
120
122
|
/** Whether this configuration is enabled. */
|
|
@@ -797,6 +799,8 @@ declare namespace gapi.client {
|
|
|
797
799
|
interface InstancesRestoreBackupRequest {
|
|
798
800
|
/** 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. */
|
|
799
801
|
backup?: string;
|
|
802
|
+
/** 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. */
|
|
803
|
+
backupdrBackup?: string;
|
|
800
804
|
/** Parameters required to perform the restore backup operation. */
|
|
801
805
|
restoreBackupContext?: RestoreBackupContext;
|
|
802
806
|
/** 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. */
|
|
@@ -1035,6 +1039,22 @@ declare namespace gapi.client {
|
|
|
1035
1039
|
/** The target disk shrink size in GigaBytes. */
|
|
1036
1040
|
targetSizeGb?: string;
|
|
1037
1041
|
}
|
|
1042
|
+
interface PointInTimeRestoreContext {
|
|
1043
|
+
/** 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 */
|
|
1044
|
+
allocatedIpRange?: string;
|
|
1045
|
+
/** The Google Cloud Backup and Disaster Recovery Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}. */
|
|
1046
|
+
datasource?: string;
|
|
1047
|
+
/** Required. The date and time to which you want to restore the instance. */
|
|
1048
|
+
pointInTime?: string;
|
|
1049
|
+
/** 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. */
|
|
1050
|
+
preferredSecondaryZone?: string;
|
|
1051
|
+
/** 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. */
|
|
1052
|
+
preferredZone?: string;
|
|
1053
|
+
/** 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`. */
|
|
1054
|
+
privateNetwork?: string;
|
|
1055
|
+
/** Target instance name. */
|
|
1056
|
+
targetInstance?: string;
|
|
1057
|
+
}
|
|
1038
1058
|
interface PoolNodeConfig {
|
|
1039
1059
|
/** Output only. The DNS name of the read pool node. */
|
|
1040
1060
|
dnsName?: string;
|
|
@@ -1406,8 +1426,6 @@ declare namespace gapi.client {
|
|
|
1406
1426
|
etag?: string;
|
|
1407
1427
|
/** 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. */
|
|
1408
1428
|
host?: string;
|
|
1409
|
-
/** Indicates if user is active for IAM Authentication. */
|
|
1410
|
-
iamStatus?: string;
|
|
1411
1429
|
/** 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. */
|
|
1412
1430
|
instance?: string;
|
|
1413
1431
|
/** This is always `sql#user`. */
|
|
@@ -1749,7 +1767,7 @@ declare namespace gapi.client {
|
|
|
1749
1767
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1750
1768
|
uploadType?: string;
|
|
1751
1769
|
}): Request<ListBackupsResponse>;
|
|
1752
|
-
/**
|
|
1770
|
+
/** 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. */
|
|
1753
1771
|
UpdateBackup(request: {
|
|
1754
1772
|
/** V1 error format. */
|
|
1755
1773
|
'$.xgafv'?: string;
|
|
@@ -1771,7 +1789,7 @@ declare namespace gapi.client {
|
|
|
1771
1789
|
prettyPrint?: boolean;
|
|
1772
1790
|
/** 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. */
|
|
1773
1791
|
quotaUser?: string;
|
|
1774
|
-
/** The list of fields that you can update. You can update only the description and retention period
|
|
1792
|
+
/** 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. */
|
|
1775
1793
|
updateMask?: string;
|
|
1776
1794
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1777
1795
|
upload_protocol?: string;
|
|
@@ -1802,7 +1820,7 @@ declare namespace gapi.client {
|
|
|
1802
1820
|
prettyPrint?: boolean;
|
|
1803
1821
|
/** 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. */
|
|
1804
1822
|
quotaUser?: string;
|
|
1805
|
-
/** The list of fields that you can update. You can update only the description and retention period
|
|
1823
|
+
/** 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. */
|
|
1806
1824
|
updateMask?: string;
|
|
1807
1825
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1808
1826
|
upload_protocol?: string;
|
|
@@ -2995,6 +3013,64 @@ declare namespace gapi.client {
|
|
|
2995
3013
|
},
|
|
2996
3014
|
body: DatabaseInstance,
|
|
2997
3015
|
): Request<Operation>;
|
|
3016
|
+
/** Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery. */
|
|
3017
|
+
pointInTimeRestore(request: {
|
|
3018
|
+
/** V1 error format. */
|
|
3019
|
+
'$.xgafv'?: string;
|
|
3020
|
+
/** OAuth access token. */
|
|
3021
|
+
access_token?: string;
|
|
3022
|
+
/** Data format for response. */
|
|
3023
|
+
alt?: string;
|
|
3024
|
+
/** JSONP */
|
|
3025
|
+
callback?: string;
|
|
3026
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3027
|
+
fields?: string;
|
|
3028
|
+
/** 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. */
|
|
3029
|
+
key?: string;
|
|
3030
|
+
/** OAuth 2.0 token for the current user. */
|
|
3031
|
+
oauth_token?: string;
|
|
3032
|
+
/** Required. The parent resource where you created this instance. Format: projects/{project} */
|
|
3033
|
+
parent: string;
|
|
3034
|
+
/** Returns response with indentations and line breaks. */
|
|
3035
|
+
prettyPrint?: boolean;
|
|
3036
|
+
/** 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. */
|
|
3037
|
+
quotaUser?: string;
|
|
3038
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3039
|
+
upload_protocol?: string;
|
|
3040
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3041
|
+
uploadType?: string;
|
|
3042
|
+
/** Request body */
|
|
3043
|
+
resource: PointInTimeRestoreContext;
|
|
3044
|
+
}): Request<Operation>;
|
|
3045
|
+
pointInTimeRestore(
|
|
3046
|
+
request: {
|
|
3047
|
+
/** V1 error format. */
|
|
3048
|
+
'$.xgafv'?: string;
|
|
3049
|
+
/** OAuth access token. */
|
|
3050
|
+
access_token?: string;
|
|
3051
|
+
/** Data format for response. */
|
|
3052
|
+
alt?: string;
|
|
3053
|
+
/** JSONP */
|
|
3054
|
+
callback?: string;
|
|
3055
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3056
|
+
fields?: string;
|
|
3057
|
+
/** 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. */
|
|
3058
|
+
key?: string;
|
|
3059
|
+
/** OAuth 2.0 token for the current user. */
|
|
3060
|
+
oauth_token?: string;
|
|
3061
|
+
/** Required. The parent resource where you created this instance. Format: projects/{project} */
|
|
3062
|
+
parent: string;
|
|
3063
|
+
/** Returns response with indentations and line breaks. */
|
|
3064
|
+
prettyPrint?: boolean;
|
|
3065
|
+
/** 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. */
|
|
3066
|
+
quotaUser?: string;
|
|
3067
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3068
|
+
upload_protocol?: string;
|
|
3069
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3070
|
+
uploadType?: string;
|
|
3071
|
+
},
|
|
3072
|
+
body: PointInTimeRestoreContext,
|
|
3073
|
+
): Request<Operation>;
|
|
2998
3074
|
/** Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart. */
|
|
2999
3075
|
promoteReplica(request?: {
|
|
3000
3076
|
/** V1 error format. */
|
package/package.json
CHANGED
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
|
-
|
|
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
|
*/
|