Class: Google::Apis::DatamigrationV1::DataCacheConfig

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

Overview

Data cache is an optional feature available for Cloud SQL for MySQL Enterprise Plus edition only. For more information on data cache, see Data cache overview in Cloud SQL documentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataCacheConfig

Returns a new instance of DataCacheConfig.



1259
1260
1261
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1259

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

Instance Attribute Details

#data_cache_enabledBoolean Also known as: data_cache_enabled?

Optional. Whether data cache is enabled for the instance. Corresponds to the JSON property dataCacheEnabled

Returns:

  • (Boolean)


1256
1257
1258
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1256

def data_cache_enabled
  @data_cache_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1264
1265
1266
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1264

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