Class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2CacheCapabilities

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

Capabilities of the remote cache system.

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

Returns a new instance of BuildBazelRemoteExecutionV2CacheCapabilities.



713
714
715
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 713

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

Instance Attribute Details

#action_cache_update_capabilitiesGoogle::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities

Describes the server/instance capabilities for updating the action cache. Corresponds to the JSON property actionCacheUpdateCapabilities



685
686
687
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 685

def action_cache_update_capabilities
  @action_cache_update_capabilities
end

#cache_priority_capabilitiesGoogle::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2PriorityCapabilities

Allowed values for priority in ResultsCachePolicy Used for querying both cache and execution valid priority ranges. Corresponds to the JSON property cachePriorityCapabilities



692
693
694
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 692

def cache_priority_capabilities
  @cache_priority_capabilities
end

#digest_functionArray<String>

All the digest functions supported by the remote cache. Remote cache may support multiple digest functions simultaneously. Corresponds to the JSON property digestFunction

Returns:

  • (Array<String>)


698
699
700
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 698

def digest_function
  @digest_function
end

#max_batch_total_size_bytesFixnum

Maximum total size of blobs to be uploaded/downloaded using batch methods. A value of 0 means no limit is set, although in practice there will always be a message size limitation of the protocol in use, e.g. GRPC. Corresponds to the JSON property maxBatchTotalSizeBytes

Returns:

  • (Fixnum)


706
707
708
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 706

def max_batch_total_size_bytes
  @max_batch_total_size_bytes
end

Whether absolute symlink targets are supported. Corresponds to the JSON property symlinkAbsolutePathStrategy

Returns:

  • (String)


711
712
713
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 711

def symlink_absolute_path_strategy
  @symlink_absolute_path_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



718
719
720
721
722
723
724
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 718

def update!(**args)
  @action_cache_update_capabilities = args[:action_cache_update_capabilities] if args.key?(:action_cache_update_capabilities)
  @cache_priority_capabilities = args[:cache_priority_capabilities] if args.key?(:cache_priority_capabilities)
  @digest_function = args[:digest_function] if args.key?(:digest_function)
  @max_batch_total_size_bytes = args[:max_batch_total_size_bytes] if args.key?(:max_batch_total_size_bytes)
  @symlink_absolute_path_strategy = args[:symlink_absolute_path_strategy] if args.key?(:symlink_absolute_path_strategy)
end