Google Cloud Network Management V1 Client - Class FirewallInfo (2.1.1)

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 firewall policy rule.

Generated from protobuf message google.cloud.networkmanagement.v1.FirewallInfo

Namespace

Google \ Cloud \ NetworkManagement \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ display_name string

The display name of the firewall rule. This field might be empty for firewall policy rules.

↳ uri string

The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.

↳ direction string

Possible values: INGRESS, EGRESS

↳ action string

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

↳ 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 firewall policy rules.

↳ target_service_accounts array

The target service accounts specified by the firewall rule.

↳ policy string

The name of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.

↳ policy_uri string

The URI of the firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules and implied VPC firewall rules.

↳ firewall_rule_type int

The firewall rule's type.

getDisplayName

The display name of the firewall rule. This field might be empty for firewall policy rules.

Returns
Type Description
string

setDisplayName

The display name of the firewall rule. This field might be empty for firewall policy rules.

Parameter
Name Description
var string
Returns
Type Description
$this

getUri

The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.

Returns
Type Description
string

setUri

The URI of the firewall rule. This field is not applicable to implied VPC firewall 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, APPLY_SECURITY_PROFILE_GROUP

Returns
Type Description
string

setAction

Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

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 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 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 name of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall rules.

Returns
Type Description
string

setPolicy

The name of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall rules.

Parameter
Name Description
var string
Returns
Type Description
$this

getPolicyUri

The URI of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied VPC firewall rules.

Returns
Type Description
string

setPolicyUri

The URI of the firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules and implied 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