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
1333 1334 1335 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1333 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
1265 1266 1267 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1265 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
1270 1271 1272 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1270 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
1275 1276 1277 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1275 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
1280 1281 1282 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1280 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
1286 1287 1288 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1286 def database_replication_enabled @database_replication_enabled end |
#ip_configuration ⇒ Google::Apis::SqladminV1beta3::IpConfiguration
IP Management configuration.
Corresponds to the JSON property ipConfiguration
1292 1293 1294 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1292 def ip_configuration @ip_configuration end |
#kind ⇒ String
This is always sql#settings.
Corresponds to the JSON property kind
1297 1298 1299 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1297 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
1306 1307 1308 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1306 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
1311 1312 1313 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1311 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
1317 1318 1319 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1317 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
1325 1326 1327 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1325 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
1331 1332 1333 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1331 def tier @tier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1338 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 |