Class: Google::Apis::ServicemanagementV1::Diagnostic

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Diagnostic

Returns a new instance of Diagnostic.



1185
1186
1187
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1185

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

Instance Attribute Details

#kindString

The kind of diagnostic information provided. Corresponds to the JSON property kind

Returns:

  • (String)


1173
1174
1175
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1173

def kind
  @kind
end

#locationString

File name and line number of the error or warning. Corresponds to the JSON property location

Returns:

  • (String)


1178
1179
1180
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1178

def location
  @location
end

#messageString

Message describing the error or warning. Corresponds to the JSON property message

Returns:

  • (String)


1183
1184
1185
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1183

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1190
1191
1192
1193
1194
# File 'lib/google/apis/servicemanagement_v1/classes.rb', line 1190

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