Class: MicrosoftGraph::Models::OnPremisesDirectorySynchronization

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

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 onPremisesDirectorySynchronization and sets the default values.



34
35
36
# File 'lib/models/on_premises_directory_synchronization.rb', line 34

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

Parameters:

  • parse_node

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

Returns:

  • a on_premises_directory_synchronization

Raises:

  • (StandardError)


42
43
44
45
# File 'lib/models/on_premises_directory_synchronization.rb', line 42

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return OnPremisesDirectorySynchronization.new
end

Instance Method Details

#configurationObject

Gets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant.

Returns:

  • a on_premises_directory_synchronization_configuration



19
20
21
# File 'lib/models/on_premises_directory_synchronization.rb', line 19

def configuration
    return @configuration
end

#configuration=(value) ⇒ Object

Sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant.

Parameters:

  • value

    Value to set for the configuration property.

Returns:

  • a void



27
28
29
# File 'lib/models/on_premises_directory_synchronization.rb', line 27

def configuration=(value)
    @configuration = value
end

#featuresObject

Gets the features property value. The features property

Returns:

  • a on_premises_directory_synchronization_feature



50
51
52
# File 'lib/models/on_premises_directory_synchronization.rb', line 50

def features
    return @features
end

#features=(value) ⇒ Object

Sets the features property value. The features property

Parameters:

  • value

    Value to set for the features property.

Returns:

  • a void



58
59
60
# File 'lib/models/on_premises_directory_synchronization.rb', line 58

def features=(value)
    @features = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



65
66
67
68
69
70
# File 'lib/models/on_premises_directory_synchronization.rb', line 65

def get_field_deserializers()
    return super.merge({
        "configuration" => lambda {|n| @configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronizationConfiguration.create_from_discriminator_value(pn) }) },
        "features" => lambda {|n| @features = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OnPremisesDirectorySynchronizationFeature.create_from_discriminator_value(pn) }) },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


76
77
78
79
80
81
# File 'lib/models/on_premises_directory_synchronization.rb', line 76

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("configuration", @configuration)
    writer.write_object_value("features", @features)
end