Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class 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.
Generated from protobuf message google.cloud.sql.v1.LocationPreference
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ follow_gae_application |
string
The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance. |
↳ zone |
string
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance. |
↳ secondary_zone |
string
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'. |
↳ kind |
string
This is always |
getFollowGaeApplication
The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
Returns | |
---|---|
Type | Description |
string |
setFollowGaeApplication
The App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getZone
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
Returns | |
---|---|
Type | Description |
string |
setZone
The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSecondaryZone
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.).
To disable this field, set it to 'no_secondary_zone'.
Returns | |
---|---|
Type | Description |
string |
setSecondaryZone
The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.).
To disable this field, set it to 'no_secondary_zone'.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getKind
This is always sql#locationPreference
.
Returns | |
---|---|
Type | Description |
string |
setKind
This is always sql#locationPreference
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |