Class: Azure::Network::Mgmt::V2017_10_01::Models::PacketCaptureResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-10-01/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



31
32
33
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 31

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



23
24
25
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 23

def etag
  @etag
end

#filtersArray<PacketCaptureFilter>

Returns:



45
46
47
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 45

def filters
  @filters
end

#idString

Returns ID of the packet capture operation.

Returns:

  • (String)

    ID of the packet capture operation.



19
20
21
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 19

def id
  @id
end

#nameString

Returns Name of the packet capture session.

Returns:

  • (String)

    Name of the packet capture session.



16
17
18
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 16

def name
  @name
end

#provisioning_stateProvisioningState

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

Returns:



50
51
52
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 50

def provisioning_state
  @provisioning_state
end

#storage_locationPacketCaptureStorageLocation



42
43
44
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 42

def storage_location
  @storage_location
end

#targetString

supported.

Returns:

  • (String)

    The ID of the targeted resource, only VM is currently



27
28
29
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 27

def target
  @target
end

#time_limit_in_secondsInteger

Default value: 18000 .

Returns:

  • (Integer)

    Maximum duration of the capture session in seconds.



39
40
41
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 39

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:



35
36
37
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 35

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.



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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb', line 57

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