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.



2525
2526
2527
# File 'lib/google/apis/dlp_v2/classes.rb', line 2525

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

Instance Attribute Details

#action_detailsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2ActionDetails>

Events that should occur after the job has completed. Corresponds to the JSON property actionDetails



2472
2473
2474
# File 'lib/google/apis/dlp_v2/classes.rb', line 2472

def action_details
  @action_details
end

#create_timeString

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

Returns:

  • (String)


2477
2478
2479
# File 'lib/google/apis/dlp_v2/classes.rb', line 2477

def create_time
  @create_time
end

#end_timeString

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

Returns:

  • (String)


2482
2483
2484
# File 'lib/google/apis/dlp_v2/classes.rb', line 2482

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



2487
2488
2489
# File 'lib/google/apis/dlp_v2/classes.rb', line 2487

def errors
  @errors
end

#inspect_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2InspectDataSourceDetails

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



2492
2493
2494
# File 'lib/google/apis/dlp_v2/classes.rb', line 2492

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)


2498
2499
2500
# File 'lib/google/apis/dlp_v2/classes.rb', line 2498

def job_trigger_name
  @job_trigger_name
end

#nameString

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

Returns:

  • (String)


2503
2504
2505
# File 'lib/google/apis/dlp_v2/classes.rb', line 2503

def name
  @name
end

#risk_detailsGoogle::Apis::DlpV2::GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails

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



2508
2509
2510
# File 'lib/google/apis/dlp_v2/classes.rb', line 2508

def risk_details
  @risk_details
end

#start_timeString

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

Returns:

  • (String)


2513
2514
2515
# File 'lib/google/apis/dlp_v2/classes.rb', line 2513

def start_time
  @start_time
end

#stateString

State of a job. Corresponds to the JSON property state

Returns:

  • (String)


2518
2519
2520
# File 'lib/google/apis/dlp_v2/classes.rb', line 2518

def state
  @state
end

#typeString

The type of job. Corresponds to the JSON property type

Returns:

  • (String)


2523
2524
2525
# File 'lib/google/apis/dlp_v2/classes.rb', line 2523

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
# File 'lib/google/apis/dlp_v2/classes.rb', line 2530

def update!(**args)
  @action_details = args[:action_details] if args.key?(:action_details)
  @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