Class: Google::Apis::MigrationcenterV1alpha1::DatabaseInstance
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DatabaseInstance
- 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_name ⇒ String
The instance's name.
-
#role ⇒ String
The instance role in the database engine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseInstance
constructor
A new instance of DatabaseInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseInstance
Returns a new instance of DatabaseInstance.
1745 1746 1747 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1745 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_name ⇒ String
The instance's name.
Corresponds to the JSON property instanceName
1738 1739 1740 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1738 def instance_name @instance_name end |
#role ⇒ String
The instance role in the database engine.
Corresponds to the JSON property role
1743 1744 1745 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1743 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1750 1751 1752 1753 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1750 def update!(**args) @instance_name = args[:instance_name] if args.key?(:instance_name) @role = args[:role] if args.key?(:role) end |