Class: Google::Apis::SqladminV1beta3::Settings
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta3::Settings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb,
generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
Database instance settings.
Instance Attribute Summary collapse
-
#activation_policy ⇒ String
The activation policy for this instance.
-
#authorized_gae_applications ⇒ Array<String>
The App Engine app IDs that can access this instance.
-
#backup_configuration ⇒ Array<Google::Apis::SqladminV1beta3::BackupConfiguration>
The daily backup configuration for the instance.
-
#database_flags ⇒ Array<Google::Apis::SqladminV1beta3::DatabaseFlags>
The database flags passed to the instance at startup.
-
#database_replication_enabled ⇒ Boolean
(also: #database_replication_enabled?)
Configuration specific to read replica instance.
-
#ip_configuration ⇒ Google::Apis::SqladminV1beta3::IpConfiguration
IP Management configuration.
-
#kind ⇒ String
This is always sql#settings.
-
#location_preference ⇒ Google::Apis::SqladminV1beta3::LocationPreference
Preferred location.
-
#pricing_plan ⇒ String
The pricing plan for this instance.
-
#replication_type ⇒ String
The type of replication this instance uses.
-
#settings_version ⇒ Fixnum
The version of instance settings.
-
#tier ⇒ String
The tier of service for this instance, for example D1, D2.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Settings
constructor
A new instance of Settings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Settings
Returns a new instance of Settings
1350 1351 1352 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1350 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_policy ⇒ String
The activation policy for this instance. This specifies when the instance
should be activated and is applicable only when the instance state is RUNNABLE.
This can be one of the following.
ALWAYS: The instance should always be active.
NEVER: The instance should never be activated.
ON_DEMAND: The instance is activated upon receiving requests.
Corresponds to the JSON property activationPolicy
1282 1283 1284 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1282 def activation_policy @activation_policy end |
#authorized_gae_applications ⇒ Array<String>
The App Engine app IDs that can access this instance.
Corresponds to the JSON property authorizedGaeApplications
1287 1288 1289 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1287 def @authorized_gae_applications end |
#backup_configuration ⇒ Array<Google::Apis::SqladminV1beta3::BackupConfiguration>
The daily backup configuration for the instance.
Corresponds to the JSON property backupConfiguration
1292 1293 1294 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1292 def backup_configuration @backup_configuration end |
#database_flags ⇒ Array<Google::Apis::SqladminV1beta3::DatabaseFlags>
The database flags passed to the instance at startup.
Corresponds to the JSON property databaseFlags
1297 1298 1299 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1297 def database_flags @database_flags end |
#database_replication_enabled ⇒ Boolean Also known as: database_replication_enabled?
Configuration specific to read replica instance. Indicates whether replication
is enabled or not.
Corresponds to the JSON property databaseReplicationEnabled
1303 1304 1305 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1303 def database_replication_enabled @database_replication_enabled end |
#ip_configuration ⇒ Google::Apis::SqladminV1beta3::IpConfiguration
IP Management configuration.
Corresponds to the JSON property ipConfiguration
1309 1310 1311 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1309 def ip_configuration @ip_configuration end |
#kind ⇒ String
This is always sql#settings.
Corresponds to the JSON property kind
1314 1315 1316 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1314 def kind @kind end |
#location_preference ⇒ Google::Apis::SqladminV1beta3::LocationPreference
Preferred location. This specifies where a Cloud SQL instance should
preferably be located, either in a specific Compute Engine zone, or co-located
with an App Engine application. Note that if the preferred location is not
available, the instance will be located as close as possible within the region.
Only one location may be specified.
Corresponds to the JSON property locationPreference
1323 1324 1325 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1323 def location_preference @location_preference end |
#pricing_plan ⇒ String
The pricing plan for this instance. This can be either PER_USE or PACKAGE.
Corresponds to the JSON property pricingPlan
1328 1329 1330 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1328 def pricing_plan @pricing_plan end |
#replication_type ⇒ String
The type of replication this instance uses. This can be either ASYNCHRONOUS or
SYNCHRONOUS.
Corresponds to the JSON property replicationType
1334 1335 1336 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1334 def replication_type @replication_type end |
#settings_version ⇒ Fixnum
The version of instance settings. This is a required field for update method
to make sure concurrent updates are handled properly. During update, use the
most recent settingsVersion value for this instance and do not try to update
this value.
Corresponds to the JSON property settingsVersion
1342 1343 1344 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1342 def settings_version @settings_version end |
#tier ⇒ String
The tier of service for this instance, for example D1, D2. For more
information, see pricing.
Corresponds to the JSON property tier
1348 1349 1350 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1348 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1355 def update!(**args) @activation_policy = args[:activation_policy] if args.key?(:activation_policy) @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) @database_flags = args[:database_flags] if args.key?(:database_flags) @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) @kind = args[:kind] if args.key?(:kind) @location_preference = args[:location_preference] if args.key?(:location_preference) @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @replication_type = args[:replication_type] if args.key?(:replication_type) @settings_version = args[:settings_version] if args.key?(:settings_version) @tier = args[:tier] if args.key?(:tier) end |