Class: Google::Cloud::SecurityCenter::V2::IpRule

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 rule information.

Defined Under Namespace

Classes: PortRange

Instance Attribute Summary collapse

Instance Attribute Details

#port_ranges::Array<::Google::Cloud::SecurityCenter::V2::IpRule::PortRange>

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

Returns:

  • (::Array<::Google::Cloud::SecurityCenter::V2::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.



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 82

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

  # A port range which is inclusive of the min and max values.
  # Values are between 0 and 2^16-1. The max can be equal / must be not smaller
  # than the min value. If min and max are equal this indicates that it is a
  # single port.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     Minimum port value.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     Maximum port value.
  class PortRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#protocol::String

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

Returns:

  • (::String)

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



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'proto_docs/google/cloud/securitycenter/v2/ip_rules.rb', line 82

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

  # A port range which is inclusive of the min and max values.
  # Values are between 0 and 2^16-1. The max can be equal / must be not smaller
  # than the min value. If min and max are equal this indicates that it is a
  # single port.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     Minimum port value.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     Maximum port value.
  class PortRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end