Class: Google::Apis::ClouddeployV1::PolicyViolationDetails
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PolicyViolationDetails
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Policy violation details.
Instance Attribute Summary collapse
-
#failure_message ⇒ String
User readable message about why the request violated a policy.
-
#policy ⇒ String
Name of the policy that was violated.
-
#rule_id ⇒ String
Id of the rule that triggered the policy violation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyViolationDetails
constructor
A new instance of PolicyViolationDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyViolationDetails
Returns a new instance of PolicyViolationDetails.
3738 3739 3740 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#failure_message ⇒ String
User readable message about why the request violated a policy. This is not
intended for machine parsing.
Corresponds to the JSON property failureMessage
3725 3726 3727 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3725 def @failure_message end |
#policy ⇒ String
Name of the policy that was violated. Policy resource will be in the format of
projects/project/locations/location/policies/policy`.
Corresponds to the JSON propertypolicy`
3731 3732 3733 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3731 def policy @policy end |
#rule_id ⇒ String
Id of the rule that triggered the policy violation.
Corresponds to the JSON property ruleId
3736 3737 3738 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3736 def rule_id @rule_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3743 3744 3745 3746 3747 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3743 def update!(**args) @failure_message = args[:failure_message] if args.key?(:failure_message) @policy = args[:policy] if args.key?(:policy) @rule_id = args[:rule_id] if args.key?(:rule_id) end |