Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class IpConfiguration.
IP Management configuration.
Generated from protobuf message google.cloud.sql.v1.IpConfiguration
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ ipv4_enabled
↳ private_network
string
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default
. This setting can be updated, but it cannot be removed after it is set.
↳ require_ssl
Google\Protobuf\BoolValue
Use ssl_mode
instead for MySQL and PostgreSQL. SQL Server uses this flag. Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the ssl_mode
flag instead of the require_ssl
flag.
↳ authorized_networks
array< Google\Cloud\Sql\V1\AclEntry
>
The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: 157.197.200.0/24
).
↳ allocated_ip_range
string
The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with RFC 1035
. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
↳ enable_private_path_for_google_cloud_services
Google\Protobuf\BoolValue
Controls connectivity to private IP instances from Google services, such as BigQuery.
↳ ssl_mode
int
SQL Server uses the require_ssl
flag. You can set the value for this flag to 'true' or 'false'.
↳ psc_config
getIpv4Enabled
Whether the instance is assigned a public IP address or not.
hasIpv4Enabled
clearIpv4Enabled
getIpv4EnabledValue
Returns the unboxed value from getIpv4Enabled()
Whether the instance is assigned a public IP address or not.
bool|null
setIpv4Enabled
Whether the instance is assigned a public IP address or not.
$this
setIpv4EnabledValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether the instance is assigned a public IP address or not.
var
bool|null
$this
getPrivateNetwork
The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example, /projects/myProject/global/networks/default
. This setting can
be updated, but it cannot be removed after it is set.
string
setPrivateNetwork
The resource link for the VPC network from which the Cloud SQL instance is
accessible for private IP. For example, /projects/myProject/global/networks/default
. This setting can
be updated, but it cannot be removed after it is set.
var
string
$this
getRequireSsl
Use ssl_mode
instead for MySQL and PostgreSQL. SQL Server uses this flag.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode
flag
instead of the require_ssl
flag.
hasRequireSsl
clearRequireSsl
getRequireSslValue
Returns the unboxed value from getRequireSsl()
Use ssl_mode
instead for MySQL and PostgreSQL. SQL Server uses this flag.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode
flag
instead of the require_ssl
flag.
bool|null
setRequireSsl
Use ssl_mode
instead for MySQL and PostgreSQL. SQL Server uses this flag.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode
flag
instead of the require_ssl
flag.
$this
setRequireSslValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Use ssl_mode
instead for MySQL and PostgreSQL. SQL Server uses this flag.
Whether SSL/TLS connections over IP are enforced.
If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections.
For SSL/TLS connections, the client certificate won't be verified. If
set to true, then only allow connections encrypted with SSL/TLS and with
valid client certificates. If you want to enforce SSL/TLS without enforcing
the requirement for valid client certificates, then use the ssl_mode
flag
instead of the require_ssl
flag.
var
bool|null
$this
getAuthorizedNetworks
The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24
).
setAuthorizedNetworks
The list of external networks that are allowed to connect to the instance
using the IP. In 'CIDR' notation, also known as 'slash' notation (for
example: 157.197.200.0/24
).
$this
getAllocatedIpRange
The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with RFC 1035
. Specifically, the name
must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
string
setAllocatedIpRange
The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the instance ip
will be created in the allocated range. The range name must comply with RFC 1035
. Specifically, the name
must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?.
var
string
$this
getEnablePrivatePathForGoogleCloudServices
Controls connectivity to private IP instances from Google services, such as BigQuery.
hasEnablePrivatePathForGoogleCloudServices
clearEnablePrivatePathForGoogleCloudServices
getEnablePrivatePathForGoogleCloudServicesValue
Returns the unboxed value from getEnablePrivatePathForGoogleCloudServices()
Controls connectivity to private IP instances from Google services, such as BigQuery.
bool|null
setEnablePrivatePathForGoogleCloudServices
Controls connectivity to private IP instances from Google services, such as BigQuery.
$this
setEnablePrivatePathForGoogleCloudServicesValue
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Controls connectivity to private IP instances from Google services, such as BigQuery.
var
bool|null
$this
getSslMode
SQL Server uses the require_ssl
flag. You can set the value for this flag
to 'true' or 'false'.
int
setSslMode
SQL Server uses the require_ssl
flag. You can set the value for this flag
to 'true' or 'false'.
var
int
$this
getPscConfig
PSC settings for this instance.
hasPscConfig
clearPscConfig
setPscConfig
PSC settings for this instance.
$this