Class: Google::Apis::ServicemanagementV1::Diagnostic
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::Diagnostic
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicemanagement_v1/classes.rb,
lib/google/apis/servicemanagement_v1/representations.rb,
lib/google/apis/servicemanagement_v1/representations.rb
Overview
Represents a diagnostic message (error or warning)
Instance Attribute Summary collapse
-
#kind ⇒ String
The kind of diagnostic information provided.
-
#location ⇒ String
File name and line number of the error or warning.
-
#message ⇒ String
Message describing the error or warning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Diagnostic
constructor
A new instance of Diagnostic.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Diagnostic
Returns a new instance of Diagnostic.
1152 1153 1154 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The kind of diagnostic information provided.
Corresponds to the JSON property kind
1140 1141 1142 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1140 def kind @kind end |
#location ⇒ String
File name and line number of the error or warning.
Corresponds to the JSON property location
1145 1146 1147 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1145 def location @location end |
#message ⇒ String
Message describing the error or warning.
Corresponds to the JSON property message
1150 1151 1152 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1150 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1157 1158 1159 1160 1161 |
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1157 def update!(**args) @kind = args[:kind] if args.key?(:kind) @location = args[:location] if args.key?(:location) @message = args[:message] if args.key?(:message) end |