NAME
Google::Cloud::Securitycenter::V2::IpRules - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/ip_rules.proto
SYNOPSIS
use Google::Cloud::Securitycenter::V2::IpRules;
my $msg = Google::Cloud::Securitycenter::V2::IpRules::IpRules->new({
direction => $direction,
allowed => $allowed,
denied => $denied,
source_ip_ranges => $source_ip_ranges,
});
# Read or update a field
my $val = $msg->direction();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V2::IpRules::IpRules->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v2/ip_rules.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Securitycenter::V2::IpRules::IpRules
IP rules associated with the finding.
Inherits from Protobuf::Message.
Accessors
$msg->direction()/$msg->direction($value)Type:
Enum(Google::Cloud::Securitycenter::V2::IpRules::Direction)The direction that the rule is applicable to, one of ingress or egress.
$msg->allowed()/$msg->allowed($value)Type:
Message(Google::Cloud::Securitycenter::V2::IpRules::Allowed)Tuple with allowed rules.
$msg->denied()/$msg->denied($value)Type:
Message(Google::Cloud::Securitycenter::V2::IpRules::Denied)Tuple with denied rules.
$msg->source_ip_ranges()/$msg->source_ip_ranges($value)Type:
StringIf source IP ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
$msg->destination_ip_ranges()/$msg->destination_ip_ranges($value)Type:
StringIf destination IP ranges are specified, the firewall rule applies only to traffic that has a destination IP address in these ranges. These ranges must be expressed in CIDR format. Only supports IPv4.
$msg->exposed_services()/$msg->exposed_services($value)Type:
StringName of the network protocol service, such as FTP, that is exposed by the open port. Follows the naming convention available at: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml.
Enum: IpRules::Direction
DIRECTION_UNSPECIFIED=>0INGRESS=>1EGRESS=>2
Google::Cloud::Securitycenter::V2::IpRules::IpRule
IP rule information.
Inherits from Protobuf::Message.
Accessors
$msg->protocol()/$msg->protocol($value)Type:
StringThe IP protocol this rule applies to. This value can either be one of the following well known protocol strings (TCP, UDP, ICMP, ESP, AH, IPIP, SCTP) or a string representation of the integer value.
$msg->port_ranges()/$msg->port_ranges($value)Type:
Message(Google::Cloud::Securitycenter::V2::IpRules::IpRule::PortRange)Optional. An optional list of ports to which this rule applies. This field is only applicable for the UDP or (S)TCP protocols. Each entry must be either an integer or a range including a min and max port number.
Google::Cloud::Securitycenter::V2::IpRules::Allowed
Allowed IP rule.
Inherits from Protobuf::Message.
Accessors
$msg->ip_rules()/$msg->ip_rules($value)Type:
Message(Google::Cloud::Securitycenter::V2::IpRules::IpRule)Optional. Optional list of allowed IP rules.
Google::Cloud::Securitycenter::V2::IpRules::Denied
Denied IP rule.
Inherits from Protobuf::Message.
Accessors
$msg->ip_rules()/$msg->ip_rules($value)Type:
Message(Google::Cloud::Securitycenter::V2::IpRules::IpRule)Optional. Optional list of denied IP rules.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::IpRules::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.