Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::IpRules.
IP rules associated with the finding.
Inherits
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allowed
def allowed() -> ::Google::Cloud::SecurityCenter::V2::Allowed
-
(::Google::Cloud::SecurityCenter::V2::Allowed) — Tuple with allowed rules.
Note: The following fields are mutually exclusive:
allowed
,denied
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#allowed=
def allowed=(value) -> ::Google::Cloud::SecurityCenter::V2::Allowed
-
value (::Google::Cloud::SecurityCenter::V2::Allowed) — Tuple with allowed rules.
Note: The following fields are mutually exclusive:
allowed
,denied
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::SecurityCenter::V2::Allowed) — Tuple with allowed rules.
Note: The following fields are mutually exclusive:
allowed
,denied
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#denied
def denied() -> ::Google::Cloud::SecurityCenter::V2::Denied
-
(::Google::Cloud::SecurityCenter::V2::Denied) — Tuple with denied rules.
Note: The following fields are mutually exclusive:
denied
,allowed
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#denied=
def denied=(value) -> ::Google::Cloud::SecurityCenter::V2::Denied
-
value (::Google::Cloud::SecurityCenter::V2::Denied) — Tuple with denied rules.
Note: The following fields are mutually exclusive:
denied
,allowed
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::SecurityCenter::V2::Denied) — Tuple with denied rules.
Note: The following fields are mutually exclusive:
denied
,allowed
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#destination_ip_ranges
def destination_ip_ranges() -> ::Array<::String>
- (::Array<::String>) — If 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.
#destination_ip_ranges=
def destination_ip_ranges=(value) -> ::Array<::String>
- value (::Array<::String>) — If 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.
- (::Array<::String>) — If 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.
#direction
def direction() -> ::Google::Cloud::SecurityCenter::V2::IpRules::Direction
- (::Google::Cloud::SecurityCenter::V2::IpRules::Direction) — The direction that the rule is applicable to, one of ingress or egress.
#direction=
def direction=(value) -> ::Google::Cloud::SecurityCenter::V2::IpRules::Direction
- value (::Google::Cloud::SecurityCenter::V2::IpRules::Direction) — The direction that the rule is applicable to, one of ingress or egress.
- (::Google::Cloud::SecurityCenter::V2::IpRules::Direction) — The direction that the rule is applicable to, one of ingress or egress.
#exposed_services
def exposed_services() -> ::Array<::String>
- (::Array<::String>) — Name 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.
#exposed_services=
def exposed_services=(value) -> ::Array<::String>
- value (::Array<::String>) — Name 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.
- (::Array<::String>) — Name 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.
#source_ip_ranges
def source_ip_ranges() -> ::Array<::String>
- (::Array<::String>) — If 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.
#source_ip_ranges=
def source_ip_ranges=(value) -> ::Array<::String>
- value (::Array<::String>) — If 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.
- (::Array<::String>) — If 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.