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
Overview
This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomConfiguration resource.
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.
24 25 26 27 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 24 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
33 34 35 36 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 33 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
41 42 43 44 45 46 47 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 41 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)
52 53 54 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 52 def payload return @payload end |
#payload=(value) ⇒ Object
Sets the payload property value. Payload. (UTF8 encoded byte array)
60 61 62 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 60 def payload=(value) @payload = value end |
#payload_file_name ⇒ Object
Gets the payloadFileName property value. Payload file name (.mobileconfig
67 68 69 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 67 def payload_file_name return @payload_file_name end |
#payload_file_name=(value) ⇒ Object
Sets the payloadFileName property value. Payload file name (.mobileconfig
75 76 77 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 75 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.
82 83 84 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 82 def payload_name return @payload_name end |
#payload_name=(value) ⇒ Object
Sets the payloadName property value. Name that is displayed to the user.
90 91 92 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 90 def payload_name=(value) @payload_name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
98 99 100 101 102 103 104 |
# File 'lib/models/mac_o_s_custom_configuration.rb', line 98 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 |