Class: MicrosoftGraph::Models::Synchronization

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/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 synchronization and sets the default values.



22
23
24
# File 'lib/models/synchronization.rb', line 22

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 synchronization

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/synchronization.rb', line 30

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



38
39
40
41
42
43
44
# File 'lib/models/synchronization.rb', line 38

def get_field_deserializers()
    return super.merge({
        "jobs" => lambda {|n| @jobs = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationJob.create_from_discriminator_value(pn) }) },
        "secrets" => lambda {|n| @secrets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationSecretKeyStringValuePair.create_from_discriminator_value(pn) }) },
        "templates" => lambda {|n| @templates = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationTemplate.create_from_discriminator_value(pn) }) },
    })
end

#jobsObject

Gets the jobs property value. Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory.

Returns:

  • a synchronization_job



49
50
51
# File 'lib/models/synchronization.rb', line 49

def jobs
    return @jobs
end

#jobs=(value) ⇒ Object

Sets the jobs property value. Performs synchronization by periodically running in the background, polling for changes in one directory, and pushing them to another directory.

Parameters:

  • value

    Value to set for the jobs property.

Returns:

  • a void



57
58
59
# File 'lib/models/synchronization.rb', line 57

def jobs=(value)
    @jobs = value
end

#secretsObject

Gets the secrets property value. Represents a collection of credentials to access provisioned cloud applications.

Returns:

  • a synchronization_secret_key_string_value_pair



64
65
66
# File 'lib/models/synchronization.rb', line 64

def secrets
    return @secrets
end

#secrets=(value) ⇒ Object

Sets the secrets property value. Represents a collection of credentials to access provisioned cloud applications.

Parameters:

  • value

    Value to set for the secrets property.

Returns:

  • a void



72
73
74
# File 'lib/models/synchronization.rb', line 72

def secrets=(value)
    @secrets = 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)


80
81
82
83
84
85
86
# File 'lib/models/synchronization.rb', line 80

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("jobs", @jobs)
    writer.write_collection_of_object_values("secrets", @secrets)
    writer.write_collection_of_object_values("templates", @templates)
end

#templatesObject

Gets the templates property value. Pre-configured synchronization settings for a particular application.

Returns:

  • a synchronization_template



91
92
93
# File 'lib/models/synchronization.rb', line 91

def templates
    return @templates
end

#templates=(value) ⇒ Object

Sets the templates property value. Pre-configured synchronization settings for a particular application.

Parameters:

  • value

    Value to set for the templates property.

Returns:

  • a void



99
100
101
# File 'lib/models/synchronization.rb', line 99

def templates=(value)
    @templates = value
end