Class: Google::Apis::ClouddeployV1::PolicyRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyRule

Returns a new instance of PolicyRule.



3685
3686
3687
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3685

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#rollout_restrictionGoogle::Apis::ClouddeployV1::RolloutRestriction

Rollout restrictions. Corresponds to the JSON property rolloutRestriction



3683
3684
3685
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3683

def rollout_restriction
  @rollout_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3690
3691
3692
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3690

def update!(**args)
  @rollout_restriction = args[:rollout_restriction] if args.key?(:rollout_restriction)
end