Class: MicrosoftGraph::Models::SynchronizationProgress

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/synchronization_progress.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a synchronization_progress

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



40
41
42
# File 'lib/models/synchronization_progress.rb', line 40

def additional_data=(value)
    @additional_data = value
end

#completed_unitsObject

Gets the completedUnits property value. The numerator of a progress ratio; the number of units of changes already processed.

Returns:

  • a int64



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.

Parameters:

  • value

    Value to set for the completedUnits property.

Returns:

  • a void



55
56
57
# File 'lib/models/synchronization_progress.rb', line 55

def completed_units=(value)
    @completed_units = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



99
100
101
# File 'lib/models/synchronization_progress.rb', line 99

def odata_type=(value)
    @odata_type = value
end

#progress_observation_date_timeObject

Gets the progressObservationDateTime property value. The time of a progress observation as an offset in minutes from UTC.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the progressObservationDateTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_unitsObject

Gets the totalUnits property value. The denominator of a progress ratio; a number of units of changes to be processed to accomplish synchronization.

Returns:

  • a int64



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.

Parameters:

  • value

    Value to set for the totalUnits property.

Returns:

  • a void



143
144
145
# File 'lib/models/synchronization_progress.rb', line 143

def total_units=(value)
    @total_units = value
end

#unitsObject

Gets the units property value. An optional description of the units.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the units property.

Returns:

  • a void



158
159
160
# File 'lib/models/synchronization_progress.rb', line 158

def units=(value)
    @units = value
end