Class: MicrosoftGraph::Models::MacOSCustomConfiguration

Inherits:
DeviceConfiguration show all
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

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a mac_o_s_custom_configuration

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#payloadObject

Gets the payload property value. Payload. (UTF8 encoded byte array)

Returns:

  • a base64url



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)

Parameters:

  • value

    Value to set for the payload property.

Returns:

  • a void



60
61
62
# File 'lib/models/mac_o_s_custom_configuration.rb', line 60

def payload=(value)
    @payload = value
end

#payload_file_nameObject

Gets the payloadFileName property value. Payload file name (.mobileconfig

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the payloadFileName property.

Returns:

  • a void



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_nameObject

Gets the payloadName property value. Name that is displayed to the user.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the payloadName property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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