Class: Google::Apis::FirebaserulesV1::Issue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaserules_v1/classes.rb,
generated/google/apis/firebaserules_v1/representations.rb,
generated/google/apis/firebaserules_v1/representations.rb

Overview

Issues include warnings, errors, and deprecation notices.

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

Returns a new instance of Issue



169
170
171
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 169

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

Instance Attribute Details

#descriptionString

Short error description. Corresponds to the JSON property description

Returns:

  • (String)


156
157
158
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 156

def description
  @description
end

#severityString

The severity of the issue. Corresponds to the JSON property severity

Returns:

  • (String)


167
168
169
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 167

def severity
  @severity
end

#source_positionGoogle::Apis::FirebaserulesV1::SourcePosition

Position in the Source content including its line, column number, and an index of the File in the Source message. Used for debug purposes. Corresponds to the JSON property sourcePosition



162
163
164
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 162

def source_position
  @source_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 174

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @source_position = args[:source_position] if args.key?(:source_position)
  @severity = args[:severity] if args.key?(:severity)
end