Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Job

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) ⇒ GoogleCloudSecuritycenterV2Job

Returns a new instance of GoogleCloudSecuritycenterV2Job.



8334
8335
8336
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8334

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


8317
8318
8319
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8317

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


8322
8323
8324
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8322

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8327
8328
8329
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8327

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


8332
8333
8334
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8332

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8339
8340
8341
8342
8343
8344
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8339

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