Class: MicrosoftGraph::Models::Synchronization
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/synchronization.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 synchronization and sets the default values.
-
#jobs ⇒ Object
Gets the jobs property value.
-
#jobs=(value) ⇒ Object
Sets the jobs property value.
-
#secrets ⇒ Object
Gets the secrets property value.
-
#secrets=(value) ⇒ Object
Sets the secrets property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#templates ⇒ Object
Gets the templates property value.
-
#templates=(value) ⇒ Object
Sets the templates property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_deserializers ⇒ Object
The deserialization information for the current model
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 |
#jobs ⇒ Object
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.
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.
57 58 59 |
# File 'lib/models/synchronization.rb', line 57 def jobs=(value) @jobs = value end |
#secrets ⇒ Object
Gets the secrets property value. Represents a collection of credentials to access provisioned cloud applications.
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.
72 73 74 |
# File 'lib/models/synchronization.rb', line 72 def secrets=(value) @secrets = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
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 |
#templates ⇒ Object
Gets the templates property value. Pre-configured synchronization settings for a particular application.
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.
99 100 101 |
# File 'lib/models/synchronization.rb', line 99 def templates=(value) @templates = value end |