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

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

Capabilities of the remote cache system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildBazelRemoteExecutionV2CacheCapabilities

Returns a new instance of BuildBazelRemoteExecutionV2CacheCapabilities.



652
653
654
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 652

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



618
619
620
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 618

def action_cache_update_capabilities
  @action_cache_update_capabilities
end

#cache_priority_capabilitiesGoogle::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2PriorityCapabilities

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



624
625
626
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 624

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


630
631
632
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 630

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)


637
638
639
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 637

def max_batch_total_size_bytes
  @max_batch_total_size_bytes
end

#supported_compressorArray<String>

Compressors supported by the "compressed-blobs" bytestream resources. Servers MUST support identity/no-compression, even if it is not listed here. Note that this does not imply which if any compressors are supported by the server at the gRPC level. Corresponds to the JSON property supportedCompressor

Returns:

  • (Array<String>)


645
646
647
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 645

def supported_compressor
  @supported_compressor
end

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

Returns:

  • (String)


650
651
652
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 650

def symlink_absolute_path_strategy
  @symlink_absolute_path_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



657
658
659
660
661
662
663
664
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 657

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)
  @supported_compressor = args[:supported_compressor] if args.key?(:supported_compressor)
  @symlink_absolute_path_strategy = args[:symlink_absolute_path_strategy] if args.key?(:symlink_absolute_path_strategy)
end