Class: MicrosoftGraph::Models::DeviceDetail

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_detail.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new deviceDetail and sets the default values.



70
71
72
# File 'lib/models/device_detail.rb', line 70

def initialize()
    @additional_data = Hash.new
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a device_detail

Raises:

  • (StandardError)


78
79
80
81
# File 'lib/models/device_detail.rb', line 78

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return DeviceDetail.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



40
41
42
# File 'lib/models/device_detail.rb', line 40

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



48
49
50
# File 'lib/models/device_detail.rb', line 48

def additional_data=(value)
    @additional_data = value
end

#browserObject

Gets the browser property value. Indicates the browser information of the used for signing in.

Returns:

  • a string



55
56
57
# File 'lib/models/device_detail.rb', line 55

def browser
    return @browser
end

#browser=(value) ⇒ Object

Sets the browser property value. Indicates the browser information of the used for signing in.

Parameters:

  • value

    Value to set for the browser property.

Returns:

  • a void



63
64
65
# File 'lib/models/device_detail.rb', line 63

def browser=(value)
    @browser = value
end

#device_idObject

Gets the deviceId property value. Refers to the UniqueID of the device used for signing in.

Returns:

  • a string



86
87
88
# File 'lib/models/device_detail.rb', line 86

def device_id
    return @device_id
end

#device_id=(value) ⇒ Object

Sets the deviceId property value. Refers to the UniqueID of the device used for signing in.

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



94
95
96
# File 'lib/models/device_detail.rb', line 94

def device_id=(value)
    @device_id = value
end

#display_nameObject

Gets the displayName property value. Refers to the name of the device used for signing in.

Returns:

  • a string



101
102
103
# File 'lib/models/device_detail.rb', line 101

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Refers to the name of the device used for signing in.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



109
110
111
# File 'lib/models/device_detail.rb', line 109

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/models/device_detail.rb', line 116

def get_field_deserializers()
    return {
        "browser" => lambda {|n| @browser = n.get_string_value() },
        "deviceId" => lambda {|n| @device_id = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "isCompliant" => lambda {|n| @is_compliant = n.get_boolean_value() },
        "isManaged" => lambda {|n| @is_managed = n.get_boolean_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "operatingSystem" => lambda {|n| @operating_system = n.get_string_value() },
        "trustType" => lambda {|n| @trust_type = n.get_string_value() },
    }
end

#is_compliantObject

Gets the isCompliant property value. Indicates whether the device is compliant.

Returns:

  • a boolean



132
133
134
# File 'lib/models/device_detail.rb', line 132

def is_compliant
    return @is_compliant
end

#is_compliant=(value) ⇒ Object

Sets the isCompliant property value. Indicates whether the device is compliant.

Parameters:

  • value

    Value to set for the isCompliant property.

Returns:

  • a void



140
141
142
# File 'lib/models/device_detail.rb', line 140

def is_compliant=(value)
    @is_compliant = value
end

#is_managedObject

Gets the isManaged property value. Indicates whether the device is managed.

Returns:

  • a boolean



147
148
149
# File 'lib/models/device_detail.rb', line 147

def is_managed
    return @is_managed
end

#is_managed=(value) ⇒ Object

Sets the isManaged property value. Indicates whether the device is managed.

Parameters:

  • value

    Value to set for the isManaged property.

Returns:

  • a void



155
156
157
# File 'lib/models/device_detail.rb', line 155

def is_managed=(value)
    @is_managed = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



162
163
164
# File 'lib/models/device_detail.rb', line 162

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



170
171
172
# File 'lib/models/device_detail.rb', line 170

def odata_type=(value)
    @odata_type = value
end

#operating_systemObject

Gets the operatingSystem property value. Indicates the operating system name and version used for signing in.

Returns:

  • a string



177
178
179
# File 'lib/models/device_detail.rb', line 177

def operating_system
    return @operating_system
end

#operating_system=(value) ⇒ Object

Sets the operatingSystem property value. Indicates the operating system name and version used for signing in.

Parameters:

  • value

    Value to set for the operatingSystem property.

Returns:

  • a void



185
186
187
# File 'lib/models/device_detail.rb', line 185

def operating_system=(value)
    @operating_system = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/models/device_detail.rb', line 193

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("browser", @browser)
    writer.write_string_value("deviceId", @device_id)
    writer.write_string_value("displayName", @display_name)
    writer.write_boolean_value("isCompliant", @is_compliant)
    writer.write_boolean_value("isManaged", @is_managed)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("operatingSystem", @operating_system)
    writer.write_string_value("trustType", @trust_type)
    writer.write_additional_data(@additional_data)
end

#trust_typeObject

Gets the trustType property value. Provides information about whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined.

Returns:

  • a string



209
210
211
# File 'lib/models/device_detail.rb', line 209

def trust_type
    return @trust_type
end

#trust_type=(value) ⇒ Object

Sets the trustType property value. Provides information about whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined.

Parameters:

  • value

    Value to set for the trustType property.

Returns:

  • a void



217
218
219
# File 'lib/models/device_detail.rb', line 217

def trust_type=(value)
    @trust_type = value
end