Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

Combines all of the information about a DLP job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DlpJob

Returns a new instance of GooglePrivacyDlpV2DlpJob.



2119
2120
2121
# File 'generated/google/apis/dlp_v2/classes.rb', line 2119

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Time when the job was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2071
2072
2073
# File 'generated/google/apis/dlp_v2/classes.rb', line 2071

def create_time
  @create_time
end

#end_timeString

Time when the job finished. Corresponds to the JSON property endTime

Returns:

  • (String)


2076
2077
2078
# File 'generated/google/apis/dlp_v2/classes.rb', line 2076

def end_time
  @end_time
end

#errorsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>

A stream of errors encountered running the job. Corresponds to the JSON property errors



2081
2082
2083
# File 'generated/google/apis/dlp_v2/classes.rb', line 2081

def errors
  @errors
end

#inspect_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectDataSourceDetails

The results of an inspect DataSource job. Corresponds to the JSON property inspectDetails



2086
2087
2088
# File 'generated/google/apis/dlp_v2/classes.rb', line 2086

def inspect_details
  @inspect_details
end

#job_trigger_nameString

If created by a job trigger, the resource name of the trigger that instantiated the job. Corresponds to the JSON property jobTriggerName

Returns:

  • (String)


2092
2093
2094
# File 'generated/google/apis/dlp_v2/classes.rb', line 2092

def job_trigger_name
  @job_trigger_name
end

#nameString

The server-assigned name. Corresponds to the JSON property name

Returns:

  • (String)


2097
2098
2099
# File 'generated/google/apis/dlp_v2/classes.rb', line 2097

def name
  @name
end

#risk_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails

Result of a risk analysis operation request. Corresponds to the JSON property riskDetails



2102
2103
2104
# File 'generated/google/apis/dlp_v2/classes.rb', line 2102

def risk_details
  @risk_details
end

#start_timeString

Time when the job started. Corresponds to the JSON property startTime

Returns:

  • (String)


2107
2108
2109
# File 'generated/google/apis/dlp_v2/classes.rb', line 2107

def start_time
  @start_time
end

#stateString

State of a job. Corresponds to the JSON property state

Returns:

  • (String)


2112
2113
2114
# File 'generated/google/apis/dlp_v2/classes.rb', line 2112

def state
  @state
end

#typeString

The type of job. Corresponds to the JSON property type

Returns:

  • (String)


2117
2118
2119
# File 'generated/google/apis/dlp_v2/classes.rb', line 2117

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
# File 'generated/google/apis/dlp_v2/classes.rb', line 2124

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @errors = args[:errors] if args.key?(:errors)
  @inspect_details = args[:inspect_details] if args.key?(:inspect_details)
  @job_trigger_name = args[:job_trigger_name] if args.key?(:job_trigger_name)
  @name = args[:name] if args.key?(:name)
  @risk_details = args[:risk_details] if args.key?(:risk_details)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end