Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ResultsCachePolicy
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ResultsCachePolicy
- 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
A ResultsCachePolicy
is used for fine-grained control over how action
outputs are stored in the CAS and Action Cache.
Instance Attribute Summary collapse
-
#priority ⇒ Fixnum
The priority (relative importance) of this content in the overall cache.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ResultsCachePolicy
constructor
A new instance of BuildBazelRemoteExecutionV2ResultsCachePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BuildBazelRemoteExecutionV2ResultsCachePolicy
Returns a new instance of BuildBazelRemoteExecutionV2ResultsCachePolicy.
1898 1899 1900 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#priority ⇒ Fixnum
The priority (relative importance) of this content in the overall cache.
Generally, a lower value means a longer retention time or other advantage,
but the interpretation of a given value is server-dependent. A priority of
0 means a default value, decided by the server.
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 retention/eviction policy.
Corresponds to the JSON property priority
1896 1897 1898 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1896 def priority @priority end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1903 1904 1905 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 1903 def update!(**args) @priority = args[:priority] if args.key?(:priority) end |