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.



2811
2812
2813
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2811

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

Instance Attribute Details

#instance_nameString

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

Returns:

  • (String)


2799
2800
2801
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2799

def instance_name
  @instance_name
end

#networkGoogle::Apis::MigrationcenterV1alpha1::DatabaseInstanceNetwork

Network details of a database instance. Corresponds to the JSON property network



2804
2805
2806
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2804

def network
  @network
end

#roleString

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

Returns:

  • (String)


2809
2810
2811
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2809

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2816
2817
2818
2819
2820
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2816

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