Class: MicrosoftGraph::Models::IdentityGovernanceWorkflow

Inherits:
IdentityGovernanceWorkflowBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/identity_governance_workflow.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IdentityGovernanceWorkflowBase

#additional_data, #additional_data=, #category, #category=, #created_by, #created_by=, #created_date_time, #created_date_time=, #description, #description=, #display_name, #display_name=, #execution_conditions, #execution_conditions=, #is_enabled, #is_enabled=, #is_scheduling_enabled, #is_scheduling_enabled=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=, #odata_type, #odata_type=, #tasks, #tasks=

Constructor Details

#initializeObject

Instantiates a new identityGovernanceWorkflow and sets the default values.



41
42
43
44
# File 'lib/models/identity_governance_workflow.rb', line 41

def initialize()
    super
    @odata_type = "#microsoft.graph.identityGovernance.workflow"
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_workflow

Raises:

  • (StandardError)


50
51
52
53
# File 'lib/models/identity_governance_workflow.rb', line 50

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

Instance Method Details

#deleted_date_timeObject

Gets the deletedDateTime property value. When the workflow was deleted.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a date_time



58
59
60
# File 'lib/models/identity_governance_workflow.rb', line 58

def deleted_date_time
    return @deleted_date_time
end

#deleted_date_time=(value) ⇒ Object

Sets the deletedDateTime property value. When the workflow was deleted.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the deletedDateTime property.

Returns:

  • a void



66
67
68
# File 'lib/models/identity_governance_workflow.rb', line 66

def deleted_date_time=(value)
    @deleted_date_time = value
end

#execution_scopeObject

Gets the executionScope property value. The unique identifier of the Azure AD identity that last modified the workflow object.

Returns:

  • a identity_governance_user_processing_result



73
74
75
# File 'lib/models/identity_governance_workflow.rb', line 73

def execution_scope
    return @execution_scope
end

#execution_scope=(value) ⇒ Object

Sets the executionScope property value. The unique identifier of the Azure AD identity that last modified the workflow object.

Parameters:

  • value

    Value to set for the executionScope property.

Returns:

  • a void



81
82
83
# File 'lib/models/identity_governance_workflow.rb', line 81

def execution_scope=(value)
    @execution_scope = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/models/identity_governance_workflow.rb', line 88

def get_field_deserializers()
    return super.merge({
        "deletedDateTime" => lambda {|n| @deleted_date_time = n.get_date_time_value() },
        "executionScope" => lambda {|n| @execution_scope = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceUserProcessingResult.create_from_discriminator_value(pn) }) },
        "id" => lambda {|n| @id = n.get_string_value() },
        "nextScheduleRunDateTime" => lambda {|n| @next_schedule_run_date_time = n.get_date_time_value() },
        "runs" => lambda {|n| @runs = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceRun.create_from_discriminator_value(pn) }) },
        "taskReports" => lambda {|n| @task_reports = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceTaskReport.create_from_discriminator_value(pn) }) },
        "userProcessingResults" => lambda {|n| @user_processing_results = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceUserProcessingResult.create_from_discriminator_value(pn) }) },
        "version" => lambda {|n| @version = n.get_number_value() },
        "versions" => lambda {|n| @versions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceWorkflowVersion.create_from_discriminator_value(pn) }) },
    })
end

#idObject

Gets the id property value. Identifier used for individually addressing a specific workflow.Supports $filter(eq, ne) and $orderby.

Returns:

  • a string



105
106
107
# File 'lib/models/identity_governance_workflow.rb', line 105

def id
    return @id
end

#id=(value) ⇒ Object

Sets the id property value. Identifier used for individually addressing a specific workflow.Supports $filter(eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the id property.

Returns:

  • a void



113
114
115
# File 'lib/models/identity_governance_workflow.rb', line 113

def id=(value)
    @id = value
end

#next_schedule_run_date_timeObject

Gets the nextScheduleRunDateTime property value. The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderBy.

Returns:

  • a date_time



120
121
122
# File 'lib/models/identity_governance_workflow.rb', line 120

def next_schedule_run_date_time
    return @next_schedule_run_date_time
end

#next_schedule_run_date_time=(value) ⇒ Object

Sets the nextScheduleRunDateTime property value. The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderBy.

Parameters:

  • value

    Value to set for the nextScheduleRunDateTime property.

Returns:

  • a void



128
129
130
# File 'lib/models/identity_governance_workflow.rb', line 128

def next_schedule_run_date_time=(value)
    @next_schedule_run_date_time = value
end

#runsObject

Gets the runs property value. Workflow runs.

Returns:

  • a identity_governance_run



135
136
137
# File 'lib/models/identity_governance_workflow.rb', line 135

def runs
    return @runs
end

#runs=(value) ⇒ Object

Sets the runs property value. Workflow runs.

Parameters:

  • value

    Value to set for the runs property.

Returns:

  • a void



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

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


151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/models/identity_governance_workflow.rb', line 151

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("deletedDateTime", @deleted_date_time)
    writer.write_collection_of_object_values("executionScope", @execution_scope)
    writer.write_string_value("id", @id)
    writer.write_date_time_value("nextScheduleRunDateTime", @next_schedule_run_date_time)
    writer.write_collection_of_object_values("runs", @runs)
    writer.write_collection_of_object_values("taskReports", @task_reports)
    writer.write_collection_of_object_values("userProcessingResults", @user_processing_results)
    writer.write_number_value("version", @version)
    writer.write_collection_of_object_values("versions", @versions)
end

#task_reportsObject

Gets the taskReports property value. Represents the aggregation of task execution data for tasks within a workflow object.

Returns:

  • a identity_governance_task_report



168
169
170
# File 'lib/models/identity_governance_workflow.rb', line 168

def task_reports
    return @task_reports
end

#task_reports=(value) ⇒ Object

Sets the taskReports property value. Represents the aggregation of task execution data for tasks within a workflow object.

Parameters:

  • value

    Value to set for the taskReports property.

Returns:

  • a void



176
177
178
# File 'lib/models/identity_governance_workflow.rb', line 176

def task_reports=(value)
    @task_reports = value
end

#user_processing_resultsObject

Gets the userProcessingResults property value. Per-user workflow execution results.

Returns:

  • a identity_governance_user_processing_result



183
184
185
# File 'lib/models/identity_governance_workflow.rb', line 183

def user_processing_results
    return @user_processing_results
end

#user_processing_results=(value) ⇒ Object

Sets the userProcessingResults property value. Per-user workflow execution results.

Parameters:

  • value

    Value to set for the userProcessingResults property.

Returns:

  • a void



191
192
193
# File 'lib/models/identity_governance_workflow.rb', line 191

def user_processing_results=(value)
    @user_processing_results = value
end

#versionObject

Gets the version property value. The current version number of the workflow. Value is 1 when the workflow is first created.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Returns:

  • a integer



198
199
200
# File 'lib/models/identity_governance_workflow.rb', line 198

def version
    return @version
end

#version=(value) ⇒ Object

Sets the version property value. The current version number of the workflow. Value is 1 when the workflow is first created.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



206
207
208
# File 'lib/models/identity_governance_workflow.rb', line 206

def version=(value)
    @version = value
end

#versionsObject

Gets the versions property value. The workflow versions that are available.

Returns:

  • a identity_governance_workflow_version



213
214
215
# File 'lib/models/identity_governance_workflow.rb', line 213

def versions
    return @versions
end

#versions=(value) ⇒ Object

Sets the versions property value. The workflow versions that are available.

Parameters:

  • value

    Value to set for the versions property.

Returns:

  • a void



221
222
223
# File 'lib/models/identity_governance_workflow.rb', line 221

def versions=(value)
    @versions = value
end