@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20230621 → 0.0.20230627
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 +54 -1
- package/package.json +1 -1
- package/tests.ts +7 -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: 20230627
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -209,6 +209,9 @@ declare namespace gapi.client {
|
|
|
209
209
|
/** Timestamp, if specified, identifies the time to which the source instance is cloned. */
|
|
210
210
|
pointInTime?:
|
|
211
211
|
string;
|
|
212
|
+
/** Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. */
|
|
213
|
+
preferredZone?:
|
|
214
|
+
string;
|
|
212
215
|
}
|
|
213
216
|
interface ConnectSettings {
|
|
214
217
|
/**
|
|
@@ -1351,6 +1354,14 @@ declare namespace gapi.client {
|
|
|
1351
1354
|
minimalTargetSizeGb?:
|
|
1352
1355
|
string;
|
|
1353
1356
|
}
|
|
1357
|
+
interface SqlInstancesGetLatestRecoveryTimeResponse {
|
|
1358
|
+
/** This is always `sql#getLatestRecoveryTime`. */
|
|
1359
|
+
kind?:
|
|
1360
|
+
string;
|
|
1361
|
+
/** Timestamp, identifies the latest recovery time of the source instance. */
|
|
1362
|
+
latestRecoveryTime?:
|
|
1363
|
+
string;
|
|
1364
|
+
}
|
|
1354
1365
|
interface SqlInstancesRescheduleMaintenanceRequestBody {
|
|
1355
1366
|
/** Required. The type of the reschedule the user wants. */
|
|
1356
1367
|
reschedule?:
|
|
@@ -4105,6 +4116,48 @@ declare namespace gapi.client {
|
|
|
4105
4116
|
uploadType?:
|
|
4106
4117
|
string;
|
|
4107
4118
|
}): Request<SqlInstancesGetDiskShrinkConfigResponse>;
|
|
4119
|
+
/** Get Latest Recovery Time for a given instance. */
|
|
4120
|
+
getLatestRecoveryTime(request?: {
|
|
4121
|
+
/** V1 error format. */
|
|
4122
|
+
"$.xgafv"?:
|
|
4123
|
+
string;
|
|
4124
|
+
/** OAuth access token. */
|
|
4125
|
+
access_token?:
|
|
4126
|
+
string;
|
|
4127
|
+
/** Data format for response. */
|
|
4128
|
+
alt?:
|
|
4129
|
+
string;
|
|
4130
|
+
/** JSONP */
|
|
4131
|
+
callback?:
|
|
4132
|
+
string;
|
|
4133
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4134
|
+
fields?:
|
|
4135
|
+
string;
|
|
4136
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
4137
|
+
instance:
|
|
4138
|
+
string;
|
|
4139
|
+
/** 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. */
|
|
4140
|
+
key?:
|
|
4141
|
+
string;
|
|
4142
|
+
/** OAuth 2.0 token for the current user. */
|
|
4143
|
+
oauth_token?:
|
|
4144
|
+
string;
|
|
4145
|
+
/** Returns response with indentations and line breaks. */
|
|
4146
|
+
prettyPrint?:
|
|
4147
|
+
boolean;
|
|
4148
|
+
/** Project ID of the project that contains the instance. */
|
|
4149
|
+
project:
|
|
4150
|
+
string;
|
|
4151
|
+
/** 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. */
|
|
4152
|
+
quotaUser?:
|
|
4153
|
+
string;
|
|
4154
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4155
|
+
upload_protocol?:
|
|
4156
|
+
string;
|
|
4157
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4158
|
+
uploadType?:
|
|
4159
|
+
string;
|
|
4160
|
+
}): Request<SqlInstancesGetLatestRecoveryTimeResponse>;
|
|
4108
4161
|
/** Perform Disk Shrink on primary instance. */
|
|
4109
4162
|
performDiskShrink(request: {
|
|
4110
4163
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230627
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -206,6 +206,7 @@ gapi.load('client', async () => {
|
|
|
206
206
|
kind: "Test string",
|
|
207
207
|
pitrTimestampMs: "Test string",
|
|
208
208
|
pointInTime: "Test string",
|
|
209
|
+
preferredZone: "Test string",
|
|
209
210
|
},
|
|
210
211
|
});
|
|
211
212
|
/** Deletes a Cloud SQL instance. */
|
|
@@ -1093,6 +1094,11 @@ gapi.load('client', async () => {
|
|
|
1093
1094
|
instance: "Test string",
|
|
1094
1095
|
project: "Test string",
|
|
1095
1096
|
});
|
|
1097
|
+
/** Get Latest Recovery Time for a given instance. */
|
|
1098
|
+
await gapi.client.sql.projects.instances.getLatestRecoveryTime({
|
|
1099
|
+
instance: "Test string",
|
|
1100
|
+
project: "Test string",
|
|
1101
|
+
});
|
|
1096
1102
|
/** Perform Disk Shrink on primary instance. */
|
|
1097
1103
|
await gapi.client.sql.projects.instances.performDiskShrink({
|
|
1098
1104
|
instance: "Test string",
|