Compute V1 Client - Class VmEndpointNatMappings (1.9.1)

Reference documentation and code samples for the Compute V1 Client class VmEndpointNatMappings.

Contain information of Nat mapping for a VM endpoint (i.e., NIC).

Generated from protobuf message google.cloud.compute.v1.VmEndpointNatMappings

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instance_name string

Name of the VM instance which the endpoint belongs to

↳ interface_nat_mappings array<Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings>

getInstanceName

Name of the VM instance which the endpoint belongs to

Returns
TypeDescription
string

hasInstanceName

clearInstanceName

setInstanceName

Name of the VM instance which the endpoint belongs to

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterfaceNatMappings

Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInterfaceNatMappings

Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617;

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings>
Returns
TypeDescription
$this