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

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
NameDescription
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
TypeDescription
string

setDisplayName

The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUri

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

Returns
TypeDescription
string

setUri

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDirection

Possible values: INGRESS, EGRESS

Returns
TypeDescription
string

setDirection

Possible values: INGRESS, EGRESS

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAction

Possible values: ALLOW, DENY

Returns
TypeDescription
string

setAction

Possible values: ALLOW, DENY

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPriority

The priority of the firewall rule.

Returns
TypeDescription
int

setPriority

The priority of the firewall rule.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getTargetTags

The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules.

Returns
TypeDescription
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
NameDescription
var string[]
Returns
TypeDescription
$this

getTargetServiceAccounts

The target service accounts specified by the firewall rule.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTargetServiceAccounts

The target service accounts specified by the firewall rule.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getPolicy

The hierarchical firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules.

Returns
TypeDescription
string

setPolicy

The hierarchical firewall policy that this rule is associated with.

This field is not applicable to VPC firewall rules.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFirewallRuleType

The firewall rule's type.

Returns
TypeDescription
int

setFirewallRuleType

The firewall rule's type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this