Class: MicrosoftGraph::Models::SynchronizationTaskExecution

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new synchronizationTaskExecution and sets the default values.



92
93
94
# File 'lib/models/synchronization_task_execution.rb', line 92

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_task_execution

Raises:

  • (StandardError)


235
236
237
238
# File 'lib/models/synchronization_task_execution.rb', line 235

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SynchronizationTaskExecution.new
end

Instance Method Details

#activity_identifierObject

Gets the activityIdentifier property value. Identifier of the job run.

Returns:

  • a string



62
63
64
# File 'lib/models/synchronization_task_execution.rb', line 62

def activity_identifier
    return @activity_identifier
end

#activity_identifier=(value) ⇒ Object

Sets the activityIdentifier property value. Identifier of the job run.

Parameters:

  • value

    Value to set for the activityIdentifier property.

Returns:

  • a void



70
71
72
# File 'lib/models/synchronization_task_execution.rb', line 70

def activity_identifier=(value)
    @activity_identifier = value
end

#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



77
78
79
# File 'lib/models/synchronization_task_execution.rb', line 77

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



85
86
87
# File 'lib/models/synchronization_task_execution.rb', line 85

def additional_data=(value)
    @additional_data = value
end

#count_entitledObject

Gets the countEntitled property value. Count of processed entries that were assigned for this application.

Returns:

  • a int64



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

def count_entitled
    return @count_entitled
end

#count_entitled=(value) ⇒ Object

Sets the countEntitled property value. Count of processed entries that were assigned for this application.

Parameters:

  • value

    Value to set for the countEntitled property.

Returns:

  • a void



107
108
109
# File 'lib/models/synchronization_task_execution.rb', line 107

def count_entitled=(value)
    @count_entitled = value
end

#count_entitled_for_provisioningObject

Gets the countEntitledForProvisioning property value. Count of processed entries that were assigned for provisioning.

Returns:

  • a int64



114
115
116
# File 'lib/models/synchronization_task_execution.rb', line 114

def count_entitled_for_provisioning
    return @count_entitled_for_provisioning
end

#count_entitled_for_provisioning=(value) ⇒ Object

Sets the countEntitledForProvisioning property value. Count of processed entries that were assigned for provisioning.

Parameters:

  • value

    Value to set for the countEntitledForProvisioning property.

Returns:

  • a void



122
123
124
# File 'lib/models/synchronization_task_execution.rb', line 122

def count_entitled_for_provisioning=(value)
    @count_entitled_for_provisioning = value
end

#count_escrowedObject

Gets the countEscrowed property value. Count of entries that were escrowed (errors).

Returns:

  • a int64



129
130
131
# File 'lib/models/synchronization_task_execution.rb', line 129

def count_escrowed
    return @count_escrowed
end

#count_escrowed=(value) ⇒ Object

Sets the countEscrowed property value. Count of entries that were escrowed (errors).

Parameters:

  • value

    Value to set for the countEscrowed property.

Returns:

  • a void



137
138
139
# File 'lib/models/synchronization_task_execution.rb', line 137

def count_escrowed=(value)
    @count_escrowed = value
end

#count_escrowed_rawObject

Gets the countEscrowedRaw property value. Count of entries that were escrowed, including system-generated escrows.

Returns:

  • a int64



144
145
146
# File 'lib/models/synchronization_task_execution.rb', line 144

def count_escrowed_raw
    return @count_escrowed_raw
end

#count_escrowed_raw=(value) ⇒ Object

Sets the countEscrowedRaw property value. Count of entries that were escrowed, including system-generated escrows.

Parameters:

  • value

    Value to set for the countEscrowedRaw property.

Returns:

  • a void



152
153
154
# File 'lib/models/synchronization_task_execution.rb', line 152

def count_escrowed_raw=(value)
    @count_escrowed_raw = value
end

#count_exportedObject

Gets the countExported property value. Count of exported entries.

Returns:

  • a int64



159
160
161
# File 'lib/models/synchronization_task_execution.rb', line 159

def count_exported
    return @count_exported
end

#count_exported=(value) ⇒ Object

Sets the countExported property value. Count of exported entries.

Parameters:

  • value

    Value to set for the countExported property.

Returns:

  • a void



167
168
169
# File 'lib/models/synchronization_task_execution.rb', line 167

def count_exported=(value)
    @count_exported = value
end

#count_exportsObject

Gets the countExports property value. Count of entries that were expected to be exported.

Returns:

  • a int64



174
175
176
# File 'lib/models/synchronization_task_execution.rb', line 174

def count_exports
    return @count_exports
end

#count_exports=(value) ⇒ Object

Sets the countExports property value. Count of entries that were expected to be exported.

Parameters:

  • value

    Value to set for the countExports property.

Returns:

  • a void



182
183
184
# File 'lib/models/synchronization_task_execution.rb', line 182

def count_exports=(value)
    @count_exports = value
end

#count_importedObject

Gets the countImported property value. Count of imported entries.

Returns:

  • a int64



189
190
191
# File 'lib/models/synchronization_task_execution.rb', line 189

def count_imported
    return @count_imported
end

#count_imported=(value) ⇒ Object

Sets the countImported property value. Count of imported entries.

Parameters:

  • value

    Value to set for the countImported property.

Returns:

  • a void



197
198
199
# File 'lib/models/synchronization_task_execution.rb', line 197

def count_imported=(value)
    @count_imported = value
end

#count_imported_deltasObject

Gets the countImportedDeltas property value. Count of imported delta-changes.

Returns:

  • a int64



204
205
206
# File 'lib/models/synchronization_task_execution.rb', line 204

def count_imported_deltas
    return @count_imported_deltas
end

#count_imported_deltas=(value) ⇒ Object

Sets the countImportedDeltas property value. Count of imported delta-changes.

Parameters:

  • value

    Value to set for the countImportedDeltas property.

Returns:

  • a void



212
213
214
# File 'lib/models/synchronization_task_execution.rb', line 212

def count_imported_deltas=(value)
    @count_imported_deltas = value
end

#count_imported_reference_deltasObject

Gets the countImportedReferenceDeltas property value. Count of imported delta-changes pertaining to reference changes.

Returns:

  • a int64



219
220
221
# File 'lib/models/synchronization_task_execution.rb', line 219

def count_imported_reference_deltas
    return @count_imported_reference_deltas
end

#count_imported_reference_deltas=(value) ⇒ Object

Sets the countImportedReferenceDeltas property value. Count of imported delta-changes pertaining to reference changes.

Parameters:

  • value

    Value to set for the countImportedReferenceDeltas property.

Returns:

  • a void



227
228
229
# File 'lib/models/synchronization_task_execution.rb', line 227

def count_imported_reference_deltas=(value)
    @count_imported_reference_deltas = value
end

#errorObject

Gets the error property value. If an error was encountered, contains a synchronizationError object with details.

Returns:

  • a synchronization_error



243
244
245
# File 'lib/models/synchronization_task_execution.rb', line 243

def error
    return @error
end

#error=(value) ⇒ Object

Sets the error property value. If an error was encountered, contains a synchronizationError object with details.

Parameters:

  • value

    Value to set for the error property.

Returns:

  • a void



251
252
253
# File 'lib/models/synchronization_task_execution.rb', line 251

def error=(value)
    @error = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/models/synchronization_task_execution.rb', line 258

def get_field_deserializers()
    return {
        "activityIdentifier" => lambda {|n| @activity_identifier = n.get_string_value() },
        "countEntitled" => lambda {|n| @count_entitled = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countEntitledForProvisioning" => lambda {|n| @count_entitled_for_provisioning = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countEscrowed" => lambda {|n| @count_escrowed = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countEscrowedRaw" => lambda {|n| @count_escrowed_raw = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countExported" => lambda {|n| @count_exported = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countExports" => lambda {|n| @count_exports = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countImported" => lambda {|n| @count_imported = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countImportedDeltas" => lambda {|n| @count_imported_deltas = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "countImportedReferenceDeltas" => lambda {|n| @count_imported_reference_deltas = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SynchronizationError.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::SynchronizationTaskExecutionResult) },
        "timeBegan" => lambda {|n| @time_began = n.get_date_time_value() },
        "timeEnded" => lambda {|n| @time_ended = n.get_date_time_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



281
282
283
# File 'lib/models/synchronization_task_execution.rb', line 281

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



289
290
291
# File 'lib/models/synchronization_task_execution.rb', line 289

def odata_type=(value)
    @odata_type = 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)


297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/models/synchronization_task_execution.rb', line 297

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("activityIdentifier", @activity_identifier)
    writer.write_object_value("countEntitled", @count_entitled)
    writer.write_object_value("countEntitledForProvisioning", @count_entitled_for_provisioning)
    writer.write_object_value("countEscrowed", @count_escrowed)
    writer.write_object_value("countEscrowedRaw", @count_escrowed_raw)
    writer.write_object_value("countExported", @count_exported)
    writer.write_object_value("countExports", @count_exports)
    writer.write_object_value("countImported", @count_imported)
    writer.write_object_value("countImportedDeltas", @count_imported_deltas)
    writer.write_object_value("countImportedReferenceDeltas", @count_imported_reference_deltas)
    writer.write_object_value("error", @error)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_enum_value("state", @state)
    writer.write_date_time_value("timeBegan", @time_began)
    writer.write_date_time_value("timeEnded", @time_ended)
    writer.write_additional_data(@additional_data)
end

#stateObject

Gets the state property value. The state property

Returns:

  • a synchronization_task_execution_result



320
321
322
# File 'lib/models/synchronization_task_execution.rb', line 320

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. The state property

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



328
329
330
# File 'lib/models/synchronization_task_execution.rb', line 328

def state=(value)
    @state = value
end

#time_beganObject

Gets the timeBegan property value. Time when this job run began. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



335
336
337
# File 'lib/models/synchronization_task_execution.rb', line 335

def time_began
    return @time_began
end

#time_began=(value) ⇒ Object

Sets the timeBegan property value. Time when this job run began. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the timeBegan property.

Returns:

  • a void



343
344
345
# File 'lib/models/synchronization_task_execution.rb', line 343

def time_began=(value)
    @time_began = value
end

#time_endedObject

Gets the timeEnded property value. Time when this job run ended. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



350
351
352
# File 'lib/models/synchronization_task_execution.rb', line 350

def time_ended
    return @time_ended
end

#time_ended=(value) ⇒ Object

Sets the timeEnded property value. Time when this job run ended. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the timeEnded property.

Returns:

  • a void



358
359
360
# File 'lib/models/synchronization_task_execution.rb', line 358

def time_ended=(value)
    @time_ended = value
end