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

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

Overview

Issues include warnings, errors, and deprecation notices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Issue

Returns a new instance of Issue.



270
271
272
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 270

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

Instance Attribute Details

#descriptionString

Short error description. Corresponds to the JSON property description

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 257

def description
  @description
end

#severityString

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

Returns:

  • (String)


262
263
264
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 262

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



268
269
270
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 268

def source_position
  @source_position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



275
276
277
278
279
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 275

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