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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/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.



2412
2413
2414
# File 'lib/google/apis/dlp_v2/classes.rb', line 2412

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)


2364
2365
2366
# File 'lib/google/apis/dlp_v2/classes.rb', line 2364

def create_time
  @create_time
end

#end_timeString

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

Returns:

  • (String)


2369
2370
2371
# File 'lib/google/apis/dlp_v2/classes.rb', line 2369

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



2374
2375
2376
# File 'lib/google/apis/dlp_v2/classes.rb', line 2374

def errors
  @errors
end

#inspect_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectDataSourceDetails

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



2379
2380
2381
# File 'lib/google/apis/dlp_v2/classes.rb', line 2379

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)


2385
2386
2387
# File 'lib/google/apis/dlp_v2/classes.rb', line 2385

def job_trigger_name
  @job_trigger_name
end

#nameString

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

Returns:

  • (String)


2390
2391
2392
# File 'lib/google/apis/dlp_v2/classes.rb', line 2390

def name
  @name
end

#risk_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails

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



2395
2396
2397
# File 'lib/google/apis/dlp_v2/classes.rb', line 2395

def risk_details
  @risk_details
end

#start_timeString

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

Returns:

  • (String)


2400
2401
2402
# File 'lib/google/apis/dlp_v2/classes.rb', line 2400

def start_time
  @start_time
end

#stateString

State of a job. Corresponds to the JSON property state

Returns:

  • (String)


2405
2406
2407
# File 'lib/google/apis/dlp_v2/classes.rb', line 2405

def state
  @state
end

#typeString

The type of job. Corresponds to the JSON property type

Returns:

  • (String)


2410
2411
2412
# File 'lib/google/apis/dlp_v2/classes.rb', line 2410

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
# File 'lib/google/apis/dlp_v2/classes.rb', line 2417

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