@maxim_mazurok/gapi.client.sqladmin-v1beta4 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.
Files changed (3) hide show
  1. package/index.d.ts +54 -1
  2. package/package.json +1 -1
  3. 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=v1beta4
12
- // Revision: 20230621
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
  /**
@@ -1354,6 +1357,14 @@ declare namespace gapi.client {
1354
1357
  minimalTargetSizeGb?:
1355
1358
  string;
1356
1359
  }
1360
+ interface SqlInstancesGetLatestRecoveryTimeResponse {
1361
+ /** This is always `sql#getLatestRecoveryTime`. */
1362
+ kind?:
1363
+ string;
1364
+ /** Timestamp, identifies the latest recovery time of the source instance. */
1365
+ latestRecoveryTime?:
1366
+ string;
1367
+ }
1357
1368
  interface SqlInstancesRescheduleMaintenanceRequestBody {
1358
1369
  /** Required. The type of the reschedule the user wants. */
1359
1370
  reschedule?:
@@ -4108,6 +4119,48 @@ declare namespace gapi.client {
4108
4119
  uploadType?:
4109
4120
  string;
4110
4121
  }): Request<SqlInstancesGetDiskShrinkConfigResponse>;
4122
+ /** Get Latest Recovery Time for a given instance. */
4123
+ getLatestRecoveryTime(request?: {
4124
+ /** V1 error format. */
4125
+ "$.xgafv"?:
4126
+ string;
4127
+ /** OAuth access token. */
4128
+ access_token?:
4129
+ string;
4130
+ /** Data format for response. */
4131
+ alt?:
4132
+ string;
4133
+ /** JSONP */
4134
+ callback?:
4135
+ string;
4136
+ /** Selector specifying which fields to include in a partial response. */
4137
+ fields?:
4138
+ string;
4139
+ /** Cloud SQL instance ID. This does not include the project ID. */
4140
+ instance:
4141
+ string;
4142
+ /** 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. */
4143
+ key?:
4144
+ string;
4145
+ /** OAuth 2.0 token for the current user. */
4146
+ oauth_token?:
4147
+ string;
4148
+ /** Returns response with indentations and line breaks. */
4149
+ prettyPrint?:
4150
+ boolean;
4151
+ /** Project ID of the project that contains the instance. */
4152
+ project:
4153
+ string;
4154
+ /** 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. */
4155
+ quotaUser?:
4156
+ string;
4157
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4158
+ upload_protocol?:
4159
+ string;
4160
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4161
+ uploadType?:
4162
+ string;
4163
+ }): Request<SqlInstancesGetLatestRecoveryTimeResponse>;
4111
4164
  /** Perform Disk Shrink on primary instance. */
4112
4165
  performDiskShrink(request: {
4113
4166
  /** 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.20230621",
3
+ "version": "0.0.20230627",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230621
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",