Reference documentation and code samples for the Google Cloud Network Management V1 Client class FirewallInfo.
For display only. Metadata associated with a VPC firewall rule, an implied VPC firewall rule, or a hierarchical firewall policy rule.
Generated from protobuf message google.cloud.networkmanagement.v1.FirewallInfo
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ display_name |
string
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules. |
↳ uri |
string
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules. |
↳ direction |
string
Possible values: INGRESS, EGRESS |
↳ action |
string
Possible values: ALLOW, DENY |
↳ priority |
int
The priority of the firewall rule. |
↳ network_uri |
string
The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules. |
↳ target_tags |
array
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules. |
↳ target_service_accounts |
array
The target service accounts specified by the firewall rule. |
↳ policy |
string
The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules. |
↳ firewall_rule_type |
int
The firewall rule's type. |
getDisplayName
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUri
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
Returns | |
---|---|
Type | Description |
string |
setUri
The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDirection
Possible values: INGRESS, EGRESS
Returns | |
---|---|
Type | Description |
string |
setDirection
Possible values: INGRESS, EGRESS
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAction
Possible values: ALLOW, DENY
Returns | |
---|---|
Type | Description |
string |
setAction
Possible values: ALLOW, DENY
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPriority
The priority of the firewall rule.
Returns | |
---|---|
Type | Description |
int |
setPriority
The priority of the firewall rule.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getNetworkUri
The URI of the VPC network that the firewall rule is associated with.
This field is not applicable to hierarchical firewall policy rules.
Returns | |
---|---|
Type | Description |
string |
setNetworkUri
The URI of the VPC network that the firewall rule is associated with.
This field is not applicable to hierarchical firewall policy rules.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTargetTags
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTargetTags
The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getTargetServiceAccounts
The target service accounts specified by the firewall rule.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTargetServiceAccounts
The target service accounts specified by the firewall rule.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getPolicy
The hierarchical firewall policy that this rule is associated with.
This field is not applicable to VPC firewall rules.
Returns | |
---|---|
Type | Description |
string |
setPolicy
The hierarchical firewall policy that this rule is associated with.
This field is not applicable to VPC firewall rules.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getFirewallRuleType
The firewall rule's type.
Returns | |
---|---|
Type | Description |
int |
setFirewallRuleType
The firewall rule's type.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |