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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ExecutionPolicy

Returns a new instance of BuildBazelRemoteExecutionV2ExecutionPolicy



1338
1339
1340
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1338

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)


1336
1337
1338
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1336

def priority
  @priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1343
1344
1345
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1343

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