1.3.0 (latest) 1.2.4 1.1.3 1.0.4 0.5.5 0.4.5 0.3.5 Reference documentation and code samples for the Access Context Manager V1 Client class IngressPolicy.

Policy for ingress into [ServicePerimeter](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter).

[IngressPolicies](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
match requests based on `ingress_from` and `ingress_to` stanzas. For an
ingress policy to match, both the `ingress_from` and `ingress_to` stanzas
must be matched. If an [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
matches a request, the request is allowed through the perimeter boundary
from outside the perimeter.
For example, access from the internet can be allowed either
based on an [AccessLevel](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) or, for traffic
hosted on Google Cloud, the project of the source network. For access from
private networks, using the project of the hosting network is required.
Individual ingress policies can be limited by restricting which
services and/or actions they match using the `ingress_to` field.

Generated from protobuf message `google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy`

## Namespace

Google \\ Identity \\ AccessContextManager \\ V1 \\ ServicePerimeterConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ingress_from` | `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressFrom` Defines the conditions on the source of a request causing this \[IngressPolicy\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy\] to apply. |
| `↳ ingress_to` | `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressTo` Defines the conditions on the \[ApiOperation\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\] and request destination that cause this \[IngressPolicy\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy\] to apply. |

### getIngressFrom

Defines the conditions on the source of a request causing this
[IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
to apply.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressFrom|null` |   |

### hasIngressFrom

### clearIngressFrom

### setIngressFrom

Defines the conditions on the source of a request causing this
[IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
to apply.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressFrom` |

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

### getIngressTo

Defines the conditions on the [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation)
and request destination that cause this [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
to apply.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressTo|null` |   |

### hasIngressTo

### clearIngressTo

### setIngressTo

Defines the conditions on the [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation)
and request destination that cause this [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
to apply.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressTo` |

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