Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ExecutionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ExecutionPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v2/classes.rb,
lib/google/apis/remotebuildexecution_v2/representations.rb,
lib/google/apis/remotebuildexecution_v2/representations.rb
Overview
An ExecutionPolicy
can be used to control the scheduling of the action.
Instance Attribute Summary collapse
-
#priority ⇒ Fixnum
The priority (relative importance) of this action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ExecutionPolicy
constructor
A new instance of BuildBazelRemoteExecutionV2ExecutionPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ExecutionPolicy
Returns a new instance of BuildBazelRemoteExecutionV2ExecutionPolicy.
1317 1318 1319 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#priority ⇒ Fixnum
The priority (relative importance) of this action. Generally, a lower value
means that the action should be run sooner than actions having a greater
priority value, but the interpretation of a given value is server- dependent.
A priority of 0 means the default priority. Priorities may be positive or
negative, and such actions should run later or sooner than actions having the
default priority, respectively. The particular semantics of this field is up
to the server. In particular, every server will have their own supported range
of priorities, and will decide how these map into scheduling policy.
Corresponds to the JSON property priority
1315 1316 1317 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1315 def priority @priority end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1322 1323 1324 |
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1322 def update!(**args) @priority = args[:priority] if args.key?(:priority) end |