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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Diagnostic

Returns a new instance of Diagnostic



317
318
319
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 317

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 315

def kind
  @kind
end

#locationString

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

Returns:

  • (String)


310
311
312
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 310

def location
  @location
end

#messageString

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

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 305

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



322
323
324
325
326
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 322

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