Class: Azure::SecurityInsights::Mgmt::V2019_01_01_preview::Models::IoTDeviceEntity

Inherits:
Entity
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb

Overview

Represents an IoT device entity.

Instance Attribute Summary collapse

Attributes inherited from Entity

#id, #name, #type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIoTDeviceEntity

Returns a new instance of IoTDeviceEntity.



16
17
18
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 16

def initialize
  @kind = "IoTDevice"
end

Instance Attribute Details

#additional_dataObject

will be presented to the user.

Returns:

  • A bag of custom fields that should be part of the entity and



24
25
26
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 24

def additional_data
  @additional_data
end

#device_idString

Returns The ID of the IoT Device in the IoT Hub.

Returns:

  • (String)

    The ID of the IoT Device in the IoT Hub



32
33
34
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 32

def device_id
  @device_id
end

#device_typeString

Returns The type of the device.

Returns:

  • (String)

    The type of the device



38
39
40
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 38

def device_type
  @device_type
end

#edge_idString

Returns The ID of the edge device.

Returns:

  • (String)

    The ID of the edge device



44
45
46
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 44

def edge_id
  @edge_id
end

#friendly_nameString

readable description of the graph item instance. This property is optional and might be system generated.

Returns:

  • (String)

    The graph item display name which is a short humanly



29
30
31
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 29

def friendly_name
  @friendly_name
end

#host_entity_idString

Returns The Host entity id of this device.

Returns:

  • (String)

    The Host entity id of this device



50
51
52
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 50

def host_entity_id
  @host_entity_id
end

#iot_hub_entity_idString

Returns The AzureResource entity id of the IoT Hub.

Returns:

  • (String)

    The AzureResource entity id of the IoT Hub



47
48
49
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 47

def iot_hub_entity_id
  @iot_hub_entity_id
end

#iot_security_agent_idObject

Returns The ID of the security agent running on the device.

Returns:

  • The ID of the security agent running on the device



35
36
37
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 35

def iot_security_agent_id
  @iot_security_agent_id
end

#kindObject

Returns the value of attribute kind.



20
21
22
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 20

def kind
  @kind
end

#threat_intelligenceArray<ThreatIntelligence>

the IoTDevice entity.

Returns:



54
55
56
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 54

def threat_intelligence
  @threat_intelligence
end

#vendorString

Returns The vendor of the device.

Returns:

  • (String)

    The vendor of the device



41
42
43
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 41

def vendor
  @vendor
end

Class Method Details

.mapperObject

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



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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/2019-01-01-preview/generated/azure_mgmt_security_insights/models/io_tdevice_entity.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IoTDevice',
    type: {
      name: 'Composite',
      class_name: 'IoTDeviceEntity',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        additional_data: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.additionalData',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.friendlyName',
          type: {
            name: 'String'
          }
        },
        device_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.deviceId',
          type: {
            name: 'String'
          }
        },
        iot_security_agent_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.iotSecurityAgentId',
          type: {
            name: 'String'
          }
        },
        device_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.deviceType',
          type: {
            name: 'String'
          }
        },
        vendor: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.vendor',
          type: {
            name: 'String'
          }
        },
        edge_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.edgeId',
          type: {
            name: 'String'
          }
        },
        iot_hub_entity_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.iotHubEntityId',
          type: {
            name: 'String'
          }
        },
        host_entity_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.hostEntityId',
          type: {
            name: 'String'
          }
        },
        threat_intelligence: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.threatIntelligence',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ThreatIntelligenceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ThreatIntelligence'
                }
            }
          }
        }
      }
    }
  }
end