@google-cloud/spanner 5.16.3 → 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 +53 -0
- package/README.md +28 -12
- package/build/protos/google/spanner/admin/database/v1/backup.proto +177 -9
- package/build/protos/google/spanner/admin/database/v1/common.proto +14 -2
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +40 -5
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +8 -5
- package/build/protos/google/spanner/v1/commit_response.proto +2 -4
- package/build/protos/google/spanner/v1/keys.proto +0 -1
- package/build/protos/google/spanner/v1/mutation.proto +5 -5
- package/build/protos/google/spanner/v1/query_plan.proto +18 -19
- package/build/protos/google/spanner/v1/result_set.proto +1 -1
- package/build/protos/google/spanner/v1/spanner.proto +21 -19
- package/build/protos/google/spanner/v1/transaction.proto +19 -32
- package/build/protos/google/spanner/v1/type.proto +33 -7
- package/build/protos/protos.d.ts +684 -64
- package/build/protos/protos.js +1760 -84
- package/build/protos/protos.json +273 -21
- package/build/src/backup.d.ts +27 -5
- package/build/src/backup.js +62 -31
- package/build/src/batch-transaction.js +1 -1
- package/build/src/codec.d.ts +11 -0
- package/build/src/codec.js +39 -2
- 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 +18 -3
- package/build/src/index.js +26 -7
- package/build/src/instance.d.ts +42 -2
- package/build/src/instance.js +56 -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 +271 -28
- package/build/src/v1/database_admin_client.js +113 -11
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +57 -11
- package/build/src/v1/instance_admin_client.js +2 -3
- package/build/src/v1/spanner_client.d.ts +66 -44
- package/build/src/v1/spanner_client.js +13 -11
- package/package.json +11 -11
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
|
|
|
@@ -5417,6 +5423,15 @@ export namespace google {
|
|
|
5417
5423
|
|
|
5418
5424
|
/** Backup encryptionInfo */
|
|
5419
5425
|
encryptionInfo?: (google.spanner.admin.database.v1.IEncryptionInfo|null);
|
|
5426
|
+
|
|
5427
|
+
/** Backup databaseDialect */
|
|
5428
|
+
databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
|
|
5429
|
+
|
|
5430
|
+
/** Backup referencingBackups */
|
|
5431
|
+
referencingBackups?: (string[]|null);
|
|
5432
|
+
|
|
5433
|
+
/** Backup maxExpireTime */
|
|
5434
|
+
maxExpireTime?: (google.protobuf.ITimestamp|null);
|
|
5420
5435
|
}
|
|
5421
5436
|
|
|
5422
5437
|
/** Represents a Backup. */
|
|
@@ -5455,6 +5470,15 @@ export namespace google {
|
|
|
5455
5470
|
/** Backup encryptionInfo. */
|
|
5456
5471
|
public encryptionInfo?: (google.spanner.admin.database.v1.IEncryptionInfo|null);
|
|
5457
5472
|
|
|
5473
|
+
/** Backup databaseDialect. */
|
|
5474
|
+
public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
|
|
5475
|
+
|
|
5476
|
+
/** Backup referencingBackups. */
|
|
5477
|
+
public referencingBackups: string[];
|
|
5478
|
+
|
|
5479
|
+
/** Backup maxExpireTime. */
|
|
5480
|
+
public maxExpireTime?: (google.protobuf.ITimestamp|null);
|
|
5481
|
+
|
|
5458
5482
|
/**
|
|
5459
5483
|
* Creates a new Backup instance using the specified properties.
|
|
5460
5484
|
* @param [properties] Properties to set
|
|
@@ -5752,6 +5776,228 @@ export namespace google {
|
|
|
5752
5776
|
public toJSON(): { [k: string]: any };
|
|
5753
5777
|
}
|
|
5754
5778
|
|
|
5779
|
+
/** Properties of a CopyBackupRequest. */
|
|
5780
|
+
interface ICopyBackupRequest {
|
|
5781
|
+
|
|
5782
|
+
/** CopyBackupRequest parent */
|
|
5783
|
+
parent?: (string|null);
|
|
5784
|
+
|
|
5785
|
+
/** CopyBackupRequest backupId */
|
|
5786
|
+
backupId?: (string|null);
|
|
5787
|
+
|
|
5788
|
+
/** CopyBackupRequest sourceBackup */
|
|
5789
|
+
sourceBackup?: (string|null);
|
|
5790
|
+
|
|
5791
|
+
/** CopyBackupRequest expireTime */
|
|
5792
|
+
expireTime?: (google.protobuf.ITimestamp|null);
|
|
5793
|
+
|
|
5794
|
+
/** CopyBackupRequest encryptionConfig */
|
|
5795
|
+
encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5798
|
+
/** Represents a CopyBackupRequest. */
|
|
5799
|
+
class CopyBackupRequest implements ICopyBackupRequest {
|
|
5800
|
+
|
|
5801
|
+
/**
|
|
5802
|
+
* Constructs a new CopyBackupRequest.
|
|
5803
|
+
* @param [properties] Properties to set
|
|
5804
|
+
*/
|
|
5805
|
+
constructor(properties?: google.spanner.admin.database.v1.ICopyBackupRequest);
|
|
5806
|
+
|
|
5807
|
+
/** CopyBackupRequest parent. */
|
|
5808
|
+
public parent: string;
|
|
5809
|
+
|
|
5810
|
+
/** CopyBackupRequest backupId. */
|
|
5811
|
+
public backupId: string;
|
|
5812
|
+
|
|
5813
|
+
/** CopyBackupRequest sourceBackup. */
|
|
5814
|
+
public sourceBackup: string;
|
|
5815
|
+
|
|
5816
|
+
/** CopyBackupRequest expireTime. */
|
|
5817
|
+
public expireTime?: (google.protobuf.ITimestamp|null);
|
|
5818
|
+
|
|
5819
|
+
/** CopyBackupRequest encryptionConfig. */
|
|
5820
|
+
public encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
|
|
5821
|
+
|
|
5822
|
+
/**
|
|
5823
|
+
* Creates a new CopyBackupRequest instance using the specified properties.
|
|
5824
|
+
* @param [properties] Properties to set
|
|
5825
|
+
* @returns CopyBackupRequest instance
|
|
5826
|
+
*/
|
|
5827
|
+
public static create(properties?: google.spanner.admin.database.v1.ICopyBackupRequest): google.spanner.admin.database.v1.CopyBackupRequest;
|
|
5828
|
+
|
|
5829
|
+
/**
|
|
5830
|
+
* Encodes the specified CopyBackupRequest message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
|
|
5831
|
+
* @param message CopyBackupRequest message or plain object to encode
|
|
5832
|
+
* @param [writer] Writer to encode to
|
|
5833
|
+
* @returns Writer
|
|
5834
|
+
*/
|
|
5835
|
+
public static encode(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5836
|
+
|
|
5837
|
+
/**
|
|
5838
|
+
* Encodes the specified CopyBackupRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
|
|
5839
|
+
* @param message CopyBackupRequest message or plain object to encode
|
|
5840
|
+
* @param [writer] Writer to encode to
|
|
5841
|
+
* @returns Writer
|
|
5842
|
+
*/
|
|
5843
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5844
|
+
|
|
5845
|
+
/**
|
|
5846
|
+
* Decodes a CopyBackupRequest message from the specified reader or buffer.
|
|
5847
|
+
* @param reader Reader or buffer to decode from
|
|
5848
|
+
* @param [length] Message length if known beforehand
|
|
5849
|
+
* @returns CopyBackupRequest
|
|
5850
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5851
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5852
|
+
*/
|
|
5853
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupRequest;
|
|
5854
|
+
|
|
5855
|
+
/**
|
|
5856
|
+
* Decodes a CopyBackupRequest message from the specified reader or buffer, length delimited.
|
|
5857
|
+
* @param reader Reader or buffer to decode from
|
|
5858
|
+
* @returns CopyBackupRequest
|
|
5859
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5860
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5861
|
+
*/
|
|
5862
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupRequest;
|
|
5863
|
+
|
|
5864
|
+
/**
|
|
5865
|
+
* Verifies a CopyBackupRequest message.
|
|
5866
|
+
* @param message Plain object to verify
|
|
5867
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5868
|
+
*/
|
|
5869
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5870
|
+
|
|
5871
|
+
/**
|
|
5872
|
+
* Creates a CopyBackupRequest message from a plain object. Also converts values to their respective internal types.
|
|
5873
|
+
* @param object Plain object
|
|
5874
|
+
* @returns CopyBackupRequest
|
|
5875
|
+
*/
|
|
5876
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupRequest;
|
|
5877
|
+
|
|
5878
|
+
/**
|
|
5879
|
+
* Creates a plain object from a CopyBackupRequest message. Also converts values to other types if specified.
|
|
5880
|
+
* @param message CopyBackupRequest
|
|
5881
|
+
* @param [options] Conversion options
|
|
5882
|
+
* @returns Plain object
|
|
5883
|
+
*/
|
|
5884
|
+
public static toObject(message: google.spanner.admin.database.v1.CopyBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5885
|
+
|
|
5886
|
+
/**
|
|
5887
|
+
* Converts this CopyBackupRequest to JSON.
|
|
5888
|
+
* @returns JSON object
|
|
5889
|
+
*/
|
|
5890
|
+
public toJSON(): { [k: string]: any };
|
|
5891
|
+
}
|
|
5892
|
+
|
|
5893
|
+
/** Properties of a CopyBackupMetadata. */
|
|
5894
|
+
interface ICopyBackupMetadata {
|
|
5895
|
+
|
|
5896
|
+
/** CopyBackupMetadata name */
|
|
5897
|
+
name?: (string|null);
|
|
5898
|
+
|
|
5899
|
+
/** CopyBackupMetadata sourceBackup */
|
|
5900
|
+
sourceBackup?: (string|null);
|
|
5901
|
+
|
|
5902
|
+
/** CopyBackupMetadata progress */
|
|
5903
|
+
progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
|
|
5904
|
+
|
|
5905
|
+
/** CopyBackupMetadata cancelTime */
|
|
5906
|
+
cancelTime?: (google.protobuf.ITimestamp|null);
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
/** Represents a CopyBackupMetadata. */
|
|
5910
|
+
class CopyBackupMetadata implements ICopyBackupMetadata {
|
|
5911
|
+
|
|
5912
|
+
/**
|
|
5913
|
+
* Constructs a new CopyBackupMetadata.
|
|
5914
|
+
* @param [properties] Properties to set
|
|
5915
|
+
*/
|
|
5916
|
+
constructor(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata);
|
|
5917
|
+
|
|
5918
|
+
/** CopyBackupMetadata name. */
|
|
5919
|
+
public name: string;
|
|
5920
|
+
|
|
5921
|
+
/** CopyBackupMetadata sourceBackup. */
|
|
5922
|
+
public sourceBackup: string;
|
|
5923
|
+
|
|
5924
|
+
/** CopyBackupMetadata progress. */
|
|
5925
|
+
public progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
|
|
5926
|
+
|
|
5927
|
+
/** CopyBackupMetadata cancelTime. */
|
|
5928
|
+
public cancelTime?: (google.protobuf.ITimestamp|null);
|
|
5929
|
+
|
|
5930
|
+
/**
|
|
5931
|
+
* Creates a new CopyBackupMetadata instance using the specified properties.
|
|
5932
|
+
* @param [properties] Properties to set
|
|
5933
|
+
* @returns CopyBackupMetadata instance
|
|
5934
|
+
*/
|
|
5935
|
+
public static create(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata): google.spanner.admin.database.v1.CopyBackupMetadata;
|
|
5936
|
+
|
|
5937
|
+
/**
|
|
5938
|
+
* Encodes the specified CopyBackupMetadata message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
|
|
5939
|
+
* @param message CopyBackupMetadata message or plain object to encode
|
|
5940
|
+
* @param [writer] Writer to encode to
|
|
5941
|
+
* @returns Writer
|
|
5942
|
+
*/
|
|
5943
|
+
public static encode(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5944
|
+
|
|
5945
|
+
/**
|
|
5946
|
+
* Encodes the specified CopyBackupMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
|
|
5947
|
+
* @param message CopyBackupMetadata message or plain object to encode
|
|
5948
|
+
* @param [writer] Writer to encode to
|
|
5949
|
+
* @returns Writer
|
|
5950
|
+
*/
|
|
5951
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5952
|
+
|
|
5953
|
+
/**
|
|
5954
|
+
* Decodes a CopyBackupMetadata message from the specified reader or buffer.
|
|
5955
|
+
* @param reader Reader or buffer to decode from
|
|
5956
|
+
* @param [length] Message length if known beforehand
|
|
5957
|
+
* @returns CopyBackupMetadata
|
|
5958
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5959
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5960
|
+
*/
|
|
5961
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupMetadata;
|
|
5962
|
+
|
|
5963
|
+
/**
|
|
5964
|
+
* Decodes a CopyBackupMetadata message from the specified reader or buffer, length delimited.
|
|
5965
|
+
* @param reader Reader or buffer to decode from
|
|
5966
|
+
* @returns CopyBackupMetadata
|
|
5967
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5968
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5969
|
+
*/
|
|
5970
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupMetadata;
|
|
5971
|
+
|
|
5972
|
+
/**
|
|
5973
|
+
* Verifies a CopyBackupMetadata message.
|
|
5974
|
+
* @param message Plain object to verify
|
|
5975
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5976
|
+
*/
|
|
5977
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5978
|
+
|
|
5979
|
+
/**
|
|
5980
|
+
* Creates a CopyBackupMetadata message from a plain object. Also converts values to their respective internal types.
|
|
5981
|
+
* @param object Plain object
|
|
5982
|
+
* @returns CopyBackupMetadata
|
|
5983
|
+
*/
|
|
5984
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupMetadata;
|
|
5985
|
+
|
|
5986
|
+
/**
|
|
5987
|
+
* Creates a plain object from a CopyBackupMetadata message. Also converts values to other types if specified.
|
|
5988
|
+
* @param message CopyBackupMetadata
|
|
5989
|
+
* @param [options] Conversion options
|
|
5990
|
+
* @returns Plain object
|
|
5991
|
+
*/
|
|
5992
|
+
public static toObject(message: google.spanner.admin.database.v1.CopyBackupMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5993
|
+
|
|
5994
|
+
/**
|
|
5995
|
+
* Converts this CopyBackupMetadata to JSON.
|
|
5996
|
+
* @returns JSON object
|
|
5997
|
+
*/
|
|
5998
|
+
public toJSON(): { [k: string]: any };
|
|
5999
|
+
}
|
|
6000
|
+
|
|
5755
6001
|
/** Properties of an UpdateBackupRequest. */
|
|
5756
6002
|
interface IUpdateBackupRequest {
|
|
5757
6003
|
|
|
@@ -6651,6 +6897,113 @@ export namespace google {
|
|
|
6651
6897
|
}
|
|
6652
6898
|
}
|
|
6653
6899
|
|
|
6900
|
+
/** Properties of a CopyBackupEncryptionConfig. */
|
|
6901
|
+
interface ICopyBackupEncryptionConfig {
|
|
6902
|
+
|
|
6903
|
+
/** CopyBackupEncryptionConfig encryptionType */
|
|
6904
|
+
encryptionType?: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|null);
|
|
6905
|
+
|
|
6906
|
+
/** CopyBackupEncryptionConfig kmsKeyName */
|
|
6907
|
+
kmsKeyName?: (string|null);
|
|
6908
|
+
}
|
|
6909
|
+
|
|
6910
|
+
/** Represents a CopyBackupEncryptionConfig. */
|
|
6911
|
+
class CopyBackupEncryptionConfig implements ICopyBackupEncryptionConfig {
|
|
6912
|
+
|
|
6913
|
+
/**
|
|
6914
|
+
* Constructs a new CopyBackupEncryptionConfig.
|
|
6915
|
+
* @param [properties] Properties to set
|
|
6916
|
+
*/
|
|
6917
|
+
constructor(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig);
|
|
6918
|
+
|
|
6919
|
+
/** CopyBackupEncryptionConfig encryptionType. */
|
|
6920
|
+
public encryptionType: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType);
|
|
6921
|
+
|
|
6922
|
+
/** CopyBackupEncryptionConfig kmsKeyName. */
|
|
6923
|
+
public kmsKeyName: string;
|
|
6924
|
+
|
|
6925
|
+
/**
|
|
6926
|
+
* Creates a new CopyBackupEncryptionConfig instance using the specified properties.
|
|
6927
|
+
* @param [properties] Properties to set
|
|
6928
|
+
* @returns CopyBackupEncryptionConfig instance
|
|
6929
|
+
*/
|
|
6930
|
+
public static create(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
|
|
6931
|
+
|
|
6932
|
+
/**
|
|
6933
|
+
* Encodes the specified CopyBackupEncryptionConfig message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
|
|
6934
|
+
* @param message CopyBackupEncryptionConfig message or plain object to encode
|
|
6935
|
+
* @param [writer] Writer to encode to
|
|
6936
|
+
* @returns Writer
|
|
6937
|
+
*/
|
|
6938
|
+
public static encode(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* Encodes the specified CopyBackupEncryptionConfig message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
|
|
6942
|
+
* @param message CopyBackupEncryptionConfig message or plain object to encode
|
|
6943
|
+
* @param [writer] Writer to encode to
|
|
6944
|
+
* @returns Writer
|
|
6945
|
+
*/
|
|
6946
|
+
public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6947
|
+
|
|
6948
|
+
/**
|
|
6949
|
+
* Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer.
|
|
6950
|
+
* @param reader Reader or buffer to decode from
|
|
6951
|
+
* @param [length] Message length if known beforehand
|
|
6952
|
+
* @returns CopyBackupEncryptionConfig
|
|
6953
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6954
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6955
|
+
*/
|
|
6956
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
|
|
6957
|
+
|
|
6958
|
+
/**
|
|
6959
|
+
* Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer, length delimited.
|
|
6960
|
+
* @param reader Reader or buffer to decode from
|
|
6961
|
+
* @returns CopyBackupEncryptionConfig
|
|
6962
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6963
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6964
|
+
*/
|
|
6965
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
|
|
6966
|
+
|
|
6967
|
+
/**
|
|
6968
|
+
* Verifies a CopyBackupEncryptionConfig message.
|
|
6969
|
+
* @param message Plain object to verify
|
|
6970
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
6971
|
+
*/
|
|
6972
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
6973
|
+
|
|
6974
|
+
/**
|
|
6975
|
+
* Creates a CopyBackupEncryptionConfig message from a plain object. Also converts values to their respective internal types.
|
|
6976
|
+
* @param object Plain object
|
|
6977
|
+
* @returns CopyBackupEncryptionConfig
|
|
6978
|
+
*/
|
|
6979
|
+
public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
|
|
6980
|
+
|
|
6981
|
+
/**
|
|
6982
|
+
* Creates a plain object from a CopyBackupEncryptionConfig message. Also converts values to other types if specified.
|
|
6983
|
+
* @param message CopyBackupEncryptionConfig
|
|
6984
|
+
* @param [options] Conversion options
|
|
6985
|
+
* @returns Plain object
|
|
6986
|
+
*/
|
|
6987
|
+
public static toObject(message: google.spanner.admin.database.v1.CopyBackupEncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
6988
|
+
|
|
6989
|
+
/**
|
|
6990
|
+
* Converts this CopyBackupEncryptionConfig to JSON.
|
|
6991
|
+
* @returns JSON object
|
|
6992
|
+
*/
|
|
6993
|
+
public toJSON(): { [k: string]: any };
|
|
6994
|
+
}
|
|
6995
|
+
|
|
6996
|
+
namespace CopyBackupEncryptionConfig {
|
|
6997
|
+
|
|
6998
|
+
/** EncryptionType enum. */
|
|
6999
|
+
enum EncryptionType {
|
|
7000
|
+
ENCRYPTION_TYPE_UNSPECIFIED = 0,
|
|
7001
|
+
USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1,
|
|
7002
|
+
GOOGLE_DEFAULT_ENCRYPTION = 2,
|
|
7003
|
+
CUSTOMER_MANAGED_ENCRYPTION = 3
|
|
7004
|
+
}
|
|
7005
|
+
}
|
|
7006
|
+
|
|
6654
7007
|
/** Properties of an OperationProgress. */
|
|
6655
7008
|
interface IOperationProgress {
|
|
6656
7009
|
|
|
@@ -6955,6 +7308,13 @@ export namespace google {
|
|
|
6955
7308
|
}
|
|
6956
7309
|
}
|
|
6957
7310
|
|
|
7311
|
+
/** DatabaseDialect enum. */
|
|
7312
|
+
enum DatabaseDialect {
|
|
7313
|
+
DATABASE_DIALECT_UNSPECIFIED = 0,
|
|
7314
|
+
GOOGLE_STANDARD_SQL = 1,
|
|
7315
|
+
POSTGRESQL = 2
|
|
7316
|
+
}
|
|
7317
|
+
|
|
6958
7318
|
/** Represents a DatabaseAdmin */
|
|
6959
7319
|
class DatabaseAdmin extends $protobuf.rpc.Service {
|
|
6960
7320
|
|
|
@@ -7115,6 +7475,20 @@ export namespace google {
|
|
|
7115
7475
|
*/
|
|
7116
7476
|
public createBackup(request: google.spanner.admin.database.v1.ICreateBackupRequest): Promise<google.longrunning.Operation>;
|
|
7117
7477
|
|
|
7478
|
+
/**
|
|
7479
|
+
* Calls CopyBackup.
|
|
7480
|
+
* @param request CopyBackupRequest message or plain object
|
|
7481
|
+
* @param callback Node-style callback called with the error, if any, and Operation
|
|
7482
|
+
*/
|
|
7483
|
+
public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.CopyBackupCallback): void;
|
|
7484
|
+
|
|
7485
|
+
/**
|
|
7486
|
+
* Calls CopyBackup.
|
|
7487
|
+
* @param request CopyBackupRequest message or plain object
|
|
7488
|
+
* @returns Promise
|
|
7489
|
+
*/
|
|
7490
|
+
public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest): Promise<google.longrunning.Operation>;
|
|
7491
|
+
|
|
7118
7492
|
/**
|
|
7119
7493
|
* Calls GetBackup.
|
|
7120
7494
|
* @param request GetBackupRequest message or plain object
|
|
@@ -7217,119 +7591,126 @@ export namespace google {
|
|
|
7217
7591
|
namespace DatabaseAdmin {
|
|
7218
7592
|
|
|
7219
7593
|
/**
|
|
7220
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7594
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabases}.
|
|
7221
7595
|
* @param error Error, if any
|
|
7222
7596
|
* @param [response] ListDatabasesResponse
|
|
7223
7597
|
*/
|
|
7224
7598
|
type ListDatabasesCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListDatabasesResponse) => void;
|
|
7225
7599
|
|
|
7226
7600
|
/**
|
|
7227
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7601
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createDatabase}.
|
|
7228
7602
|
* @param error Error, if any
|
|
7229
7603
|
* @param [response] Operation
|
|
7230
7604
|
*/
|
|
7231
7605
|
type CreateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
7232
7606
|
|
|
7233
7607
|
/**
|
|
7234
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7608
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabase}.
|
|
7235
7609
|
* @param error Error, if any
|
|
7236
7610
|
* @param [response] Database
|
|
7237
7611
|
*/
|
|
7238
7612
|
type GetDatabaseCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Database) => void;
|
|
7239
7613
|
|
|
7240
7614
|
/**
|
|
7241
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7615
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateDatabaseDdl}.
|
|
7242
7616
|
* @param error Error, if any
|
|
7243
7617
|
* @param [response] Operation
|
|
7244
7618
|
*/
|
|
7245
7619
|
type UpdateDatabaseDdlCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
7246
7620
|
|
|
7247
7621
|
/**
|
|
7248
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7622
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|dropDatabase}.
|
|
7249
7623
|
* @param error Error, if any
|
|
7250
7624
|
* @param [response] Empty
|
|
7251
7625
|
*/
|
|
7252
7626
|
type DropDatabaseCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
7253
7627
|
|
|
7254
7628
|
/**
|
|
7255
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7629
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getDatabaseDdl}.
|
|
7256
7630
|
* @param error Error, if any
|
|
7257
7631
|
* @param [response] GetDatabaseDdlResponse
|
|
7258
7632
|
*/
|
|
7259
7633
|
type GetDatabaseDdlCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.GetDatabaseDdlResponse) => void;
|
|
7260
7634
|
|
|
7261
7635
|
/**
|
|
7262
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7636
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|setIamPolicy}.
|
|
7263
7637
|
* @param error Error, if any
|
|
7264
7638
|
* @param [response] Policy
|
|
7265
7639
|
*/
|
|
7266
7640
|
type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
7267
7641
|
|
|
7268
7642
|
/**
|
|
7269
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7643
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getIamPolicy}.
|
|
7270
7644
|
* @param error Error, if any
|
|
7271
7645
|
* @param [response] Policy
|
|
7272
7646
|
*/
|
|
7273
7647
|
type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
7274
7648
|
|
|
7275
7649
|
/**
|
|
7276
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7650
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|testIamPermissions}.
|
|
7277
7651
|
* @param error Error, if any
|
|
7278
7652
|
* @param [response] TestIamPermissionsResponse
|
|
7279
7653
|
*/
|
|
7280
7654
|
type TestIamPermissionsCallback = (error: (Error|null), response?: google.iam.v1.TestIamPermissionsResponse) => void;
|
|
7281
7655
|
|
|
7282
7656
|
/**
|
|
7283
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7657
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|createBackup}.
|
|
7284
7658
|
* @param error Error, if any
|
|
7285
7659
|
* @param [response] Operation
|
|
7286
7660
|
*/
|
|
7287
7661
|
type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
7288
7662
|
|
|
7289
7663
|
/**
|
|
7290
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7664
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|copyBackup}.
|
|
7665
|
+
* @param error Error, if any
|
|
7666
|
+
* @param [response] Operation
|
|
7667
|
+
*/
|
|
7668
|
+
type CopyBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
7669
|
+
|
|
7670
|
+
/**
|
|
7671
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getBackup}.
|
|
7291
7672
|
* @param error Error, if any
|
|
7292
7673
|
* @param [response] Backup
|
|
7293
7674
|
*/
|
|
7294
7675
|
type GetBackupCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Backup) => void;
|
|
7295
7676
|
|
|
7296
7677
|
/**
|
|
7297
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7678
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|updateBackup}.
|
|
7298
7679
|
* @param error Error, if any
|
|
7299
7680
|
* @param [response] Backup
|
|
7300
7681
|
*/
|
|
7301
7682
|
type UpdateBackupCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.Backup) => void;
|
|
7302
7683
|
|
|
7303
7684
|
/**
|
|
7304
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7685
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|deleteBackup}.
|
|
7305
7686
|
* @param error Error, if any
|
|
7306
7687
|
* @param [response] Empty
|
|
7307
7688
|
*/
|
|
7308
7689
|
type DeleteBackupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
7309
7690
|
|
|
7310
7691
|
/**
|
|
7311
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7692
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackups}.
|
|
7312
7693
|
* @param error Error, if any
|
|
7313
7694
|
* @param [response] ListBackupsResponse
|
|
7314
7695
|
*/
|
|
7315
7696
|
type ListBackupsCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListBackupsResponse) => void;
|
|
7316
7697
|
|
|
7317
7698
|
/**
|
|
7318
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7699
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|restoreDatabase}.
|
|
7319
7700
|
* @param error Error, if any
|
|
7320
7701
|
* @param [response] Operation
|
|
7321
7702
|
*/
|
|
7322
7703
|
type RestoreDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
7323
7704
|
|
|
7324
7705
|
/**
|
|
7325
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7706
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listDatabaseOperations}.
|
|
7326
7707
|
* @param error Error, if any
|
|
7327
7708
|
* @param [response] ListDatabaseOperationsResponse
|
|
7328
7709
|
*/
|
|
7329
7710
|
type ListDatabaseOperationsCallback = (error: (Error|null), response?: google.spanner.admin.database.v1.ListDatabaseOperationsResponse) => void;
|
|
7330
7711
|
|
|
7331
7712
|
/**
|
|
7332
|
-
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin
|
|
7713
|
+
* Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|listBackupOperations}.
|
|
7333
7714
|
* @param error Error, if any
|
|
7334
7715
|
* @param [response] ListBackupOperationsResponse
|
|
7335
7716
|
*/
|
|
@@ -7464,6 +7845,9 @@ export namespace google {
|
|
|
7464
7845
|
|
|
7465
7846
|
/** Database defaultLeader */
|
|
7466
7847
|
defaultLeader?: (string|null);
|
|
7848
|
+
|
|
7849
|
+
/** Database databaseDialect */
|
|
7850
|
+
databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
|
|
7467
7851
|
}
|
|
7468
7852
|
|
|
7469
7853
|
/** Represents a Database. */
|
|
@@ -7502,6 +7886,9 @@ export namespace google {
|
|
|
7502
7886
|
/** Database defaultLeader. */
|
|
7503
7887
|
public defaultLeader: string;
|
|
7504
7888
|
|
|
7889
|
+
/** Database databaseDialect. */
|
|
7890
|
+
public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
|
|
7891
|
+
|
|
7505
7892
|
/**
|
|
7506
7893
|
* Creates a new Database instance using the specified properties.
|
|
7507
7894
|
* @param [properties] Properties to set
|
|
@@ -7796,6 +8183,9 @@ export namespace google {
|
|
|
7796
8183
|
|
|
7797
8184
|
/** CreateDatabaseRequest encryptionConfig */
|
|
7798
8185
|
encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
|
|
8186
|
+
|
|
8187
|
+
/** CreateDatabaseRequest databaseDialect */
|
|
8188
|
+
databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
|
|
7799
8189
|
}
|
|
7800
8190
|
|
|
7801
8191
|
/** Represents a CreateDatabaseRequest. */
|
|
@@ -7819,6 +8209,9 @@ export namespace google {
|
|
|
7819
8209
|
/** CreateDatabaseRequest encryptionConfig. */
|
|
7820
8210
|
public encryptionConfig?: (google.spanner.admin.database.v1.IEncryptionConfig|null);
|
|
7821
8211
|
|
|
8212
|
+
/** CreateDatabaseRequest databaseDialect. */
|
|
8213
|
+
public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
|
|
8214
|
+
|
|
7822
8215
|
/**
|
|
7823
8216
|
* Creates a new CreateDatabaseRequest instance using the specified properties.
|
|
7824
8217
|
* @param [properties] Properties to set
|
|
@@ -9375,70 +9768,70 @@ export namespace google {
|
|
|
9375
9768
|
namespace InstanceAdmin {
|
|
9376
9769
|
|
|
9377
9770
|
/**
|
|
9378
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9771
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstanceConfigs}.
|
|
9379
9772
|
* @param error Error, if any
|
|
9380
9773
|
* @param [response] ListInstanceConfigsResponse
|
|
9381
9774
|
*/
|
|
9382
9775
|
type ListInstanceConfigsCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.ListInstanceConfigsResponse) => void;
|
|
9383
9776
|
|
|
9384
9777
|
/**
|
|
9385
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9778
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstanceConfig}.
|
|
9386
9779
|
* @param error Error, if any
|
|
9387
9780
|
* @param [response] InstanceConfig
|
|
9388
9781
|
*/
|
|
9389
9782
|
type GetInstanceConfigCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.InstanceConfig) => void;
|
|
9390
9783
|
|
|
9391
9784
|
/**
|
|
9392
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9785
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|listInstances}.
|
|
9393
9786
|
* @param error Error, if any
|
|
9394
9787
|
* @param [response] ListInstancesResponse
|
|
9395
9788
|
*/
|
|
9396
9789
|
type ListInstancesCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.ListInstancesResponse) => void;
|
|
9397
9790
|
|
|
9398
9791
|
/**
|
|
9399
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9792
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getInstance}.
|
|
9400
9793
|
* @param error Error, if any
|
|
9401
9794
|
* @param [response] Instance
|
|
9402
9795
|
*/
|
|
9403
9796
|
type GetInstanceCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.Instance) => void;
|
|
9404
9797
|
|
|
9405
9798
|
/**
|
|
9406
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9799
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|createInstance}.
|
|
9407
9800
|
* @param error Error, if any
|
|
9408
9801
|
* @param [response] Operation
|
|
9409
9802
|
*/
|
|
9410
9803
|
type CreateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
9411
9804
|
|
|
9412
9805
|
/**
|
|
9413
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9806
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|updateInstance}.
|
|
9414
9807
|
* @param error Error, if any
|
|
9415
9808
|
* @param [response] Operation
|
|
9416
9809
|
*/
|
|
9417
9810
|
type UpdateInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
9418
9811
|
|
|
9419
9812
|
/**
|
|
9420
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9813
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|deleteInstance}.
|
|
9421
9814
|
* @param error Error, if any
|
|
9422
9815
|
* @param [response] Empty
|
|
9423
9816
|
*/
|
|
9424
9817
|
type DeleteInstanceCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
9425
9818
|
|
|
9426
9819
|
/**
|
|
9427
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9820
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|setIamPolicy}.
|
|
9428
9821
|
* @param error Error, if any
|
|
9429
9822
|
* @param [response] Policy
|
|
9430
9823
|
*/
|
|
9431
9824
|
type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
9432
9825
|
|
|
9433
9826
|
/**
|
|
9434
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9827
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|getIamPolicy}.
|
|
9435
9828
|
* @param error Error, if any
|
|
9436
9829
|
* @param [response] Policy
|
|
9437
9830
|
*/
|
|
9438
9831
|
type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
9439
9832
|
|
|
9440
9833
|
/**
|
|
9441
|
-
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin
|
|
9834
|
+
* Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|testIamPermissions}.
|
|
9442
9835
|
* @param error Error, if any
|
|
9443
9836
|
* @param [response] TestIamPermissionsResponse
|
|
9444
9837
|
*/
|
|
@@ -11757,6 +12150,13 @@ export namespace google {
|
|
|
11757
12150
|
|
|
11758
12151
|
namespace PlanNode {
|
|
11759
12152
|
|
|
12153
|
+
/** Kind enum. */
|
|
12154
|
+
enum Kind {
|
|
12155
|
+
KIND_UNSPECIFIED = 0,
|
|
12156
|
+
RELATIONAL = 1,
|
|
12157
|
+
SCALAR = 2
|
|
12158
|
+
}
|
|
12159
|
+
|
|
11760
12160
|
/** Properties of a ChildLink. */
|
|
11761
12161
|
interface IChildLink {
|
|
11762
12162
|
|
|
@@ -11954,13 +12354,6 @@ export namespace google {
|
|
|
11954
12354
|
*/
|
|
11955
12355
|
public toJSON(): { [k: string]: any };
|
|
11956
12356
|
}
|
|
11957
|
-
|
|
11958
|
-
/** Kind enum. */
|
|
11959
|
-
enum Kind {
|
|
11960
|
-
KIND_UNSPECIFIED = 0,
|
|
11961
|
-
RELATIONAL = 1,
|
|
11962
|
-
SCALAR = 2
|
|
11963
|
-
}
|
|
11964
12357
|
}
|
|
11965
12358
|
|
|
11966
12359
|
/** Properties of a QueryPlan. */
|
|
@@ -13087,6 +13480,9 @@ export namespace google {
|
|
|
13087
13480
|
|
|
13088
13481
|
/** Type structType */
|
|
13089
13482
|
structType?: (google.spanner.v1.IStructType|null);
|
|
13483
|
+
|
|
13484
|
+
/** Type typeAnnotation */
|
|
13485
|
+
typeAnnotation?: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode|null);
|
|
13090
13486
|
}
|
|
13091
13487
|
|
|
13092
13488
|
/** Represents a Type. */
|
|
@@ -13107,6 +13503,9 @@ export namespace google {
|
|
|
13107
13503
|
/** Type structType. */
|
|
13108
13504
|
public structType?: (google.spanner.v1.IStructType|null);
|
|
13109
13505
|
|
|
13506
|
+
/** Type typeAnnotation. */
|
|
13507
|
+
public typeAnnotation: (google.spanner.v1.TypeAnnotationCode|keyof typeof google.spanner.v1.TypeAnnotationCode);
|
|
13508
|
+
|
|
13110
13509
|
/**
|
|
13111
13510
|
* Creates a new Type instance using the specified properties.
|
|
13112
13511
|
* @param [properties] Properties to set
|
|
@@ -13383,6 +13782,12 @@ export namespace google {
|
|
|
13383
13782
|
JSON = 11
|
|
13384
13783
|
}
|
|
13385
13784
|
|
|
13785
|
+
/** TypeAnnotationCode enum. */
|
|
13786
|
+
enum TypeAnnotationCode {
|
|
13787
|
+
TYPE_ANNOTATION_CODE_UNSPECIFIED = 0,
|
|
13788
|
+
PG_NUMERIC = 2
|
|
13789
|
+
}
|
|
13790
|
+
|
|
13386
13791
|
/** Represents a Spanner */
|
|
13387
13792
|
class Spanner extends $protobuf.rpc.Service {
|
|
13388
13793
|
|
|
@@ -13617,105 +14022,105 @@ export namespace google {
|
|
|
13617
14022
|
namespace Spanner {
|
|
13618
14023
|
|
|
13619
14024
|
/**
|
|
13620
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14025
|
+
* Callback as used by {@link google.spanner.v1.Spanner|createSession}.
|
|
13621
14026
|
* @param error Error, if any
|
|
13622
14027
|
* @param [response] Session
|
|
13623
14028
|
*/
|
|
13624
14029
|
type CreateSessionCallback = (error: (Error|null), response?: google.spanner.v1.Session) => void;
|
|
13625
14030
|
|
|
13626
14031
|
/**
|
|
13627
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14032
|
+
* Callback as used by {@link google.spanner.v1.Spanner|batchCreateSessions}.
|
|
13628
14033
|
* @param error Error, if any
|
|
13629
14034
|
* @param [response] BatchCreateSessionsResponse
|
|
13630
14035
|
*/
|
|
13631
14036
|
type BatchCreateSessionsCallback = (error: (Error|null), response?: google.spanner.v1.BatchCreateSessionsResponse) => void;
|
|
13632
14037
|
|
|
13633
14038
|
/**
|
|
13634
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14039
|
+
* Callback as used by {@link google.spanner.v1.Spanner|getSession}.
|
|
13635
14040
|
* @param error Error, if any
|
|
13636
14041
|
* @param [response] Session
|
|
13637
14042
|
*/
|
|
13638
14043
|
type GetSessionCallback = (error: (Error|null), response?: google.spanner.v1.Session) => void;
|
|
13639
14044
|
|
|
13640
14045
|
/**
|
|
13641
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14046
|
+
* Callback as used by {@link google.spanner.v1.Spanner|listSessions}.
|
|
13642
14047
|
* @param error Error, if any
|
|
13643
14048
|
* @param [response] ListSessionsResponse
|
|
13644
14049
|
*/
|
|
13645
14050
|
type ListSessionsCallback = (error: (Error|null), response?: google.spanner.v1.ListSessionsResponse) => void;
|
|
13646
14051
|
|
|
13647
14052
|
/**
|
|
13648
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14053
|
+
* Callback as used by {@link google.spanner.v1.Spanner|deleteSession}.
|
|
13649
14054
|
* @param error Error, if any
|
|
13650
14055
|
* @param [response] Empty
|
|
13651
14056
|
*/
|
|
13652
14057
|
type DeleteSessionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
13653
14058
|
|
|
13654
14059
|
/**
|
|
13655
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14060
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeSql}.
|
|
13656
14061
|
* @param error Error, if any
|
|
13657
14062
|
* @param [response] ResultSet
|
|
13658
14063
|
*/
|
|
13659
14064
|
type ExecuteSqlCallback = (error: (Error|null), response?: google.spanner.v1.ResultSet) => void;
|
|
13660
14065
|
|
|
13661
14066
|
/**
|
|
13662
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14067
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeStreamingSql}.
|
|
13663
14068
|
* @param error Error, if any
|
|
13664
14069
|
* @param [response] PartialResultSet
|
|
13665
14070
|
*/
|
|
13666
14071
|
type ExecuteStreamingSqlCallback = (error: (Error|null), response?: google.spanner.v1.PartialResultSet) => void;
|
|
13667
14072
|
|
|
13668
14073
|
/**
|
|
13669
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14074
|
+
* Callback as used by {@link google.spanner.v1.Spanner|executeBatchDml}.
|
|
13670
14075
|
* @param error Error, if any
|
|
13671
14076
|
* @param [response] ExecuteBatchDmlResponse
|
|
13672
14077
|
*/
|
|
13673
14078
|
type ExecuteBatchDmlCallback = (error: (Error|null), response?: google.spanner.v1.ExecuteBatchDmlResponse) => void;
|
|
13674
14079
|
|
|
13675
14080
|
/**
|
|
13676
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14081
|
+
* Callback as used by {@link google.spanner.v1.Spanner|read}.
|
|
13677
14082
|
* @param error Error, if any
|
|
13678
14083
|
* @param [response] ResultSet
|
|
13679
14084
|
*/
|
|
13680
14085
|
type ReadCallback = (error: (Error|null), response?: google.spanner.v1.ResultSet) => void;
|
|
13681
14086
|
|
|
13682
14087
|
/**
|
|
13683
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14088
|
+
* Callback as used by {@link google.spanner.v1.Spanner|streamingRead}.
|
|
13684
14089
|
* @param error Error, if any
|
|
13685
14090
|
* @param [response] PartialResultSet
|
|
13686
14091
|
*/
|
|
13687
14092
|
type StreamingReadCallback = (error: (Error|null), response?: google.spanner.v1.PartialResultSet) => void;
|
|
13688
14093
|
|
|
13689
14094
|
/**
|
|
13690
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14095
|
+
* Callback as used by {@link google.spanner.v1.Spanner|beginTransaction}.
|
|
13691
14096
|
* @param error Error, if any
|
|
13692
14097
|
* @param [response] Transaction
|
|
13693
14098
|
*/
|
|
13694
14099
|
type BeginTransactionCallback = (error: (Error|null), response?: google.spanner.v1.Transaction) => void;
|
|
13695
14100
|
|
|
13696
14101
|
/**
|
|
13697
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14102
|
+
* Callback as used by {@link google.spanner.v1.Spanner|commit}.
|
|
13698
14103
|
* @param error Error, if any
|
|
13699
14104
|
* @param [response] CommitResponse
|
|
13700
14105
|
*/
|
|
13701
14106
|
type CommitCallback = (error: (Error|null), response?: google.spanner.v1.CommitResponse) => void;
|
|
13702
14107
|
|
|
13703
14108
|
/**
|
|
13704
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14109
|
+
* Callback as used by {@link google.spanner.v1.Spanner|rollback}.
|
|
13705
14110
|
* @param error Error, if any
|
|
13706
14111
|
* @param [response] Empty
|
|
13707
14112
|
*/
|
|
13708
14113
|
type RollbackCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
13709
14114
|
|
|
13710
14115
|
/**
|
|
13711
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14116
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionQuery}.
|
|
13712
14117
|
* @param error Error, if any
|
|
13713
14118
|
* @param [response] PartitionResponse
|
|
13714
14119
|
*/
|
|
13715
14120
|
type PartitionQueryCallback = (error: (Error|null), response?: google.spanner.v1.PartitionResponse) => void;
|
|
13716
14121
|
|
|
13717
14122
|
/**
|
|
13718
|
-
* Callback as used by {@link google.spanner.v1.Spanner
|
|
14123
|
+
* Callback as used by {@link google.spanner.v1.Spanner|partitionRead}.
|
|
13719
14124
|
* @param error Error, if any
|
|
13720
14125
|
* @param [response] PartitionResponse
|
|
13721
14126
|
*/
|
|
@@ -14767,6 +15172,13 @@ export namespace google {
|
|
|
14767
15172
|
|
|
14768
15173
|
namespace ExecuteSqlRequest {
|
|
14769
15174
|
|
|
15175
|
+
/** QueryMode enum. */
|
|
15176
|
+
enum QueryMode {
|
|
15177
|
+
NORMAL = 0,
|
|
15178
|
+
PLAN = 1,
|
|
15179
|
+
PROFILE = 2
|
|
15180
|
+
}
|
|
15181
|
+
|
|
14770
15182
|
/** Properties of a QueryOptions. */
|
|
14771
15183
|
interface IQueryOptions {
|
|
14772
15184
|
|
|
@@ -14862,13 +15274,6 @@ export namespace google {
|
|
|
14862
15274
|
*/
|
|
14863
15275
|
public toJSON(): { [k: string]: any };
|
|
14864
15276
|
}
|
|
14865
|
-
|
|
14866
|
-
/** QueryMode enum. */
|
|
14867
|
-
enum QueryMode {
|
|
14868
|
-
NORMAL = 0,
|
|
14869
|
-
PLAN = 1,
|
|
14870
|
-
PROFILE = 2
|
|
14871
|
-
}
|
|
14872
15277
|
}
|
|
14873
15278
|
|
|
14874
15279
|
/** Properties of an ExecuteBatchDmlRequest. */
|
|
@@ -16871,35 +17276,35 @@ export namespace google {
|
|
|
16871
17276
|
namespace Operations {
|
|
16872
17277
|
|
|
16873
17278
|
/**
|
|
16874
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
17279
|
+
* Callback as used by {@link google.longrunning.Operations|listOperations}.
|
|
16875
17280
|
* @param error Error, if any
|
|
16876
17281
|
* @param [response] ListOperationsResponse
|
|
16877
17282
|
*/
|
|
16878
17283
|
type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
|
|
16879
17284
|
|
|
16880
17285
|
/**
|
|
16881
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
17286
|
+
* Callback as used by {@link google.longrunning.Operations|getOperation}.
|
|
16882
17287
|
* @param error Error, if any
|
|
16883
17288
|
* @param [response] Operation
|
|
16884
17289
|
*/
|
|
16885
17290
|
type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
16886
17291
|
|
|
16887
17292
|
/**
|
|
16888
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
17293
|
+
* Callback as used by {@link google.longrunning.Operations|deleteOperation}.
|
|
16889
17294
|
* @param error Error, if any
|
|
16890
17295
|
* @param [response] Empty
|
|
16891
17296
|
*/
|
|
16892
17297
|
type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
16893
17298
|
|
|
16894
17299
|
/**
|
|
16895
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
17300
|
+
* Callback as used by {@link google.longrunning.Operations|cancelOperation}.
|
|
16896
17301
|
* @param error Error, if any
|
|
16897
17302
|
* @param [response] Empty
|
|
16898
17303
|
*/
|
|
16899
17304
|
type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
|
16900
17305
|
|
|
16901
17306
|
/**
|
|
16902
|
-
* Callback as used by {@link google.longrunning.Operations
|
|
17307
|
+
* Callback as used by {@link google.longrunning.Operations|waitOperation}.
|
|
16903
17308
|
* @param error Error, if any
|
|
16904
17309
|
* @param [response] Operation
|
|
16905
17310
|
*/
|
|
@@ -17762,21 +18167,21 @@ export namespace google {
|
|
|
17762
18167
|
namespace IAMPolicy {
|
|
17763
18168
|
|
|
17764
18169
|
/**
|
|
17765
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
18170
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|setIamPolicy}.
|
|
17766
18171
|
* @param error Error, if any
|
|
17767
18172
|
* @param [response] Policy
|
|
17768
18173
|
*/
|
|
17769
18174
|
type SetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
17770
18175
|
|
|
17771
18176
|
/**
|
|
17772
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
18177
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|getIamPolicy}.
|
|
17773
18178
|
* @param error Error, if any
|
|
17774
18179
|
* @param [response] Policy
|
|
17775
18180
|
*/
|
|
17776
18181
|
type GetIamPolicyCallback = (error: (Error|null), response?: google.iam.v1.Policy) => void;
|
|
17777
18182
|
|
|
17778
18183
|
/**
|
|
17779
|
-
* Callback as used by {@link google.iam.v1.IAMPolicy
|
|
18184
|
+
* Callback as used by {@link google.iam.v1.IAMPolicy|testIamPermissions}.
|
|
17780
18185
|
* @param error Error, if any
|
|
17781
18186
|
* @param [response] TestIamPermissionsResponse
|
|
17782
18187
|
*/
|
|
@@ -17791,6 +18196,9 @@ export namespace google {
|
|
|
17791
18196
|
|
|
17792
18197
|
/** SetIamPolicyRequest policy */
|
|
17793
18198
|
policy?: (google.iam.v1.IPolicy|null);
|
|
18199
|
+
|
|
18200
|
+
/** SetIamPolicyRequest updateMask */
|
|
18201
|
+
updateMask?: (google.protobuf.IFieldMask|null);
|
|
17794
18202
|
}
|
|
17795
18203
|
|
|
17796
18204
|
/** Represents a SetIamPolicyRequest. */
|
|
@@ -17808,6 +18216,9 @@ export namespace google {
|
|
|
17808
18216
|
/** SetIamPolicyRequest policy. */
|
|
17809
18217
|
public policy?: (google.iam.v1.IPolicy|null);
|
|
17810
18218
|
|
|
18219
|
+
/** SetIamPolicyRequest updateMask. */
|
|
18220
|
+
public updateMask?: (google.protobuf.IFieldMask|null);
|
|
18221
|
+
|
|
17811
18222
|
/**
|
|
17812
18223
|
* Creates a new SetIamPolicyRequest instance using the specified properties.
|
|
17813
18224
|
* @param [properties] Properties to set
|
|
@@ -18260,6 +18671,9 @@ export namespace google {
|
|
|
18260
18671
|
/** Policy bindings */
|
|
18261
18672
|
bindings?: (google.iam.v1.IBinding[]|null);
|
|
18262
18673
|
|
|
18674
|
+
/** Policy auditConfigs */
|
|
18675
|
+
auditConfigs?: (google.iam.v1.IAuditConfig[]|null);
|
|
18676
|
+
|
|
18263
18677
|
/** Policy etag */
|
|
18264
18678
|
etag?: (Uint8Array|string|null);
|
|
18265
18679
|
}
|
|
@@ -18279,6 +18693,9 @@ export namespace google {
|
|
|
18279
18693
|
/** Policy bindings. */
|
|
18280
18694
|
public bindings: google.iam.v1.IBinding[];
|
|
18281
18695
|
|
|
18696
|
+
/** Policy auditConfigs. */
|
|
18697
|
+
public auditConfigs: google.iam.v1.IAuditConfig[];
|
|
18698
|
+
|
|
18282
18699
|
/** Policy etag. */
|
|
18283
18700
|
public etag: (Uint8Array|string);
|
|
18284
18701
|
|
|
@@ -18455,6 +18872,209 @@ export namespace google {
|
|
|
18455
18872
|
public toJSON(): { [k: string]: any };
|
|
18456
18873
|
}
|
|
18457
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
|
+
|
|
18458
19078
|
/** Properties of a PolicyDelta. */
|
|
18459
19079
|
interface IPolicyDelta {
|
|
18460
19080
|
|