@google-cloud/spanner 6.10.1 → 6.12.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
6
6
 
7
+ ## [6.12.0](https://github.com/googleapis/nodejs-spanner/compare/v6.11.0...v6.12.0) (2023-06-19)
8
+
9
+
10
+ ### Features
11
+
12
+ * Databoostenabled for Query and Read partitions ([#1784](https://github.com/googleapis/nodejs-spanner/issues/1784)) ([66ff70c](https://github.com/googleapis/nodejs-spanner/commit/66ff70cd377d5e3f60a6796bc36bab3a39337f31))
13
+
14
+ ## [6.11.0](https://github.com/googleapis/nodejs-spanner/compare/v6.10.1...v6.11.0) (2023-06-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **spanner:** Add DdlStatementActionInfo and add actions to UpdateDatabaseDdlMetadata ([#1860](https://github.com/googleapis/nodejs-spanner/issues/1860)) ([3e86f36](https://github.com/googleapis/nodejs-spanner/commit/3e86f369b927e3bf0a2046bd13d0b6a39a9bb076))
20
+ * Testing for fgac in pg ([#1811](https://github.com/googleapis/nodejs-spanner/issues/1811)) ([c48945f](https://github.com/googleapis/nodejs-spanner/commit/c48945f536685d6e4ee4097cfac7d5f57853553e))
21
+
7
22
  ## [6.10.1](https://github.com/googleapis/nodejs-spanner/compare/v6.10.0...v6.10.1) (2023-05-30)
8
23
 
9
24
 
@@ -676,6 +676,27 @@ message UpdateDatabaseDdlRequest {
676
676
  string operation_id = 3;
677
677
  }
678
678
 
679
+ // Action information extracted from a DDL statement. This proto is used to
680
+ // display the brief info of the DDL statement for the operation
681
+ // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
682
+ message DdlStatementActionInfo {
683
+ // The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
684
+ // This field is a non-empty string.
685
+ string action = 1;
686
+
687
+ // The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
688
+ // This field can be empty string for some DDL statement,
689
+ // e.g. for statement "ANALYZE", `entity_type` = "".
690
+ string entity_type = 2;
691
+
692
+ // The entity name(s) being operated on the DDL statement.
693
+ // E.g.
694
+ // 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
695
+ // 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
696
+ // 3. For statement "ANALYZE", `entity_names` = [].
697
+ repeated string entity_names = 3;
698
+ }
699
+
679
700
  // Metadata type for the operation returned by
680
701
  // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
681
702
  message UpdateDatabaseDdlMetadata {
@@ -693,20 +714,23 @@ message UpdateDatabaseDdlMetadata {
693
714
  // timestamp for the statement `statements[i]`.
694
715
  repeated google.protobuf.Timestamp commit_timestamps = 3;
695
716
 
696
- // Output only. When true, indicates that the operation is throttled e.g
717
+ // Output only. When true, indicates that the operation is throttled e.g.
697
718
  // due to resource constraints. When resources become available the operation
698
719
  // will resume and this field will be false again.
699
720
  bool throttled = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
700
721
 
701
722
  // The progress of the
702
- // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations.
703
- // Currently, only index creation statements will have a continuously
704
- // updating progress.
705
- // For non-index creation statements, `progress[i]` will have start time
706
- // and end time populated with commit timestamp of operation,
707
- // as well as a progress of 100% once the operation has completed.
708
- // `progress[i]` is the operation progress for `statements[i]`.
723
+ // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
724
+ // operations. All DDL statements will have continuously updating progress,
725
+ // and `progress[i]` is the operation progress for `statements[i]`. Also,
726
+ // `progress[i]` will have start time and end time populated with commit
727
+ // timestamp of operation, as well as a progress of 100% once the operation
728
+ // has completed.
709
729
  repeated OperationProgress progress = 5;
730
+
731
+ // The brief action info for the DDL statements.
732
+ // `actions[i]` is the brief info for `statements[i]`.
733
+ repeated DdlStatementActionInfo actions = 6;
710
734
  }
711
735
 
712
736
  // The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
@@ -9436,6 +9436,115 @@ export namespace google {
9436
9436
  public static getTypeUrl(typeUrlPrefix?: string): string;
9437
9437
  }
9438
9438
 
9439
+ /** Properties of a DdlStatementActionInfo. */
9440
+ interface IDdlStatementActionInfo {
9441
+
9442
+ /** DdlStatementActionInfo action */
9443
+ action?: (string|null);
9444
+
9445
+ /** DdlStatementActionInfo entityType */
9446
+ entityType?: (string|null);
9447
+
9448
+ /** DdlStatementActionInfo entityNames */
9449
+ entityNames?: (string[]|null);
9450
+ }
9451
+
9452
+ /** Represents a DdlStatementActionInfo. */
9453
+ class DdlStatementActionInfo implements IDdlStatementActionInfo {
9454
+
9455
+ /**
9456
+ * Constructs a new DdlStatementActionInfo.
9457
+ * @param [properties] Properties to set
9458
+ */
9459
+ constructor(properties?: google.spanner.admin.database.v1.IDdlStatementActionInfo);
9460
+
9461
+ /** DdlStatementActionInfo action. */
9462
+ public action: string;
9463
+
9464
+ /** DdlStatementActionInfo entityType. */
9465
+ public entityType: string;
9466
+
9467
+ /** DdlStatementActionInfo entityNames. */
9468
+ public entityNames: string[];
9469
+
9470
+ /**
9471
+ * Creates a new DdlStatementActionInfo instance using the specified properties.
9472
+ * @param [properties] Properties to set
9473
+ * @returns DdlStatementActionInfo instance
9474
+ */
9475
+ public static create(properties?: google.spanner.admin.database.v1.IDdlStatementActionInfo): google.spanner.admin.database.v1.DdlStatementActionInfo;
9476
+
9477
+ /**
9478
+ * Encodes the specified DdlStatementActionInfo message. Does not implicitly {@link google.spanner.admin.database.v1.DdlStatementActionInfo.verify|verify} messages.
9479
+ * @param message DdlStatementActionInfo message or plain object to encode
9480
+ * @param [writer] Writer to encode to
9481
+ * @returns Writer
9482
+ */
9483
+ public static encode(message: google.spanner.admin.database.v1.IDdlStatementActionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9484
+
9485
+ /**
9486
+ * Encodes the specified DdlStatementActionInfo message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.DdlStatementActionInfo.verify|verify} messages.
9487
+ * @param message DdlStatementActionInfo message or plain object to encode
9488
+ * @param [writer] Writer to encode to
9489
+ * @returns Writer
9490
+ */
9491
+ public static encodeDelimited(message: google.spanner.admin.database.v1.IDdlStatementActionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
9492
+
9493
+ /**
9494
+ * Decodes a DdlStatementActionInfo message from the specified reader or buffer.
9495
+ * @param reader Reader or buffer to decode from
9496
+ * @param [length] Message length if known beforehand
9497
+ * @returns DdlStatementActionInfo
9498
+ * @throws {Error} If the payload is not a reader or valid buffer
9499
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9500
+ */
9501
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.DdlStatementActionInfo;
9502
+
9503
+ /**
9504
+ * Decodes a DdlStatementActionInfo message from the specified reader or buffer, length delimited.
9505
+ * @param reader Reader or buffer to decode from
9506
+ * @returns DdlStatementActionInfo
9507
+ * @throws {Error} If the payload is not a reader or valid buffer
9508
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9509
+ */
9510
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.DdlStatementActionInfo;
9511
+
9512
+ /**
9513
+ * Verifies a DdlStatementActionInfo message.
9514
+ * @param message Plain object to verify
9515
+ * @returns `null` if valid, otherwise the reason why it is not
9516
+ */
9517
+ public static verify(message: { [k: string]: any }): (string|null);
9518
+
9519
+ /**
9520
+ * Creates a DdlStatementActionInfo message from a plain object. Also converts values to their respective internal types.
9521
+ * @param object Plain object
9522
+ * @returns DdlStatementActionInfo
9523
+ */
9524
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.DdlStatementActionInfo;
9525
+
9526
+ /**
9527
+ * Creates a plain object from a DdlStatementActionInfo message. Also converts values to other types if specified.
9528
+ * @param message DdlStatementActionInfo
9529
+ * @param [options] Conversion options
9530
+ * @returns Plain object
9531
+ */
9532
+ public static toObject(message: google.spanner.admin.database.v1.DdlStatementActionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
9533
+
9534
+ /**
9535
+ * Converts this DdlStatementActionInfo to JSON.
9536
+ * @returns JSON object
9537
+ */
9538
+ public toJSON(): { [k: string]: any };
9539
+
9540
+ /**
9541
+ * Gets the default type url for DdlStatementActionInfo
9542
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9543
+ * @returns The default type url
9544
+ */
9545
+ public static getTypeUrl(typeUrlPrefix?: string): string;
9546
+ }
9547
+
9439
9548
  /** Properties of an UpdateDatabaseDdlMetadata. */
9440
9549
  interface IUpdateDatabaseDdlMetadata {
9441
9550
 
@@ -9453,6 +9562,9 @@ export namespace google {
9453
9562
 
9454
9563
  /** UpdateDatabaseDdlMetadata progress */
9455
9564
  progress?: (google.spanner.admin.database.v1.IOperationProgress[]|null);
9565
+
9566
+ /** UpdateDatabaseDdlMetadata actions */
9567
+ actions?: (google.spanner.admin.database.v1.IDdlStatementActionInfo[]|null);
9456
9568
  }
9457
9569
 
9458
9570
  /** Represents an UpdateDatabaseDdlMetadata. */
@@ -9479,6 +9591,9 @@ export namespace google {
9479
9591
  /** UpdateDatabaseDdlMetadata progress. */
9480
9592
  public progress: google.spanner.admin.database.v1.IOperationProgress[];
9481
9593
 
9594
+ /** UpdateDatabaseDdlMetadata actions. */
9595
+ public actions: google.spanner.admin.database.v1.IDdlStatementActionInfo[];
9596
+
9482
9597
  /**
9483
9598
  * Creates a new UpdateDatabaseDdlMetadata instance using the specified properties.
9484
9599
  * @param [properties] Properties to set
@@ -23880,6 +23880,273 @@
23880
23880
  return UpdateDatabaseDdlRequest;
23881
23881
  })();
23882
23882
 
23883
+ v1.DdlStatementActionInfo = (function() {
23884
+
23885
+ /**
23886
+ * Properties of a DdlStatementActionInfo.
23887
+ * @memberof google.spanner.admin.database.v1
23888
+ * @interface IDdlStatementActionInfo
23889
+ * @property {string|null} [action] DdlStatementActionInfo action
23890
+ * @property {string|null} [entityType] DdlStatementActionInfo entityType
23891
+ * @property {Array.<string>|null} [entityNames] DdlStatementActionInfo entityNames
23892
+ */
23893
+
23894
+ /**
23895
+ * Constructs a new DdlStatementActionInfo.
23896
+ * @memberof google.spanner.admin.database.v1
23897
+ * @classdesc Represents a DdlStatementActionInfo.
23898
+ * @implements IDdlStatementActionInfo
23899
+ * @constructor
23900
+ * @param {google.spanner.admin.database.v1.IDdlStatementActionInfo=} [properties] Properties to set
23901
+ */
23902
+ function DdlStatementActionInfo(properties) {
23903
+ this.entityNames = [];
23904
+ if (properties)
23905
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23906
+ if (properties[keys[i]] != null)
23907
+ this[keys[i]] = properties[keys[i]];
23908
+ }
23909
+
23910
+ /**
23911
+ * DdlStatementActionInfo action.
23912
+ * @member {string} action
23913
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23914
+ * @instance
23915
+ */
23916
+ DdlStatementActionInfo.prototype.action = "";
23917
+
23918
+ /**
23919
+ * DdlStatementActionInfo entityType.
23920
+ * @member {string} entityType
23921
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23922
+ * @instance
23923
+ */
23924
+ DdlStatementActionInfo.prototype.entityType = "";
23925
+
23926
+ /**
23927
+ * DdlStatementActionInfo entityNames.
23928
+ * @member {Array.<string>} entityNames
23929
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23930
+ * @instance
23931
+ */
23932
+ DdlStatementActionInfo.prototype.entityNames = $util.emptyArray;
23933
+
23934
+ /**
23935
+ * Creates a new DdlStatementActionInfo instance using the specified properties.
23936
+ * @function create
23937
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23938
+ * @static
23939
+ * @param {google.spanner.admin.database.v1.IDdlStatementActionInfo=} [properties] Properties to set
23940
+ * @returns {google.spanner.admin.database.v1.DdlStatementActionInfo} DdlStatementActionInfo instance
23941
+ */
23942
+ DdlStatementActionInfo.create = function create(properties) {
23943
+ return new DdlStatementActionInfo(properties);
23944
+ };
23945
+
23946
+ /**
23947
+ * Encodes the specified DdlStatementActionInfo message. Does not implicitly {@link google.spanner.admin.database.v1.DdlStatementActionInfo.verify|verify} messages.
23948
+ * @function encode
23949
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23950
+ * @static
23951
+ * @param {google.spanner.admin.database.v1.IDdlStatementActionInfo} message DdlStatementActionInfo message or plain object to encode
23952
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23953
+ * @returns {$protobuf.Writer} Writer
23954
+ */
23955
+ DdlStatementActionInfo.encode = function encode(message, writer) {
23956
+ if (!writer)
23957
+ writer = $Writer.create();
23958
+ if (message.action != null && Object.hasOwnProperty.call(message, "action"))
23959
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.action);
23960
+ if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType"))
23961
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
23962
+ if (message.entityNames != null && message.entityNames.length)
23963
+ for (var i = 0; i < message.entityNames.length; ++i)
23964
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityNames[i]);
23965
+ return writer;
23966
+ };
23967
+
23968
+ /**
23969
+ * Encodes the specified DdlStatementActionInfo message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.DdlStatementActionInfo.verify|verify} messages.
23970
+ * @function encodeDelimited
23971
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23972
+ * @static
23973
+ * @param {google.spanner.admin.database.v1.IDdlStatementActionInfo} message DdlStatementActionInfo message or plain object to encode
23974
+ * @param {$protobuf.Writer} [writer] Writer to encode to
23975
+ * @returns {$protobuf.Writer} Writer
23976
+ */
23977
+ DdlStatementActionInfo.encodeDelimited = function encodeDelimited(message, writer) {
23978
+ return this.encode(message, writer).ldelim();
23979
+ };
23980
+
23981
+ /**
23982
+ * Decodes a DdlStatementActionInfo message from the specified reader or buffer.
23983
+ * @function decode
23984
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
23985
+ * @static
23986
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
23987
+ * @param {number} [length] Message length if known beforehand
23988
+ * @returns {google.spanner.admin.database.v1.DdlStatementActionInfo} DdlStatementActionInfo
23989
+ * @throws {Error} If the payload is not a reader or valid buffer
23990
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23991
+ */
23992
+ DdlStatementActionInfo.decode = function decode(reader, length) {
23993
+ if (!(reader instanceof $Reader))
23994
+ reader = $Reader.create(reader);
23995
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.spanner.admin.database.v1.DdlStatementActionInfo();
23996
+ while (reader.pos < end) {
23997
+ var tag = reader.uint32();
23998
+ switch (tag >>> 3) {
23999
+ case 1: {
24000
+ message.action = reader.string();
24001
+ break;
24002
+ }
24003
+ case 2: {
24004
+ message.entityType = reader.string();
24005
+ break;
24006
+ }
24007
+ case 3: {
24008
+ if (!(message.entityNames && message.entityNames.length))
24009
+ message.entityNames = [];
24010
+ message.entityNames.push(reader.string());
24011
+ break;
24012
+ }
24013
+ default:
24014
+ reader.skipType(tag & 7);
24015
+ break;
24016
+ }
24017
+ }
24018
+ return message;
24019
+ };
24020
+
24021
+ /**
24022
+ * Decodes a DdlStatementActionInfo message from the specified reader or buffer, length delimited.
24023
+ * @function decodeDelimited
24024
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24025
+ * @static
24026
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
24027
+ * @returns {google.spanner.admin.database.v1.DdlStatementActionInfo} DdlStatementActionInfo
24028
+ * @throws {Error} If the payload is not a reader or valid buffer
24029
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24030
+ */
24031
+ DdlStatementActionInfo.decodeDelimited = function decodeDelimited(reader) {
24032
+ if (!(reader instanceof $Reader))
24033
+ reader = new $Reader(reader);
24034
+ return this.decode(reader, reader.uint32());
24035
+ };
24036
+
24037
+ /**
24038
+ * Verifies a DdlStatementActionInfo message.
24039
+ * @function verify
24040
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24041
+ * @static
24042
+ * @param {Object.<string,*>} message Plain object to verify
24043
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
24044
+ */
24045
+ DdlStatementActionInfo.verify = function verify(message) {
24046
+ if (typeof message !== "object" || message === null)
24047
+ return "object expected";
24048
+ if (message.action != null && message.hasOwnProperty("action"))
24049
+ if (!$util.isString(message.action))
24050
+ return "action: string expected";
24051
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
24052
+ if (!$util.isString(message.entityType))
24053
+ return "entityType: string expected";
24054
+ if (message.entityNames != null && message.hasOwnProperty("entityNames")) {
24055
+ if (!Array.isArray(message.entityNames))
24056
+ return "entityNames: array expected";
24057
+ for (var i = 0; i < message.entityNames.length; ++i)
24058
+ if (!$util.isString(message.entityNames[i]))
24059
+ return "entityNames: string[] expected";
24060
+ }
24061
+ return null;
24062
+ };
24063
+
24064
+ /**
24065
+ * Creates a DdlStatementActionInfo message from a plain object. Also converts values to their respective internal types.
24066
+ * @function fromObject
24067
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24068
+ * @static
24069
+ * @param {Object.<string,*>} object Plain object
24070
+ * @returns {google.spanner.admin.database.v1.DdlStatementActionInfo} DdlStatementActionInfo
24071
+ */
24072
+ DdlStatementActionInfo.fromObject = function fromObject(object) {
24073
+ if (object instanceof $root.google.spanner.admin.database.v1.DdlStatementActionInfo)
24074
+ return object;
24075
+ var message = new $root.google.spanner.admin.database.v1.DdlStatementActionInfo();
24076
+ if (object.action != null)
24077
+ message.action = String(object.action);
24078
+ if (object.entityType != null)
24079
+ message.entityType = String(object.entityType);
24080
+ if (object.entityNames) {
24081
+ if (!Array.isArray(object.entityNames))
24082
+ throw TypeError(".google.spanner.admin.database.v1.DdlStatementActionInfo.entityNames: array expected");
24083
+ message.entityNames = [];
24084
+ for (var i = 0; i < object.entityNames.length; ++i)
24085
+ message.entityNames[i] = String(object.entityNames[i]);
24086
+ }
24087
+ return message;
24088
+ };
24089
+
24090
+ /**
24091
+ * Creates a plain object from a DdlStatementActionInfo message. Also converts values to other types if specified.
24092
+ * @function toObject
24093
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24094
+ * @static
24095
+ * @param {google.spanner.admin.database.v1.DdlStatementActionInfo} message DdlStatementActionInfo
24096
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
24097
+ * @returns {Object.<string,*>} Plain object
24098
+ */
24099
+ DdlStatementActionInfo.toObject = function toObject(message, options) {
24100
+ if (!options)
24101
+ options = {};
24102
+ var object = {};
24103
+ if (options.arrays || options.defaults)
24104
+ object.entityNames = [];
24105
+ if (options.defaults) {
24106
+ object.action = "";
24107
+ object.entityType = "";
24108
+ }
24109
+ if (message.action != null && message.hasOwnProperty("action"))
24110
+ object.action = message.action;
24111
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
24112
+ object.entityType = message.entityType;
24113
+ if (message.entityNames && message.entityNames.length) {
24114
+ object.entityNames = [];
24115
+ for (var j = 0; j < message.entityNames.length; ++j)
24116
+ object.entityNames[j] = message.entityNames[j];
24117
+ }
24118
+ return object;
24119
+ };
24120
+
24121
+ /**
24122
+ * Converts this DdlStatementActionInfo to JSON.
24123
+ * @function toJSON
24124
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24125
+ * @instance
24126
+ * @returns {Object.<string,*>} JSON object
24127
+ */
24128
+ DdlStatementActionInfo.prototype.toJSON = function toJSON() {
24129
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
24130
+ };
24131
+
24132
+ /**
24133
+ * Gets the default type url for DdlStatementActionInfo
24134
+ * @function getTypeUrl
24135
+ * @memberof google.spanner.admin.database.v1.DdlStatementActionInfo
24136
+ * @static
24137
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24138
+ * @returns {string} The default type url
24139
+ */
24140
+ DdlStatementActionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
24141
+ if (typeUrlPrefix === undefined) {
24142
+ typeUrlPrefix = "type.googleapis.com";
24143
+ }
24144
+ return typeUrlPrefix + "/google.spanner.admin.database.v1.DdlStatementActionInfo";
24145
+ };
24146
+
24147
+ return DdlStatementActionInfo;
24148
+ })();
24149
+
23883
24150
  v1.UpdateDatabaseDdlMetadata = (function() {
23884
24151
 
23885
24152
  /**
@@ -23891,6 +24158,7 @@
23891
24158
  * @property {Array.<google.protobuf.ITimestamp>|null} [commitTimestamps] UpdateDatabaseDdlMetadata commitTimestamps
23892
24159
  * @property {boolean|null} [throttled] UpdateDatabaseDdlMetadata throttled
23893
24160
  * @property {Array.<google.spanner.admin.database.v1.IOperationProgress>|null} [progress] UpdateDatabaseDdlMetadata progress
24161
+ * @property {Array.<google.spanner.admin.database.v1.IDdlStatementActionInfo>|null} [actions] UpdateDatabaseDdlMetadata actions
23894
24162
  */
23895
24163
 
23896
24164
  /**
@@ -23905,6 +24173,7 @@
23905
24173
  this.statements = [];
23906
24174
  this.commitTimestamps = [];
23907
24175
  this.progress = [];
24176
+ this.actions = [];
23908
24177
  if (properties)
23909
24178
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23910
24179
  if (properties[keys[i]] != null)
@@ -23951,6 +24220,14 @@
23951
24220
  */
23952
24221
  UpdateDatabaseDdlMetadata.prototype.progress = $util.emptyArray;
23953
24222
 
24223
+ /**
24224
+ * UpdateDatabaseDdlMetadata actions.
24225
+ * @member {Array.<google.spanner.admin.database.v1.IDdlStatementActionInfo>} actions
24226
+ * @memberof google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata
24227
+ * @instance
24228
+ */
24229
+ UpdateDatabaseDdlMetadata.prototype.actions = $util.emptyArray;
24230
+
23954
24231
  /**
23955
24232
  * Creates a new UpdateDatabaseDdlMetadata instance using the specified properties.
23956
24233
  * @function create
@@ -23988,6 +24265,9 @@
23988
24265
  if (message.progress != null && message.progress.length)
23989
24266
  for (var i = 0; i < message.progress.length; ++i)
23990
24267
  $root.google.spanner.admin.database.v1.OperationProgress.encode(message.progress[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
24268
+ if (message.actions != null && message.actions.length)
24269
+ for (var i = 0; i < message.actions.length; ++i)
24270
+ $root.google.spanner.admin.database.v1.DdlStatementActionInfo.encode(message.actions[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
23991
24271
  return writer;
23992
24272
  };
23993
24273
 
@@ -24048,6 +24328,12 @@
24048
24328
  message.progress.push($root.google.spanner.admin.database.v1.OperationProgress.decode(reader, reader.uint32()));
24049
24329
  break;
24050
24330
  }
24331
+ case 6: {
24332
+ if (!(message.actions && message.actions.length))
24333
+ message.actions = [];
24334
+ message.actions.push($root.google.spanner.admin.database.v1.DdlStatementActionInfo.decode(reader, reader.uint32()));
24335
+ break;
24336
+ }
24051
24337
  default:
24052
24338
  reader.skipType(tag & 7);
24053
24339
  break;
@@ -24114,6 +24400,15 @@
24114
24400
  return "progress." + error;
24115
24401
  }
24116
24402
  }
24403
+ if (message.actions != null && message.hasOwnProperty("actions")) {
24404
+ if (!Array.isArray(message.actions))
24405
+ return "actions: array expected";
24406
+ for (var i = 0; i < message.actions.length; ++i) {
24407
+ var error = $root.google.spanner.admin.database.v1.DdlStatementActionInfo.verify(message.actions[i]);
24408
+ if (error)
24409
+ return "actions." + error;
24410
+ }
24411
+ }
24117
24412
  return null;
24118
24413
  };
24119
24414
 
@@ -24160,6 +24455,16 @@
24160
24455
  message.progress[i] = $root.google.spanner.admin.database.v1.OperationProgress.fromObject(object.progress[i]);
24161
24456
  }
24162
24457
  }
24458
+ if (object.actions) {
24459
+ if (!Array.isArray(object.actions))
24460
+ throw TypeError(".google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.actions: array expected");
24461
+ message.actions = [];
24462
+ for (var i = 0; i < object.actions.length; ++i) {
24463
+ if (typeof object.actions[i] !== "object")
24464
+ throw TypeError(".google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.actions: object expected");
24465
+ message.actions[i] = $root.google.spanner.admin.database.v1.DdlStatementActionInfo.fromObject(object.actions[i]);
24466
+ }
24467
+ }
24163
24468
  return message;
24164
24469
  };
24165
24470
 
@@ -24180,6 +24485,7 @@
24180
24485
  object.statements = [];
24181
24486
  object.commitTimestamps = [];
24182
24487
  object.progress = [];
24488
+ object.actions = [];
24183
24489
  }
24184
24490
  if (options.defaults) {
24185
24491
  object.database = "";
@@ -24204,6 +24510,11 @@
24204
24510
  for (var j = 0; j < message.progress.length; ++j)
24205
24511
  object.progress[j] = $root.google.spanner.admin.database.v1.OperationProgress.toObject(message.progress[j], options);
24206
24512
  }
24513
+ if (message.actions && message.actions.length) {
24514
+ object.actions = [];
24515
+ for (var j = 0; j < message.actions.length; ++j)
24516
+ object.actions[j] = $root.google.spanner.admin.database.v1.DdlStatementActionInfo.toObject(message.actions[j], options);
24517
+ }
24207
24518
  return object;
24208
24519
  };
24209
24520
 
@@ -2547,6 +2547,23 @@
2547
2547
  }
2548
2548
  }
2549
2549
  },
2550
+ "DdlStatementActionInfo": {
2551
+ "fields": {
2552
+ "action": {
2553
+ "type": "string",
2554
+ "id": 1
2555
+ },
2556
+ "entityType": {
2557
+ "type": "string",
2558
+ "id": 2
2559
+ },
2560
+ "entityNames": {
2561
+ "rule": "repeated",
2562
+ "type": "string",
2563
+ "id": 3
2564
+ }
2565
+ }
2566
+ },
2550
2567
  "UpdateDatabaseDdlMetadata": {
2551
2568
  "fields": {
2552
2569
  "database": {
@@ -2577,6 +2594,11 @@
2577
2594
  "rule": "repeated",
2578
2595
  "type": "OperationProgress",
2579
2596
  "id": 5
2597
+ },
2598
+ "actions": {
2599
+ "rule": "repeated",
2600
+ "type": "DdlStatementActionInfo",
2601
+ "id": 6
2580
2602
  }
2581
2603
  }
2582
2604
  },
@@ -67,6 +67,7 @@ export interface ExecuteSqlRequest extends Statement, RequestOptions {
67
67
  seqno?: number;
68
68
  queryOptions?: IQueryOptions;
69
69
  requestOptions?: Omit<IRequestOptions, 'transactionTag'>;
70
+ dataBoostEnabled?: boolean | null;
70
71
  }
71
72
  export interface KeyRange {
72
73
  startClosed?: Value[];
@@ -85,6 +86,7 @@ export interface ReadRequest extends RequestOptions {
85
86
  resumeToken?: Uint8Array | null;
86
87
  partitionToken?: Uint8Array | null;
87
88
  requestOptions?: Omit<IRequestOptions, 'transactionTag'>;
89
+ dataBoostEnabled?: boolean | null;
88
90
  }
89
91
  export interface BatchUpdateError extends grpc.ServiceError {
90
92
  rowCounts: number[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "6.10.1",
4
+ "version": "6.12.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {