Class: MicrosoftGraph::Models::SynchronizationSchema
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/synchronization_schema.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
-
#directories ⇒ Object
Gets the directories property value.
-
#directories=(value) ⇒ Object
Sets the directories property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new synchronizationSchema and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#synchronization_rules ⇒ Object
Gets the synchronizationRules property value.
-
#synchronization_rules=(value) ⇒ Object
Sets the synchronizationRules property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new synchronizationSchema and sets the default values.
22 23 24 |
# File 'lib/models/synchronization_schema.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_schema.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SynchronizationSchema.new end |
Instance Method Details
#directories ⇒ Object
Gets the directories property value. Contains the collection of directories and all of their objects.
38 39 40 |
# File 'lib/models/synchronization_schema.rb', line 38 def directories return @directories end |
#directories=(value) ⇒ Object
Sets the directories property value. Contains the collection of directories and all of their objects.
46 47 48 |
# File 'lib/models/synchronization_schema.rb', line 46 def directories=(value) @directories = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/synchronization_schema.rb', line 53 def get_field_deserializers() return super.merge({ "directories" => lambda {|n| @directories = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryDefinition.create_from_discriminator_value(pn) }) }, "synchronizationRules" => lambda {|n| @synchronization_rules = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationRule.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
65 66 67 68 69 70 71 |
# File 'lib/models/synchronization_schema.rb', line 65 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("directories", @directories) writer.write_collection_of_object_values("synchronizationRules", @synchronization_rules) writer.write_string_value("version", @version) end |
#synchronization_rules ⇒ Object
Gets the synchronizationRules property value. A collection of synchronization rules configured for the synchronizationJob or synchronizationTemplate.
76 77 78 |
# File 'lib/models/synchronization_schema.rb', line 76 def synchronization_rules return @synchronization_rules end |
#synchronization_rules=(value) ⇒ Object
Sets the synchronizationRules property value. A collection of synchronization rules configured for the synchronizationJob or synchronizationTemplate.
84 85 86 |
# File 'lib/models/synchronization_schema.rb', line 84 def synchronization_rules=(value) @synchronization_rules = value end |
#version ⇒ Object
Gets the version property value. The version of the schema, updated automatically with every schema change.
91 92 93 |
# File 'lib/models/synchronization_schema.rb', line 91 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. The version of the schema, updated automatically with every schema change.
99 100 101 |
# File 'lib/models/synchronization_schema.rb', line 99 def version=(value) @version = value end |