Class: Google::Apis::IamV1::LintResult

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

Overview

Structured response of a single validation unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LintResult

Returns a new instance of LintResult.



908
909
910
# File 'lib/google/apis/iam_v1/classes.rb', line 908

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

Instance Attribute Details

#debug_messageString

Human readable debug message associated with the issue. Corresponds to the JSON property debugMessage

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/iam_v1/classes.rb', line 874

def debug_message
  @debug_message
end

#field_nameString

The name of the field for which this lint result is about. For nested messages field_name consists of names of the embedded fields separated by period character. The top-level qualifier is the input object to lint in the request. For example, the field_name value condition.expression identifies a lint result for the expression field of the provided condition. Corresponds to the JSON property fieldName

Returns:

  • (String)


883
884
885
# File 'lib/google/apis/iam_v1/classes.rb', line 883

def field_name
  @field_name
end

#levelString

The validation unit level. Corresponds to the JSON property level

Returns:

  • (String)


888
889
890
# File 'lib/google/apis/iam_v1/classes.rb', line 888

def level
  @level
end

#location_offsetFixnum

0-based character position of problematic construct within the object identified by field_name. Currently, this is populated only for condition expression. Corresponds to the JSON property locationOffset

Returns:

  • (Fixnum)


895
896
897
# File 'lib/google/apis/iam_v1/classes.rb', line 895

def location_offset
  @location_offset
end

#severityString

The validation unit severity. Corresponds to the JSON property severity

Returns:

  • (String)


900
901
902
# File 'lib/google/apis/iam_v1/classes.rb', line 900

def severity
  @severity
end

#validation_unit_nameString

The validation unit name, for instance "lintValidationUnits/ ConditionComplexityCheck". Corresponds to the JSON property validationUnitName

Returns:

  • (String)


906
907
908
# File 'lib/google/apis/iam_v1/classes.rb', line 906

def validation_unit_name
  @validation_unit_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



913
914
915
916
917
918
919
920
# File 'lib/google/apis/iam_v1/classes.rb', line 913

def update!(**args)
  @debug_message = args[:debug_message] if args.key?(:debug_message)
  @field_name = args[:field_name] if args.key?(:field_name)
  @level = args[:level] if args.key?(:level)
  @location_offset = args[:location_offset] if args.key?(:location_offset)
  @severity = args[:severity] if args.key?(:severity)
  @validation_unit_name = args[:validation_unit_name] if args.key?(:validation_unit_name)
end