Class: Azure::ARM::Network::Models::PacketCaptureStorageLocation

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



29
30
31
# File 'lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb', line 29

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



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

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



23
24
25
# File 'lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb', line 23

def storage_path
  @storage_path
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb', line 36

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