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

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
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220824
12
+ // Revision: 20220922
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -102,6 +101,8 @@ declare namespace gapi.client {
102
101
  startTime?: string;
103
102
  /** The status of this run. */
104
103
  status?: string;
104
+ /** Backup time zone to prevent restores to an instance with a different time zone. Now relevant only for SQL Server. */
105
+ timeZone?: string;
105
106
  /** 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
107
  type?: string;
107
108
  /** 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`. */
@@ -125,7 +126,7 @@ declare namespace gapi.client {
125
126
  }
126
127
  interface CloneContext {
127
128
  /**
128
- * The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the
129
+ * The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the cloned instance ip will be created in the
129
130
  * allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular
130
131
  * expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
131
132
  */
@@ -135,6 +136,8 @@ declare namespace gapi.client {
135
136
  * log coordinates.
136
137
  */
137
138
  binLogCoordinates?: BinLogCoordinates;
139
+ /** (SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty. */
140
+ databaseNames?: string[];
138
141
  /** Name of the Cloud SQL instance to be created as a clone. */
139
142
  destinationInstanceName?: string;
140
143
  /** This is always `sql#cloneContext`. */
@@ -595,7 +598,7 @@ declare namespace gapi.client {
595
598
  }
596
599
  interface IpConfiguration {
597
600
  /**
598
- * The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated
601
+ * The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated
599
602
  * range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression
600
603
  * `[a-z]([-a-z0-9]*[a-z0-9])?.`
601
604
  */
@@ -836,8 +839,8 @@ declare namespace gapi.client {
836
839
  /** The name of server Instance collation. */
837
840
  collation?: string;
838
841
  /**
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
842
+ * 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
843
+ * `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
844
  * 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
845
  */
843
846
  connectorEnforcement?: string;
@@ -893,6 +896,8 @@ declare namespace gapi.client {
893
896
  storageAutoResizeLimit?: string;
894
897
  /** The tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance. */
895
898
  tier?: string;
899
+ /** Server timezone, relevant only for Cloud SQL for SQL Server. */
900
+ timeZone?: string;
896
901
  /** User-provided labels, represented as a dictionary where each label is a single key value pair. */
897
902
  userLabels?: { [P in string]: string };
898
903
  }
@@ -2197,7 +2202,7 @@ declare namespace gapi.client {
2197
2202
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2198
2203
  uploadType?: string;
2199
2204
  }): Request<InstancesListServerCasResponse>;
2200
- /** Updates settings of a Cloud SQL instance. This method supports patch semantics. */
2205
+ /** Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics. */
2201
2206
  patch(request: {
2202
2207
  /** V1 error format. */
2203
2208
  "$.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.20220922",
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: 20220922
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
  },