Class: Google::Apis::ClouddeployV1::RolloutRestriction

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

Rollout restrictions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolloutRestriction

Returns a new instance of RolloutRestriction.



5097
5098
5099
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5097

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

Instance Attribute Details

#actionsArray<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

Returns:

  • (Array<String>)


5076
5077
5078
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5076

def actions
  @actions
end

#idString

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

Returns:

  • (String)


5082
5083
5084
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5082

def id
  @id
end

#invokersArray<String>

Optional. What invoked the action. If left empty, all invoker types will be restricted. Corresponds to the JSON property invokers

Returns:

  • (Array<String>)


5088
5089
5090
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5088

def invokers
  @invokers
end

#time_windowsGoogle::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



5095
5096
5097
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5095

def time_windows
  @time_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5102
5103
5104
5105
5106
5107
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5102

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