Class: MicrosoftGraph::Models::IdentityGovernanceRun

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/identity_governance_run.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 identityGovernanceRun and sets the default values.



71
72
73
# File 'lib/models/identity_governance_run.rb', line 71

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 identity_governance_run

Raises:

  • (StandardError)


79
80
81
82
# File 'lib/models/identity_governance_run.rb', line 79

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

Instance Method Details

#completed_date_timeObject

Gets the completedDateTime property value. The date time that the run completed. Value is null if the workflow hasn’t completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a date_time



56
57
58
# File 'lib/models/identity_governance_run.rb', line 56

def completed_date_time
    return @completed_date_time
end

#completed_date_time=(value) ⇒ Object

Sets the completedDateTime property value. The date time that the run completed. Value is null if the workflow hasn’t completed.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the completedDateTime property.

Returns:

  • a void



64
65
66
# File 'lib/models/identity_governance_run.rb', line 64

def completed_date_time=(value)
    @completed_date_time = value
end

#failed_tasks_countObject

Gets the failedTasksCount property value. The number of tasks that failed in the run execution.

Returns:

  • a integer



87
88
89
# File 'lib/models/identity_governance_run.rb', line 87

def failed_tasks_count
    return @failed_tasks_count
end

#failed_tasks_count=(value) ⇒ Object

Sets the failedTasksCount property value. The number of tasks that failed in the run execution.

Parameters:

  • value

    Value to set for the failedTasksCount property.

Returns:

  • a void



95
96
97
# File 'lib/models/identity_governance_run.rb', line 95

def failed_tasks_count=(value)
    @failed_tasks_count = value
end

#failed_users_countObject

Gets the failedUsersCount property value. The number of users that failed in the run execution.

Returns:

  • a integer



102
103
104
# File 'lib/models/identity_governance_run.rb', line 102

def failed_users_count
    return @failed_users_count
end

#failed_users_count=(value) ⇒ Object

Sets the failedUsersCount property value. The number of users that failed in the run execution.

Parameters:

  • value

    Value to set for the failedUsersCount property.

Returns:

  • a void



110
111
112
# File 'lib/models/identity_governance_run.rb', line 110

def failed_users_count=(value)
    @failed_users_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/models/identity_governance_run.rb', line 117

def get_field_deserializers()
    return super.merge({
        "completedDateTime" => lambda {|n| @completed_date_time = n.get_date_time_value() },
        "failedTasksCount" => lambda {|n| @failed_tasks_count = n.get_number_value() },
        "failedUsersCount" => lambda {|n| @failed_users_count = n.get_number_value() },
        "lastUpdatedDateTime" => lambda {|n| @last_updated_date_time = n.get_date_time_value() },
        "processingStatus" => lambda {|n| @processing_status = n.get_enum_value(MicrosoftGraph::Models::IdentityGovernanceLifecycleWorkflowProcessingStatus) },
        "scheduledDateTime" => lambda {|n| @scheduled_date_time = n.get_date_time_value() },
        "startedDateTime" => lambda {|n| @started_date_time = n.get_date_time_value() },
        "successfulUsersCount" => lambda {|n| @successful_users_count = n.get_number_value() },
        "taskProcessingResults" => lambda {|n| @task_processing_results = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceTaskProcessingResult.create_from_discriminator_value(pn) }) },
        "totalTasksCount" => lambda {|n| @total_tasks_count = n.get_number_value() },
        "totalUnprocessedTasksCount" => lambda {|n| @total_unprocessed_tasks_count = n.get_number_value() },
        "totalUsersCount" => lambda {|n| @total_users_count = n.get_number_value() },
        "userProcessingResults" => lambda {|n| @user_processing_results = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceUserProcessingResult.create_from_discriminator_value(pn) }) },
        "workflowExecutionType" => lambda {|n| @workflow_execution_type = n.get_enum_value(MicrosoftGraph::Models::IdentityGovernanceWorkflowExecutionType) },
    })
end

#last_updated_date_timeObject

Gets the lastUpdatedDateTime property value. The datetime that the run was last updated.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a date_time



139
140
141
# File 'lib/models/identity_governance_run.rb', line 139

def last_updated_date_time
    return @last_updated_date_time
end

#last_updated_date_time=(value) ⇒ Object

Sets the lastUpdatedDateTime property value. The datetime that the run was last updated.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the lastUpdatedDateTime property.

Returns:

  • a void



147
148
149
# File 'lib/models/identity_governance_run.rb', line 147

def last_updated_date_time=(value)
    @last_updated_date_time = value
end

#processing_statusObject

Gets the processingStatus property value. The processingStatus property

Returns:

  • a identity_governance_lifecycle_workflow_processing_status



154
155
156
# File 'lib/models/identity_governance_run.rb', line 154

def processing_status
    return @processing_status
end

#processing_status=(value) ⇒ Object

Sets the processingStatus property value. The processingStatus property

Parameters:

  • value

    Value to set for the processingStatus property.

Returns:

  • a void



162
163
164
# File 'lib/models/identity_governance_run.rb', line 162

def processing_status=(value)
    @processing_status = value
end

#scheduled_date_timeObject

Gets the scheduledDateTime property value. The date time that the run is scheduled to be executed for a workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a date_time



169
170
171
# File 'lib/models/identity_governance_run.rb', line 169

def scheduled_date_time
    return @scheduled_date_time
end

#scheduled_date_time=(value) ⇒ Object

Sets the scheduledDateTime property value. The date time that the run is scheduled to be executed for a workflow.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the scheduledDateTime property.

Returns:

  • a void



177
178
179
# File 'lib/models/identity_governance_run.rb', line 177

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


185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/models/identity_governance_run.rb', line 185

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("completedDateTime", @completed_date_time)
    writer.write_number_value("failedTasksCount", @failed_tasks_count)
    writer.write_number_value("failedUsersCount", @failed_users_count)
    writer.write_date_time_value("lastUpdatedDateTime", @last_updated_date_time)
    writer.write_enum_value("processingStatus", @processing_status)
    writer.write_date_time_value("scheduledDateTime", @scheduled_date_time)
    writer.write_date_time_value("startedDateTime", @started_date_time)
    writer.write_number_value("successfulUsersCount", @successful_users_count)
    writer.write_collection_of_object_values("taskProcessingResults", @task_processing_results)
    writer.write_number_value("totalTasksCount", @total_tasks_count)
    writer.write_number_value("totalUnprocessedTasksCount", @total_unprocessed_tasks_count)
    writer.write_number_value("totalUsersCount", @total_users_count)
    writer.write_collection_of_object_values("userProcessingResults", @user_processing_results)
    writer.write_enum_value("workflowExecutionType", @workflow_execution_type)
end

#started_date_timeObject

Gets the startedDateTime property value. The date time that the run execution started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a date_time



207
208
209
# File 'lib/models/identity_governance_run.rb', line 207

def started_date_time
    return @started_date_time
end

#started_date_time=(value) ⇒ Object

Sets the startedDateTime property value. The date time that the run execution started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the startedDateTime property.

Returns:

  • a void



215
216
217
# File 'lib/models/identity_governance_run.rb', line 215

def started_date_time=(value)
    @started_date_time = value
end

#successful_users_countObject

Gets the successfulUsersCount property value. The number of successfully completed users in the run.

Returns:

  • a integer



222
223
224
# File 'lib/models/identity_governance_run.rb', line 222

def successful_users_count
    return @successful_users_count
end

#successful_users_count=(value) ⇒ Object

Sets the successfulUsersCount property value. The number of successfully completed users in the run.

Parameters:

  • value

    Value to set for the successfulUsersCount property.

Returns:

  • a void



230
231
232
# File 'lib/models/identity_governance_run.rb', line 230

def successful_users_count=(value)
    @successful_users_count = value
end

#task_processing_resultsObject

Gets the taskProcessingResults property value. The related taskProcessingResults.

Returns:

  • a identity_governance_task_processing_result



237
238
239
# File 'lib/models/identity_governance_run.rb', line 237

def task_processing_results
    return @task_processing_results
end

#task_processing_results=(value) ⇒ Object

Sets the taskProcessingResults property value. The related taskProcessingResults.

Parameters:

  • value

    Value to set for the taskProcessingResults property.

Returns:

  • a void



245
246
247
# File 'lib/models/identity_governance_run.rb', line 245

def task_processing_results=(value)
    @task_processing_results = value
end

#total_tasks_countObject

Gets the totalTasksCount property value. The totalTasksCount property

Returns:

  • a integer



252
253
254
# File 'lib/models/identity_governance_run.rb', line 252

def total_tasks_count
    return @total_tasks_count
end

#total_tasks_count=(value) ⇒ Object

Sets the totalTasksCount property value. The totalTasksCount property

Parameters:

  • value

    Value to set for the totalTasksCount property.

Returns:

  • a void



260
261
262
# File 'lib/models/identity_governance_run.rb', line 260

def total_tasks_count=(value)
    @total_tasks_count = value
end

#total_unprocessed_tasks_countObject

Gets the totalUnprocessedTasksCount property value. The total number of unprocessed tasks in the run execution.

Returns:

  • a integer



267
268
269
# File 'lib/models/identity_governance_run.rb', line 267

def total_unprocessed_tasks_count
    return @total_unprocessed_tasks_count
end

#total_unprocessed_tasks_count=(value) ⇒ Object

Sets the totalUnprocessedTasksCount property value. The total number of unprocessed tasks in the run execution.

Parameters:

  • value

    Value to set for the totalUnprocessedTasksCount property.

Returns:

  • a void



275
276
277
# File 'lib/models/identity_governance_run.rb', line 275

def total_unprocessed_tasks_count=(value)
    @total_unprocessed_tasks_count = value
end

#total_users_countObject

Gets the totalUsersCount property value. The total number of users in the workflow execution.

Returns:

  • a integer



282
283
284
# File 'lib/models/identity_governance_run.rb', line 282

def total_users_count
    return @total_users_count
end

#total_users_count=(value) ⇒ Object

Sets the totalUsersCount property value. The total number of users in the workflow execution.

Parameters:

  • value

    Value to set for the totalUsersCount property.

Returns:

  • a void



290
291
292
# File 'lib/models/identity_governance_run.rb', line 290

def total_users_count=(value)
    @total_users_count = value
end

#user_processing_resultsObject

Gets the userProcessingResults property value. The associated individual user execution.

Returns:

  • a identity_governance_user_processing_result



297
298
299
# File 'lib/models/identity_governance_run.rb', line 297

def user_processing_results
    return @user_processing_results
end

#user_processing_results=(value) ⇒ Object

Sets the userProcessingResults property value. The associated individual user execution.

Parameters:

  • value

    Value to set for the userProcessingResults property.

Returns:

  • a void



305
306
307
# File 'lib/models/identity_governance_run.rb', line 305

def user_processing_results=(value)
    @user_processing_results = value
end

#workflow_execution_typeObject

Gets the workflowExecutionType property value. The workflowExecutionType property

Returns:

  • a identity_governance_workflow_execution_type



312
313
314
# File 'lib/models/identity_governance_run.rb', line 312

def workflow_execution_type
    return @workflow_execution_type
end

#workflow_execution_type=(value) ⇒ Object

Sets the workflowExecutionType property value. The workflowExecutionType property

Parameters:

  • value

    Value to set for the workflowExecutionType property.

Returns:

  • a void



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

def workflow_execution_type=(value)
    @workflow_execution_type = value
end