Class: MicrosoftGraph::Models::MacOSCustomConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::MacOSCustomConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mac_o_s_custom_configuration.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new MacOSCustomConfiguration and sets the default values.
-
#payload ⇒ Object
Gets the payload property value.
-
#payload=(value) ⇒ Object
Sets the payload property value.
-
#payload_file_name ⇒ Object
Gets the payloadFileName property value.
-
#payload_file_name=(value) ⇒ Object
Sets the payloadFileName property value.
-
#payload_name ⇒ Object
Gets the payloadName property value.
-
#payload_name=(value) ⇒ Object
Sets the payloadName property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceConfiguration
#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_setting_state_summaries, #device_setting_state_summaries=, #device_status_overview, #device_status_overview=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #user_status_overview, #user_status_overview=, #user_statuses, #user_statuses=, #version, #version=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new MacOSCustomConfiguration and sets the default values.
22 23 24 25 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.macOSCustomConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MacOSCustomConfiguration.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
39 40 41 42 43 44 45 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 39 def get_field_deserializers() return super.merge({ "payload" => lambda {|n| @payload = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "payloadFileName" => lambda {|n| @payload_file_name = n.get_string_value() }, "payloadName" => lambda {|n| @payload_name = n.get_string_value() }, }) end |
#payload ⇒ Object
Gets the payload property value. Payload. (UTF8 encoded byte array)
50 51 52 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 50 def payload return @payload end |
#payload=(value) ⇒ Object
Sets the payload property value. Payload. (UTF8 encoded byte array)
58 59 60 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 58 def payload=(value) @payload = value end |
#payload_file_name ⇒ Object
Gets the payloadFileName property value. Payload file name (.mobileconfig
65 66 67 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 65 def payload_file_name return @payload_file_name end |
#payload_file_name=(value) ⇒ Object
Sets the payloadFileName property value. Payload file name (.mobileconfig
73 74 75 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 73 def payload_file_name=(value) @payload_file_name = value end |
#payload_name ⇒ Object
Gets the payloadName property value. Name that is displayed to the user.
80 81 82 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 80 def payload_name return @payload_name end |
#payload_name=(value) ⇒ Object
Sets the payloadName property value. Name that is displayed to the user.
88 89 90 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 88 def payload_name=(value) @payload_name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("payload", @payload) writer.write_string_value("payloadFileName", @payload_file_name) writer.write_string_value("payloadName", @payload_name) end |