Class: MicrosoftGraph::Models::Device
- Inherits:
-
DirectoryObject
- Object
- Entity
- DirectoryObject
- MicrosoftGraph::Models::Device
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device.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
-
#account_enabled ⇒ Object
Gets the accountEnabled property value.
-
#account_enabled=(value) ⇒ Object
Sets the accountEnabled property value.
-
#alternative_security_ids ⇒ Object
Gets the alternativeSecurityIds property value.
-
#alternative_security_ids=(value) ⇒ Object
Sets the alternativeSecurityIds property value.
-
#approximate_last_sign_in_date_time ⇒ Object
Gets the approximateLastSignInDateTime property value.
-
#approximate_last_sign_in_date_time=(value) ⇒ Object
Sets the approximateLastSignInDateTime property value.
-
#compliance_expiration_date_time ⇒ Object
Gets the complianceExpirationDateTime property value.
-
#compliance_expiration_date_time=(value) ⇒ Object
Sets the complianceExpirationDateTime property value.
-
#device_category ⇒ Object
Gets the deviceCategory property value.
-
#device_category=(value) ⇒ Object
Sets the deviceCategory property value.
-
#device_id ⇒ Object
Gets the deviceId property value.
-
#device_id=(value) ⇒ Object
Sets the deviceId property value.
-
#device_metadata ⇒ Object
Gets the deviceMetadata property value.
-
#device_metadata=(value) ⇒ Object
Sets the deviceMetadata property value.
-
#device_ownership ⇒ Object
Gets the deviceOwnership property value.
-
#device_ownership=(value) ⇒ Object
Sets the deviceOwnership property value.
-
#device_version ⇒ Object
Gets the deviceVersion property value.
-
#device_version=(value) ⇒ Object
Sets the deviceVersion property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#enrollment_profile_name ⇒ Object
Gets the enrollmentProfileName property value.
-
#enrollment_profile_name=(value) ⇒ Object
Sets the enrollmentProfileName property value.
-
#extensions ⇒ Object
Gets the extensions property value.
-
#extensions=(value) ⇒ Object
Sets the extensions property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new device 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.
-
#mdm_app_id ⇒ Object
Gets the mdmAppId property value.
-
#mdm_app_id=(value) ⇒ Object
Sets the mdmAppId property value.
-
#member_of ⇒ Object
Gets the memberOf property value.
-
#member_of=(value) ⇒ Object
Sets the memberOf property value.
-
#on_premises_last_sync_date_time ⇒ Object
Gets the onPremisesLastSyncDateTime property value.
-
#on_premises_last_sync_date_time=(value) ⇒ Object
Sets the onPremisesLastSyncDateTime property value.
-
#on_premises_sync_enabled ⇒ Object
Gets the onPremisesSyncEnabled property value.
-
#on_premises_sync_enabled=(value) ⇒ Object
Sets the onPremisesSyncEnabled property value.
-
#operating_system ⇒ Object
Gets the operatingSystem property value.
-
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value.
-
#operating_system_version ⇒ Object
Gets the operatingSystemVersion property value.
-
#operating_system_version=(value) ⇒ Object
Sets the operatingSystemVersion property value.
-
#physical_ids ⇒ Object
Gets the physicalIds property value.
-
#physical_ids=(value) ⇒ Object
Sets the physicalIds property value.
-
#profile_type ⇒ Object
Gets the profileType property value.
-
#profile_type=(value) ⇒ Object
Sets the profileType property value.
-
#registered_owners ⇒ Object
Gets the registeredOwners property value.
-
#registered_owners=(value) ⇒ Object
Sets the registeredOwners property value.
-
#registered_users ⇒ Object
Gets the registeredUsers property value.
-
#registered_users=(value) ⇒ Object
Sets the registeredUsers property value.
-
#registration_date_time ⇒ Object
Gets the registrationDateTime property value.
-
#registration_date_time=(value) ⇒ Object
Sets the registrationDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#system_labels ⇒ Object
Gets the systemLabels property value.
-
#system_labels=(value) ⇒ Object
Sets the systemLabels property value.
-
#transitive_member_of ⇒ Object
Gets the transitiveMemberOf property value.
-
#transitive_member_of=(value) ⇒ Object
Sets the transitiveMemberOf property value.
-
#trust_type ⇒ Object
Gets the trustType property value.
-
#trust_type=(value) ⇒ Object
Sets the trustType property value.
Methods inherited from DirectoryObject
#deleted_date_time, #deleted_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new device and sets the default values.
158 159 160 161 |
# File 'lib/models/device.rb', line 158 def initialize() super @odata_type = "#microsoft.graph.device" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
167 168 169 170 |
# File 'lib/models/device.rb', line 167 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Device.new end |
Instance Method Details
#account_enabled ⇒ Object
Gets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers in Global Administrator and Cloud Device Administrator roles can set this property.
98 99 100 |
# File 'lib/models/device.rb', line 98 def account_enabled return @account_enabled end |
#account_enabled=(value) ⇒ Object
Sets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers in Global Administrator and Cloud Device Administrator roles can set this property.
106 107 108 |
# File 'lib/models/device.rb', line 106 def account_enabled=(value) @account_enabled = value end |
#alternative_security_ids ⇒ Object
Gets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).
113 114 115 |
# File 'lib/models/device.rb', line 113 def alternative_security_ids return @alternative_security_ids end |
#alternative_security_ids=(value) ⇒ Object
Sets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).
121 122 123 |
# File 'lib/models/device.rb', line 121 def alternative_security_ids=(value) @alternative_security_ids = value end |
#approximate_last_sign_in_date_time ⇒ Object
Gets the approximateLastSignInDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderBy.
128 129 130 |
# File 'lib/models/device.rb', line 128 def approximate_last_sign_in_date_time return @approximate_last_sign_in_date_time end |
#approximate_last_sign_in_date_time=(value) ⇒ Object
Sets the approximateLastSignInDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderBy.
136 137 138 |
# File 'lib/models/device.rb', line 136 def approximate_last_sign_in_date_time=(value) @approximate_last_sign_in_date_time = value end |
#compliance_expiration_date_time ⇒ Object
Gets the complianceExpirationDateTime property value. The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
143 144 145 |
# File 'lib/models/device.rb', line 143 def compliance_expiration_date_time return @compliance_expiration_date_time end |
#compliance_expiration_date_time=(value) ⇒ Object
Sets the complianceExpirationDateTime property value. The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
151 152 153 |
# File 'lib/models/device.rb', line 151 def compliance_expiration_date_time=(value) @compliance_expiration_date_time = value end |
#device_category ⇒ Object
Gets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.
175 176 177 |
# File 'lib/models/device.rb', line 175 def device_category return @device_category end |
#device_category=(value) ⇒ Object
Sets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.
183 184 185 |
# File 'lib/models/device.rb', line 183 def device_category=(value) @device_category = value end |
#device_id ⇒ Object
Gets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).
190 191 192 |
# File 'lib/models/device.rb', line 190 def device_id return @device_id end |
#device_id=(value) ⇒ Object
Sets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).
198 199 200 |
# File 'lib/models/device.rb', line 198 def device_id=(value) @device_id = value end |
#device_metadata ⇒ Object
Gets the deviceMetadata property value. For internal use only. Set to null.
205 206 207 |
# File 'lib/models/device.rb', line 205 def return end |
#device_metadata=(value) ⇒ Object
Sets the deviceMetadata property value. For internal use only. Set to null.
213 214 215 |
# File 'lib/models/device.rb', line 213 def (value) = value end |
#device_ownership ⇒ Object
Gets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.
220 221 222 |
# File 'lib/models/device.rb', line 220 def device_ownership return @device_ownership end |
#device_ownership=(value) ⇒ Object
Sets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.
228 229 230 |
# File 'lib/models/device.rb', line 228 def device_ownership=(value) @device_ownership = value end |
#device_version ⇒ Object
Gets the deviceVersion property value. For internal use only.
235 236 237 |
# File 'lib/models/device.rb', line 235 def device_version return @device_version end |
#device_version=(value) ⇒ Object
Sets the deviceVersion property value. For internal use only.
243 244 245 |
# File 'lib/models/device.rb', line 243 def device_version=(value) @device_version = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.
250 251 252 |
# File 'lib/models/device.rb', line 250 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.
258 259 260 |
# File 'lib/models/device.rb', line 258 def display_name=(value) @display_name = value end |
#enrollment_profile_name ⇒ Object
Gets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.
265 266 267 |
# File 'lib/models/device.rb', line 265 def enrollment_profile_name return @enrollment_profile_name end |
#enrollment_profile_name=(value) ⇒ Object
Sets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.
273 274 275 |
# File 'lib/models/device.rb', line 273 def enrollment_profile_name=(value) @enrollment_profile_name = value end |
#extensions ⇒ Object
Gets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.
280 281 282 |
# File 'lib/models/device.rb', line 280 def extensions return @extensions end |
#extensions=(value) ⇒ Object
Sets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.
288 289 290 |
# File 'lib/models/device.rb', line 288 def extensions=(value) @extensions = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/models/device.rb', line 295 def get_field_deserializers() return super.merge({ "accountEnabled" => lambda {|n| @account_enabled = n.get_boolean_value() }, "alternativeSecurityIds" => lambda {|n| @alternative_security_ids = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AlternativeSecurityId.create_from_discriminator_value(pn) }) }, "approximateLastSignInDateTime" => lambda {|n| @approximate_last_sign_in_date_time = n.get_date_time_value() }, "complianceExpirationDateTime" => lambda {|n| @compliance_expiration_date_time = n.get_date_time_value() }, "deviceCategory" => lambda {|n| @device_category = n.get_string_value() }, "deviceId" => lambda {|n| @device_id = n.get_string_value() }, "deviceMetadata" => lambda {|n| = n.get_string_value() }, "deviceOwnership" => lambda {|n| @device_ownership = n.get_string_value() }, "deviceVersion" => lambda {|n| @device_version = n.get_number_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "enrollmentProfileName" => lambda {|n| @enrollment_profile_name = n.get_string_value() }, "extensions" => lambda {|n| @extensions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }) }, "isCompliant" => lambda {|n| @is_compliant = n.get_boolean_value() }, "isManaged" => lambda {|n| @is_managed = n.get_boolean_value() }, "mdmAppId" => lambda {|n| @mdm_app_id = n.get_string_value() }, "memberOf" => lambda {|n| @member_of = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, "onPremisesLastSyncDateTime" => lambda {|n| @on_premises_last_sync_date_time = n.get_date_time_value() }, "onPremisesSyncEnabled" => lambda {|n| @on_premises_sync_enabled = n.get_boolean_value() }, "operatingSystem" => lambda {|n| = n.get_string_value() }, "operatingSystemVersion" => lambda {|n| = n.get_string_value() }, "physicalIds" => lambda {|n| @physical_ids = n.get_collection_of_primitive_values(String) }, "profileType" => lambda {|n| @profile_type = n.get_string_value() }, "registeredOwners" => lambda {|n| @registered_owners = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, "registeredUsers" => lambda {|n| @registered_users = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, "registrationDateTime" => lambda {|n| @registration_date_time = n.get_date_time_value() }, "systemLabels" => lambda {|n| @system_labels = n.get_collection_of_primitive_values(String) }, "transitiveMemberOf" => lambda {|n| @transitive_member_of = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) }, "trustType" => lambda {|n| @trust_type = n.get_string_value() }, }) end |
#is_compliant ⇒ Object
Gets the isCompliant property value. true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).
331 332 333 |
# File 'lib/models/device.rb', line 331 def is_compliant return @is_compliant end |
#is_compliant=(value) ⇒ Object
Sets the isCompliant property value. true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).
339 340 341 |
# File 'lib/models/device.rb', line 339 def is_compliant=(value) @is_compliant = value end |
#is_managed ⇒ Object
Gets the isManaged property value. true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).
346 347 348 |
# File 'lib/models/device.rb', line 346 def is_managed return @is_managed end |
#is_managed=(value) ⇒ Object
Sets the isManaged property value. true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).
354 355 356 |
# File 'lib/models/device.rb', line 354 def is_managed=(value) @is_managed = value end |
#mdm_app_id ⇒ Object
Gets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).
361 362 363 |
# File 'lib/models/device.rb', line 361 def mdm_app_id return @mdm_app_id end |
#mdm_app_id=(value) ⇒ Object
Sets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).
369 370 371 |
# File 'lib/models/device.rb', line 369 def mdm_app_id=(value) @mdm_app_id = value end |
#member_of ⇒ Object
Gets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.
376 377 378 |
# File 'lib/models/device.rb', line 376 def member_of return @member_of end |
#member_of=(value) ⇒ Object
Sets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.
384 385 386 |
# File 'lib/models/device.rb', line 384 def member_of=(value) @member_of = value end |
#on_premises_last_sync_date_time ⇒ Object
Gets the onPremisesLastSyncDateTime property value. The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).
391 392 393 |
# File 'lib/models/device.rb', line 391 def on_premises_last_sync_date_time return @on_premises_last_sync_date_time end |
#on_premises_last_sync_date_time=(value) ⇒ Object
Sets the onPremisesLastSyncDateTime property value. The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).
399 400 401 |
# File 'lib/models/device.rb', line 399 def on_premises_last_sync_date_time=(value) @on_premises_last_sync_date_time = value end |
#on_premises_sync_enabled ⇒ Object
Gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).
406 407 408 |
# File 'lib/models/device.rb', line 406 def on_premises_sync_enabled return @on_premises_sync_enabled end |
#on_premises_sync_enabled=(value) ⇒ Object
Sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).
414 415 416 |
# File 'lib/models/device.rb', line 414 def on_premises_sync_enabled=(value) @on_premises_sync_enabled = value end |
#operating_system ⇒ Object
Gets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).
421 422 423 |
# File 'lib/models/device.rb', line 421 def return end |
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).
429 430 431 |
# File 'lib/models/device.rb', line 429 def (value) = value end |
#operating_system_version ⇒ Object
Gets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).
436 437 438 |
# File 'lib/models/device.rb', line 436 def return end |
#operating_system_version=(value) ⇒ Object
Sets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).
444 445 446 |
# File 'lib/models/device.rb', line 444 def (value) = value end |
#physical_ids ⇒ Object
Gets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0).
451 452 453 |
# File 'lib/models/device.rb', line 451 def physical_ids return @physical_ids end |
#physical_ids=(value) ⇒ Object
Sets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0).
459 460 461 |
# File 'lib/models/device.rb', line 459 def physical_ids=(value) @physical_ids = value end |
#profile_type ⇒ Object
Gets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.
466 467 468 |
# File 'lib/models/device.rb', line 466 def profile_type return @profile_type end |
#profile_type=(value) ⇒ Object
Sets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.
474 475 476 |
# File 'lib/models/device.rb', line 474 def profile_type=(value) @profile_type = value end |
#registered_owners ⇒ Object
Gets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.
481 482 483 |
# File 'lib/models/device.rb', line 481 def registered_owners return @registered_owners end |
#registered_owners=(value) ⇒ Object
Sets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.
489 490 491 |
# File 'lib/models/device.rb', line 489 def registered_owners=(value) @registered_owners = value end |
#registered_users ⇒ Object
Gets the registeredUsers property value. Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.
496 497 498 |
# File 'lib/models/device.rb', line 496 def registered_users return @registered_users end |
#registered_users=(value) ⇒ Object
Sets the registeredUsers property value. Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.
504 505 506 |
# File 'lib/models/device.rb', line 504 def registered_users=(value) @registered_users = value end |
#registration_date_time ⇒ Object
Gets the registrationDateTime property value. Date and time of when the device was registered. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
511 512 513 |
# File 'lib/models/device.rb', line 511 def registration_date_time return @registration_date_time end |
#registration_date_time=(value) ⇒ Object
Sets the registrationDateTime property value. Date and time of when the device was registered. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
519 520 521 |
# File 'lib/models/device.rb', line 519 def registration_date_time=(value) @registration_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/models/device.rb', line 527 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("accountEnabled", @account_enabled) writer.write_collection_of_object_values("alternativeSecurityIds", @alternative_security_ids) writer.write_date_time_value("approximateLastSignInDateTime", @approximate_last_sign_in_date_time) writer.write_date_time_value("complianceExpirationDateTime", @compliance_expiration_date_time) writer.write_string_value("deviceCategory", @device_category) writer.write_string_value("deviceId", @device_id) writer.write_string_value("deviceMetadata", ) writer.write_string_value("deviceOwnership", @device_ownership) writer.write_number_value("deviceVersion", @device_version) writer.write_string_value("displayName", @display_name) writer.write_string_value("enrollmentProfileName", @enrollment_profile_name) writer.write_collection_of_object_values("extensions", @extensions) writer.write_boolean_value("isCompliant", @is_compliant) writer.write_boolean_value("isManaged", @is_managed) writer.write_string_value("mdmAppId", @mdm_app_id) writer.write_collection_of_object_values("memberOf", @member_of) writer.write_date_time_value("onPremisesLastSyncDateTime", @on_premises_last_sync_date_time) writer.write_boolean_value("onPremisesSyncEnabled", @on_premises_sync_enabled) writer.write_string_value("operatingSystem", ) writer.write_string_value("operatingSystemVersion", ) writer.write_collection_of_primitive_values("physicalIds", @physical_ids) writer.write_string_value("profileType", @profile_type) writer.write_collection_of_object_values("registeredOwners", @registered_owners) writer.write_collection_of_object_values("registeredUsers", @registered_users) writer.write_date_time_value("registrationDateTime", @registration_date_time) writer.write_collection_of_primitive_values("systemLabels", @system_labels) writer.write_collection_of_object_values("transitiveMemberOf", @transitive_member_of) writer.write_string_value("trustType", @trust_type) end |
#system_labels ⇒ Object
Gets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).
563 564 565 |
# File 'lib/models/device.rb', line 563 def system_labels return @system_labels end |
#system_labels=(value) ⇒ Object
Sets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).
571 572 573 |
# File 'lib/models/device.rb', line 571 def system_labels=(value) @system_labels = value end |
#transitive_member_of ⇒ Object
Gets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.
578 579 580 |
# File 'lib/models/device.rb', line 578 def transitive_member_of return @transitive_member_of end |
#transitive_member_of=(value) ⇒ Object
Sets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.
586 587 588 |
# File 'lib/models/device.rb', line 586 def transitive_member_of=(value) @transitive_member_of = value end |
#trust_type ⇒ Object
Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory
593 594 595 |
# File 'lib/models/device.rb', line 593 def trust_type return @trust_type end |
#trust_type=(value) ⇒ Object
Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory
601 602 603 |
# File 'lib/models/device.rb', line 601 def trust_type=(value) @trust_type = value end |