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.
-
#network ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseInstanceNetwork
Network details of a database instance.
-
#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.
2411 2412 2413 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_name ⇒ String
The instance's name.
Corresponds to the JSON property instanceName
2399 2400 2401 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2399 def instance_name @instance_name end |
#network ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseInstanceNetwork
Network details of a database instance.
Corresponds to the JSON property network
2404 2405 2406 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2404 def network @network end |
#role ⇒ String
The instance role in the database engine.
Corresponds to the JSON property role
2409 2410 2411 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2409 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2416 2417 2418 2419 2420 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2416 def update!(**args) @instance_name = args[:instance_name] if args.key?(:instance_name) @network = args[:network] if args.key?(:network) @role = args[:role] if args.key?(:role) end |