Reference documentation and code samples for the Google Cloud Network Management V1 Client class Endpoint.
Source or destination of the Connectivity Test.
Generated from protobuf message google.cloud.networkmanagement.v1.Endpoint
Namespace
Google \ Cloud \ NetworkManagement \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ ip_address
string
The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test's destination is a global load balancer VIP .
↳ port
int
The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.
↳ instance
string
A Compute Engine instance URI.
↳ gke_master_cluster
↳ cloud_sql_instance
↳ network
string
A Compute Engine network URI.
↳ network_type
int
Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.
↳ project_id
string
Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID: 1. Only the IP address is specified, and the IP address is within a Google Cloud project. 2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.
getIpAddress
The IP address of the endpoint, which can be an external or internal IP.
An IPv6 address is only allowed when the test's destination is a global load balancer VIP .
string
setIpAddress
The IP address of the endpoint, which can be an external or internal IP.
An IPv6 address is only allowed when the test's destination is a global load balancer VIP .
var
string
$this
getPort
The IP protocol port of the endpoint.
Only applicable when protocol is TCP or UDP.
int
setPort
The IP protocol port of the endpoint.
Only applicable when protocol is TCP or UDP.
var
int
$this
getInstance
A Compute Engine instance URI.
string
setInstance
A Compute Engine instance URI.
var
string
$this
getGkeMasterCluster
A cluster URI for Google Kubernetes Engine master .
string
setGkeMasterCluster
A cluster URI for Google Kubernetes Engine master .
var
string
$this
getCloudSqlInstance
A Cloud SQL instance URI.
string
setCloudSqlInstance
A Cloud SQL instance URI.
var
string
$this
getNetwork
A Compute Engine network URI.
string
setNetwork
A Compute Engine network URI.
var
string
$this
getNetworkType
Type of the network where the endpoint is located.
Applicable only to source endpoint, as destination network type can be inferred from the source.
int
setNetworkType
Type of the network where the endpoint is located.
Applicable only to source endpoint, as destination network type can be inferred from the source.
var
int
$this
getProjectId
Project ID where the endpoint is located.
The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:
- Only the IP address is specified, and the IP address is within a Google Cloud project.
- When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.
string
setProjectId
Project ID where the endpoint is located.
The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:
- Only the IP address is specified, and the IP address is within a Google Cloud project.
- When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.
var
string
$this