Class: MicrosoftGraph::Models::DeviceDetail
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::DeviceDetail
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_detail.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#browser ⇒ Object
Gets the browser property value.
-
#browser=(value) ⇒ Object
Sets the browser property value.
-
#device_id ⇒ Object
Gets the deviceId property value.
-
#device_id=(value) ⇒ Object
Sets the deviceId property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceDetail and sets the default values.
-
#is_compliant ⇒ Object
Gets the isCompliant property value.
-
#is_compliant=(value) ⇒ Object
Sets the isCompliant property value.
-
#is_managed ⇒ Object
Gets the isManaged property value.
-
#is_managed=(value) ⇒ Object
Sets the isManaged property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#operating_system ⇒ Object
Gets the operatingSystem property value.
-
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#trust_type ⇒ Object
Gets the trustType property value.
-
#trust_type=(value) ⇒ Object
Sets the trustType property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
48 49 50 |
# File 'lib/models/device_detail.rb', line 48 def additional_data=(value) @additional_data = value end |
#browser ⇒ Object
Gets the browser property value. Indicates the browser information of the used for signing in.
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.
63 64 65 |
# File 'lib/models/device_detail.rb', line 63 def browser=(value) @browser = value end |
#device_id ⇒ Object
Gets the deviceId property value. Refers to the UniqueID of the device used for signing in.
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.
94 95 96 |
# File 'lib/models/device_detail.rb', line 94 def device_id=(value) @device_id = value end |
#display_name ⇒ Object
Gets the displayName property value. Refers to the name of the device used for signing in.
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.
109 110 111 |
# File 'lib/models/device_detail.rb', line 109 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_string_value() }, "trustType" => lambda {|n| @trust_type = n.get_string_value() }, } end |
#is_compliant ⇒ Object
Gets the isCompliant property value. Indicates whether the device is compliant.
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.
140 141 142 |
# File 'lib/models/device_detail.rb', line 140 def is_compliant=(value) @is_compliant = value end |
#is_managed ⇒ Object
Gets the isManaged property value. Indicates whether the device is managed.
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.
155 156 157 |
# File 'lib/models/device_detail.rb', line 155 def is_managed=(value) @is_managed = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
170 171 172 |
# File 'lib/models/device_detail.rb', line 170 def odata_type=(value) @odata_type = value end |
#operating_system ⇒ Object
Gets the operatingSystem property value. Indicates the operating system name and version used for signing in.
177 178 179 |
# File 'lib/models/device_detail.rb', line 177 def return end |
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value. Indicates the operating system name and version used for signing in.
185 186 187 |
# File 'lib/models/device_detail.rb', line 185 def (value) = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
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", ) writer.write_string_value("trustType", @trust_type) writer.write_additional_data(@additional_data) end |
#trust_type ⇒ Object
Gets the trustType property value. Provides information about whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined.
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.
217 218 219 |
# File 'lib/models/device_detail.rb', line 217 def trust_type=(value) @trust_type = value end |