Class: Google::Apis::SecuritycenterV1beta1::Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Job

Returns a new instance of Job.



10282
10283
10284
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10282

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


10265
10266
10267
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10265

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


10270
10271
10272
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10270

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


10275
10276
10277
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10275

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


10280
10281
10282
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10280

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10287
10288
10289
10290
10291
10292
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 10287

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