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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Appengine Admin V1 Client - Class CreateIngressRuleRequest (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-appengine-admin/latest/V1.CreateIngressRuleRequest)\n- [2.0.3](/php/docs/reference/cloud-appengine-admin/2.0.3/V1.CreateIngressRuleRequest)\n- [1.3.5](/php/docs/reference/cloud-appengine-admin/1.3.5/V1.CreateIngressRuleRequest)\n- [1.2.2](/php/docs/reference/cloud-appengine-admin/1.2.2/V1.CreateIngressRuleRequest)\n- [1.1.1](/php/docs/reference/cloud-appengine-admin/1.1.1/V1.CreateIngressRuleRequest)\n- [1.0.6](/php/docs/reference/cloud-appengine-admin/1.0.6/V1.CreateIngressRuleRequest) \nReference documentation and code samples for the Google Cloud Appengine Admin V1 Client class CreateIngressRuleRequest.\n\nRequest message for `Firewall.CreateIngressRule`.\n\nGenerated from protobuf message `google.appengine.v1.CreateIngressRuleRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AppEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nName of the parent Firewall collection in which to create a new rule.\n\nExample: `apps/myapp/firewall/ingressRules`.\n\n### setParent\n\nName of the parent Firewall collection in which to create a new rule.\n\nExample: `apps/myapp/firewall/ingressRules`.\n\n### getRule\n\nA FirewallRule containing the new resource.\n\nThe user may optionally provide a position at which the new rule will be\nplaced. The positions define a sequential list starting at 1. If a rule\nalready exists at the given position, rules greater than the provided\nposition will be moved forward by one.\nIf no position is provided, the server will place the rule as the second to\nlast rule in the sequence before the required default allow-all or deny-all\nrule.\n\n### hasRule\n\n### clearRule\n\n### setRule\n\nA FirewallRule containing the new resource.\n\nThe user may optionally provide a position at which the new rule will be\nplaced. The positions define a sequential list starting at 1. If a rule\nalready exists at the given position, rules greater than the provided\nposition will be moved forward by one.\nIf no position is provided, the server will place the rule as the second to\nlast rule in the sequence before the required default allow-all or deny-all\nrule."]]