@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20230607 → 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 +65 -1
  2. package/package.json +1 -1
  3. package/tests.ts +19 -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: 20230607
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
  /**
@@ -426,6 +429,11 @@ declare namespace gapi.client {
426
429
  kind?:
427
430
  string;
428
431
  }
432
+ interface DataCacheConfig {
433
+ /** Whether data cache is enabled for the instance. */
434
+ dataCacheEnabled?:
435
+ boolean;
436
+ }
429
437
  interface DemoteMasterConfiguration {
430
438
  /** This is always `sql#demoteMasterConfiguration`. */
431
439
  kind?:
@@ -1246,6 +1254,9 @@ declare namespace gapi.client {
1246
1254
  /** Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. */
1247
1255
  databaseReplicationEnabled?:
1248
1256
  boolean;
1257
+ /** Configuration for data cache. */
1258
+ dataCacheConfig?:
1259
+ DataCacheConfig;
1249
1260
  /** The size of data disk, in GB. The data disk size minimum is 10GB. */
1250
1261
  dataDiskSizeGb?:
1251
1262
  string;
@@ -1258,6 +1269,9 @@ declare namespace gapi.client {
1258
1269
  /** Deny maintenance periods */
1259
1270
  denyMaintenancePeriods?:
1260
1271
  DenyMaintenancePeriod[];
1272
+ /** Optional. The edition of the instance. */
1273
+ edition?:
1274
+ string;
1261
1275
  /** Insights configuration, for now relevant only for Postgres. */
1262
1276
  insightsConfig?:
1263
1277
  InsightsConfig;
@@ -1343,6 +1357,14 @@ declare namespace gapi.client {
1343
1357
  minimalTargetSizeGb?:
1344
1358
  string;
1345
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
+ }
1346
1368
  interface SqlInstancesRescheduleMaintenanceRequestBody {
1347
1369
  /** Required. The type of the reschedule the user wants. */
1348
1370
  reschedule?:
@@ -4097,6 +4119,48 @@ declare namespace gapi.client {
4097
4119
  uploadType?:
4098
4120
  string;
4099
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>;
4100
4164
  /** Perform Disk Shrink on primary instance. */
4101
4165
  performDiskShrink(request: {
4102
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.20230607",
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: 20230607
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. */
@@ -468,6 +469,9 @@ gapi.load('client', async () => {
468
469
  }
469
470
  ],
470
471
  databaseReplicationEnabled: true,
472
+ dataCacheConfig: {
473
+ dataCacheEnabled: true,
474
+ },
471
475
  dataDiskSizeGb: "Test string",
472
476
  dataDiskType: "Test string",
473
477
  deletionProtectionEnabled: true,
@@ -478,6 +482,7 @@ gapi.load('client', async () => {
478
482
  time: "Test string",
479
483
  }
480
484
  ],
485
+ edition: "Test string",
481
486
  insightsConfig: {
482
487
  queryInsightsEnabled: true,
483
488
  queryPlansPerMinute: 42,
@@ -700,6 +705,9 @@ gapi.load('client', async () => {
700
705
  }
701
706
  ],
702
707
  databaseReplicationEnabled: true,
708
+ dataCacheConfig: {
709
+ dataCacheEnabled: true,
710
+ },
703
711
  dataDiskSizeGb: "Test string",
704
712
  dataDiskType: "Test string",
705
713
  deletionProtectionEnabled: true,
@@ -710,6 +718,7 @@ gapi.load('client', async () => {
710
718
  time: "Test string",
711
719
  }
712
720
  ],
721
+ edition: "Test string",
713
722
  insightsConfig: {
714
723
  queryInsightsEnabled: true,
715
724
  queryPlansPerMinute: 42,
@@ -984,6 +993,9 @@ gapi.load('client', async () => {
984
993
  }
985
994
  ],
986
995
  databaseReplicationEnabled: true,
996
+ dataCacheConfig: {
997
+ dataCacheEnabled: true,
998
+ },
987
999
  dataDiskSizeGb: "Test string",
988
1000
  dataDiskType: "Test string",
989
1001
  deletionProtectionEnabled: true,
@@ -994,6 +1006,7 @@ gapi.load('client', async () => {
994
1006
  time: "Test string",
995
1007
  }
996
1008
  ],
1009
+ edition: "Test string",
997
1010
  insightsConfig: {
998
1011
  queryInsightsEnabled: true,
999
1012
  queryPlansPerMinute: 42,
@@ -1081,6 +1094,11 @@ gapi.load('client', async () => {
1081
1094
  instance: "Test string",
1082
1095
  project: "Test string",
1083
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
+ });
1084
1102
  /** Perform Disk Shrink on primary instance. */
1085
1103
  await gapi.client.sql.projects.instances.performDiskShrink({
1086
1104
  instance: "Test string",