# Google Cloud Video Live Stream V1 Client - Class SecurityRule (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class SecurityRule.

Security rules for access control. Each field represents one security rule.

Only when the source of the input stream satisfies all the fields, this
input stream can be accepted.

Generated from protobuf message `google.cloud.video.livestream.v1.Input.SecurityRule`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1 \\ Input

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ip_ranges` | `string[]` At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, `192.0.1.0/24` for a range and `192.0.1.0/32` for a single IP address. |

### getIpRanges

At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, `192.0.1.0/24` for a range and
`192.0.1.0/32` for a single IP address.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIpRanges

At least one ip range must match unless none specified. The IP range is
defined by CIDR block: for example, `192.0.1.0/24` for a range and
`192.0.1.0/32` for a single IP address.

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

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