# Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::Endpoint (v2.11.0)

2.11.0 (latest) 2.10.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::Endpoint.

Source or destination of the Connectivity Test.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #app_engine_version

    def app_engine_version() -> ::Google::Cloud::NetworkManagement::V1::Endpoint::AppEngineVersionEndpoint

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::AppEngineVersionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-AppEngineVersionEndpoint)) --- An [App Engine](https://cloud.google.com/appengine) [service
  version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). Applicable only to source endpoint.

### #app_engine_version=

    def app_engine_version=(value) -> ::Google::Cloud::NetworkManagement::V1::Endpoint::AppEngineVersionEndpoint

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::Endpoint::AppEngineVersionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-AppEngineVersionEndpoint)) --- An [App Engine](https://cloud.google.com/appengine) [service
  version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). Applicable only to source endpoint.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::AppEngineVersionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-AppEngineVersionEndpoint)) --- An [App Engine](https://cloud.google.com/appengine) [service
  version](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions). Applicable only to source endpoint.

### #cloud_function

    def cloud_function() -> ::Google::Cloud::NetworkManagement::V1::Endpoint::CloudFunctionEndpoint

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudFunctionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudFunctionEndpoint)) --- A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint.

### #cloud_function=

    def cloud_function=(value) -> ::Google::Cloud::NetworkManagement::V1::Endpoint::CloudFunctionEndpoint

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudFunctionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudFunctionEndpoint)) --- A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudFunctionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudFunctionEndpoint)) --- A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint.

### #cloud_run_revision

    def cloud_run_revision() -> ::Google::Cloud::NetworkManagement::V1::Endpoint::CloudRunRevisionEndpoint

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudRunRevisionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudRunRevisionEndpoint)) --- A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint.

### #cloud_run_revision=

    def cloud_run_revision=(value) -> ::Google::Cloud::NetworkManagement::V1::Endpoint::CloudRunRevisionEndpoint

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudRunRevisionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudRunRevisionEndpoint)) --- A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::CloudRunRevisionEndpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-CloudRunRevisionEndpoint)) --- A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint.

### #cloud_sql_instance

    def cloud_sql_instance() -> ::String

**Returns**

- (::String) --- A [Cloud SQL](https://cloud.google.com/sql) instance URI.

### #cloud_sql_instance=

    def cloud_sql_instance=(value) -> ::String

**Parameter**

- **value** (::String) --- A [Cloud SQL](https://cloud.google.com/sql) instance URI.
**Returns**

- (::String) --- A [Cloud SQL](https://cloud.google.com/sql) instance URI.

### #forwarding_rule

    def forwarding_rule() -> ::String

**Returns**

- (::String) --- A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: `projects/{project}/global/forwardingRules/{id}` or `projects/{project}/regions/{region}/forwardingRules/{id}`

### #forwarding_rule=

    def forwarding_rule=(value) -> ::String

**Parameter**

- **value** (::String) --- A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: `projects/{project}/global/forwardingRules/{id}` or `projects/{project}/regions/{region}/forwardingRules/{id}`
**Returns**

- (::String) --- A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules are also used for protocol forwarding, Private Service Connect and other network services to provide forwarding information in the control plane. Applicable only to destination endpoint. Format: `projects/{project}/global/forwardingRules/{id}` or `projects/{project}/regions/{region}/forwardingRules/{id}`

### #forwarding_rule_target

    def forwarding_rule_target() -> ::Google::Cloud::NetworkManagement::V1::Endpoint::ForwardingRuleTarget

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::ForwardingRuleTarget](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-ForwardingRuleTarget)) --- Output only. Specifies the type of the target of the forwarding rule.

### #fqdn

    def fqdn() -> ::String

**Returns**

- (::String) --- DNS endpoint of [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.

### #fqdn=

    def fqdn=(value) -> ::String

**Parameter**

- **value** (::String) --- DNS endpoint of [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.
**Returns**

- (::String) --- DNS endpoint of [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address or network. Applicable only to destination endpoint.

### #gke_master_cluster

    def gke_master_cluster() -> ::String

**Returns**

- (::String) --- A cluster URI for [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).

### #gke_master_cluster=

    def gke_master_cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- A cluster URI for [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
**Returns**

- (::String) --- A cluster URI for [Google Kubernetes Engine cluster control
  plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).

### #gke_pod

    def gke_pod() -> ::String

**Returns**

- (::String) --- A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.

### #gke_pod=

    def gke_pod=(value) -> ::String

**Parameter**

- **value** (::String) --- A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.
**Returns**

- (::String) --- A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.

### #instance

    def instance() -> ::String

**Returns**

- (::String) --- A Compute Engine instance URI.

### #instance=

    def instance=(value) -> ::String

**Parameter**

- **value** (::String) --- A Compute Engine instance URI.
**Returns**

- (::String) --- A Compute Engine instance URI.

### #ip_address

    def ip_address() -> ::String

**Returns**

- (::String) --- The IP address of the endpoint, which can be an external or internal IP.

### #ip_address=

    def ip_address=(value) -> ::String

**Parameter**

- **value** (::String) --- The IP address of the endpoint, which can be an external or internal IP.
**Returns**

- (::String) --- The IP address of the endpoint, which can be an external or internal IP.

### #load_balancer_id

    def load_balancer_id() -> ::String

**Returns**

- (::String) --- Output only. ID of the load balancer the forwarding rule points to. Empty for forwarding rules not related to load balancers.

### #load_balancer_type

    def load_balancer_type() -> ::Google::Cloud::NetworkManagement::V1::LoadBalancerType

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::LoadBalancerType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-LoadBalancerType)) --- Output only. Type of the load balancer the forwarding rule points to.

### #network

    def network() -> ::String

**Returns**

- (::String) --- A VPC network URI. For source endpoints, used according to the `network_type`. For destination endpoints, used only when the source is an external IP address endpoint, and the destination is an internal IP address endpoint.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- A VPC network URI. For source endpoints, used according to the `network_type`. For destination endpoints, used only when the source is an external IP address endpoint, and the destination is an internal IP address endpoint.
**Returns**

- (::String) --- A VPC network URI. For source endpoints, used according to the `network_type`. For destination endpoints, used only when the source is an external IP address endpoint, and the destination is an internal IP address endpoint.

### #network_type

    def network_type() -> ::Google::Cloud::NetworkManagement::V1::Endpoint::NetworkType

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::NetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-NetworkType)) --- For source endpoints, type of the network where the endpoint is located. Not relevant for destination endpoints.

### #network_type=

    def network_type=(value) -> ::Google::Cloud::NetworkManagement::V1::Endpoint::NetworkType

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::Endpoint::NetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-NetworkType)) --- For source endpoints, type of the network where the endpoint is located. Not relevant for destination endpoints.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::Endpoint::NetworkType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-Endpoint-NetworkType)) --- For source endpoints, type of the network where the endpoint is located. Not relevant for destination endpoints.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.
**Returns**

- (::Integer) --- The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.

### #project_id

    def project_id() -> ::String

**Returns**

- (::String) --- For source endpoints, endpoint project ID. Used according to the `network_type`. Not relevant for destination endpoints.

### #project_id=

    def project_id=(value) -> ::String

**Parameter**

- **value** (::String) --- For source endpoints, endpoint project ID. Used according to the `network_type`. Not relevant for destination endpoints.
**Returns**

- (::String) --- For source endpoints, endpoint project ID. Used according to the `network_type`. Not relevant for destination endpoints.

### #redis_cluster

    def redis_cluster() -> ::String

**Returns**

- (::String) --- A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. Applicable only to destination endpoint.

### #redis_cluster=

    def redis_cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. Applicable only to destination endpoint.
**Returns**

- (::String) --- A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI. Applicable only to destination endpoint.

### #redis_instance

    def redis_instance() -> ::String

**Returns**

- (::String) --- A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. Applicable only to destination endpoint.

### #redis_instance=

    def redis_instance=(value) -> ::String

**Parameter**

- **value** (::String) --- A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. Applicable only to destination endpoint.
**Returns**

- (::String) --- A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI. Applicable only to destination endpoint.