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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DlpJob

Returns a new instance of GooglePrivacyDlpV2DlpJob.



2212
2213
2214
# File 'generated/google/apis/dlp_v2/classes.rb', line 2212

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)


2164
2165
2166
# File 'generated/google/apis/dlp_v2/classes.rb', line 2164

def create_time
  @create_time
end

#end_timeString

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

Returns:

  • (String)


2169
2170
2171
# File 'generated/google/apis/dlp_v2/classes.rb', line 2169

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



2174
2175
2176
# File 'generated/google/apis/dlp_v2/classes.rb', line 2174

def errors
  @errors
end

#inspect_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectDataSourceDetails

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



2179
2180
2181
# File 'generated/google/apis/dlp_v2/classes.rb', line 2179

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)


2185
2186
2187
# File 'generated/google/apis/dlp_v2/classes.rb', line 2185

def job_trigger_name
  @job_trigger_name
end

#nameString

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

Returns:

  • (String)


2190
2191
2192
# File 'generated/google/apis/dlp_v2/classes.rb', line 2190

def name
  @name
end

#risk_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails

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



2195
2196
2197
# File 'generated/google/apis/dlp_v2/classes.rb', line 2195

def risk_details
  @risk_details
end

#start_timeString

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

Returns:

  • (String)


2200
2201
2202
# File 'generated/google/apis/dlp_v2/classes.rb', line 2200

def start_time
  @start_time
end

#stateString

State of a job. Corresponds to the JSON property state

Returns:

  • (String)


2205
2206
2207
# File 'generated/google/apis/dlp_v2/classes.rb', line 2205

def state
  @state
end

#typeString

The type of job. Corresponds to the JSON property type

Returns:

  • (String)


2210
2211
2212
# File 'generated/google/apis/dlp_v2/classes.rb', line 2210

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
# File 'generated/google/apis/dlp_v2/classes.rb', line 2217

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