Class: MicrosoftGraph::Models::SynchronizationJob
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/synchronization_job.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 synchronizationJob and sets the default values.
-
#schedule ⇒ Object
Gets the schedule property value.
-
#schedule=(value) ⇒ Object
Sets the schedule 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.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#synchronization_job_settings ⇒ Object
Gets the synchronizationJobSettings property value.
-
#synchronization_job_settings=(value) ⇒ Object
Sets the synchronizationJobSettings property value.
-
#template_id ⇒ Object
Gets the templateId property value.
-
#template_id=(value) ⇒ Object
Sets the templateId property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new synchronizationJob and sets the default values.
28 29 30 |
# File 'lib/models/synchronization_job.rb', line 28 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
36 37 38 39 |
# File 'lib/models/synchronization_job.rb', line 36 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SynchronizationJob.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
44 45 46 47 48 49 50 51 52 |
# File 'lib/models/synchronization_job.rb', line 44 def get_field_deserializers() return super.merge({ "schedule" => lambda {|n| @schedule = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SynchronizationSchedule.create_from_discriminator_value(pn) }) }, "schema" => lambda {|n| @schema = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SynchronizationSchema.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SynchronizationStatus.create_from_discriminator_value(pn) }) }, "synchronizationJobSettings" => lambda {|n| @synchronization_job_settings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, "templateId" => lambda {|n| @template_id = n.get_string_value() }, }) end |
#schedule ⇒ Object
Gets the schedule property value. Schedule used to run the job. Read-only.
57 58 59 |
# File 'lib/models/synchronization_job.rb', line 57 def schedule return @schedule end |
#schedule=(value) ⇒ Object
Sets the schedule property value. Schedule used to run the job. Read-only.
65 66 67 |
# File 'lib/models/synchronization_job.rb', line 65 def schedule=(value) @schedule = value end |
#schema ⇒ Object
Gets the schema property value. The synchronization schema configured for the job.
72 73 74 |
# File 'lib/models/synchronization_job.rb', line 72 def schema return @schema end |
#schema=(value) ⇒ Object
Sets the schema property value. The synchronization schema configured for the job.
80 81 82 |
# File 'lib/models/synchronization_job.rb', line 80 def schema=(value) @schema = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
88 89 90 91 92 93 94 95 96 |
# File 'lib/models/synchronization_job.rb', line 88 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("schedule", @schedule) writer.write_object_value("schema", @schema) writer.write_object_value("status", @status) writer.write_collection_of_object_values("synchronizationJobSettings", @synchronization_job_settings) writer.write_string_value("templateId", @template_id) end |
#status ⇒ Object
Gets the status property value. Status of the job, which includes when the job was last run, current job state, and errors.
101 102 103 |
# File 'lib/models/synchronization_job.rb', line 101 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. Status of the job, which includes when the job was last run, current job state, and errors.
109 110 111 |
# File 'lib/models/synchronization_job.rb', line 109 def status=(value) @status = value end |
#synchronization_job_settings ⇒ Object
Gets the synchronizationJobSettings property value. Settings associated with the job. Some settings are inherited from the template.
116 117 118 |
# File 'lib/models/synchronization_job.rb', line 116 def synchronization_job_settings return @synchronization_job_settings end |
#synchronization_job_settings=(value) ⇒ Object
Sets the synchronizationJobSettings property value. Settings associated with the job. Some settings are inherited from the template.
124 125 126 |
# File 'lib/models/synchronization_job.rb', line 124 def synchronization_job_settings=(value) @synchronization_job_settings = value end |
#template_id ⇒ Object
Gets the templateId property value. Identifier of the synchronization template this job is based on.
131 132 133 |
# File 'lib/models/synchronization_job.rb', line 131 def template_id return @template_id end |
#template_id=(value) ⇒ Object
Sets the templateId property value. Identifier of the synchronization template this job is based on.
139 140 141 |
# File 'lib/models/synchronization_job.rb', line 139 def template_id=(value) @template_id = value end |