Class: Google::Apis::SecuritycenterV1::Status

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

Returns a new instance of Status.



13511
13512
13513
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13511

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


13499
13500
13501
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13499

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

  • (Array<Hash<String,Object>>)


13504
13505
13506
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13504

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


13509
13510
13511
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13509

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13516
13517
13518
13519
13520
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13516

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @details = args[:details] if args.key?(:details)
  @message = args[:message] if args.key?(:message)
end