@google-cloud/spanner 5.18.0 → 6.1.1
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 +46 -0
- package/README.md +3 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +22 -10
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +1 -2
- package/build/protos/google/spanner/v1/spanner.proto +4 -1
- package/build/protos/google/spanner/v1/transaction.proto +73 -21
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +239 -0
- package/build/protos/protos.js +668 -1
- package/build/protos/protos.json +70 -0
- package/build/src/backup.d.ts +5 -1
- package/build/src/backup.js +2 -2
- package/build/src/batch-transaction.js +1 -1
- package/build/src/codec.d.ts +1 -1
- package/build/src/codec.js +5 -11
- package/build/src/common-grpc/service-object.js +1 -1
- package/build/src/common-grpc/service.js +2 -2
- package/build/src/database.d.ts +26 -6
- package/build/src/database.js +8 -8
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +7 -7
- package/build/src/instance.d.ts +2 -1
- package/build/src/instance.js +2 -2
- package/build/src/session-pool.d.ts +1 -0
- package/build/src/session-pool.js +51 -47
- package/build/src/session.js +1 -1
- package/build/src/table.d.ts +5 -1
- package/build/src/table.js +1 -1
- package/build/src/transaction-runner.js +3 -3
- package/build/src/transaction.d.ts +10 -2
- package/build/src/transaction.js +12 -12
- package/build/src/v1/database_admin_client.d.ts +102 -25
- package/build/src/v1/database_admin_client.js +42 -9
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +63 -18
- package/build/src/v1/instance_admin_client.js +42 -9
- package/build/src/v1/spanner_client.d.ts +70 -19
- package/build/src/v1/spanner_client.js +7 -8
- package/package.json +13 -13
package/build/protos/protos.d.ts
CHANGED
|
@@ -1967,6 +1967,9 @@ export namespace google {
|
|
|
1967
1967
|
/** FieldOptions lazy */
|
|
1968
1968
|
lazy?: (boolean|null);
|
|
1969
1969
|
|
|
1970
|
+
/** FieldOptions unverifiedLazy */
|
|
1971
|
+
unverifiedLazy?: (boolean|null);
|
|
1972
|
+
|
|
1970
1973
|
/** FieldOptions deprecated */
|
|
1971
1974
|
deprecated?: (boolean|null);
|
|
1972
1975
|
|
|
@@ -2004,6 +2007,9 @@ export namespace google {
|
|
|
2004
2007
|
/** FieldOptions lazy. */
|
|
2005
2008
|
public lazy: boolean;
|
|
2006
2009
|
|
|
2010
|
+
/** FieldOptions unverifiedLazy. */
|
|
2011
|
+
public unverifiedLazy: boolean;
|
|
2012
|
+
|
|
2007
2013
|
/** FieldOptions deprecated. */
|
|
2008
2014
|
public deprecated: boolean;
|
|
2009
2015
|
|
|
@@ -10079,6 +10085,12 @@ export namespace google {
|
|
|
10079
10085
|
|
|
10080
10086
|
/** Instance endpointUris */
|
|
10081
10087
|
endpointUris?: (string[]|null);
|
|
10088
|
+
|
|
10089
|
+
/** Instance createTime */
|
|
10090
|
+
createTime?: (google.protobuf.ITimestamp|null);
|
|
10091
|
+
|
|
10092
|
+
/** Instance updateTime */
|
|
10093
|
+
updateTime?: (google.protobuf.ITimestamp|null);
|
|
10082
10094
|
}
|
|
10083
10095
|
|
|
10084
10096
|
/** Represents an Instance. */
|
|
@@ -10114,6 +10126,12 @@ export namespace google {
|
|
|
10114
10126
|
/** Instance endpointUris. */
|
|
10115
10127
|
public endpointUris: string[];
|
|
10116
10128
|
|
|
10129
|
+
/** Instance createTime. */
|
|
10130
|
+
public createTime?: (google.protobuf.ITimestamp|null);
|
|
10131
|
+
|
|
10132
|
+
/** Instance updateTime. */
|
|
10133
|
+
public updateTime?: (google.protobuf.ITimestamp|null);
|
|
10134
|
+
|
|
10117
10135
|
/**
|
|
10118
10136
|
* Creates a new Instance instance using the specified properties.
|
|
10119
10137
|
* @param [properties] Properties to set
|
|
@@ -14423,6 +14441,9 @@ export namespace google {
|
|
|
14423
14441
|
|
|
14424
14442
|
/** Session approximateLastUseTime */
|
|
14425
14443
|
approximateLastUseTime?: (google.protobuf.ITimestamp|null);
|
|
14444
|
+
|
|
14445
|
+
/** Session creatorRole */
|
|
14446
|
+
creatorRole?: (string|null);
|
|
14426
14447
|
}
|
|
14427
14448
|
|
|
14428
14449
|
/** Represents a Session. */
|
|
@@ -14446,6 +14467,9 @@ export namespace google {
|
|
|
14446
14467
|
/** Session approximateLastUseTime. */
|
|
14447
14468
|
public approximateLastUseTime?: (google.protobuf.ITimestamp|null);
|
|
14448
14469
|
|
|
14470
|
+
/** Session creatorRole. */
|
|
14471
|
+
public creatorRole: string;
|
|
14472
|
+
|
|
14449
14473
|
/**
|
|
14450
14474
|
* Creates a new Session instance using the specified properties.
|
|
14451
14475
|
* @param [properties] Properties to set
|
|
@@ -18190,6 +18214,9 @@ export namespace google {
|
|
|
18190
18214
|
|
|
18191
18215
|
/** SetIamPolicyRequest policy */
|
|
18192
18216
|
policy?: (google.iam.v1.IPolicy|null);
|
|
18217
|
+
|
|
18218
|
+
/** SetIamPolicyRequest updateMask */
|
|
18219
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
18193
18220
|
}
|
|
18194
18221
|
|
|
18195
18222
|
/** Represents a SetIamPolicyRequest. */
|
|
@@ -18207,6 +18234,9 @@ export namespace google {
|
|
|
18207
18234
|
/** SetIamPolicyRequest policy. */
|
|
18208
18235
|
public policy?: (google.iam.v1.IPolicy|null);
|
|
18209
18236
|
|
|
18237
|
+
/** SetIamPolicyRequest updateMask. */
|
|
18238
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
18239
|
+
|
|
18210
18240
|
/**
|
|
18211
18241
|
* Creates a new SetIamPolicyRequest instance using the specified properties.
|
|
18212
18242
|
* @param [properties] Properties to set
|
|
@@ -18659,6 +18689,9 @@ export namespace google {
|
|
|
18659
18689
|
/** Policy bindings */
|
|
18660
18690
|
bindings?: (google.iam.v1.IBinding[]|null);
|
|
18661
18691
|
|
|
18692
|
+
/** Policy auditConfigs */
|
|
18693
|
+
auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
|
|
18694
|
+
|
|
18662
18695
|
/** Policy etag */
|
|
18663
18696
|
etag?: (Uint8Array|string|null);
|
|
18664
18697
|
}
|
|
@@ -18678,6 +18711,9 @@ export namespace google {
|
|
|
18678
18711
|
/** Policy bindings. */
|
|
18679
18712
|
public bindings: google.iam.v1.IBinding[];
|
|
18680
18713
|
|
|
18714
|
+
/** Policy auditConfigs. */
|
|
18715
|
+
public auditConfigs: google.iam.v1.IAuditConfig[];
|
|
18716
|
+
|
|
18681
18717
|
/** Policy etag. */
|
|
18682
18718
|
public etag: (Uint8Array|string);
|
|
18683
18719
|
|
|
@@ -18854,6 +18890,209 @@ export namespace google {
|
|
|
18854
18890
|
public toJSON(): { [k: string]: any };
|
|
18855
18891
|
}
|
|
18856
18892
|
|
|
18893
|
+
/** Properties of an AuditConfig. */
|
|
18894
|
+
interface IAuditConfig {
|
|
18895
|
+
|
|
18896
|
+
/** AuditConfig service */
|
|
18897
|
+
service?: (string|null);
|
|
18898
|
+
|
|
18899
|
+
/** AuditConfig auditLogConfigs */
|
|
18900
|
+
auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null);
|
|
18901
|
+
}
|
|
18902
|
+
|
|
18903
|
+
/** Represents an AuditConfig. */
|
|
18904
|
+
class AuditConfig implements IAuditConfig {
|
|
18905
|
+
|
|
18906
|
+
/**
|
|
18907
|
+
* Constructs a new AuditConfig.
|
|
18908
|
+
* @param [properties] Properties to set
|
|
18909
|
+
*/
|
|
18910
|
+
constructor(properties?: google.iam.v1.IAuditConfig);
|
|
18911
|
+
|
|
18912
|
+
/** AuditConfig service. */
|
|
18913
|
+
public service: string;
|
|
18914
|
+
|
|
18915
|
+
/** AuditConfig auditLogConfigs. */
|
|
18916
|
+
public auditLogConfigs: google.iam.v1.IAuditLogConfig[];
|
|
18917
|
+
|
|
18918
|
+
/**
|
|
18919
|
+
* Creates a new AuditConfig instance using the specified properties.
|
|
18920
|
+
* @param [properties] Properties to set
|
|
18921
|
+
* @returns AuditConfig instance
|
|
18922
|
+
*/
|
|
18923
|
+
public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig;
|
|
18924
|
+
|
|
18925
|
+
/**
|
|
18926
|
+
* Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
|
|
18927
|
+
* @param message AuditConfig message or plain object to encode
|
|
18928
|
+
* @param [writer] Writer to encode to
|
|
18929
|
+
* @returns Writer
|
|
18930
|
+
*/
|
|
18931
|
+
public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18932
|
+
|
|
18933
|
+
/**
|
|
18934
|
+
* Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
|
|
18935
|
+
* @param message AuditConfig message or plain object to encode
|
|
18936
|
+
* @param [writer] Writer to encode to
|
|
18937
|
+
* @returns Writer
|
|
18938
|
+
*/
|
|
18939
|
+
public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18940
|
+
|
|
18941
|
+
/**
|
|
18942
|
+
* Decodes an AuditConfig message from the specified reader or buffer.
|
|
18943
|
+
* @param reader Reader or buffer to decode from
|
|
18944
|
+
* @param [length] Message length if known beforehand
|
|
18945
|
+
* @returns AuditConfig
|
|
18946
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18947
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18948
|
+
*/
|
|
18949
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig;
|
|
18950
|
+
|
|
18951
|
+
/**
|
|
18952
|
+
* Decodes an AuditConfig message from the specified reader or buffer, length delimited.
|
|
18953
|
+
* @param reader Reader or buffer to decode from
|
|
18954
|
+
* @returns AuditConfig
|
|
18955
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18956
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18957
|
+
*/
|
|
18958
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig;
|
|
18959
|
+
|
|
18960
|
+
/**
|
|
18961
|
+
* Verifies an AuditConfig message.
|
|
18962
|
+
* @param message Plain object to verify
|
|
18963
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18964
|
+
*/
|
|
18965
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18966
|
+
|
|
18967
|
+
/**
|
|
18968
|
+
* Creates an AuditConfig message from a plain object. Also converts values to their respective internal types.
|
|
18969
|
+
* @param object Plain object
|
|
18970
|
+
* @returns AuditConfig
|
|
18971
|
+
*/
|
|
18972
|
+
public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig;
|
|
18973
|
+
|
|
18974
|
+
/**
|
|
18975
|
+
* Creates a plain object from an AuditConfig message. Also converts values to other types if specified.
|
|
18976
|
+
* @param message AuditConfig
|
|
18977
|
+
* @param [options] Conversion options
|
|
18978
|
+
* @returns Plain object
|
|
18979
|
+
*/
|
|
18980
|
+
public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18981
|
+
|
|
18982
|
+
/**
|
|
18983
|
+
* Converts this AuditConfig to JSON.
|
|
18984
|
+
* @returns JSON object
|
|
18985
|
+
*/
|
|
18986
|
+
public toJSON(): { [k: string]: any };
|
|
18987
|
+
}
|
|
18988
|
+
|
|
18989
|
+
/** Properties of an AuditLogConfig. */
|
|
18990
|
+
interface IAuditLogConfig {
|
|
18991
|
+
|
|
18992
|
+
/** AuditLogConfig logType */
|
|
18993
|
+
logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null);
|
|
18994
|
+
|
|
18995
|
+
/** AuditLogConfig exemptedMembers */
|
|
18996
|
+
exemptedMembers?: (string[]|null);
|
|
18997
|
+
}
|
|
18998
|
+
|
|
18999
|
+
/** Represents an AuditLogConfig. */
|
|
19000
|
+
class AuditLogConfig implements IAuditLogConfig {
|
|
19001
|
+
|
|
19002
|
+
/**
|
|
19003
|
+
* Constructs a new AuditLogConfig.
|
|
19004
|
+
* @param [properties] Properties to set
|
|
19005
|
+
*/
|
|
19006
|
+
constructor(properties?: google.iam.v1.IAuditLogConfig);
|
|
19007
|
+
|
|
19008
|
+
/** AuditLogConfig logType. */
|
|
19009
|
+
public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType);
|
|
19010
|
+
|
|
19011
|
+
/** AuditLogConfig exemptedMembers. */
|
|
19012
|
+
public exemptedMembers: string[];
|
|
19013
|
+
|
|
19014
|
+
/**
|
|
19015
|
+
* Creates a new AuditLogConfig instance using the specified properties.
|
|
19016
|
+
* @param [properties] Properties to set
|
|
19017
|
+
* @returns AuditLogConfig instance
|
|
19018
|
+
*/
|
|
19019
|
+
public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig;
|
|
19020
|
+
|
|
19021
|
+
/**
|
|
19022
|
+
* Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
|
|
19023
|
+
* @param message AuditLogConfig message or plain object to encode
|
|
19024
|
+
* @param [writer] Writer to encode to
|
|
19025
|
+
* @returns Writer
|
|
19026
|
+
*/
|
|
19027
|
+
public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19028
|
+
|
|
19029
|
+
/**
|
|
19030
|
+
* Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
|
|
19031
|
+
* @param message AuditLogConfig message or plain object to encode
|
|
19032
|
+
* @param [writer] Writer to encode to
|
|
19033
|
+
* @returns Writer
|
|
19034
|
+
*/
|
|
19035
|
+
public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19036
|
+
|
|
19037
|
+
/**
|
|
19038
|
+
* Decodes an AuditLogConfig message from the specified reader or buffer.
|
|
19039
|
+
* @param reader Reader or buffer to decode from
|
|
19040
|
+
* @param [length] Message length if known beforehand
|
|
19041
|
+
* @returns AuditLogConfig
|
|
19042
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19043
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19044
|
+
*/
|
|
19045
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig;
|
|
19046
|
+
|
|
19047
|
+
/**
|
|
19048
|
+
* Decodes an AuditLogConfig message from the specified reader or buffer, length delimited.
|
|
19049
|
+
* @param reader Reader or buffer to decode from
|
|
19050
|
+
* @returns AuditLogConfig
|
|
19051
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19052
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19053
|
+
*/
|
|
19054
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig;
|
|
19055
|
+
|
|
19056
|
+
/**
|
|
19057
|
+
* Verifies an AuditLogConfig message.
|
|
19058
|
+
* @param message Plain object to verify
|
|
19059
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19060
|
+
*/
|
|
19061
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19062
|
+
|
|
19063
|
+
/**
|
|
19064
|
+
* Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types.
|
|
19065
|
+
* @param object Plain object
|
|
19066
|
+
* @returns AuditLogConfig
|
|
19067
|
+
*/
|
|
19068
|
+
public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig;
|
|
19069
|
+
|
|
19070
|
+
/**
|
|
19071
|
+
* Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified.
|
|
19072
|
+
* @param message AuditLogConfig
|
|
19073
|
+
* @param [options] Conversion options
|
|
19074
|
+
* @returns Plain object
|
|
19075
|
+
*/
|
|
19076
|
+
public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19077
|
+
|
|
19078
|
+
/**
|
|
19079
|
+
* Converts this AuditLogConfig to JSON.
|
|
19080
|
+
* @returns JSON object
|
|
19081
|
+
*/
|
|
19082
|
+
public toJSON(): { [k: string]: any };
|
|
19083
|
+
}
|
|
19084
|
+
|
|
19085
|
+
namespace AuditLogConfig {
|
|
19086
|
+
|
|
19087
|
+
/** LogType enum. */
|
|
19088
|
+
enum LogType {
|
|
19089
|
+
LOG_TYPE_UNSPECIFIED = 0,
|
|
19090
|
+
ADMIN_READ = 1,
|
|
19091
|
+
DATA_WRITE = 2,
|
|
19092
|
+
DATA_READ = 3
|
|
19093
|
+
}
|
|
19094
|
+
}
|
|
19095
|
+
|
|
18857
19096
|
/** Properties of a PolicyDelta. */
|
|
18858
19097
|
interface IPolicyDelta {
|
|
18859
19098
|
|