Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Config of GenAI caching features. This is a singleton resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CacheConfig

Returns a new instance of GoogleCloudAiplatformV1beta1CacheConfig.



2567
2568
2569
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2567

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

Instance Attribute Details

#disable_cacheBoolean Also known as: disable_cache?

If set to true, disables GenAI caching. Otherwise caching is enabled. Corresponds to the JSON property disableCache

Returns:

  • (Boolean)


2558
2559
2560
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2558

def disable_cache
  @disable_cache
end

#nameString

Identifier. Name of the cache config. Format: - projects/project/ cacheConfig. Corresponds to the JSON property name

Returns:

  • (String)


2565
2566
2567
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2565

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2572
2573
2574
2575
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2572

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