Class: Google::Apis::SqladminV1beta3::Settings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_policyString

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

Returns:

  • (String)


1265
1266
1267
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1265

def activation_policy
  @activation_policy
end

#authorized_gae_applicationsArray<String>

The App Engine app IDs that can access this instance. Corresponds to the JSON property authorizedGaeApplications

Returns:

  • (Array<String>)


1270
1271
1272
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1270

def authorized_gae_applications
  @authorized_gae_applications
end

#backup_configurationArray<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_flagsArray<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_enabledBoolean 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

Returns:

  • (Boolean)


1286
1287
1288
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1286

def database_replication_enabled
  @database_replication_enabled
end

#ip_configurationGoogle::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

#kindString

This is always sql#settings. Corresponds to the JSON property kind

Returns:

  • (String)


1297
1298
1299
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1297

def kind
  @kind
end

#location_preferenceGoogle::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_planString

The pricing plan for this instance. This can be either PER_USE or PACKAGE. Corresponds to the JSON property pricingPlan

Returns:

  • (String)


1311
1312
1313
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1311

def pricing_plan
  @pricing_plan
end

#replication_typeString

The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS. Corresponds to the JSON property replicationType

Returns:

  • (String)


1317
1318
1319
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1317

def replication_type
  @replication_type
end

#settings_versionFixnum

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

Returns:

  • (Fixnum)


1325
1326
1327
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1325

def settings_version
  @settings_version
end

#tierString

The tier of service for this instance, for example D1, D2. For more information, see pricing. Corresponds to the JSON property tier

Returns:

  • (String)


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