Google Cloud Dms V1 Client - Class SqlIpConfig (1.3.0)

Reference documentation and code samples for the Google Cloud Dms V1 Client class SqlIpConfig.

IP Management configuration.

Generated from protobuf message google.cloud.clouddms.v1.SqlIpConfig

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enable_ipv4 Google\Protobuf\BoolValue

Whether the instance should be assigned an IPv4 address or not.

↳ 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.

↳ allocated_ip_range string

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

↳ require_ssl Google\Protobuf\BoolValue

Whether SSL connections over IP should be enforced or not.

↳ authorized_networks array<Google\Cloud\CloudDms\V1\SqlAclEntry>

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

getEnableIpv4

Whether the instance should be assigned an IPv4 address or not.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasEnableIpv4

clearEnableIpv4

getEnableIpv4Value

Returns the unboxed value from getEnableIpv4()

Whether the instance should be assigned an IPv4 address or not.

Returns
TypeDescription
bool|null

setEnableIpv4

Whether the instance should be assigned an IPv4 address or not.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setEnableIpv4Value

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether the instance should be assigned an IPv4 address or not.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllocatedIpRange

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

Returns
TypeDescription
string

setAllocatedIpRange

Optional. The name of the allocated IP address range for the private IP Cloud SQL instance. This name refers to an already allocated IP range address. If set, the instance IP address will be created in the allocated range. Note that this IP address range can't be modified after the instance is created. If you change the VPC when configuring connectivity settings for the migration job, this field is not relevant.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRequireSsl

Whether SSL connections over IP should be enforced or not.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasRequireSsl

clearRequireSsl

getRequireSslValue

Returns the unboxed value from getRequireSsl()

Whether SSL connections over IP should be enforced or not.

Returns
TypeDescription
bool|null

setRequireSsl

Whether SSL connections over IP should be enforced or not.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setRequireSslValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether SSL connections over IP should be enforced or not.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getAuthorizedNetworks

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAuthorizedNetworks

The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. 192.168.100.0/24).

Parameter
NameDescription
var array<Google\Cloud\CloudDms\V1\SqlAclEntry>
Returns
TypeDescription
$this