Represents a JobTrigger.
Package
@google-cloud/dlpConstructors
(constructor)(properties)
constructor(properties?: google.privacy.dlp.v2.IJobTrigger);
Constructs a new JobTrigger.
Parameter | |
---|---|
Name | Description |
properties |
IJobTrigger
Properties to set |
Properties
createTime
public createTime?: (google.protobuf.ITimestamp|null);
JobTrigger createTime.
description
public description: string;
JobTrigger description.
displayName
public displayName: string;
JobTrigger displayName.
errors
public errors: google.privacy.dlp.v2.IError[];
JobTrigger errors.
inspectJob
public inspectJob?: (google.privacy.dlp.v2.IInspectJobConfig|null);
JobTrigger inspectJob.
job
public job?: "inspectJob";
JobTrigger job.
lastRunTime
public lastRunTime?: (google.protobuf.ITimestamp|null);
JobTrigger lastRunTime.
name
public name: string;
JobTrigger name.
status
public status: (google.privacy.dlp.v2.JobTrigger.Status|keyof typeof google.privacy.dlp.v2.JobTrigger.Status);
JobTrigger status.
triggers
public triggers: google.privacy.dlp.v2.JobTrigger.ITrigger[];
JobTrigger triggers.
updateTime
public updateTime?: (google.protobuf.ITimestamp|null);
JobTrigger updateTime.
Methods
create(properties)
public static create(properties?: google.privacy.dlp.v2.IJobTrigger): google.privacy.dlp.v2.JobTrigger;
Creates a new JobTrigger instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IJobTrigger
Properties to set |
Returns | |
---|---|
Type | Description |
JobTrigger |
JobTrigger instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.JobTrigger;
Decodes a JobTrigger message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
JobTrigger |
JobTrigger |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.JobTrigger;
Decodes a JobTrigger message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
JobTrigger |
JobTrigger |
encode(message, writer)
public static encode(message: google.privacy.dlp.v2.IJobTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified JobTrigger message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IJobTrigger
JobTrigger message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.privacy.dlp.v2.IJobTrigger, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified JobTrigger message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IJobTrigger
JobTrigger message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.privacy.dlp.v2.JobTrigger;
Creates a JobTrigger message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
JobTrigger |
JobTrigger |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for JobTrigger
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this JobTrigger to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.privacy.dlp.v2.JobTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a JobTrigger message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
JobTrigger
JobTrigger |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a JobTrigger message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|