Google Cloud Migration Center V1 Client - Class HostsEntry (0.2.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class HostsEntry.

Single /etc/hosts entry.

Generated from protobuf message google.cloud.migrationcenter.v1.HostsEntry

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ ip string

IP (raw, IPv4/6 agnostic).

↳ host_names array

List of host names / aliases.

getIp

IP (raw, IPv4/6 agnostic).

Returns
TypeDescription
string

setIp

IP (raw, IPv4/6 agnostic).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getHostNames

List of host names / aliases.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setHostNames

List of host names / aliases.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this