Class: Azure::Network::Mgmt::V2017_03_01::Models::PacketCaptureFilter

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb

Overview

Filter that is applied to packet capture request. Multiple filters can be applied.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#local_ipaddressString

“127.0.0.1” for single address entry. “127.0.0.1-127.0.0.255” for range. “127.0.0.1;127.0.0.5”? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

  • (String)

    Local IP Address to be filtered on. Notation:



25
26
27
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 25

def local_ipaddress
  @local_ipaddress
end

#local_portString

single port entry.“80-85” for range. “80;443;” for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

  • (String)

    Local port to be filtered on. Notation: “80” for



38
39
40
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 38

def local_port
  @local_port
end

#protocolPcProtocol

include: ‘TCP’, ‘UDP’, ‘Any’. Default value: ‘Any’ .

Returns:

  • (PcProtocol)

    Protocol to be filtered on. Possible values



18
19
20
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 18

def protocol
  @protocol
end

#remote_ipaddressString

“127.0.0.1” for single address entry. “127.0.0.1-127.0.0.255” for range. “127.0.0.1;127.0.0.5;” for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

  • (String)

    Local IP Address to be filtered on. Notation:



32
33
34
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 32

def remote_ipaddress
  @remote_ipaddress
end

#remote_portString

single port entry.“80-85” for range. “80;443;” for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null.

Returns:

  • (String)

    Remote port to be filtered on. Notation: “80” for



44
45
46
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 44

def remote_port
  @remote_port
end

Class Method Details

.mapperObject

Mapper for PacketCaptureFilter class as Ruby Hash. This will be used for serialization/deserialization.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/packet_capture_filter.rb', line 51

def self.mapper()
  {
    required: false,
    serialized_name: 'PacketCaptureFilter',
    type: {
      name: 'Composite',
      class_name: 'PacketCaptureFilter',
      model_properties: {
        protocol: {
          required: false,
          serialized_name: 'protocol',
          default_value: 'Any',
          type: {
            name: 'String'
          }
        },
        local_ipaddress: {
          required: false,
          serialized_name: 'localIPAddress',
          type: {
            name: 'String'
          }
        },
        remote_ipaddress: {
          required: false,
          serialized_name: 'remoteIPAddress',
          type: {
            name: 'String'
          }
        },
        local_port: {
          required: false,
          serialized_name: 'localPort',
          type: {
            name: 'String'
          }
        },
        remote_port: {
          required: false,
          serialized_name: 'remotePort',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end