class Google::Apis::SqladminV1::LocationPreference

Preferred location. This specifies where a Cloud SQL instance is located. 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.

Attributes

follow_gae_application[RW]

The App Engine application to follow, it must be in the same region as the Cloud SQL instance. Corresponds to the JSON property `followGaeApplication` @return [String]

kind[RW]

This is always **sql#locationPreference**. Corresponds to the JSON property `kind` @return [String]

secondary_zone[RW]

The preferred Compute Engine zone for the secondary/failover (for example: us- central1-a, us-central1-b, etc.). Reserved for future use. Corresponds to the JSON property `secondaryZone` @return [String]

zone[RW]

The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1/classes.rb, line 2063
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1/classes.rb, line 2068
def update!(**args)
  @follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application)
  @kind = args[:kind] if args.key?(:kind)
  @secondary_zone = args[:secondary_zone] if args.key?(:secondary_zone)
  @zone = args[:zone] if args.key?(:zone)
end