Compute V1 Client - Class VmEndpointNatMappings (1.5.0)

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

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

Generated from protobuf field optional string instance_name = 227947509;

Returns
TypeDescription
string

hasInstanceName

clearInstanceName

setInstanceName

Name of the VM instance which the endpoint belongs to

Generated from protobuf field optional string instance_name = 227947509;

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