Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CacheConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CacheConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Config of GenAI caching features. This is a singleton resource.
Instance Attribute Summary collapse
-
#disable_cache ⇒ Boolean
(also: #disable_cache?)
If set to true, disables GenAI caching.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1CacheConfig
constructor
A new instance of GoogleCloudAiplatformV1CacheConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1CacheConfig
Returns a new instance of GoogleCloudAiplatformV1CacheConfig.
2832 2833 2834 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_cache ⇒ Boolean Also known as: disable_cache?
If set to true, disables GenAI caching. Otherwise caching is enabled.
Corresponds to the JSON property disableCache
2823 2824 2825 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2823 def disable_cache @disable_cache end |
#name ⇒ String
Identifier. Name of the cache config. Format: - projects/project/
cacheConfig.
Corresponds to the JSON property name
2830 2831 2832 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2830 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2837 2838 2839 2840 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2837 def update!(**args) @disable_cache = args[:disable_cache] if args.key?(:disable_cache) @name = args[:name] if args.key?(:name) end |