Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ExecutionPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb

Overview

An ExecutionPolicy can be used to control the scheduling of the action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ExecutionPolicy

Returns a new instance of BuildBazelRemoteExecutionV2ExecutionPolicy.



1272
1273
1274
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1272

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

Instance Attribute Details

#priorityFixnum

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

Returns:

  • (Fixnum)


1270
1271
1272
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1270

def priority
  @priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1277

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