Class: Azure::Network::Mgmt::V2018_08_01::Models::PacketCaptureStorageLocation

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

Overview

Describes the storage location for a packet capture session.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#file_pathString

the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional.

Returns:

  • (String)

    A valid local path on the targeting VM. Must include


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

def file_path
  @file_path
end

#storage_idString

capture session. Required if no local file path is provided.

Returns:

  • (String)

    The ID of the storage account to save the packet


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

def storage_id
  @storage_id
end

#storage_pathString

capture. Must be a well-formed URI describing the location to save the packet capture.

Returns:

  • (String)

    The URI of the storage path to save the packet


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

def storage_path
  @storage_path
end

Class Method Details

.mapperObject

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


35
36
37
38
39
40
41
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
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PacketCaptureStorageLocation',
    type: {
      name: 'Composite',
      class_name: 'PacketCaptureStorageLocation',
      model_properties: {
        storage_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageId',
          type: {
            name: 'String'
          }
        },
        storage_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storagePath',
          type: {
            name: 'String'
          }
        },
        file_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filePath',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end