Class: Google::Apis::DatabasecenterV1beta::Product

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

Overview

Product specification for databasecenter resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Product

Returns a new instance of Product.



1486
1487
1488
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1486

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

Instance Attribute Details

#engineString

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

Returns:

  • (String)


1465
1466
1467
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1465

def engine
  @engine
end

#minor_versionString

Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc. Corresponds to the JSON property minorVersion

Returns:

  • (String)


1472
1473
1474
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1472

def minor_version
  @minor_version
end

#typeString

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

Returns:

  • (String)


1478
1479
1480
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1478

def type
  @type
end

#versionString

Optional. 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)


1484
1485
1486
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1484

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1491
1492
1493
1494
1495
1496
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1491

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