Class: Google::Apis::ClouddeployV1::RolloutRestriction
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::RolloutRestriction
- 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
Rollout restrictions.
Instance Attribute Summary collapse
-
#actions ⇒ Array<String>
Optional.
-
#id ⇒ String
Required.
-
#invokers ⇒ Array<String>
Optional.
-
#time_windows ⇒ Google::Apis::ClouddeployV1::TimeWindows
Time windows within which actions are restricted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RolloutRestriction
constructor
A new instance of RolloutRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RolloutRestriction
Returns a new instance of RolloutRestriction.
5218 5219 5220 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actions ⇒ Array<String>
Optional. Rollout actions to be restricted as part of the policy. If left
empty, all actions will be restricted.
Corresponds to the JSON property actions
5197 5198 5199 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5197 def actions @actions end |
#id ⇒ String
Required. Restriction rule ID. Required and must be unique within a
DeployPolicy. The format is [a-z]([a-z0-9-]0,61[a-z0-9])?.
Corresponds to the JSON property id
5203 5204 5205 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5203 def id @id end |
#invokers ⇒ Array<String>
Optional. What invoked the action. If left empty, all invoker types will be
restricted.
Corresponds to the JSON property invokers
5209 5210 5211 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5209 def invokers @invokers end |
#time_windows ⇒ Google::Apis::ClouddeployV1::TimeWindows
Time windows within which actions are restricted. See the documentation for more
information on how to configure dates/times.
Corresponds to the JSON property timeWindows
5216 5217 5218 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5216 def time_windows @time_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5223 5224 5225 5226 5227 5228 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5223 def update!(**args) @actions = args[:actions] if args.key?(:actions) @id = args[:id] if args.key?(:id) @invokers = args[:invokers] if args.key?(:invokers) @time_windows = args[:time_windows] if args.key?(:time_windows) end |