@google-cloud/dlp 6.2.0 → 6.3.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/build/protos/google/privacy/dlp/v2/dlp.proto +11 -3
- package/build/protos/protos.d.ts +118 -12
- package/build/protos/protos.js +1537 -426
- package/build/protos/protos.json +73 -19
- package/build/src/v2/dlp_service_client.d.ts +817 -817
- package/build/src/v2/dlp_service_client.js +634 -722
- package/package.json +4 -4
- package/CHANGELOG.md +0 -756
|
@@ -5882,10 +5882,10 @@ message DiscoveryCloudStorageFilter {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
}
|
|
5884
5884
|
|
|
5885
|
-
// Match file stores (e.g. buckets) using
|
|
5885
|
+
// Match file stores (e.g. buckets) using filters.
|
|
5886
5886
|
message FileStoreCollection {
|
|
5887
|
-
// The first filter containing a pattern that matches a file store will
|
|
5888
|
-
//
|
|
5887
|
+
// The first filter containing a pattern that matches a file store will be
|
|
5888
|
+
// used.
|
|
5889
5889
|
oneof pattern {
|
|
5890
5890
|
// Optional. A collection of regular expressions to match a file store
|
|
5891
5891
|
// against.
|
|
@@ -8700,3 +8700,11 @@ message ProcessingLocation {
|
|
|
8700
8700
|
// Image processing will fall back using this configuration.
|
|
8701
8701
|
ImageFallbackLocation image_fallback_location = 1;
|
|
8702
8702
|
}
|
|
8703
|
+
|
|
8704
|
+
// Collection of findings saved to a Cloud Storage bucket. This is used as the
|
|
8705
|
+
// proto schema for textproto files created when specifying a cloud storage
|
|
8706
|
+
// path to save inspection findings.
|
|
8707
|
+
message SaveToGcsFindingsOutput {
|
|
8708
|
+
// List of findings.
|
|
8709
|
+
repeated Finding findings = 1;
|
|
8710
|
+
}
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -2211,7 +2211,7 @@ export namespace google {
|
|
|
2211
2211
|
type?: (google.privacy.dlp.v2.ByteContentItem.BytesType|keyof typeof google.privacy.dlp.v2.ByteContentItem.BytesType|null);
|
|
2212
2212
|
|
|
2213
2213
|
/** ByteContentItem data */
|
|
2214
|
-
data?: (Uint8Array|string|null);
|
|
2214
|
+
data?: (Uint8Array|Buffer|string|null);
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
2217
|
/** Represents a ByteContentItem. */
|
|
@@ -2227,7 +2227,7 @@ export namespace google {
|
|
|
2227
2227
|
public type: (google.privacy.dlp.v2.ByteContentItem.BytesType|keyof typeof google.privacy.dlp.v2.ByteContentItem.BytesType);
|
|
2228
2228
|
|
|
2229
2229
|
/** ByteContentItem data. */
|
|
2230
|
-
public data: (Uint8Array|string);
|
|
2230
|
+
public data: (Uint8Array|Buffer|string);
|
|
2231
2231
|
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Creates a new ByteContentItem instance using the specified properties.
|
|
@@ -4479,7 +4479,7 @@ export namespace google {
|
|
|
4479
4479
|
interface IRedactImageResponse {
|
|
4480
4480
|
|
|
4481
4481
|
/** RedactImageResponse redactedImage */
|
|
4482
|
-
redactedImage?: (Uint8Array|string|null);
|
|
4482
|
+
redactedImage?: (Uint8Array|Buffer|string|null);
|
|
4483
4483
|
|
|
4484
4484
|
/** RedactImageResponse extractedText */
|
|
4485
4485
|
extractedText?: (string|null);
|
|
@@ -4498,7 +4498,7 @@ export namespace google {
|
|
|
4498
4498
|
constructor(properties?: google.privacy.dlp.v2.IRedactImageResponse);
|
|
4499
4499
|
|
|
4500
4500
|
/** RedactImageResponse redactedImage. */
|
|
4501
|
-
public redactedImage: (Uint8Array|string);
|
|
4501
|
+
public redactedImage: (Uint8Array|Buffer|string);
|
|
4502
4502
|
|
|
4503
4503
|
/** RedactImageResponse extractedText. */
|
|
4504
4504
|
public extractedText: string;
|
|
@@ -13776,7 +13776,7 @@ export namespace google {
|
|
|
13776
13776
|
interface IUnwrappedCryptoKey {
|
|
13777
13777
|
|
|
13778
13778
|
/** UnwrappedCryptoKey key */
|
|
13779
|
-
key?: (Uint8Array|string|null);
|
|
13779
|
+
key?: (Uint8Array|Buffer|string|null);
|
|
13780
13780
|
}
|
|
13781
13781
|
|
|
13782
13782
|
/** Represents an UnwrappedCryptoKey. */
|
|
@@ -13789,7 +13789,7 @@ export namespace google {
|
|
|
13789
13789
|
constructor(properties?: google.privacy.dlp.v2.IUnwrappedCryptoKey);
|
|
13790
13790
|
|
|
13791
13791
|
/** UnwrappedCryptoKey key. */
|
|
13792
|
-
public key: (Uint8Array|string);
|
|
13792
|
+
public key: (Uint8Array|Buffer|string);
|
|
13793
13793
|
|
|
13794
13794
|
/**
|
|
13795
13795
|
* Creates a new UnwrappedCryptoKey instance using the specified properties.
|
|
@@ -13873,7 +13873,7 @@ export namespace google {
|
|
|
13873
13873
|
interface IKmsWrappedCryptoKey {
|
|
13874
13874
|
|
|
13875
13875
|
/** KmsWrappedCryptoKey wrappedKey */
|
|
13876
|
-
wrappedKey?: (Uint8Array|string|null);
|
|
13876
|
+
wrappedKey?: (Uint8Array|Buffer|string|null);
|
|
13877
13877
|
|
|
13878
13878
|
/** KmsWrappedCryptoKey cryptoKeyName */
|
|
13879
13879
|
cryptoKeyName?: (string|null);
|
|
@@ -13889,7 +13889,7 @@ export namespace google {
|
|
|
13889
13889
|
constructor(properties?: google.privacy.dlp.v2.IKmsWrappedCryptoKey);
|
|
13890
13890
|
|
|
13891
13891
|
/** KmsWrappedCryptoKey wrappedKey. */
|
|
13892
|
-
public wrappedKey: (Uint8Array|string);
|
|
13892
|
+
public wrappedKey: (Uint8Array|Buffer|string);
|
|
13893
13893
|
|
|
13894
13894
|
/** KmsWrappedCryptoKey cryptoKeyName. */
|
|
13895
13895
|
public cryptoKeyName: string;
|
|
@@ -37606,6 +37606,103 @@ export namespace google {
|
|
|
37606
37606
|
}
|
|
37607
37607
|
}
|
|
37608
37608
|
|
|
37609
|
+
/** Properties of a SaveToGcsFindingsOutput. */
|
|
37610
|
+
interface ISaveToGcsFindingsOutput {
|
|
37611
|
+
|
|
37612
|
+
/** SaveToGcsFindingsOutput findings */
|
|
37613
|
+
findings?: (google.privacy.dlp.v2.IFinding[]|null);
|
|
37614
|
+
}
|
|
37615
|
+
|
|
37616
|
+
/** Represents a SaveToGcsFindingsOutput. */
|
|
37617
|
+
class SaveToGcsFindingsOutput implements ISaveToGcsFindingsOutput {
|
|
37618
|
+
|
|
37619
|
+
/**
|
|
37620
|
+
* Constructs a new SaveToGcsFindingsOutput.
|
|
37621
|
+
* @param [properties] Properties to set
|
|
37622
|
+
*/
|
|
37623
|
+
constructor(properties?: google.privacy.dlp.v2.ISaveToGcsFindingsOutput);
|
|
37624
|
+
|
|
37625
|
+
/** SaveToGcsFindingsOutput findings. */
|
|
37626
|
+
public findings: google.privacy.dlp.v2.IFinding[];
|
|
37627
|
+
|
|
37628
|
+
/**
|
|
37629
|
+
* Creates a new SaveToGcsFindingsOutput instance using the specified properties.
|
|
37630
|
+
* @param [properties] Properties to set
|
|
37631
|
+
* @returns SaveToGcsFindingsOutput instance
|
|
37632
|
+
*/
|
|
37633
|
+
public static create(properties?: google.privacy.dlp.v2.ISaveToGcsFindingsOutput): google.privacy.dlp.v2.SaveToGcsFindingsOutput;
|
|
37634
|
+
|
|
37635
|
+
/**
|
|
37636
|
+
* Encodes the specified SaveToGcsFindingsOutput message. Does not implicitly {@link google.privacy.dlp.v2.SaveToGcsFindingsOutput.verify|verify} messages.
|
|
37637
|
+
* @param message SaveToGcsFindingsOutput message or plain object to encode
|
|
37638
|
+
* @param [writer] Writer to encode to
|
|
37639
|
+
* @returns Writer
|
|
37640
|
+
*/
|
|
37641
|
+
public static encode(message: google.privacy.dlp.v2.ISaveToGcsFindingsOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
37642
|
+
|
|
37643
|
+
/**
|
|
37644
|
+
* Encodes the specified SaveToGcsFindingsOutput message, length delimited. Does not implicitly {@link google.privacy.dlp.v2.SaveToGcsFindingsOutput.verify|verify} messages.
|
|
37645
|
+
* @param message SaveToGcsFindingsOutput message or plain object to encode
|
|
37646
|
+
* @param [writer] Writer to encode to
|
|
37647
|
+
* @returns Writer
|
|
37648
|
+
*/
|
|
37649
|
+
public static encodeDelimited(message: google.privacy.dlp.v2.ISaveToGcsFindingsOutput, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
37650
|
+
|
|
37651
|
+
/**
|
|
37652
|
+
* Decodes a SaveToGcsFindingsOutput message from the specified reader or buffer.
|
|
37653
|
+
* @param reader Reader or buffer to decode from
|
|
37654
|
+
* @param [length] Message length if known beforehand
|
|
37655
|
+
* @returns SaveToGcsFindingsOutput
|
|
37656
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37657
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37658
|
+
*/
|
|
37659
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.SaveToGcsFindingsOutput;
|
|
37660
|
+
|
|
37661
|
+
/**
|
|
37662
|
+
* Decodes a SaveToGcsFindingsOutput message from the specified reader or buffer, length delimited.
|
|
37663
|
+
* @param reader Reader or buffer to decode from
|
|
37664
|
+
* @returns SaveToGcsFindingsOutput
|
|
37665
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37666
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37667
|
+
*/
|
|
37668
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.SaveToGcsFindingsOutput;
|
|
37669
|
+
|
|
37670
|
+
/**
|
|
37671
|
+
* Verifies a SaveToGcsFindingsOutput message.
|
|
37672
|
+
* @param message Plain object to verify
|
|
37673
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
37674
|
+
*/
|
|
37675
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
37676
|
+
|
|
37677
|
+
/**
|
|
37678
|
+
* Creates a SaveToGcsFindingsOutput message from a plain object. Also converts values to their respective internal types.
|
|
37679
|
+
* @param object Plain object
|
|
37680
|
+
* @returns SaveToGcsFindingsOutput
|
|
37681
|
+
*/
|
|
37682
|
+
public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.SaveToGcsFindingsOutput;
|
|
37683
|
+
|
|
37684
|
+
/**
|
|
37685
|
+
* Creates a plain object from a SaveToGcsFindingsOutput message. Also converts values to other types if specified.
|
|
37686
|
+
* @param message SaveToGcsFindingsOutput
|
|
37687
|
+
* @param [options] Conversion options
|
|
37688
|
+
* @returns Plain object
|
|
37689
|
+
*/
|
|
37690
|
+
public static toObject(message: google.privacy.dlp.v2.SaveToGcsFindingsOutput, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
37691
|
+
|
|
37692
|
+
/**
|
|
37693
|
+
* Converts this SaveToGcsFindingsOutput to JSON.
|
|
37694
|
+
* @returns JSON object
|
|
37695
|
+
*/
|
|
37696
|
+
public toJSON(): { [k: string]: any };
|
|
37697
|
+
|
|
37698
|
+
/**
|
|
37699
|
+
* Gets the default type url for SaveToGcsFindingsOutput
|
|
37700
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
37701
|
+
* @returns The default type url
|
|
37702
|
+
*/
|
|
37703
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
37704
|
+
}
|
|
37705
|
+
|
|
37609
37706
|
/** Properties of an InfoType. */
|
|
37610
37707
|
interface IInfoType {
|
|
37611
37708
|
|
|
@@ -42076,6 +42173,9 @@ export namespace google {
|
|
|
42076
42173
|
|
|
42077
42174
|
/** Publishing protoReferenceDocumentationUri */
|
|
42078
42175
|
protoReferenceDocumentationUri?: (string|null);
|
|
42176
|
+
|
|
42177
|
+
/** Publishing restReferenceDocumentationUri */
|
|
42178
|
+
restReferenceDocumentationUri?: (string|null);
|
|
42079
42179
|
}
|
|
42080
42180
|
|
|
42081
42181
|
/** Represents a Publishing. */
|
|
@@ -42117,6 +42217,9 @@ export namespace google {
|
|
|
42117
42217
|
/** Publishing protoReferenceDocumentationUri. */
|
|
42118
42218
|
public protoReferenceDocumentationUri: string;
|
|
42119
42219
|
|
|
42220
|
+
/** Publishing restReferenceDocumentationUri. */
|
|
42221
|
+
public restReferenceDocumentationUri: string;
|
|
42222
|
+
|
|
42120
42223
|
/**
|
|
42121
42224
|
* Creates a new Publishing instance using the specified properties.
|
|
42122
42225
|
* @param [properties] Properties to set
|
|
@@ -46334,6 +46437,9 @@ export namespace google {
|
|
|
46334
46437
|
|
|
46335
46438
|
/** ServiceOptions .google.api.oauthScopes */
|
|
46336
46439
|
".google.api.oauthScopes"?: (string|null);
|
|
46440
|
+
|
|
46441
|
+
/** ServiceOptions .google.api.apiVersion */
|
|
46442
|
+
".google.api.apiVersion"?: (string|null);
|
|
46337
46443
|
}
|
|
46338
46444
|
|
|
46339
46445
|
/** Represents a ServiceOptions. */
|
|
@@ -46582,7 +46688,7 @@ export namespace google {
|
|
|
46582
46688
|
doubleValue?: (number|null);
|
|
46583
46689
|
|
|
46584
46690
|
/** UninterpretedOption stringValue */
|
|
46585
|
-
stringValue?: (Uint8Array|string|null);
|
|
46691
|
+
stringValue?: (Uint8Array|Buffer|string|null);
|
|
46586
46692
|
|
|
46587
46693
|
/** UninterpretedOption aggregateValue */
|
|
46588
46694
|
aggregateValue?: (string|null);
|
|
@@ -46613,7 +46719,7 @@ export namespace google {
|
|
|
46613
46719
|
public doubleValue: number;
|
|
46614
46720
|
|
|
46615
46721
|
/** UninterpretedOption stringValue. */
|
|
46616
|
-
public stringValue: (Uint8Array|string);
|
|
46722
|
+
public stringValue: (Uint8Array|Buffer|string);
|
|
46617
46723
|
|
|
46618
46724
|
/** UninterpretedOption aggregateValue. */
|
|
46619
46725
|
public aggregateValue: string;
|
|
@@ -48043,7 +48149,7 @@ export namespace google {
|
|
|
48043
48149
|
type_url?: (string|null);
|
|
48044
48150
|
|
|
48045
48151
|
/** Any value */
|
|
48046
|
-
value?: (Uint8Array|string|null);
|
|
48152
|
+
value?: (Uint8Array|Buffer|string|null);
|
|
48047
48153
|
}
|
|
48048
48154
|
|
|
48049
48155
|
/** Represents an Any. */
|
|
@@ -48059,7 +48165,7 @@ export namespace google {
|
|
|
48059
48165
|
public type_url: string;
|
|
48060
48166
|
|
|
48061
48167
|
/** Any value. */
|
|
48062
|
-
public value: (Uint8Array|string);
|
|
48168
|
+
public value: (Uint8Array|Buffer|string);
|
|
48063
48169
|
|
|
48064
48170
|
/**
|
|
48065
48171
|
* Creates a new Any instance using the specified properties.
|