Class: MicrosoftGraph::Models::SynchronizationTemplate
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/synchronization_template.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
-
#application_id ⇒ Object
Gets the applicationId property value.
-
#application_id=(value) ⇒ Object
Sets the applicationId property value.
-
#default ⇒ Object
Gets the default property value.
-
#default=(value) ⇒ Object
Sets the default property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#discoverable ⇒ Object
Gets the discoverable property value.
-
#discoverable=(value) ⇒ Object
Sets the discoverable property value.
-
#factory_tag ⇒ Object
Gets the factoryTag property value.
-
#factory_tag=(value) ⇒ Object
Sets the factoryTag property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new synchronizationTemplate and sets the default values.
-
#metadata ⇒ Object
Gets the metadata property value.
-
#metadata=(value) ⇒ Object
Sets the metadata property value.
-
#schema ⇒ Object
Gets the schema property value.
-
#schema=(value) ⇒ Object
Sets the schema property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new synchronizationTemplate and sets the default values.
49 50 51 |
# File 'lib/models/synchronization_template.rb', line 49 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
57 58 59 60 |
# File 'lib/models/synchronization_template.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SynchronizationTemplate.new end |
Instance Method Details
#application_id ⇒ Object
Gets the applicationId property value. Identifier of the application this template belongs to.
34 35 36 |
# File 'lib/models/synchronization_template.rb', line 34 def application_id return @application_id end |
#application_id=(value) ⇒ Object
Sets the applicationId property value. Identifier of the application this template belongs to.
42 43 44 |
# File 'lib/models/synchronization_template.rb', line 42 def application_id=(value) @application_id = value end |
#default ⇒ Object
Gets the default property value. true if this template is recommended to be the default for the application.
65 66 67 |
# File 'lib/models/synchronization_template.rb', line 65 def default return @default end |
#default=(value) ⇒ Object
Sets the default property value. true if this template is recommended to be the default for the application.
73 74 75 |
# File 'lib/models/synchronization_template.rb', line 73 def default=(value) @default = value end |
#description ⇒ Object
Gets the description property value. Description of the template.
80 81 82 |
# File 'lib/models/synchronization_template.rb', line 80 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the template.
88 89 90 |
# File 'lib/models/synchronization_template.rb', line 88 def description=(value) @description = value end |
#discoverable ⇒ Object
Gets the discoverable property value. true if this template should appear in the collection of templates available for the application instance (service principal).
95 96 97 |
# File 'lib/models/synchronization_template.rb', line 95 def discoverable return @discoverable end |
#discoverable=(value) ⇒ Object
Sets the discoverable property value. true if this template should appear in the collection of templates available for the application instance (service principal).
103 104 105 |
# File 'lib/models/synchronization_template.rb', line 103 def discoverable=(value) @discoverable = value end |
#factory_tag ⇒ Object
Gets the factoryTag property value. One of the well-known factory tags supported by the synchronization engine. The factoryTag tells the synchronization engine which implementation to use when processing jobs based on this template.
110 111 112 |
# File 'lib/models/synchronization_template.rb', line 110 def factory_tag return @factory_tag end |
#factory_tag=(value) ⇒ Object
Sets the factoryTag property value. One of the well-known factory tags supported by the synchronization engine. The factoryTag tells the synchronization engine which implementation to use when processing jobs based on this template.
118 119 120 |
# File 'lib/models/synchronization_template.rb', line 118 def factory_tag=(value) @factory_tag = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/models/synchronization_template.rb', line 125 def get_field_deserializers() return super.merge({ "applicationId" => lambda {|n| @application_id = n.get_guid_value() }, "default" => lambda {|n| @default = n.get_boolean_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "discoverable" => lambda {|n| @discoverable = n.get_boolean_value() }, "factoryTag" => lambda {|n| @factory_tag = n.get_string_value() }, "metadata" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SynchronizationMetadataEntry.create_from_discriminator_value(pn) }) }, "schema" => lambda {|n| @schema = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }) }, }) end |
#metadata ⇒ Object
Gets the metadata property value. Additional extension properties. Unless mentioned explicitly, metadata values should not be changed.
140 141 142 |
# File 'lib/models/synchronization_template.rb', line 140 def return end |
#metadata=(value) ⇒ Object
Sets the metadata property value. Additional extension properties. Unless mentioned explicitly, metadata values should not be changed.
148 149 150 |
# File 'lib/models/synchronization_template.rb', line 148 def (value) = value end |
#schema ⇒ Object
Gets the schema property value. Default synchronization schema for the jobs based on this template.
155 156 157 |
# File 'lib/models/synchronization_template.rb', line 155 def schema return @schema end |
#schema=(value) ⇒ Object
Sets the schema property value. Default synchronization schema for the jobs based on this template.
163 164 165 |
# File 'lib/models/synchronization_template.rb', line 163 def schema=(value) @schema = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/models/synchronization_template.rb', line 171 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_guid_value("applicationId", @application_id) writer.write_boolean_value("default", @default) writer.write_string_value("description", @description) writer.write_boolean_value("discoverable", @discoverable) writer.write_string_value("factoryTag", @factory_tag) writer.write_collection_of_object_values("metadata", ) writer.write_object_value("schema", @schema) end |