Class: Google::Apis::MetastoreV1::DatabaseDump

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 the location of and metadata about a database dump from a relational database management system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseDump

Returns a new instance of DatabaseDump.



409
410
411
# File 'lib/google/apis/metastore_v1/classes.rb', line 409

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

Instance Attribute Details

#database_typeString

The type of the database. Corresponds to the JSON property databaseType

Returns:

  • (String)


391
392
393
# File 'lib/google/apis/metastore_v1/classes.rb', line 391

def database_type
  @database_type
end

#gcs_uriString

A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://. Corresponds to the JSON property gcsUri

Returns:

  • (String)


397
398
399
# File 'lib/google/apis/metastore_v1/classes.rb', line 397

def gcs_uri
  @gcs_uri
end

#source_databaseString

The name of the source database. Corresponds to the JSON property sourceDatabase

Returns:

  • (String)


402
403
404
# File 'lib/google/apis/metastore_v1/classes.rb', line 402

def source_database
  @source_database
end

#typeString

Optional. The type of the database dump. If unspecified, defaults to MYSQL. Corresponds to the JSON property type

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/metastore_v1/classes.rb', line 407

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
417
418
419
# File 'lib/google/apis/metastore_v1/classes.rb', line 414

def update!(**args)
  @database_type = args[:database_type] if args.key?(:database_type)
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
  @source_database = args[:source_database] if args.key?(:source_database)
  @type = args[:type] if args.key?(:type)
end