Class DlpJob (3.11.1)

DlpJob(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Combines all of the information about a DLP job.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
name str
The server-assigned name.
type_ google.cloud.dlp_v2.types.DlpJobType
The type of job.
state google.cloud.dlp_v2.types.DlpJob.JobState
State of a job.
risk_details google.cloud.dlp_v2.types.AnalyzeDataSourceRiskDetails
Results from analyzing risk of a data source. This field is a member of oneof_ details.
inspect_details google.cloud.dlp_v2.types.InspectDataSourceDetails
Results from inspecting a data source. This field is a member of oneof_ details.
create_time google.protobuf.timestamp_pb2.Timestamp
Time when the job was created.
start_time google.protobuf.timestamp_pb2.Timestamp
Time when the job started.
end_time google.protobuf.timestamp_pb2.Timestamp
Time when the job finished.
job_trigger_name str
If created by a job trigger, the resource name of the trigger that instantiated the job.
errors MutableSequence[google.cloud.dlp_v2.types.Error]
A stream of errors encountered running the job.

Classes

JobState

JobState(value)

Possible states of a job. New items may be added.

Values: JOB_STATE_UNSPECIFIED (0): Unused. PENDING (1): The job has not yet started. RUNNING (2): The job is currently running. Once a job has finished it will transition to FAILED or DONE. DONE (3): The job is no longer running. CANCELED (4): The job was canceled before it could be completed. FAILED (5): The job had an error and did not complete. ACTIVE (6): The job is currently accepting findings via hybridInspect. A hybrid job in ACTIVE state may continue to have findings added to it through the calling of hybridInspect. After the job has finished no more calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.