# Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::FirewallInfo (v2.11.0)

2.11.0 (latest) 2.10.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::FirewallInfo.

For display only. Metadata associated with a VPC firewall rule, an implied
VPC firewall rule, or a firewall policy rule.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action

    def action() -> ::String

**Returns**

- (::String) --- Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

### #action=

    def action=(value) -> ::String

**Parameter**

- **value** (::String) --- Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP
**Returns**

- (::String) --- Possible values: ALLOW, DENY, APPLY_SECURITY_PROFILE_GROUP

### #direction

    def direction() -> ::String

**Returns**

- (::String) --- Possible values: INGRESS, EGRESS

### #direction=

    def direction=(value) -> ::String

**Parameter**

- **value** (::String) --- Possible values: INGRESS, EGRESS
**Returns**

- (::String) --- Possible values: INGRESS, EGRESS

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The display name of the firewall rule. This field might be empty for firewall policy rules.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The display name of the firewall rule. This field might be empty for firewall policy rules.
**Returns**

- (::String) --- The display name of the firewall rule. This field might be empty for firewall policy rules.

### #firewall_rule_type

    def firewall_rule_type() -> ::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-FirewallRuleType)) --- The firewall rule's type.

### #firewall_rule_type=

    def firewall_rule_type=(value) -> ::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-FirewallRuleType)) --- The firewall rule's type.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::FirewallRuleType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-FirewallRuleType)) --- The firewall rule's type.

### #network_uri

    def network_uri() -> ::String

**Returns**

- (::String) --- The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.

### #network_uri=

    def network_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.
**Returns**

- (::String) --- The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules.

### #policy

    def policy() -> ::String

**Returns**

- (::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=

    def policy=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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_priority

    def policy_priority() -> ::Integer

**Returns**

- (::Integer) --- The priority 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_priority=

    def policy_priority=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The priority 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**

- (::Integer) --- The priority 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

    def policy_uri() -> ::String

**Returns**

- (::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.

### #policy_uri=

    def policy_uri=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #priority

    def priority() -> ::Integer

**Returns**

- (::Integer) --- The priority of the firewall rule.

### #priority=

    def priority=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The priority of the firewall rule.
**Returns**

- (::Integer) --- The priority of the firewall rule.

### #target_service_accounts

    def target_service_accounts() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The target service accounts specified by the firewall rule.

### #target_service_accounts=

    def target_service_accounts=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The target service accounts specified by the firewall rule.
**Returns**

- (::Array\<::String\>) --- The target service accounts specified by the firewall rule.

### #target_tags

    def target_tags() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The target tags defined by the VPC firewall rule. This field is not applicable to firewall policy rules.

### #target_tags=

    def target_tags=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The target tags defined by the VPC firewall rule. This field is not applicable to firewall policy rules.
**Returns**

- (::Array\<::String\>) --- The target tags defined by the VPC firewall rule. This field is not applicable to firewall policy rules.

### #target_type

    def target_type() -> ::Google::Cloud::NetworkManagement::V1::FirewallInfo::TargetType

**Returns**

- ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::TargetType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-TargetType)) --- Target type of the firewall rule.

### #target_type=

    def target_type=(value) -> ::Google::Cloud::NetworkManagement::V1::FirewallInfo::TargetType

**Parameter**

- **value** ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::TargetType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-TargetType)) --- Target type of the firewall rule.
**Returns**

- ([::Google::Cloud::NetworkManagement::V1::FirewallInfo::TargetType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Cloud-NetworkManagement-V1-FirewallInfo-TargetType)) --- Target type of the firewall rule.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.
**Returns**

- (::String) --- The URI of the firewall rule. This field is not applicable to implied VPC firewall rules.