Class: MicrosoftGraph::Models::DeviceEnrollmentConfiguration

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_enrollment_configuration.rb

Overview

The Base Class of Device Enrollment Configuration

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Raises:

  • (StandardError)


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

#assignmentsObject

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_timeObject

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

#descriptionObject

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_nameObject

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_deserializersObject

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_timeObject

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

#priorityObject

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

Raises:

  • (StandardError)


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

#versionObject

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