Class: Google::Cloud::SecurityCenter::V2::IpRules

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/securitycenter/v2/ip_rules.rb

Overview

IP rules associated with the finding.

Defined Under Namespace

Modules: Direction

Instance Attribute Summary collapse

Instance Attribute Details

#allowed::Google::Cloud::SecurityCenter::V2::Allowed

Returns 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.

Returns:

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



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end

#denied::Google::Cloud::SecurityCenter::V2::Denied

Returns 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.

Returns:

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



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end

#destination_ip_ranges::Array<::String>

Returns 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.

Returns:

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



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end

#direction::Google::Cloud::SecurityCenter::V2::IpRules::Direction

Returns The direction that the rule is applicable to, one of ingress or egress.

Returns:



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end

#exposed_services::Array<::String>

Returns 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.

Returns:



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end

#source_ip_ranges::Array<::String>

Returns 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.

Returns:

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



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 53

class IpRules
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of direction that the rule is applicable to, one of ingress or
  # egress. Not applicable to OPEN_X_PORT findings.
  module Direction
    # Unspecified direction value.
    DIRECTION_UNSPECIFIED = 0

    # Ingress direction value.
    INGRESS = 1

    # Egress direction value.
    EGRESS = 2
  end
end