@maxim_mazurok/gapi.client.sqladmin-v1 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=v1
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?:
@@ -1243,6 +1251,9 @@ declare namespace gapi.client {
1243
1251
  /** Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. */
1244
1252
  databaseReplicationEnabled?:
1245
1253
  boolean;
1254
+ /** Configuration for data cache. */
1255
+ dataCacheConfig?:
1256
+ DataCacheConfig;
1246
1257
  /** The size of data disk, in GB. The data disk size minimum is 10GB. */
1247
1258
  dataDiskSizeGb?:
1248
1259
  string;
@@ -1255,6 +1266,9 @@ declare namespace gapi.client {
1255
1266
  /** Deny maintenance periods */
1256
1267
  denyMaintenancePeriods?:
1257
1268
  DenyMaintenancePeriod[];
1269
+ /** Optional. The edition of the instance. */
1270
+ edition?:
1271
+ string;
1258
1272
  /** Insights configuration, for now relevant only for Postgres. */
1259
1273
  insightsConfig?:
1260
1274
  InsightsConfig;
@@ -1340,6 +1354,14 @@ declare namespace gapi.client {
1340
1354
  minimalTargetSizeGb?:
1341
1355
  string;
1342
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
+ }
1343
1365
  interface SqlInstancesRescheduleMaintenanceRequestBody {
1344
1366
  /** Required. The type of the reschedule the user wants. */
1345
1367
  reschedule?:
@@ -4094,6 +4116,48 @@ declare namespace gapi.client {
4094
4116
  uploadType?:
4095
4117
  string;
4096
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>;
4097
4161
  /** Perform Disk Shrink on primary instance. */
4098
4162
  performDiskShrink(request: {
4099
4163
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20230607",
3
+ "version": "0.0.20230627",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
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",