@maxim_mazurok/gapi.client.spanner-v1 0.0.20221108 → 0.0.20221121

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 +25 -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://spanner.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221108
12
+ // Revision: 20221121
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -267,6 +267,14 @@ declare namespace gapi.client {
267
267
  * database: if there is an error in any statement, the database is not created.
268
268
  */
269
269
  extraStatements?: string[];
270
+ /**
271
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in 'extra_statements' above. Contains a protobuf-serialized
272
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). To generate it,
273
+ * [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with --include_imports and --descriptor_set_out. For example, to generate for moon/shot/app.proto, run """
274
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ --descriptor_set_out=descriptors.data \ moon/shot/app.proto """ For more details, see protobuffer [self
275
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
276
+ */
277
+ protoDescriptors?: string;
270
278
  }
271
279
  interface CreateInstanceConfigMetadata {
272
280
  /** The time at which this operation was cancelled. */
@@ -510,6 +518,12 @@ declare namespace gapi.client {
510
518
  upgradeTime?: string;
511
519
  }
512
520
  interface GetDatabaseDdlResponse {
521
+ /**
522
+ * Proto descriptors stored in the database. Contains a protobuf-serialized
523
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). For more details, see protobuffer [self
524
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
525
+ */
526
+ protoDescriptors?: string;
513
527
  /** A list of formatted DDL statements defining the schema of the database specified in the request. */
514
528
  statements?: string[];
515
529
  }
@@ -1381,6 +1395,8 @@ declare namespace gapi.client {
1381
1395
  arrayElementType?: Type;
1382
1396
  /** Required. The TypeCode for this type. */
1383
1397
  code?: string;
1398
+ /** If code == PROTO or code == ENUM, then `proto_type_fqn` is the fully qualified name of the proto type representing the proto/enum definition. */
1399
+ protoTypeFqn?: string;
1384
1400
  /** If code == STRUCT, then `struct_type` provides type information for the struct's fields. */
1385
1401
  structType?: StructType;
1386
1402
  /**
@@ -1418,6 +1434,14 @@ declare namespace gapi.client {
1418
1434
  * returns `ALREADY_EXISTS`.
1419
1435
  */
1420
1436
  operationId?: string;
1437
+ /**
1438
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements. Contains a protobuf-serialized
1439
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto). To generate it,
1440
+ * [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with --include_imports and --descriptor_set_out. For example, to generate for moon/shot/app.proto, run """
1441
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ --descriptor_set_out=descriptors.data \ moon/shot/app.proto """ For more details, see protobuffer [self
1442
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
1443
+ */
1444
+ protoDescriptors?: string;
1421
1445
  /** Required. DDL statements to be applied to the database. */
1422
1446
  statements?: string[];
1423
1447
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.spanner-v1",
3
- "version": "0.0.20221108",
3
+ "version": "0.0.20221121",
4
4
  "description": "TypeScript typings for Cloud Spanner 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: 20221108
6
+ // Revision: 20221121
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -547,6 +547,7 @@ gapi.load('client', async () => {
547
547
  extraStatements: [
548
548
  "Test string"
549
549
  ],
550
+ protoDescriptors: "Test string",
550
551
  });
551
552
  /**
552
553
  * Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to their `expire_time`. Note: Cloud Spanner might continue to accept requests
@@ -650,6 +651,7 @@ gapi.load('client', async () => {
650
651
  database: "Test string",
651
652
  }, {
652
653
  operationId: "Test string",
654
+ protoDescriptors: "Test string",
653
655
  statements: [
654
656
  "Test string"
655
657
  ],
@@ -899,6 +901,7 @@ gapi.load('client', async () => {
899
901
  A: {
900
902
  arrayElementType: undefined,
901
903
  code: "Test string",
904
+ protoTypeFqn: "Test string",
902
905
  structType: {
903
906
  fields: [
904
907
  {
@@ -962,6 +965,7 @@ gapi.load('client', async () => {
962
965
  A: {
963
966
  arrayElementType: undefined,
964
967
  code: "Test string",
968
+ protoTypeFqn: "Test string",
965
969
  structType: {
966
970
  fields: [
967
971
  {
@@ -1035,6 +1039,7 @@ gapi.load('client', async () => {
1035
1039
  A: {
1036
1040
  arrayElementType: undefined,
1037
1041
  code: "Test string",
1042
+ protoTypeFqn: "Test string",
1038
1043
  structType: {
1039
1044
  fields: [
1040
1045
  {
@@ -1121,6 +1126,7 @@ gapi.load('client', async () => {
1121
1126
  A: {
1122
1127
  arrayElementType: undefined,
1123
1128
  code: "Test string",
1129
+ protoTypeFqn: "Test string",
1124
1130
  structType: {
1125
1131
  fields: [
1126
1132
  {