Class: Google::Apis::ServicemanagementV1::Diagnostic
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::Diagnostic
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Diagnostic
Returns a new instance of Diagnostic
3545 3546 3547 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The kind of diagnostic information provided.
Corresponds to the JSON property kind
3543 3544 3545 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3543 def kind @kind end |
#location ⇒ String
File name and line number of the error or warning.
Corresponds to the JSON property location
3538 3539 3540 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3538 def location @location end |
#message ⇒ String
Message describing the error or warning.
Corresponds to the JSON property message
3533 3534 3535 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3533 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3550 3551 3552 3553 3554 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3550 def update!(**args) @message = args[:message] if args.key?(:message) @location = args[:location] if args.key?(:location) @kind = args[:kind] if args.key?(:kind) end |