Class: MicrosoftGraph::Models::DeviceEnrollmentConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_enrollment_configuration.rb
Overview
The Base Class of Device Enrollment Configuration
Direct Known Subclasses
DeviceEnrollmentLimitConfiguration, DeviceEnrollmentPlatformRestrictionsConfiguration, DeviceEnrollmentWindowsHelloForBusinessConfiguration
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
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description 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 deviceEnrollmentConfiguration and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#priority ⇒ Object
Gets the priority property value.
-
#priority=(value) ⇒ Object
Sets the priority property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceEnrollmentConfiguration and sets the default values.
52 53 54 |
# File 'lib/models/device_enrollment_configuration.rb', line 52 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
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/models/device_enrollment_configuration.rb', line 75 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.deviceEnrollmentLimitConfiguration" return DeviceEnrollmentLimitConfiguration.new when "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration" return DeviceEnrollmentPlatformRestrictionsConfiguration.new when "#microsoft.graph.deviceEnrollmentWindowsHelloForBusinessConfiguration" return DeviceEnrollmentWindowsHelloForBusinessConfiguration.new end end return DeviceEnrollmentConfiguration.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The list of group assignments for the device configuration profile
37 38 39 |
# File 'lib/models/device_enrollment_configuration.rb', line 37 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The list of group assignments for the device configuration profile
45 46 47 |
# File 'lib/models/device_enrollment_configuration.rb', line 45 def assignments=(value) @assignments = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. Created date time in UTC of the device enrollment configuration
59 60 61 |
# File 'lib/models/device_enrollment_configuration.rb', line 59 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. Created date time in UTC of the device enrollment configuration
67 68 69 |
# File 'lib/models/device_enrollment_configuration.rb', line 67 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of the device enrollment configuration
95 96 97 |
# File 'lib/models/device_enrollment_configuration.rb', line 95 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of the device enrollment configuration
103 104 105 |
# File 'lib/models/device_enrollment_configuration.rb', line 103 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the device enrollment configuration
110 111 112 |
# File 'lib/models/device_enrollment_configuration.rb', line 110 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the device enrollment configuration
118 119 120 |
# File 'lib/models/device_enrollment_configuration.rb', line 118 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/models/device_enrollment_configuration.rb', line 125 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EnrollmentConfigurationAssignment.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "priority" => lambda {|n| @priority = n.get_number_value() }, "version" => lambda {|n| @version = n.get_number_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Last modified date time in UTC of the device enrollment configuration
140 141 142 |
# File 'lib/models/device_enrollment_configuration.rb', line 140 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. Last modified date time in UTC of the device enrollment configuration
148 149 150 |
# File 'lib/models/device_enrollment_configuration.rb', line 148 def last_modified_date_time=(value) @last_modified_date_time = value end |
#priority ⇒ Object
Gets the priority property value. Priority is used when a user exists in multiple groups that are assigned enrollment configuration. Users are subject only to the configuration with the lowest priority value.
155 156 157 |
# File 'lib/models/device_enrollment_configuration.rb', line 155 def priority return @priority end |
#priority=(value) ⇒ Object
Sets the priority property value. Priority is used when a user exists in multiple groups that are assigned enrollment configuration. Users are subject only to the configuration with the lowest priority value.
163 164 165 |
# File 'lib/models/device_enrollment_configuration.rb', line 163 def priority=(value) @priority = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/models/device_enrollment_configuration.rb', line 171 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_number_value("priority", @priority) writer.write_number_value("version", @version) end |
#version ⇒ Object
Gets the version property value. The version of the device enrollment configuration
186 187 188 |
# File 'lib/models/device_enrollment_configuration.rb', line 186 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. The version of the device enrollment configuration
194 195 196 |
# File 'lib/models/device_enrollment_configuration.rb', line 194 def version=(value) @version = value end |