Class: Azure::ARM::Network::Models::PacketCapture

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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



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

def bytes_to_capture_per_packet
  @bytes_to_capture_per_packet
end

#filtersArray<PacketCaptureFilter>

Returns:



36
37
38
# File 'lib/generated/azure_mgmt_network/models/packet_capture.rb', line 36

def filters
  @filters
end

#storage_locationPacketCaptureStorageLocation



33
34
35
# File 'lib/generated/azure_mgmt_network/models/packet_capture.rb', line 33

def storage_location
  @storage_location
end

#targetString

supported.

Returns:

  • (String)

    The ID of the targeted resource, only VM is currently



18
19
20
# File 'lib/generated/azure_mgmt_network/models/packet_capture.rb', line 18

def target
  @target
end

#time_limit_in_secondsInteger

Default value: 18000 .

Returns:

  • (Integer)

    Maximum duration of the capture session in seconds.



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

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:



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

def total_bytes_per_session
  @total_bytes_per_session
end

Class Method Details

.mapperObject

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



43
44
45
46
47
48
49
50
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
# File 'lib/generated/azure_mgmt_network/models/packet_capture.rb', line 43

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