Class: Google::Apis::MetastoreV1::HiveMetastoreVersion

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

Overview

A specification of a supported version of the Hive Metastore software.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HiveMetastoreVersion

Returns a new instance of HiveMetastoreVersion.



725
726
727
# File 'lib/google/apis/metastore_v1/classes.rb', line 725

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

Instance Attribute Details

#is_defaultBoolean Also known as: is_default?

Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig that omits the version. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


717
718
719
# File 'lib/google/apis/metastore_v1/classes.rb', line 717

def is_default
  @is_default
end

#versionString

The semantic version of the Hive Metastore software. Corresponds to the JSON property version

Returns:

  • (String)


723
724
725
# File 'lib/google/apis/metastore_v1/classes.rb', line 723

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



730
731
732
733
# File 'lib/google/apis/metastore_v1/classes.rb', line 730

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