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.



1940
1941
1942
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1940

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

Instance Attribute Details

#max_priorityFixnum

Corresponds to the JSON property maxPriority

Returns:

  • (Fixnum)


1933
1934
1935
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1933

def max_priority
  @max_priority
end

#min_priorityFixnum

Corresponds to the JSON property minPriority

Returns:

  • (Fixnum)


1938
1939
1940
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1938

def min_priority
  @min_priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1945
1946
1947
1948
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1945

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