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
-
#database_version ⇒ String
Optional.
-
#encryption_config ⇒ Google::Apis::DatamigrationV1::EncryptionConfig
EncryptionConfig describes the encryption config of a cluster that is encrypted with a CMEK (customer-managed encryption key).
-
#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.
95 96 97 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 95 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_version ⇒ String
Optional. The database engine major version. This is an optional field. If a
database version is not supplied at cluster creation time, then a default
database version will be used.
Corresponds to the JSON property databaseVersion
61 62 63 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 61 def database_version @database_version end |
#encryption_config ⇒ Google::Apis::DatamigrationV1::EncryptionConfig
EncryptionConfig describes the encryption config of a cluster that is
encrypted with a CMEK (customer-managed encryption key).
Corresponds to the JSON property encryptionConfig
67 68 69 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 67 def encryption_config @encryption_config end |
#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
73 74 75 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 73 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
79 80 81 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 79 def labels @labels end |
#primary_instance_settings ⇒ Google::Apis::DatamigrationV1::PrimaryInstanceSettings
Settings for the cluster's primary instance
Corresponds to the JSON property primaryInstanceSettings
84 85 86 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 84 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
93 94 95 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 93 def vpc_network @vpc_network end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
100 101 102 103 104 105 106 107 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 100 def update!(**args) @database_version = args[:database_version] if args.key?(:database_version) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @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 |