@google-cloud/spanner 5.18.0 → 6.0.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 +24 -0
- package/README.md +3 -0
- package/build/protos/protos.d.ts +221 -0
- package/build/protos/protos.js +592 -1
- package/build/protos/protos.json +52 -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/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 +46 -46
- 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 +97 -19
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +57 -11
- package/build/src/v1/spanner_client.d.ts +65 -13
- package/build/src/v1/spanner_client.js +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.0.0](https://github.com/googleapis/nodejs-spanner/compare/v5.18.0...v6.0.0) (2022-06-07)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* update library to use Node 12 (#1637)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Adding IT for date and commit timestamp ([#1621](https://github.com/googleapis/nodejs-spanner/issues/1621)) ([1367aa7](https://github.com/googleapis/nodejs-spanner/commit/1367aa7dc9818be5610dfc5ae67d09652e7009e5))
|
|
17
|
+
* AuditConfig for IAM v1 ([#1599](https://github.com/googleapis/nodejs-spanner/issues/1599)) ([c358d66](https://github.com/googleapis/nodejs-spanner/commit/c358d668ca2a25f99ab73a4b6c1ebbe09c34d4de))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **deps:** update dependency grpc-gcp to ^0.4.0 ([#1603](https://github.com/googleapis/nodejs-spanner/issues/1603)) ([f00b3c6](https://github.com/googleapis/nodejs-spanner/commit/f00b3c65e58c2f36e69a05fef0b3c9bc68a4ee55))
|
|
23
|
+
* fixes for dynamic routing and streaming descriptors ([#1639](https://github.com/googleapis/nodejs-spanner/issues/1639)) ([977a543](https://github.com/googleapis/nodejs-spanner/commit/977a543d693ca2f2e8bb303be6df592aa4def1dd))
|
|
24
|
+
* pin version for nodejs gax-node ([#1617](https://github.com/googleapis/nodejs-spanner/issues/1617)) ([fb0017f](https://github.com/googleapis/nodejs-spanner/commit/fb0017ffab3cfa41cd132df4511a47fb68439bf5))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Build System
|
|
28
|
+
|
|
29
|
+
* update library to use Node 12 ([#1637](https://github.com/googleapis/nodejs-spanner/issues/1637)) ([994acf3](https://github.com/googleapis/nodejs-spanner/commit/994acf3edd7c261085f58722fa2f86f95b3a56f3))
|
|
30
|
+
|
|
7
31
|
## [5.18.0](https://github.com/googleapis/nodejs-spanner/compare/v5.17.0...v5.18.0) (2022-04-03)
|
|
8
32
|
|
|
9
33
|
|
package/README.md
CHANGED
|
@@ -129,13 +129,16 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
|
|
|
129
129
|
| Numeric-add-column | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-add-column.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-add-column.js,samples/README.md) |
|
|
130
130
|
| Numeric-query-parameter | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-query-parameter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-query-parameter.js,samples/README.md) |
|
|
131
131
|
| Numeric-update-data | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-update-data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-update-data.js,samples/README.md) |
|
|
132
|
+
| Adds a column to an existing table in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-add-column.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-add-column.js,samples/README.md) |
|
|
132
133
|
| Showcase the rules for case-sensitivity and case folding for a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-case-sensitivity.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-case-sensitivity.js,samples/README.md) |
|
|
133
134
|
| Creates a PostgreSQL Database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-database-create.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-database-create.js,samples/README.md) |
|
|
134
135
|
| Use cast operator to cast from one data type to another in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-datatypes-casting.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-datatypes-casting.js,samples/README.md) |
|
|
135
136
|
| Execute a batch of DML statements on a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-dml-batch.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-dml-batch.js,samples/README.md) |
|
|
137
|
+
| Updates data in a table in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-dml-getting-started-update.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-dml-getting-started-update.js,samples/README.md) |
|
|
136
138
|
| Execute a Partitioned DML on a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-dml-partitioned.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-dml-partitioned.js,samples/README.md) |
|
|
137
139
|
| Execute a DML statement with parameters on a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-dml-with-parameter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-dml-with-parameter.js,samples/README.md) |
|
|
138
140
|
| Calls a server side function on a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-functions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-functions.js,samples/README.md) |
|
|
141
|
+
| Creates a new storing index in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-index-create-storing.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-index-create-storing.js,samples/README.md) |
|
|
139
142
|
| Created interleaved table hierarchy using PostgreSQL dialect. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-interleaving.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-interleaving.js,samples/README.md) |
|
|
140
143
|
| Showcase how to work with the PostgreSQL NUMERIC/DECIMAL data type on a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-numeric-data-type.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-numeric-data-type.js,samples/README.md) |
|
|
141
144
|
| Showcases how a Spanner PostgreSQL database orders null values in a query. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-ordering-nulls.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-ordering-nulls.js,samples/README.md) |
|
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
|
|
|
@@ -18190,6 +18196,9 @@ export namespace google {
|
|
|
18190
18196
|
|
|
18191
18197
|
/** SetIamPolicyRequest policy */
|
|
18192
18198
|
policy?: (google.iam.v1.IPolicy|null);
|
|
18199
|
+
|
|
18200
|
+
/** SetIamPolicyRequest updateMask */
|
|
18201
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
18193
18202
|
}
|
|
18194
18203
|
|
|
18195
18204
|
/** Represents a SetIamPolicyRequest. */
|
|
@@ -18207,6 +18216,9 @@ export namespace google {
|
|
|
18207
18216
|
/** SetIamPolicyRequest policy. */
|
|
18208
18217
|
public policy?: (google.iam.v1.IPolicy|null);
|
|
18209
18218
|
|
|
18219
|
+
/** SetIamPolicyRequest updateMask. */
|
|
18220
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
18221
|
+
|
|
18210
18222
|
/**
|
|
18211
18223
|
* Creates a new SetIamPolicyRequest instance using the specified properties.
|
|
18212
18224
|
* @param [properties] Properties to set
|
|
@@ -18659,6 +18671,9 @@ export namespace google {
|
|
|
18659
18671
|
/** Policy bindings */
|
|
18660
18672
|
bindings?: (google.iam.v1.IBinding[]|null);
|
|
18661
18673
|
|
|
18674
|
+
/** Policy auditConfigs */
|
|
18675
|
+
auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
|
|
18676
|
+
|
|
18662
18677
|
/** Policy etag */
|
|
18663
18678
|
etag?: (Uint8Array|string|null);
|
|
18664
18679
|
}
|
|
@@ -18678,6 +18693,9 @@ export namespace google {
|
|
|
18678
18693
|
/** Policy bindings. */
|
|
18679
18694
|
public bindings: google.iam.v1.IBinding[];
|
|
18680
18695
|
|
|
18696
|
+
/** Policy auditConfigs. */
|
|
18697
|
+
public auditConfigs: google.iam.v1.IAuditConfig[];
|
|
18698
|
+
|
|
18681
18699
|
/** Policy etag. */
|
|
18682
18700
|
public etag: (Uint8Array|string);
|
|
18683
18701
|
|
|
@@ -18854,6 +18872,209 @@ export namespace google {
|
|
|
18854
18872
|
public toJSON(): { [k: string]: any };
|
|
18855
18873
|
}
|
|
18856
18874
|
|
|
18875
|
+
/** Properties of an AuditConfig. */
|
|
18876
|
+
interface IAuditConfig {
|
|
18877
|
+
|
|
18878
|
+
/** AuditConfig service */
|
|
18879
|
+
service?: (string|null);
|
|
18880
|
+
|
|
18881
|
+
/** AuditConfig auditLogConfigs */
|
|
18882
|
+
auditLogConfigs?: (google.iam.v1.IAuditLogConfig[]|null);
|
|
18883
|
+
}
|
|
18884
|
+
|
|
18885
|
+
/** Represents an AuditConfig. */
|
|
18886
|
+
class AuditConfig implements IAuditConfig {
|
|
18887
|
+
|
|
18888
|
+
/**
|
|
18889
|
+
* Constructs a new AuditConfig.
|
|
18890
|
+
* @param [properties] Properties to set
|
|
18891
|
+
*/
|
|
18892
|
+
constructor(properties?: google.iam.v1.IAuditConfig);
|
|
18893
|
+
|
|
18894
|
+
/** AuditConfig service. */
|
|
18895
|
+
public service: string;
|
|
18896
|
+
|
|
18897
|
+
/** AuditConfig auditLogConfigs. */
|
|
18898
|
+
public auditLogConfigs: google.iam.v1.IAuditLogConfig[];
|
|
18899
|
+
|
|
18900
|
+
/**
|
|
18901
|
+
* Creates a new AuditConfig instance using the specified properties.
|
|
18902
|
+
* @param [properties] Properties to set
|
|
18903
|
+
* @returns AuditConfig instance
|
|
18904
|
+
*/
|
|
18905
|
+
public static create(properties?: google.iam.v1.IAuditConfig): google.iam.v1.AuditConfig;
|
|
18906
|
+
|
|
18907
|
+
/**
|
|
18908
|
+
* Encodes the specified AuditConfig message. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
|
|
18909
|
+
* @param message AuditConfig message or plain object to encode
|
|
18910
|
+
* @param [writer] Writer to encode to
|
|
18911
|
+
* @returns Writer
|
|
18912
|
+
*/
|
|
18913
|
+
public static encode(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18914
|
+
|
|
18915
|
+
/**
|
|
18916
|
+
* Encodes the specified AuditConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditConfig.verify|verify} messages.
|
|
18917
|
+
* @param message AuditConfig message or plain object to encode
|
|
18918
|
+
* @param [writer] Writer to encode to
|
|
18919
|
+
* @returns Writer
|
|
18920
|
+
*/
|
|
18921
|
+
public static encodeDelimited(message: google.iam.v1.IAuditConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18922
|
+
|
|
18923
|
+
/**
|
|
18924
|
+
* Decodes an AuditConfig message from the specified reader or buffer.
|
|
18925
|
+
* @param reader Reader or buffer to decode from
|
|
18926
|
+
* @param [length] Message length if known beforehand
|
|
18927
|
+
* @returns AuditConfig
|
|
18928
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18929
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18930
|
+
*/
|
|
18931
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditConfig;
|
|
18932
|
+
|
|
18933
|
+
/**
|
|
18934
|
+
* Decodes an AuditConfig message from the specified reader or buffer, length delimited.
|
|
18935
|
+
* @param reader Reader or buffer to decode from
|
|
18936
|
+
* @returns AuditConfig
|
|
18937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18939
|
+
*/
|
|
18940
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditConfig;
|
|
18941
|
+
|
|
18942
|
+
/**
|
|
18943
|
+
* Verifies an AuditConfig message.
|
|
18944
|
+
* @param message Plain object to verify
|
|
18945
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18946
|
+
*/
|
|
18947
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18948
|
+
|
|
18949
|
+
/**
|
|
18950
|
+
* Creates an AuditConfig message from a plain object. Also converts values to their respective internal types.
|
|
18951
|
+
* @param object Plain object
|
|
18952
|
+
* @returns AuditConfig
|
|
18953
|
+
*/
|
|
18954
|
+
public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditConfig;
|
|
18955
|
+
|
|
18956
|
+
/**
|
|
18957
|
+
* Creates a plain object from an AuditConfig message. Also converts values to other types if specified.
|
|
18958
|
+
* @param message AuditConfig
|
|
18959
|
+
* @param [options] Conversion options
|
|
18960
|
+
* @returns Plain object
|
|
18961
|
+
*/
|
|
18962
|
+
public static toObject(message: google.iam.v1.AuditConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18963
|
+
|
|
18964
|
+
/**
|
|
18965
|
+
* Converts this AuditConfig to JSON.
|
|
18966
|
+
* @returns JSON object
|
|
18967
|
+
*/
|
|
18968
|
+
public toJSON(): { [k: string]: any };
|
|
18969
|
+
}
|
|
18970
|
+
|
|
18971
|
+
/** Properties of an AuditLogConfig. */
|
|
18972
|
+
interface IAuditLogConfig {
|
|
18973
|
+
|
|
18974
|
+
/** AuditLogConfig logType */
|
|
18975
|
+
logType?: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType|null);
|
|
18976
|
+
|
|
18977
|
+
/** AuditLogConfig exemptedMembers */
|
|
18978
|
+
exemptedMembers?: (string[]|null);
|
|
18979
|
+
}
|
|
18980
|
+
|
|
18981
|
+
/** Represents an AuditLogConfig. */
|
|
18982
|
+
class AuditLogConfig implements IAuditLogConfig {
|
|
18983
|
+
|
|
18984
|
+
/**
|
|
18985
|
+
* Constructs a new AuditLogConfig.
|
|
18986
|
+
* @param [properties] Properties to set
|
|
18987
|
+
*/
|
|
18988
|
+
constructor(properties?: google.iam.v1.IAuditLogConfig);
|
|
18989
|
+
|
|
18990
|
+
/** AuditLogConfig logType. */
|
|
18991
|
+
public logType: (google.iam.v1.AuditLogConfig.LogType|keyof typeof google.iam.v1.AuditLogConfig.LogType);
|
|
18992
|
+
|
|
18993
|
+
/** AuditLogConfig exemptedMembers. */
|
|
18994
|
+
public exemptedMembers: string[];
|
|
18995
|
+
|
|
18996
|
+
/**
|
|
18997
|
+
* Creates a new AuditLogConfig instance using the specified properties.
|
|
18998
|
+
* @param [properties] Properties to set
|
|
18999
|
+
* @returns AuditLogConfig instance
|
|
19000
|
+
*/
|
|
19001
|
+
public static create(properties?: google.iam.v1.IAuditLogConfig): google.iam.v1.AuditLogConfig;
|
|
19002
|
+
|
|
19003
|
+
/**
|
|
19004
|
+
* Encodes the specified AuditLogConfig message. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
|
|
19005
|
+
* @param message AuditLogConfig message or plain object to encode
|
|
19006
|
+
* @param [writer] Writer to encode to
|
|
19007
|
+
* @returns Writer
|
|
19008
|
+
*/
|
|
19009
|
+
public static encode(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19010
|
+
|
|
19011
|
+
/**
|
|
19012
|
+
* Encodes the specified AuditLogConfig message, length delimited. Does not implicitly {@link google.iam.v1.AuditLogConfig.verify|verify} messages.
|
|
19013
|
+
* @param message AuditLogConfig message or plain object to encode
|
|
19014
|
+
* @param [writer] Writer to encode to
|
|
19015
|
+
* @returns Writer
|
|
19016
|
+
*/
|
|
19017
|
+
public static encodeDelimited(message: google.iam.v1.IAuditLogConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19018
|
+
|
|
19019
|
+
/**
|
|
19020
|
+
* Decodes an AuditLogConfig message from the specified reader or buffer.
|
|
19021
|
+
* @param reader Reader or buffer to decode from
|
|
19022
|
+
* @param [length] Message length if known beforehand
|
|
19023
|
+
* @returns AuditLogConfig
|
|
19024
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19025
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19026
|
+
*/
|
|
19027
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v1.AuditLogConfig;
|
|
19028
|
+
|
|
19029
|
+
/**
|
|
19030
|
+
* Decodes an AuditLogConfig message from the specified reader or buffer, length delimited.
|
|
19031
|
+
* @param reader Reader or buffer to decode from
|
|
19032
|
+
* @returns AuditLogConfig
|
|
19033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19035
|
+
*/
|
|
19036
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v1.AuditLogConfig;
|
|
19037
|
+
|
|
19038
|
+
/**
|
|
19039
|
+
* Verifies an AuditLogConfig message.
|
|
19040
|
+
* @param message Plain object to verify
|
|
19041
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19042
|
+
*/
|
|
19043
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19044
|
+
|
|
19045
|
+
/**
|
|
19046
|
+
* Creates an AuditLogConfig message from a plain object. Also converts values to their respective internal types.
|
|
19047
|
+
* @param object Plain object
|
|
19048
|
+
* @returns AuditLogConfig
|
|
19049
|
+
*/
|
|
19050
|
+
public static fromObject(object: { [k: string]: any }): google.iam.v1.AuditLogConfig;
|
|
19051
|
+
|
|
19052
|
+
/**
|
|
19053
|
+
* Creates a plain object from an AuditLogConfig message. Also converts values to other types if specified.
|
|
19054
|
+
* @param message AuditLogConfig
|
|
19055
|
+
* @param [options] Conversion options
|
|
19056
|
+
* @returns Plain object
|
|
19057
|
+
*/
|
|
19058
|
+
public static toObject(message: google.iam.v1.AuditLogConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19059
|
+
|
|
19060
|
+
/**
|
|
19061
|
+
* Converts this AuditLogConfig to JSON.
|
|
19062
|
+
* @returns JSON object
|
|
19063
|
+
*/
|
|
19064
|
+
public toJSON(): { [k: string]: any };
|
|
19065
|
+
}
|
|
19066
|
+
|
|
19067
|
+
namespace AuditLogConfig {
|
|
19068
|
+
|
|
19069
|
+
/** LogType enum. */
|
|
19070
|
+
enum LogType {
|
|
19071
|
+
LOG_TYPE_UNSPECIFIED = 0,
|
|
19072
|
+
ADMIN_READ = 1,
|
|
19073
|
+
DATA_WRITE = 2,
|
|
19074
|
+
DATA_READ = 3
|
|
19075
|
+
}
|
|
19076
|
+
}
|
|
19077
|
+
|
|
18857
19078
|
/** Properties of a PolicyDelta. */
|
|
18858
19079
|
interface IPolicyDelta {
|
|
18859
19080
|
|