Class: Google::Apis::SecuritycenterV1beta2::Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Job

Returns a new instance of Job.



9922
9923
9924
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9922

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


9905
9906
9907
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9905

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


9910
9911
9912
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9910

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9915
9916
9917
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9915

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


9920
9921
9922
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9920

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9927
9928
9929
9930
9931
9932
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9927

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