Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange

Inherits:
Object
  • Object
show all
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

Supported range of priorities, including boundaries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange

Returns a new instance of BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange.



1833
1834
1835
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1833

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

Instance Attribute Details

#max_priorityFixnum

The maximum numeric value for this priority range, which represents the least urgent task or shortest retained item. Corresponds to the JSON property maxPriority

Returns:

  • (Fixnum)


1825
1826
1827
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1825

def max_priority
  @max_priority
end

#min_priorityFixnum

The minimum numeric value for this priority range, which represents the most urgent task or longest retained item. Corresponds to the JSON property minPriority

Returns:

  • (Fixnum)


1831
1832
1833
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1831

def min_priority
  @min_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1838
1839
1840
1841
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 1838

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