Class: Azure::Network::Mgmt::V2018_08_01::Models::PacketCaptureParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.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


21
22
23
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 21

def bytes_to_capture_per_packet
  @bytes_to_capture_per_packet
end

#filtersArray<PacketCaptureFilter>

Returns:


35
36
37
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 35

def filters
  @filters
end

#storage_locationPacketCaptureStorageLocation


32
33
34
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 32

def storage_location
  @storage_location
end

#targetString

supported.

Returns:

  • (String)

    The ID of the targeted resource, only VM is currently


17
18
19
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 17

def target
  @target
end

#time_limit_in_secondsInteger

Default value: 18000 .

Returns:

  • (Integer)

    Maximum duration of the capture session in seconds.


29
30
31
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 29

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:


25
26
27
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 25

def total_bytes_per_session
  @total_bytes_per_session
end

Class Method Details

.mapperObject

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


42
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
109
110
111
112
113
114
115
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb', line 42

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