@google-cloud/spanner 6.10.0 → 6.11.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 +15 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +32 -8
- package/build/protos/protos.d.ts +115 -0
- package/build/protos/protos.js +311 -0
- package/build/protos/protos.json +22 -0
- package/build/src/v1/database_admin_client.d.ts +0 -52
- package/build/src/v1/database_admin_client.js +0 -22
- package/build/src/v1/instance_admin_client.d.ts +0 -36
- package/build/src/v1/instance_admin_client.js +0 -14
- package/package.json +2 -2
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.11.0](https://github.com/googleapis/nodejs-spanner/compare/v6.10.1...v6.11.0) (2023-06-06)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **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))
|
|
13
|
+
* Testing for fgac in pg ([#1811](https://github.com/googleapis/nodejs-spanner/issues/1811)) ([c48945f](https://github.com/googleapis/nodejs-spanner/commit/c48945f536685d6e4ee4097cfac7d5f57853553e))
|
|
14
|
+
|
|
15
|
+
## [6.10.1](https://github.com/googleapis/nodejs-spanner/compare/v6.10.0...v6.10.1) (2023-05-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Set database admin and instance as having handwritten layers (republish docs) ([3e3e624](https://github.com/googleapis/nodejs-spanner/commit/3e3e624187013d62a5ff479386fb8961f279b5ca))
|
|
21
|
+
|
|
7
22
|
## [6.10.0](https://github.com/googleapis/nodejs-spanner/compare/v6.9.0...v6.10.0) (2023-05-17)
|
|
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]
|
|
703
|
-
//
|
|
704
|
-
//
|
|
705
|
-
//
|
|
706
|
-
//
|
|
707
|
-
//
|
|
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].
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -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
|
package/build/protos/protos.js
CHANGED
|
@@ -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
|
|
package/build/protos/protos.json
CHANGED
|
@@ -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
|
},
|
|
@@ -129,8 +129,6 @@ export declare class DatabaseAdminClient {
|
|
|
129
129
|
* Please see the
|
|
130
130
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
131
131
|
* for more details and examples.
|
|
132
|
-
* @example <caption>include:samples/generated/v1/database_admin.get_database.js</caption>
|
|
133
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabase_async
|
|
134
132
|
*/
|
|
135
133
|
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
136
134
|
protos.google.spanner.admin.database.v1.IDatabase,
|
|
@@ -157,8 +155,6 @@ export declare class DatabaseAdminClient {
|
|
|
157
155
|
* Please see the
|
|
158
156
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
159
157
|
* for more details and examples.
|
|
160
|
-
* @example <caption>include:samples/generated/v1/database_admin.drop_database.js</caption>
|
|
161
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_DropDatabase_async
|
|
162
158
|
*/
|
|
163
159
|
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
164
160
|
protos.google.protobuf.IEmpty,
|
|
@@ -185,8 +181,6 @@ export declare class DatabaseAdminClient {
|
|
|
185
181
|
* Please see the
|
|
186
182
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
187
183
|
* for more details and examples.
|
|
188
|
-
* @example <caption>include:samples/generated/v1/database_admin.get_database_ddl.js</caption>
|
|
189
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_async
|
|
190
184
|
*/
|
|
191
185
|
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
192
186
|
protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
|
|
@@ -227,8 +221,6 @@ export declare class DatabaseAdminClient {
|
|
|
227
221
|
* Please see the
|
|
228
222
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
229
223
|
* for more details and examples.
|
|
230
|
-
* @example <caption>include:samples/generated/v1/database_admin.set_iam_policy.js</caption>
|
|
231
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_SetIamPolicy_async
|
|
232
224
|
*/
|
|
233
225
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
234
226
|
protos.google.iam.v1.IPolicy,
|
|
@@ -262,8 +254,6 @@ export declare class DatabaseAdminClient {
|
|
|
262
254
|
* Please see the
|
|
263
255
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
264
256
|
* for more details and examples.
|
|
265
|
-
* @example <caption>include:samples/generated/v1/database_admin.get_iam_policy.js</caption>
|
|
266
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_GetIamPolicy_async
|
|
267
257
|
*/
|
|
268
258
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
269
259
|
protos.google.iam.v1.IPolicy,
|
|
@@ -301,8 +291,6 @@ export declare class DatabaseAdminClient {
|
|
|
301
291
|
* Please see the
|
|
302
292
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
303
293
|
* for more details and examples.
|
|
304
|
-
* @example <caption>include:samples/generated/v1/database_admin.test_iam_permissions.js</caption>
|
|
305
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_TestIamPermissions_async
|
|
306
294
|
*/
|
|
307
295
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
308
296
|
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
@@ -327,8 +315,6 @@ export declare class DatabaseAdminClient {
|
|
|
327
315
|
* Please see the
|
|
328
316
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
329
317
|
* for more details and examples.
|
|
330
|
-
* @example <caption>include:samples/generated/v1/database_admin.get_backup.js</caption>
|
|
331
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_GetBackup_async
|
|
332
318
|
*/
|
|
333
319
|
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
334
320
|
protos.google.spanner.admin.database.v1.IBackup,
|
|
@@ -360,8 +346,6 @@ export declare class DatabaseAdminClient {
|
|
|
360
346
|
* Please see the
|
|
361
347
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
362
348
|
* for more details and examples.
|
|
363
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_backup.js</caption>
|
|
364
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateBackup_async
|
|
365
349
|
*/
|
|
366
350
|
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
367
351
|
protos.google.spanner.admin.database.v1.IBackup,
|
|
@@ -386,8 +370,6 @@ export declare class DatabaseAdminClient {
|
|
|
386
370
|
* Please see the
|
|
387
371
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
388
372
|
* for more details and examples.
|
|
389
|
-
* @example <caption>include:samples/generated/v1/database_admin.delete_backup.js</caption>
|
|
390
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_DeleteBackup_async
|
|
391
373
|
*/
|
|
392
374
|
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
393
375
|
protos.google.protobuf.IEmpty,
|
|
@@ -437,8 +419,6 @@ export declare class DatabaseAdminClient {
|
|
|
437
419
|
* Please see the
|
|
438
420
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
439
421
|
* for more details and examples.
|
|
440
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
441
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
442
422
|
*/
|
|
443
423
|
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
444
424
|
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
|
|
@@ -456,8 +436,6 @@ export declare class DatabaseAdminClient {
|
|
|
456
436
|
* Please see the
|
|
457
437
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
458
438
|
* for more details and examples.
|
|
459
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
460
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
461
439
|
*/
|
|
462
440
|
checkCreateDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.CreateDatabaseMetadata>>;
|
|
463
441
|
/**
|
|
@@ -516,8 +494,6 @@ export declare class DatabaseAdminClient {
|
|
|
516
494
|
* Please see the
|
|
517
495
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
518
496
|
* for more details and examples.
|
|
519
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database.js</caption>
|
|
520
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabase_async
|
|
521
497
|
*/
|
|
522
498
|
updateDatabase(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseRequest, options?: CallOptions): Promise<[
|
|
523
499
|
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IUpdateDatabaseMetadata>,
|
|
@@ -535,8 +511,6 @@ export declare class DatabaseAdminClient {
|
|
|
535
511
|
* Please see the
|
|
536
512
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
537
513
|
* for more details and examples.
|
|
538
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database.js</caption>
|
|
539
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabase_async
|
|
540
514
|
*/
|
|
541
515
|
checkUpdateDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.UpdateDatabaseMetadata>>;
|
|
542
516
|
/**
|
|
@@ -583,8 +557,6 @@ export declare class DatabaseAdminClient {
|
|
|
583
557
|
* Please see the
|
|
584
558
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
585
559
|
* for more details and examples.
|
|
586
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
587
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
588
560
|
*/
|
|
589
561
|
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
590
562
|
LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
|
|
@@ -602,8 +574,6 @@ export declare class DatabaseAdminClient {
|
|
|
602
574
|
* Please see the
|
|
603
575
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
604
576
|
* for more details and examples.
|
|
605
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
606
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
607
577
|
*/
|
|
608
578
|
checkUpdateDatabaseDdlProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>>;
|
|
609
579
|
/**
|
|
@@ -650,8 +620,6 @@ export declare class DatabaseAdminClient {
|
|
|
650
620
|
* Please see the
|
|
651
621
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
652
622
|
* for more details and examples.
|
|
653
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
654
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
655
623
|
*/
|
|
656
624
|
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
657
625
|
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
|
|
@@ -669,8 +637,6 @@ export declare class DatabaseAdminClient {
|
|
|
669
637
|
* Please see the
|
|
670
638
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
671
639
|
* for more details and examples.
|
|
672
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
673
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
674
640
|
*/
|
|
675
641
|
checkCreateBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CreateBackupMetadata>>;
|
|
676
642
|
/**
|
|
@@ -724,8 +690,6 @@ export declare class DatabaseAdminClient {
|
|
|
724
690
|
* Please see the
|
|
725
691
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
726
692
|
* for more details and examples.
|
|
727
|
-
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
728
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
729
693
|
*/
|
|
730
694
|
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
731
695
|
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
|
|
@@ -743,8 +707,6 @@ export declare class DatabaseAdminClient {
|
|
|
743
707
|
* Please see the
|
|
744
708
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
745
709
|
* for more details and examples.
|
|
746
|
-
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
747
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
748
710
|
*/
|
|
749
711
|
checkCopyBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CopyBackupMetadata>>;
|
|
750
712
|
/**
|
|
@@ -798,8 +760,6 @@ export declare class DatabaseAdminClient {
|
|
|
798
760
|
* Please see the
|
|
799
761
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
800
762
|
* for more details and examples.
|
|
801
|
-
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
802
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
803
763
|
*/
|
|
804
764
|
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
805
765
|
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
|
|
@@ -817,8 +777,6 @@ export declare class DatabaseAdminClient {
|
|
|
817
777
|
* Please see the
|
|
818
778
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
819
779
|
* for more details and examples.
|
|
820
|
-
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
821
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
822
780
|
*/
|
|
823
781
|
checkRestoreDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata>>;
|
|
824
782
|
/**
|
|
@@ -909,8 +867,6 @@ export declare class DatabaseAdminClient {
|
|
|
909
867
|
* Please see the
|
|
910
868
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
911
869
|
* for more details and examples.
|
|
912
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_databases.js</caption>
|
|
913
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabases_async
|
|
914
870
|
*/
|
|
915
871
|
listDatabasesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabase>;
|
|
916
872
|
/**
|
|
@@ -1114,8 +1070,6 @@ export declare class DatabaseAdminClient {
|
|
|
1114
1070
|
* Please see the
|
|
1115
1071
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1116
1072
|
* for more details and examples.
|
|
1117
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backups.js</caption>
|
|
1118
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackups_async
|
|
1119
1073
|
*/
|
|
1120
1074
|
listBackupsAsync(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IBackup>;
|
|
1121
1075
|
/**
|
|
@@ -1345,8 +1299,6 @@ export declare class DatabaseAdminClient {
|
|
|
1345
1299
|
* Please see the
|
|
1346
1300
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1347
1301
|
* for more details and examples.
|
|
1348
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_operations.js</caption>
|
|
1349
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseOperations_async
|
|
1350
1302
|
*/
|
|
1351
1303
|
listDatabaseOperationsAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1352
1304
|
/**
|
|
@@ -1650,8 +1602,6 @@ export declare class DatabaseAdminClient {
|
|
|
1650
1602
|
* Please see the
|
|
1651
1603
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1652
1604
|
* for more details and examples.
|
|
1653
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backup_operations.js</caption>
|
|
1654
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackupOperations_async
|
|
1655
1605
|
*/
|
|
1656
1606
|
listBackupOperationsAsync(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1657
1607
|
/**
|
|
@@ -1745,8 +1695,6 @@ export declare class DatabaseAdminClient {
|
|
|
1745
1695
|
* Please see the
|
|
1746
1696
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1747
1697
|
* for more details and examples.
|
|
1748
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_roles.js</caption>
|
|
1749
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_async
|
|
1750
1698
|
*/
|
|
1751
1699
|
listDatabaseRolesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabaseRole>;
|
|
1752
1700
|
/**
|
|
@@ -574,8 +574,6 @@ class DatabaseAdminClient {
|
|
|
574
574
|
* Please see the
|
|
575
575
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
576
576
|
* for more details and examples.
|
|
577
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
578
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
579
577
|
*/
|
|
580
578
|
async checkCreateDatabaseProgress(name) {
|
|
581
579
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -613,8 +611,6 @@ class DatabaseAdminClient {
|
|
|
613
611
|
* Please see the
|
|
614
612
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
615
613
|
* for more details and examples.
|
|
616
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database.js</caption>
|
|
617
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabase_async
|
|
618
614
|
*/
|
|
619
615
|
async checkUpdateDatabaseProgress(name) {
|
|
620
616
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -652,8 +648,6 @@ class DatabaseAdminClient {
|
|
|
652
648
|
* Please see the
|
|
653
649
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
654
650
|
* for more details and examples.
|
|
655
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
656
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
657
651
|
*/
|
|
658
652
|
async checkUpdateDatabaseDdlProgress(name) {
|
|
659
653
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -691,8 +685,6 @@ class DatabaseAdminClient {
|
|
|
691
685
|
* Please see the
|
|
692
686
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
693
687
|
* for more details and examples.
|
|
694
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
695
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
696
688
|
*/
|
|
697
689
|
async checkCreateBackupProgress(name) {
|
|
698
690
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -730,8 +722,6 @@ class DatabaseAdminClient {
|
|
|
730
722
|
* Please see the
|
|
731
723
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
732
724
|
* for more details and examples.
|
|
733
|
-
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
734
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
735
725
|
*/
|
|
736
726
|
async checkCopyBackupProgress(name) {
|
|
737
727
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -769,8 +759,6 @@ class DatabaseAdminClient {
|
|
|
769
759
|
* Please see the
|
|
770
760
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
771
761
|
* for more details and examples.
|
|
772
|
-
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
773
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
774
762
|
*/
|
|
775
763
|
async checkRestoreDatabaseProgress(name) {
|
|
776
764
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -866,8 +854,6 @@ class DatabaseAdminClient {
|
|
|
866
854
|
* Please see the
|
|
867
855
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
868
856
|
* for more details and examples.
|
|
869
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_databases.js</caption>
|
|
870
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabases_async
|
|
871
857
|
*/
|
|
872
858
|
listDatabasesAsync(request, options) {
|
|
873
859
|
var _a;
|
|
@@ -1046,8 +1032,6 @@ class DatabaseAdminClient {
|
|
|
1046
1032
|
* Please see the
|
|
1047
1033
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1048
1034
|
* for more details and examples.
|
|
1049
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backups.js</caption>
|
|
1050
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackups_async
|
|
1051
1035
|
*/
|
|
1052
1036
|
listBackupsAsync(request, options) {
|
|
1053
1037
|
var _a;
|
|
@@ -1240,8 +1224,6 @@ class DatabaseAdminClient {
|
|
|
1240
1224
|
* Please see the
|
|
1241
1225
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1242
1226
|
* for more details and examples.
|
|
1243
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_operations.js</caption>
|
|
1244
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseOperations_async
|
|
1245
1227
|
*/
|
|
1246
1228
|
listDatabaseOperationsAsync(request, options) {
|
|
1247
1229
|
var _a;
|
|
@@ -1482,8 +1464,6 @@ class DatabaseAdminClient {
|
|
|
1482
1464
|
* Please see the
|
|
1483
1465
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1484
1466
|
* for more details and examples.
|
|
1485
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backup_operations.js</caption>
|
|
1486
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackupOperations_async
|
|
1487
1467
|
*/
|
|
1488
1468
|
listBackupOperationsAsync(request, options) {
|
|
1489
1469
|
var _a;
|
|
@@ -1590,8 +1570,6 @@ class DatabaseAdminClient {
|
|
|
1590
1570
|
* Please see the
|
|
1591
1571
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1592
1572
|
* for more details and examples.
|
|
1593
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_roles.js</caption>
|
|
1594
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_async
|
|
1595
1573
|
*/
|
|
1596
1574
|
listDatabaseRolesAsync(request, options) {
|
|
1597
1575
|
var _a;
|
|
@@ -143,8 +143,6 @@ export declare class InstanceAdminClient {
|
|
|
143
143
|
* Please see the
|
|
144
144
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
145
145
|
* for more details and examples.
|
|
146
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_instance_config.js</caption>
|
|
147
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstanceConfig_async
|
|
148
146
|
*/
|
|
149
147
|
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
150
148
|
protos.google.spanner.admin.instance.v1.IInstanceConfig,
|
|
@@ -187,8 +185,6 @@ export declare class InstanceAdminClient {
|
|
|
187
185
|
* Please see the
|
|
188
186
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
189
187
|
* for more details and examples.
|
|
190
|
-
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance_config.js</caption>
|
|
191
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstanceConfig_async
|
|
192
188
|
*/
|
|
193
189
|
deleteInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
194
190
|
protos.google.protobuf.IEmpty,
|
|
@@ -217,8 +213,6 @@ export declare class InstanceAdminClient {
|
|
|
217
213
|
* Please see the
|
|
218
214
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
219
215
|
* for more details and examples.
|
|
220
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_instance.js</caption>
|
|
221
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstance_async
|
|
222
216
|
*/
|
|
223
217
|
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
224
218
|
protos.google.spanner.admin.instance.v1.IInstance,
|
|
@@ -252,8 +246,6 @@ export declare class InstanceAdminClient {
|
|
|
252
246
|
* Please see the
|
|
253
247
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
254
248
|
* for more details and examples.
|
|
255
|
-
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance.js</caption>
|
|
256
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstance_async
|
|
257
249
|
*/
|
|
258
250
|
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
259
251
|
protos.google.protobuf.IEmpty,
|
|
@@ -292,8 +284,6 @@ export declare class InstanceAdminClient {
|
|
|
292
284
|
* Please see the
|
|
293
285
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
294
286
|
* for more details and examples.
|
|
295
|
-
* @example <caption>include:samples/generated/v1/instance_admin.set_iam_policy.js</caption>
|
|
296
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_SetIamPolicy_async
|
|
297
287
|
*/
|
|
298
288
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
299
289
|
protos.google.iam.v1.IPolicy,
|
|
@@ -324,8 +314,6 @@ export declare class InstanceAdminClient {
|
|
|
324
314
|
* Please see the
|
|
325
315
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
326
316
|
* for more details and examples.
|
|
327
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_iam_policy.js</caption>
|
|
328
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetIamPolicy_async
|
|
329
317
|
*/
|
|
330
318
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
331
319
|
protos.google.iam.v1.IPolicy,
|
|
@@ -359,8 +347,6 @@ export declare class InstanceAdminClient {
|
|
|
359
347
|
* Please see the
|
|
360
348
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
361
349
|
* for more details and examples.
|
|
362
|
-
* @example <caption>include:samples/generated/v1/instance_admin.test_iam_permissions.js</caption>
|
|
363
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_TestIamPermissions_async
|
|
364
350
|
*/
|
|
365
351
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
366
352
|
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
@@ -440,8 +426,6 @@ export declare class InstanceAdminClient {
|
|
|
440
426
|
* Please see the
|
|
441
427
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
442
428
|
* for more details and examples.
|
|
443
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
444
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
445
429
|
*/
|
|
446
430
|
createInstanceConfig(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
447
431
|
LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.ICreateInstanceConfigMetadata>,
|
|
@@ -459,8 +443,6 @@ export declare class InstanceAdminClient {
|
|
|
459
443
|
* Please see the
|
|
460
444
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
461
445
|
* for more details and examples.
|
|
462
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
463
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
464
446
|
*/
|
|
465
447
|
checkCreateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>>;
|
|
466
448
|
/**
|
|
@@ -537,8 +519,6 @@ export declare class InstanceAdminClient {
|
|
|
537
519
|
* Please see the
|
|
538
520
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
539
521
|
* for more details and examples.
|
|
540
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
541
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
542
522
|
*/
|
|
543
523
|
updateInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
544
524
|
LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigMetadata>,
|
|
@@ -556,8 +536,6 @@ export declare class InstanceAdminClient {
|
|
|
556
536
|
* Please see the
|
|
557
537
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
558
538
|
* for more details and examples.
|
|
559
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
560
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
561
539
|
*/
|
|
562
540
|
checkUpdateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>>;
|
|
563
541
|
/**
|
|
@@ -617,8 +595,6 @@ export declare class InstanceAdminClient {
|
|
|
617
595
|
* Please see the
|
|
618
596
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
619
597
|
* for more details and examples.
|
|
620
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
621
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
622
598
|
*/
|
|
623
599
|
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
624
600
|
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
|
|
@@ -636,8 +612,6 @@ export declare class InstanceAdminClient {
|
|
|
636
612
|
* Please see the
|
|
637
613
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
638
614
|
* for more details and examples.
|
|
639
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
640
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
641
615
|
*/
|
|
642
616
|
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.CreateInstanceMetadata>>;
|
|
643
617
|
/**
|
|
@@ -704,8 +678,6 @@ export declare class InstanceAdminClient {
|
|
|
704
678
|
* Please see the
|
|
705
679
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
706
680
|
* for more details and examples.
|
|
707
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
708
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
709
681
|
*/
|
|
710
682
|
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
711
683
|
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
|
|
@@ -723,8 +695,6 @@ export declare class InstanceAdminClient {
|
|
|
723
695
|
* Please see the
|
|
724
696
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
725
697
|
* for more details and examples.
|
|
726
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
727
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
728
698
|
*/
|
|
729
699
|
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
|
|
730
700
|
/**
|
|
@@ -821,8 +791,6 @@ export declare class InstanceAdminClient {
|
|
|
821
791
|
* Please see the
|
|
822
792
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
823
793
|
* for more details and examples.
|
|
824
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_configs.js</caption>
|
|
825
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_async
|
|
826
794
|
*/
|
|
827
795
|
listInstanceConfigsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstanceConfig>;
|
|
828
796
|
/**
|
|
@@ -1061,8 +1029,6 @@ export declare class InstanceAdminClient {
|
|
|
1061
1029
|
* Please see the
|
|
1062
1030
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1063
1031
|
* for more details and examples.
|
|
1064
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_config_operations.js</caption>
|
|
1065
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_async
|
|
1066
1032
|
*/
|
|
1067
1033
|
listInstanceConfigOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1068
1034
|
/**
|
|
@@ -1216,8 +1182,6 @@ export declare class InstanceAdminClient {
|
|
|
1216
1182
|
* Please see the
|
|
1217
1183
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1218
1184
|
* for more details and examples.
|
|
1219
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instances.js</caption>
|
|
1220
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstances_async
|
|
1221
1185
|
*/
|
|
1222
1186
|
listInstancesAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstance>;
|
|
1223
1187
|
/**
|
|
@@ -516,8 +516,6 @@ class InstanceAdminClient {
|
|
|
516
516
|
* Please see the
|
|
517
517
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
518
518
|
* for more details and examples.
|
|
519
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
520
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
521
519
|
*/
|
|
522
520
|
async checkCreateInstanceConfigProgress(name) {
|
|
523
521
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -555,8 +553,6 @@ class InstanceAdminClient {
|
|
|
555
553
|
* Please see the
|
|
556
554
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
557
555
|
* for more details and examples.
|
|
558
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
559
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
560
556
|
*/
|
|
561
557
|
async checkUpdateInstanceConfigProgress(name) {
|
|
562
558
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -594,8 +590,6 @@ class InstanceAdminClient {
|
|
|
594
590
|
* Please see the
|
|
595
591
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
596
592
|
* for more details and examples.
|
|
597
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
598
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
599
593
|
*/
|
|
600
594
|
async checkCreateInstanceProgress(name) {
|
|
601
595
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -633,8 +627,6 @@ class InstanceAdminClient {
|
|
|
633
627
|
* Please see the
|
|
634
628
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
635
629
|
* for more details and examples.
|
|
636
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
637
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
638
630
|
*/
|
|
639
631
|
async checkUpdateInstanceProgress(name) {
|
|
640
632
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -734,8 +726,6 @@ class InstanceAdminClient {
|
|
|
734
726
|
* Please see the
|
|
735
727
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
736
728
|
* for more details and examples.
|
|
737
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_configs.js</caption>
|
|
738
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_async
|
|
739
729
|
*/
|
|
740
730
|
listInstanceConfigsAsync(request, options) {
|
|
741
731
|
var _a;
|
|
@@ -932,8 +922,6 @@ class InstanceAdminClient {
|
|
|
932
922
|
* Please see the
|
|
933
923
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
934
924
|
* for more details and examples.
|
|
935
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_config_operations.js</caption>
|
|
936
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_async
|
|
937
925
|
*/
|
|
938
926
|
listInstanceConfigOperationsAsync(request, options) {
|
|
939
927
|
var _a;
|
|
@@ -1080,8 +1068,6 @@ class InstanceAdminClient {
|
|
|
1080
1068
|
* Please see the
|
|
1081
1069
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1082
1070
|
* for more details and examples.
|
|
1083
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instances.js</caption>
|
|
1084
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstances_async
|
|
1085
1071
|
*/
|
|
1086
1072
|
listInstancesAsync(request, options) {
|
|
1087
1073
|
var _a;
|
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.
|
|
4
|
+
"version": "6.11.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/concat-stream": "^2.0.0",
|
|
83
83
|
"@types/extend": "^3.0.0",
|
|
84
|
-
"@types/is": "0.0.
|
|
84
|
+
"@types/is": "0.0.22",
|
|
85
85
|
"@types/lodash.snakecase": "^4.1.4",
|
|
86
86
|
"@types/merge-stream": "^1.1.2",
|
|
87
87
|
"@types/mocha": "^9.0.0",
|