Class: Azure::ARM::Network::Models::PacketCaptureResult

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_network/models/packet_capture_result.rb

Overview

Information about packet capture session.

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



32
33
34
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 32

def bytes_to_capture_per_packet
  @bytes_to_capture_per_packet
end

#etagString

changes whenever the resource is updated.‘ .

Returns:

  • (String)

    . Default value: ‘A unique read-only string that



24
25
26
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 24

def etag
  @etag
end

#filtersArray<PacketCaptureFilter>

Returns:



46
47
48
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 46

def filters
  @filters
end

#idString

Returns ID of the packet capture operation.

Returns:

  • (String)

    ID of the packet capture operation.



20
21
22
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 20

def id
  @id
end

#nameString

Returns Name of the packet capture session.

Returns:

  • (String)

    Name of the packet capture session.



17
18
19
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 17

def name
  @name
end

#provisioning_stateProvisioningState

capture session. Possible values include: ‘Succeeded’, ‘Updating’, ‘Deleting’, ‘Failed’

Returns:



51
52
53
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 51

def provisioning_state
  @provisioning_state
end

#storage_locationPacketCaptureStorageLocation



43
44
45
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 43

def storage_location
  @storage_location
end

#targetString

supported.

Returns:

  • (String)

    The ID of the targeted resource, only VM is currently



28
29
30
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 28

def target
  @target
end

#time_limit_in_secondsInteger

Default value: 18000 .

Returns:

  • (Integer)

    Maximum duration of the capture session in seconds.



40
41
42
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 40

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:



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

def total_bytes_per_session
  @total_bytes_per_session
end

Class Method Details

.mapperObject

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



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
152
153
154
# File 'lib/generated/azure_mgmt_network/models/packet_capture_result.rb', line 58

def self.mapper()
  {
    required: false,
    serialized_name: 'PacketCaptureResult',
    type: {
      name: 'Composite',
      class_name: 'PacketCaptureResult',
      model_properties: {
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        etag: {
          required: false,
          serialized_name: 'etag',
          default_value: 'A unique read-only string that changes whenever the resource is updated.',
          type: {
            name: 'String'
          }
        },
        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'
                }
            }
          }
        },
        provisioning_state: {
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end