Class: Google::Apis::ServicecontrolV2::ViolationInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV2::ViolationInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/representations.rb
Overview
Provides information about the Policy violation info for this request.
Instance Attribute Summary collapse
-
#checked_value ⇒ String
Optional.
-
#constraint ⇒ String
Optional.
-
#error_message ⇒ String
Optional.
-
#policy_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ViolationInfo
constructor
A new instance of ViolationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ViolationInfo
Returns a new instance of ViolationInfo.
1748 1749 1750 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1748 def initialize(**args) update!(**args) end |
Instance Attribute Details
#checked_value ⇒ String
Optional. Value that is being checked for the policy. This could be in
encrypted form (if pii sensitive). This field will only be emitted in
LIST_POLICY types
Corresponds to the JSON property checkedValue
1731 1732 1733 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1731 def checked_value @checked_value end |
#constraint ⇒ String
Optional. Constraint name
Corresponds to the JSON property constraint
1736 1737 1738 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1736 def constraint @constraint end |
#error_message ⇒ String
Optional. Error message that policy is indicating.
Corresponds to the JSON property errorMessage
1741 1742 1743 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1741 def @error_message end |
#policy_type ⇒ String
Optional. Indicates the type of the policy.
Corresponds to the JSON property policyType
1746 1747 1748 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1746 def policy_type @policy_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1753 1754 1755 1756 1757 1758 |
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1753 def update!(**args) @checked_value = args[:checked_value] if args.key?(:checked_value) @constraint = args[:constraint] if args.key?(:constraint) @error_message = args[:error_message] if args.key?(:error_message) @policy_type = args[:policy_type] if args.key?(:policy_type) end |