Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::IoTRole

Inherits:
Role
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb

Overview

Compute role.

Instance Attribute Summary collapse

Attributes inherited from ARMBaseModel

#id, #name, #type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIoTRole

Returns a new instance of IoTRole.



16
17
18
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 16

def initialize
  @kind = "IOT"
end

Instance Attribute Details

#host_platformPlatformType

values include: ‘Windows’, ‘Linux’

Returns:

  • (PlatformType)

    Host OS supported by the IoT role. Possible



24
25
26
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 24

def host_platform
  @host_platform
end

#io_tdevice_detailsIoTDeviceInfo

device needs to be connected.

Returns:



28
29
30
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 28

def io_tdevice_details
  @io_tdevice_details
end

#io_tedge_device_detailsIoTDeviceInfo

be configured.

Returns:

  • (IoTDeviceInfo)

    IoT edge device to which the IoT role needs to



32
33
34
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 32

def io_tedge_device_details
  @io_tedge_device_details
end

#kindObject

Returns the value of attribute kind.



20
21
22
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 20

def kind
  @kind
end

#role_statusRoleStatus

‘Disabled’

Returns:

  • (RoleStatus)

    Role status. Possible values include: ‘Enabled’,



39
40
41
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 39

def role_status
  @role_status
end

#share_mappingsArray<MountPointMap>

Returns Mount points of shares in role(s).

Returns:



35
36
37
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 35

def share_mappings
  @share_mappings
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IOT',
    type: {
      name: 'Composite',
      class_name: 'IoTRole',
      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'
          }
        },
        host_platform: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.hostPlatform',
          type: {
            name: 'String'
          }
        },
        io_tdevice_details: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.ioTDeviceDetails',
          type: {
            name: 'Composite',
            class_name: 'IoTDeviceInfo'
          }
        },
        io_tedge_device_details: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.ioTEdgeDeviceDetails',
          type: {
            name: 'Composite',
            class_name: 'IoTDeviceInfo'
          }
        },
        share_mappings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.shareMappings',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MountPointMapElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MountPointMap'
                }
            }
          }
        },
        role_status: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.roleStatus',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end