Class: Google::Apis::ClouddeployV1::PolicyViolation
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PolicyViolation
- 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
Returned from an action if one or more policies were violated, and therefore the action was prevented. Contains information about what policies were violated and why.
Instance Attribute Summary collapse
-
#policy_violation_details ⇒ Array<Google::Apis::ClouddeployV1::PolicyViolationDetails>
Policy violation details.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyViolation
constructor
A new instance of PolicyViolation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyViolation
Returns a new instance of PolicyViolation.
3738 3739 3740 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy_violation_details ⇒ Array<Google::Apis::ClouddeployV1::PolicyViolationDetails>
Policy violation details.
Corresponds to the JSON property policyViolationDetails
3736 3737 3738 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3736 def policy_violation_details @policy_violation_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3743 3744 3745 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3743 def update!(**args) @policy_violation_details = args[:policy_violation_details] if args.key?(:policy_violation_details) end |