Class: MicrosoftGraph::Models::SynchronizationTemplate

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/synchronization_template.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 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

Parameters:

  • parse_node

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

Returns:

  • a synchronization_template

Raises:

  • (StandardError)


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_idObject

Gets the applicationId property value. Identifier of the application this template belongs to.

Returns:

  • a guid



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.

Parameters:

  • value

    Value to set for the applicationId property.

Returns:

  • a void



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

def application_id=(value)
    @application_id = value
end

#defaultObject

Gets the default property value. true if this template is recommended to be the default for the application.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the default property.

Returns:

  • a void



73
74
75
# File 'lib/models/synchronization_template.rb', line 73

def default=(value)
    @default = value
end

#descriptionObject

Gets the description property value. Description of the template.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



88
89
90
# File 'lib/models/synchronization_template.rb', line 88

def description=(value)
    @description = value
end

#discoverableObject

Gets the discoverable property value. true if this template should appear in the collection of templates available for the application instance (service principal).

Returns:

  • a boolean



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).

Parameters:

  • value

    Value to set for the discoverable property.

Returns:

  • a void



103
104
105
# File 'lib/models/synchronization_template.rb', line 103

def discoverable=(value)
    @discoverable = value
end

#factory_tagObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the factoryTag property.

Returns:

  • a void



118
119
120
# File 'lib/models/synchronization_template.rb', line 118

def factory_tag=(value)
    @factory_tag = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#metadataObject

Gets the metadata property value. Additional extension properties. Unless mentioned explicitly, metadata values should not be changed.

Returns:

  • a synchronization_metadata_entry



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.

Parameters:

  • value

    Value to set for the metadata property.

Returns:

  • a void



148
149
150
# File 'lib/models/synchronization_template.rb', line 148

def metadata=(value)
     = value
end

#schemaObject

Gets the schema property value. Default synchronization schema for the jobs based on this template.

Returns:

  • a synchronization_schema



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.

Parameters:

  • value

    Value to set for the schema property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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