Class: Google::Apis::DatamigrationV1::AlloyDbSettings
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::AlloyDbSettings
- 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
-
#initial_user ⇒ Google::Apis::DatamigrationV1::UserPassword
The username/password for a database user.
-
#labels ⇒ Hash<String,String>
Labels for the AlloyDB cluster created by DMS.
-
#primary_instance_settings ⇒ Google::Apis::DatamigrationV1::PrimaryInstanceSettings
Settings for the cluster's primary instance Corresponds to the JSON property
primaryInstanceSettings
. -
#vpc_network ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlloyDbSettings
constructor
A new instance of AlloyDbSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_user ⇒ Google::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 |
#labels ⇒ Hash<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
66 67 68 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 66 def labels @labels end |
#primary_instance_settings ⇒ Google::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_network ⇒ String
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
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 |