Class: Google::Apis::DatamigrationV1::AlloyDbSettings

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

Overview

Settings for creating an AlloyDB cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlloyDbSettings

Returns a new instance of AlloyDbSettings.



82
83
84
# File 'lib/google/apis/datamigration_v1/classes.rb', line 82

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

Instance Attribute Details

#initial_userGoogle::Apis::DatamigrationV1::UserPassword

The username/password for a database user. Used for specifying initial users at cluster creation time. Corresponds to the JSON property initialUser



60
61
62
# File 'lib/google/apis/datamigration_v1/classes.rb', line 60

def initial_user
  @initial_user
end

#labelsHash<String,String>

Labels for the AlloyDB cluster created by DMS. An object containing a list of ' key', 'value' pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


66
67
68
# File 'lib/google/apis/datamigration_v1/classes.rb', line 66

def labels
  @labels
end

#primary_instance_settingsGoogle::Apis::DatamigrationV1::PrimaryInstanceSettings

Settings for the cluster's primary instance Corresponds to the JSON property primaryInstanceSettings



71
72
73
# File 'lib/google/apis/datamigration_v1/classes.rb', line 71

def primary_instance_settings
  @primary_instance_settings
end

#vpc_networkString

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: " projects/project_number/global/networks/network_id". This is required to create a cluster. Corresponds to the JSON property vpcNetwork

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/datamigration_v1/classes.rb', line 80

def vpc_network
  @vpc_network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
91
92
# File 'lib/google/apis/datamigration_v1/classes.rb', line 87

def update!(**args)
  @initial_user = args[:initial_user] if args.key?(:initial_user)
  @labels = args[:labels] if args.key?(:labels)
  @primary_instance_settings = args[:primary_instance_settings] if args.key?(:primary_instance_settings)
  @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
end