# Google Cloud Security Command Center V1 Client - Class ExternalExposure (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class ExternalExposure.

Details about the externally exposed resource associated with the finding.

Generated from protobuf message `google.cloud.securitycenter.v1.ExternalExposure`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ private_ip_address` | `string` Private IP address of the exposed endpoint. |
| `↳ private_port` | `string` Port number associated with private IP address. |
| `↳ exposed_service` | `string` The name and version of the service, for example, "Jupyter Notebook 6.14.0". |
| `↳ public_ip_address` | `string` Public IP address of the exposed endpoint. |
| `↳ public_port` | `string` Public port number of the exposed endpoint. |
| `↳ exposed_endpoint` | `string` The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}." |
| `↳ load_balancer_firewall_policy` | `string` The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}". |
| `↳ service_firewall_policy` | `string` The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}". |
| `↳ forwarding_rule` | `string` The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}". |
| `↳ backend_service` | `string` The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}". |
| `↳ instance_group` | `string` The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}". |
| `↳ network_endpoint_group` | `string` The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}". |

### getPrivateIpAddress

Private IP address of the exposed endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivateIpAddress

Private IP address of the exposed endpoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivatePort

Port number associated with private IP address.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPrivatePort

Port number associated with private IP address.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExposedService

The name and version of the service, for example, "Jupyter
Notebook 6.14.0".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setExposedService

The name and version of the service, for example, "Jupyter
Notebook 6.14.0".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublicIpAddress

Public IP address of the exposed endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPublicIpAddress

Public IP address of the exposed endpoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublicPort

Public port number of the exposed endpoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPublicPort

Public port number of the exposed endpoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExposedEndpoint

The resource which is running the exposed service, for example,
"//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}."

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setExposedEndpoint

The resource which is running the exposed service, for example,
"//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}."

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLoadBalancerFirewallPolicy

The full resource name of the load balancer firewall policy, for example,
"//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLoadBalancerFirewallPolicy

The full resource name of the load balancer firewall policy, for example,
"//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceFirewallPolicy

The full resource name of the firewall policy of the exposed service, for
example,
"//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceFirewallPolicy

The full resource name of the firewall policy of the exposed service, for
example,
"//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getForwardingRule

The full resource name of the forwarding rule, for example,
"//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setForwardingRule

The full resource name of the forwarding rule, for example,
"//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBackendService

The full resource name of load balancer backend service, for example,
"//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBackendService

The full resource name of load balancer backend service, for example,
"//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInstanceGroup

The full resource name of the instance group, for example,
"//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setInstanceGroup

The full resource name of the instance group, for example,
"//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkEndpointGroup

The full resource name of the network endpoint group, for example,
"//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetworkEndpointGroup

The full resource name of the network endpoint group, for example,
"//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |