2.2.3 (latest) 2.1.3 2.0.4 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class CreateIngressRuleRequest.

Request message for `Firewall.CreateIngressRule`.

Generated from protobuf message `google.appengine.v1.CreateIngressRuleRequest`

## Namespace

Google \\ Cloud \\ AppEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Name of the parent Firewall collection in which to create a new rule. Example: `apps/myapp/firewall/ingressRules`. |
| `↳ rule` | `https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.FirewallRule` A FirewallRule containing the new resource. The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one. If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule. |

### getParent

Name of the parent Firewall collection in which to create a new rule.

Example: `apps/myapp/firewall/ingressRules`.

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

### setParent

Name of the parent Firewall collection in which to create a new rule.

Example: `apps/myapp/firewall/ingressRules`.

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

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

### getRule

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be
placed. The positions define a sequential list starting at 1. If a rule
already exists at the given position, rules greater than the provided
position will be moved forward by one.
If no position is provided, the server will place the rule as the second to
last rule in the sequence before the required default allow-all or deny-all
rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.FirewallRule|null` |   |

### hasRule

### clearRule

### setRule

A FirewallRule containing the new resource.

The user may optionally provide a position at which the new rule will be
placed. The positions define a sequential list starting at 1. If a rule
already exists at the given position, rules greater than the provided
position will be moved forward by one.
If no position is provided, the server will place the rule as the second to
last rule in the sequence before the required default allow-all or deny-all
rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-appengine-admin/latest/V1.FirewallRule` |

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