Class: Google::Apis::MigrationcenterV1alpha1::DatabaseInstance

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

Overview

Details of a database instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseInstance

Returns a new instance of DatabaseInstance.



1772
1773
1774
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1772

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

Instance Attribute Details

#instance_nameString

The instance's name. Corresponds to the JSON property instanceName

Returns:

  • (String)


1765
1766
1767
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1765

def instance_name
  @instance_name
end

#roleString

The instance role in the database engine. Corresponds to the JSON property role

Returns:

  • (String)


1770
1771
1772
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1770

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1777
1778
1779
1780
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1777

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