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



1350
1351
1352
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1350

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)


1282
1283
1284
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1282

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>)


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

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



1292
1293
1294
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1292

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



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

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)


1303
1304
1305
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1303

def database_replication_enabled
  @database_replication_enabled
end

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

#kindString

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

Returns:

  • (String)


1314
1315
1316
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1314

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



1323
1324
1325
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1323

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)


1328
1329
1330
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1328

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)


1334
1335
1336
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1334

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)


1342
1343
1344
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 1342

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)


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