Class: Google::Apis::AlloydbV1::StorageDatabasecenterProtoCommonProduct

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

Overview

Product specification for Condor resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterProtoCommonProduct

Returns a new instance of StorageDatabasecenterProtoCommonProduct.



4918
4919
4920
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4918

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)


4898
4899
4900
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4898

def engine
  @engine
end

#minor_versionString

Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.32", "5.7.32" etc.. For Postgres, it could be "14.3", "15.3" etc. . Corresponds to the JSON property minorVersion

Returns:

  • (String)


4905
4906
4907
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4905

def minor_version
  @minor_version
end

#typeString

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

Returns:

  • (String)


4910
4911
4912
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4910

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)


4916
4917
4918
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4916

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4923
4924
4925
4926
4927
4928
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4923

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