Class: Google::Apis::IamV1::LintResult
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::LintResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb
Overview
Structured response of a single validation unit.
Instance Attribute Summary collapse
-
#binding_ordinal ⇒ Fixnum
0-based index ordinality of the binding in the input object associated with this result.
-
#debug_message ⇒ String
Human readable debug message associated with the issue.
-
#field_name ⇒ String
The name of the field for which this lint result is about.
-
#level ⇒ String
The validation unit level.
-
#location_offset ⇒ Fixnum
0-based character position of problematic construct within the object identified by
field_name
. -
#severity ⇒ String
The validation unit severity.
-
#validation_unit_name ⇒ String
The validation unit name, for instance “lintValidationUnits/ConditionComplexityCheck”.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LintResult
constructor
A new instance of LintResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LintResult
Returns a new instance of LintResult
610 611 612 |
# File 'generated/google/apis/iam_v1/classes.rb', line 610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#binding_ordinal ⇒ Fixnum
0-based index ordinality of the binding in the input object associated
with this result.
This field is populated only if the input object to lint is of type
google.iam.v1.Policy, which can comprise more than one binding.
It is set to -1 if the result is not associated with any particular
binding and only targets the policy as a whole, such as results about
policy size violations.
Corresponds to the JSON property bindingOrdinal
567 568 569 |
# File 'generated/google/apis/iam_v1/classes.rb', line 567 def binding_ordinal @binding_ordinal end |
#debug_message ⇒ String
Human readable debug message associated with the issue.
Corresponds to the JSON property debugMessage
572 573 574 |
# File 'generated/google/apis/iam_v1/classes.rb', line 572 def @debug_message end |
#field_name ⇒ String
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 instance, if the lint request is on a
google.iam.v1.Policy and this lint result is about a condition
expression of one of the input policy bindings, the field would be
populated as policy.bindings.condition.expression
.
This field does not identify the ordinality of the repetitive fields (for
instance bindings in a policy).
Corresponds to the JSON property fieldName
585 586 587 |
# File 'generated/google/apis/iam_v1/classes.rb', line 585 def field_name @field_name end |
#level ⇒ String
The validation unit level.
Corresponds to the JSON property level
590 591 592 |
# File 'generated/google/apis/iam_v1/classes.rb', line 590 def level @level end |
#location_offset ⇒ Fixnum
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
597 598 599 |
# File 'generated/google/apis/iam_v1/classes.rb', line 597 def location_offset @location_offset end |
#severity ⇒ String
The validation unit severity.
Corresponds to the JSON property severity
602 603 604 |
# File 'generated/google/apis/iam_v1/classes.rb', line 602 def severity @severity end |
#validation_unit_name ⇒ String
The validation unit name, for instance
“lintValidationUnits/ConditionComplexityCheck”.
Corresponds to the JSON property validationUnitName
608 609 610 |
# File 'generated/google/apis/iam_v1/classes.rb', line 608 def validation_unit_name @validation_unit_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
615 616 617 618 619 620 621 622 623 |
# File 'generated/google/apis/iam_v1/classes.rb', line 615 def update!(**args) @binding_ordinal = args[:binding_ordinal] if args.key?(:binding_ordinal) @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 |