Class: Google::Apis::ClouddeployV1::PolicyRule
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::PolicyRule
- 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
Deploy Policy rule.
Instance Attribute Summary collapse
-
#rollout_restriction ⇒ Google::Apis::ClouddeployV1::RolloutRestriction
Rollout restrictions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyRule
constructor
A new instance of PolicyRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyRule
Returns a new instance of PolicyRule.
3736 3737 3738 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3736 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rollout_restriction ⇒ Google::Apis::ClouddeployV1::RolloutRestriction
Rollout restrictions.
Corresponds to the JSON property rolloutRestriction
3734 3735 3736 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3734 def rollout_restriction @rollout_restriction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3741 3742 3743 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3741 def update!(**args) @rollout_restriction = args[:rollout_restriction] if args.key?(:rollout_restriction) end |