@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20220824 → 0.0.20220905

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 CHANGED
@@ -10,7 +10,7 @@
10
10
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
11
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
12
  // Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220824
13
+ // Revision: 20220905
14
14
 
15
15
  /// <reference types="gapi.client" />
16
16
 
@@ -102,6 +102,8 @@ declare namespace gapi.client {
102
102
  startTime?: string;
103
103
  /** The status of this run. */
104
104
  status?: string;
105
+ /** Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. */
106
+ timeZone?: string;
105
107
  /** The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". This field defaults to "ON_DEMAND" and is ignored, when specified for insert requests. */
106
108
  type?: string;
107
109
  /** The start time of the backup window during which this the backup was attempted in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. */
@@ -135,6 +137,8 @@ declare namespace gapi.client {
135
137
  * log coordinates.
136
138
  */
137
139
  binLogCoordinates?: BinLogCoordinates;
140
+ /** (SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty. */
141
+ databaseNames?: string[];
138
142
  /** Name of the Cloud SQL instance to be created as a clone. */
139
143
  destinationInstanceName?: string;
140
144
  /** This is always `sql#cloneContext`. */
@@ -836,8 +840,8 @@ declare namespace gapi.client {
836
840
  /** The name of server Instance collation. */
837
841
  collation?: string;
838
842
  /**
839
- * Specifies if connections must use Cloud SQL connectors. Option values include the following: * `NOT_REQUIRED`: Cloud SQL instances can be connected without Cloud SQL Connectors. *
840
- * `REQUIRED`: Only allow connections that use Cloud SQL Connectors. Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a
843
+ * Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and
844
+ * `REQUIRED` (Only allow connections that use Cloud SQL Connectors). Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a
841
845
  * new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
842
846
  */
843
847
  connectorEnforcement?: string;
@@ -893,6 +897,8 @@ declare namespace gapi.client {
893
897
  storageAutoResizeLimit?: string;
894
898
  /** The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance. */
895
899
  tier?: string;
900
+ /** Server timezone, relevant only for Cloud SQL for SQL Server. */
901
+ timeZone?: string;
896
902
  /** User-provided labels, represented as a dictionary where each label is a single key value pair. */
897
903
  userLabels?: { [P in string]: string };
898
904
  }
@@ -2197,7 +2203,7 @@ declare namespace gapi.client {
2197
2203
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2198
2204
  uploadType?: string;
2199
2205
  }): Request<InstancesListServerCasResponse>;
2200
- /** Updates settings of a Cloud SQL instance. This method supports patch semantics. */
2206
+ /** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
2201
2207
  patch(request: {
2202
2208
  /** V1 error format. */
2203
2209
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20220824",
3
+ "version": "0.0.20220905",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -190,7 +190,7 @@ Lists all of the trusted Certificate Authorities (CAs) for the specified instanc
190
190
  await gapi.client.sql.instances.listServerCas({ instance: "instance", project: "project", });
191
191
 
192
192
  /*
193
- Updates settings of a Cloud SQL instance. This method supports patch semantics.
193
+ Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
194
194
  */
195
195
  await gapi.client.sql.instances.patch({ instance: "instance", project: "project", });
196
196
 
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: 20220824
6
+ // Revision: 20220905
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -72,6 +72,7 @@ gapi.load('client', async () => {
72
72
  selfLink: "Test string",
73
73
  startTime: "Test string",
74
74
  status: "Test string",
75
+ timeZone: "Test string",
75
76
  type: "Test string",
76
77
  windowStartTime: "Test string",
77
78
  });
@@ -198,6 +199,9 @@ gapi.load('client', async () => {
198
199
  binLogPosition: "Test string",
199
200
  kind: "Test string",
200
201
  },
202
+ databaseNames: [
203
+ "Test string"
204
+ ],
201
205
  destinationInstanceName: "Test string",
202
206
  kind: "Test string",
203
207
  pitrTimestampMs: "Test string",
@@ -514,6 +518,7 @@ gapi.load('client', async () => {
514
518
  storageAutoResize: true,
515
519
  storageAutoResizeLimit: "Test string",
516
520
  tier: "Test string",
521
+ timeZone: "Test string",
517
522
  userLabels: {
518
523
  A: "Test string"
519
524
  },
@@ -538,7 +543,7 @@ gapi.load('client', async () => {
538
543
  instance: "Test string",
539
544
  project: "Test string",
540
545
  });
541
- /** Updates settings of a Cloud SQL instance. This method supports patch semantics. */
546
+ /** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
542
547
  await gapi.client.sql.instances.patch({
543
548
  instance: "Test string",
544
549
  project: "Test string",
@@ -741,6 +746,7 @@ gapi.load('client', async () => {
741
746
  storageAutoResize: true,
742
747
  storageAutoResizeLimit: "Test string",
743
748
  tier: "Test string",
749
+ timeZone: "Test string",
744
750
  userLabels: {
745
751
  A: "Test string"
746
752
  },
@@ -1010,6 +1016,7 @@ gapi.load('client', async () => {
1010
1016
  storageAutoResize: true,
1011
1017
  storageAutoResizeLimit: "Test string",
1012
1018
  tier: "Test string",
1019
+ timeZone: "Test string",
1013
1020
  userLabels: {
1014
1021
  A: "Test string"
1015
1022
  },