Class: Google::Apis::SecuritycenterV1beta1::Status

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

Returns a new instance of Status.



12051
12052
12053
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12051

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

Instance Attribute Details

#codeFixnum

Corresponds to the JSON property code

Returns:

  • (Fixnum)


12039
12040
12041
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12039

def code
  @code
end

#detailsArray<Hash<String,Object>>

Corresponds to the JSON property details

Returns:

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


12044
12045
12046
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12044

def details
  @details
end

#messageString

Corresponds to the JSON property message

Returns:

  • (String)


12049
12050
12051
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12049

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12056
12057
12058
12059
12060
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 12056

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