Class: MicrosoftGraph::Models::SynchronizationProgress
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::SynchronizationProgress
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/synchronization_progress.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#completed_units ⇒ Object
Gets the completedUnits property value.
-
#completed_units=(value) ⇒ Object
Sets the completedUnits property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new synchronizationProgress and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#progress_observation_date_time ⇒ Object
Gets the progressObservationDateTime property value.
-
#progress_observation_date_time=(value) ⇒ Object
Sets the progressObservationDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#total_units ⇒ Object
Gets the totalUnits property value.
-
#total_units=(value) ⇒ Object
Sets the totalUnits property value.
-
#units ⇒ Object
Gets the units property value.
-
#units=(value) ⇒ Object
Sets the units property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new synchronizationProgress and sets the default values.
62 63 64 |
# File 'lib/models/synchronization_progress.rb', line 62 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
70 71 72 73 |
# File 'lib/models/synchronization_progress.rb', line 70 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SynchronizationProgress.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
32 33 34 |
# File 'lib/models/synchronization_progress.rb', line 32 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
40 41 42 |
# File 'lib/models/synchronization_progress.rb', line 40 def additional_data=(value) @additional_data = value end |
#completed_units ⇒ Object
Gets the completedUnits property value. The numerator of a progress ratio; the number of units of changes already processed.
47 48 49 |
# File 'lib/models/synchronization_progress.rb', line 47 def completed_units return @completed_units end |
#completed_units=(value) ⇒ Object
Sets the completedUnits property value. The numerator of a progress ratio; the number of units of changes already processed.
55 56 57 |
# File 'lib/models/synchronization_progress.rb', line 55 def completed_units=(value) @completed_units = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
78 79 80 81 82 83 84 85 86 |
# File 'lib/models/synchronization_progress.rb', line 78 def get_field_deserializers() return { "completedUnits" => lambda {|n| @completed_units = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "progressObservationDateTime" => lambda {|n| @progress_observation_date_time = n.get_date_time_value() }, "totalUnits" => lambda {|n| @total_units = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "units" => lambda {|n| @units = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
91 92 93 |
# File 'lib/models/synchronization_progress.rb', line 91 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
99 100 101 |
# File 'lib/models/synchronization_progress.rb', line 99 def odata_type=(value) @odata_type = value end |
#progress_observation_date_time ⇒ Object
Gets the progressObservationDateTime property value. The time of a progress observation as an offset in minutes from UTC.
106 107 108 |
# File 'lib/models/synchronization_progress.rb', line 106 def progress_observation_date_time return @progress_observation_date_time end |
#progress_observation_date_time=(value) ⇒ Object
Sets the progressObservationDateTime property value. The time of a progress observation as an offset in minutes from UTC.
114 115 116 |
# File 'lib/models/synchronization_progress.rb', line 114 def progress_observation_date_time=(value) @progress_observation_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
122 123 124 125 126 127 128 129 130 |
# File 'lib/models/synchronization_progress.rb', line 122 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("completedUnits", @completed_units) writer.write_string_value("@odata.type", @odata_type) writer.write_date_time_value("progressObservationDateTime", @progress_observation_date_time) writer.write_object_value("totalUnits", @total_units) writer.write_string_value("units", @units) writer.write_additional_data(@additional_data) end |
#total_units ⇒ Object
Gets the totalUnits property value. The denominator of a progress ratio; a number of units of changes to be processed to accomplish synchronization.
135 136 137 |
# File 'lib/models/synchronization_progress.rb', line 135 def total_units return @total_units end |
#total_units=(value) ⇒ Object
Sets the totalUnits property value. The denominator of a progress ratio; a number of units of changes to be processed to accomplish synchronization.
143 144 145 |
# File 'lib/models/synchronization_progress.rb', line 143 def total_units=(value) @total_units = value end |
#units ⇒ Object
Gets the units property value. An optional description of the units.
150 151 152 |
# File 'lib/models/synchronization_progress.rb', line 150 def units return @units end |
#units=(value) ⇒ Object
Sets the units property value. An optional description of the units.
158 159 160 |
# File 'lib/models/synchronization_progress.rb', line 158 def units=(value) @units = value end |