Class: Google::Apis::SecuritycenterV1::Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Job

Returns a new instance of Job.



10764
10765
10766
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10764

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


10747
10748
10749
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10747

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


10752
10753
10754
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10752

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


10757
10758
10759
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10757

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


10762
10763
10764
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10762

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10769
10770
10771
10772
10773
10774
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10769

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end