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

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

Supported range of priorities, including boundaries.

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) ⇒ BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange

Returns a new instance of BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange.


1749
1750
1751
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1749

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

Instance Attribute Details

#max_priorityFixnum

Corresponds to the JSON property maxPriority

Returns:

  • (Fixnum)

1742
1743
1744
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1742

def max_priority
  @max_priority
end

#min_priorityFixnum

Corresponds to the JSON property minPriority

Returns:

  • (Fixnum)

1747
1748
1749
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1747

def min_priority
  @min_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1754
1755
1756
1757
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1754

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