Class: MicrosoftGraph::Models::DeviceConfigurationDeviceStatus
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_configuration_device_status.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
-
#compliance_grace_period_expiration_date_time ⇒ Object
Gets the complianceGracePeriodExpirationDateTime property value.
-
#compliance_grace_period_expiration_date_time=(value) ⇒ Object
Sets the complianceGracePeriodExpirationDateTime property value.
-
#device_display_name ⇒ Object
Gets the deviceDisplayName property value.
-
#device_display_name=(value) ⇒ Object
Sets the deviceDisplayName property value.
-
#device_model ⇒ Object
Gets the deviceModel property value.
-
#device_model=(value) ⇒ Object
Sets the deviceModel property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceConfigurationDeviceStatus and sets the default values.
-
#last_reported_date_time ⇒ Object
Gets the lastReportedDateTime property value.
-
#last_reported_date_time=(value) ⇒ Object
Sets the lastReportedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#user_name ⇒ Object
Gets the userName property value.
-
#user_name=(value) ⇒ Object
Sets the userName property value.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceConfigurationDeviceStatus and sets the default values.
50 51 52 |
# File 'lib/models/device_configuration_device_status.rb', line 50 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
58 59 60 61 |
# File 'lib/models/device_configuration_device_status.rb', line 58 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceConfigurationDeviceStatus.new end |
Instance Method Details
#compliance_grace_period_expiration_date_time ⇒ Object
Gets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires
35 36 37 |
# File 'lib/models/device_configuration_device_status.rb', line 35 def compliance_grace_period_expiration_date_time return @compliance_grace_period_expiration_date_time end |
#compliance_grace_period_expiration_date_time=(value) ⇒ Object
Sets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires
43 44 45 |
# File 'lib/models/device_configuration_device_status.rb', line 43 def compliance_grace_period_expiration_date_time=(value) @compliance_grace_period_expiration_date_time = value end |
#device_display_name ⇒ Object
Gets the deviceDisplayName property value. Device name of the DevicePolicyStatus.
66 67 68 |
# File 'lib/models/device_configuration_device_status.rb', line 66 def device_display_name return @device_display_name end |
#device_display_name=(value) ⇒ Object
Sets the deviceDisplayName property value. Device name of the DevicePolicyStatus.
74 75 76 |
# File 'lib/models/device_configuration_device_status.rb', line 74 def device_display_name=(value) @device_display_name = value end |
#device_model ⇒ Object
Gets the deviceModel property value. The device model that is being reported
81 82 83 |
# File 'lib/models/device_configuration_device_status.rb', line 81 def device_model return @device_model end |
#device_model=(value) ⇒ Object
Sets the deviceModel property value. The device model that is being reported
89 90 91 |
# File 'lib/models/device_configuration_device_status.rb', line 89 def device_model=(value) @device_model = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/models/device_configuration_device_status.rb', line 96 def get_field_deserializers() return super.merge({ "complianceGracePeriodExpirationDateTime" => lambda {|n| @compliance_grace_period_expiration_date_time = n.get_date_time_value() }, "deviceDisplayName" => lambda {|n| @device_display_name = n.get_string_value() }, "deviceModel" => lambda {|n| @device_model = n.get_string_value() }, "lastReportedDateTime" => lambda {|n| @last_reported_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::ComplianceStatus) }, "userName" => lambda {|n| @user_name = n.get_string_value() }, "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() }, }) end |
#last_reported_date_time ⇒ Object
Gets the lastReportedDateTime property value. Last modified date time of the policy report.
111 112 113 |
# File 'lib/models/device_configuration_device_status.rb', line 111 def last_reported_date_time return @last_reported_date_time end |
#last_reported_date_time=(value) ⇒ Object
Sets the lastReportedDateTime property value. Last modified date time of the policy report.
119 120 121 |
# File 'lib/models/device_configuration_device_status.rb', line 119 def last_reported_date_time=(value) @last_reported_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/models/device_configuration_device_status.rb', line 127 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("complianceGracePeriodExpirationDateTime", @compliance_grace_period_expiration_date_time) writer.write_string_value("deviceDisplayName", @device_display_name) writer.write_string_value("deviceModel", @device_model) writer.write_date_time_value("lastReportedDateTime", @last_reported_date_time) writer.write_enum_value("status", @status) writer.write_string_value("userName", @user_name) writer.write_string_value("userPrincipalName", @user_principal_name) end |
#status ⇒ Object
Gets the status property value. The status property
142 143 144 |
# File 'lib/models/device_configuration_device_status.rb', line 142 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
150 151 152 |
# File 'lib/models/device_configuration_device_status.rb', line 150 def status=(value) @status = value end |
#user_name ⇒ Object
Gets the userName property value. The User Name that is being reported
157 158 159 |
# File 'lib/models/device_configuration_device_status.rb', line 157 def user_name return @user_name end |
#user_name=(value) ⇒ Object
Sets the userName property value. The User Name that is being reported
165 166 167 |
# File 'lib/models/device_configuration_device_status.rb', line 165 def user_name=(value) @user_name = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. UserPrincipalName.
172 173 174 |
# File 'lib/models/device_configuration_device_status.rb', line 172 def user_principal_name return @user_principal_name end |
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value. UserPrincipalName.
180 181 182 |
# File 'lib/models/device_configuration_device_status.rb', line 180 def user_principal_name=(value) @user_principal_name = value end |