Class: Google::Apis::RedisV1beta1::Product

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

Overview

Product specification for Condor resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Product

Returns a new instance of Product.



2010
2011
2012
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2010

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

Instance Attribute Details

#engineString

The specific engine that the underlying database is running. Corresponds to the JSON property engine

Returns:

  • (String)


1997
1998
1999
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 1997

def engine
  @engine
end

#typeString

Type of specific database product. It could be CloudSQL, AlloyDB etc.. Corresponds to the JSON property type

Returns:

  • (String)


2002
2003
2004
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2002

def type
  @type
end

#versionString

Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc.. For Postgres, it could be "14", "15" etc.. Corresponds to the JSON property version

Returns:

  • (String)


2008
2009
2010
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2008

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2015
2016
2017
2018
2019
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2015

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