Google Cloud Sql Admin V1 Client - Class IpMapping (0.5.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class IpMapping.

Database instance IP Mapping.

Generated from protobuf message google.cloud.sql.v1.IpMapping

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type int

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

↳ ip_address string

The IP address assigned.

↳ time_to_retire Google\Protobuf\Timestamp

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

getType

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

Returns
TypeDescription
int

setType

The type of this IP address. A PRIMARY address is a public address that can accept incoming connections. A PRIVATE address is a private address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIpAddress

The IP address assigned.

Returns
TypeDescription
string

setIpAddress

The IP address assigned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTimeToRetire

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTimeToRetire

clearTimeToRetire

setTimeToRetire

The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.

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