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.



3717
3718
3719
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3717

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

Instance Attribute Details

#rollout_restrictionGoogle::Apis::ClouddeployV1::RolloutRestriction

Rollout restrictions. Corresponds to the JSON property rolloutRestriction



3715
3716
3717
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3715

def rollout_restriction
  @rollout_restriction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3722
3723
3724
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 3722

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