Class: Azure::Network::Mgmt::V2018_01_01::Models::PacketCapture

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb

Overview

Parameters that define the create packet capture operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bytes_to_capture_per_packetInteger

bytes are truncated. Default value: 0 .

Returns:

  • (Integer)

    Number of bytes captured per packet, the remaining



30
31
32
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 30

def bytes_to_capture_per_packet
  @bytes_to_capture_per_packet
end

#filtersArray<PacketCaptureFilter>

Returns:



44
45
46
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 44

def filters
  @filters
end

#idString

Returns ID of the packet capture.

Returns:

  • (String)

    ID of the packet capture.



19
20
21
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 19

def id
  @id
end

#nameString

Returns Name of the packet capture.

Returns:

  • (String)

    Name of the packet capture.



16
17
18
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 16

def name
  @name
end

#storage_locationPacketCaptureStorageLocation



41
42
43
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 41

def storage_location
  @storage_location
end

#targetString

supported.

Returns:

  • (String)

    The ID of the targeted resource, only VM is currently



26
27
28
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 26

def target
  @target
end

#time_limit_in_secondsInteger

Default value: 18000 .

Returns:

  • (Integer)

    Maximum duration of the capture session in seconds.



38
39
40
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 38

def time_limit_in_seconds
  @time_limit_in_seconds
end

#total_bytes_per_sessionInteger

1073741824 .

Returns:

  • (Integer)

    Maximum size of the capture output. Default value:



34
35
36
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 34

def total_bytes_per_session
  @total_bytes_per_session
end

#typeString

Returns Packet capture type.

Returns:

  • (String)

    Packet capture type.



22
23
24
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 22

def type
  @type
end

Class Method Details

.mapperObject

Mapper for PacketCapture 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PacketCapture',
    type: {
      name: 'Composite',
      class_name: 'PacketCapture',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.target',
          type: {
            name: 'String'
          }
        },
        bytes_to_capture_per_packet: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.bytesToCapturePerPacket',
          default_value: 0,
          type: {
            name: 'Number'
          }
        },
        total_bytes_per_session: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.totalBytesPerSession',
          default_value: 1073741824,
          type: {
            name: 'Number'
          }
        },
        time_limit_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.timeLimitInSeconds',
          default_value: 18000,
          type: {
            name: 'Number'
          }
        },
        storage_location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.storageLocation',
          type: {
            name: 'Composite',
            class_name: 'PacketCaptureStorageLocation'
          }
        },
        filters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.filters',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PacketCaptureFilterElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PacketCaptureFilter'
                }
            }
          }
        }
      }
    }
  }
end