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 IngressFrom.

Defines the conditions under which an [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
matches a request. Conditions are based on information about the source of
the request. The request must satisfy what is defined in `sources` AND
identity related fields in order to match.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ sources` | `array<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressSource>` Sources that this \[IngressPolicy\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy\] authorizes access from. |
| `↳ identities` | `string[]` A list of identities that are allowed access through this ingress policy. Should be in the format of email address. The email address should represent individual user or service account only. |
| `↳ identity_type` | `int` Specifies the type of identities that are allowed access from outside the perimeter. If left unspecified, then members of `identities` field will be allowed access. |

### getSources

Sources that this [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
authorizes access from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressSource>` |   |

### setSources

Sources that this [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
authorizes access from.

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

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

### getIdentities

A list of identities that are allowed access through this ingress
policy. Should be in the format of email address. The email address
should represent individual user or service account only.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setIdentities

A list of identities that are allowed access through this ingress
policy. Should be in the format of email address. The email address
should represent individual user or service account only.

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

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

### getIdentityType

Specifies the type of identities that are allowed access from outside the
perimeter. If left unspecified, then members of `identities` field will
be allowed access.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IdentityType](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IdentityType). |

### setIdentityType

Specifies the type of identities that are allowed access from outside the
perimeter. If left unspecified, then members of `identities` field will
be allowed access.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [IdentityType](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IdentityType). |

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