Class: MicrosoftGraph::Models::IdentityGovernanceCustomTaskExtensionCalloutData

Inherits:
CustomExtensionData
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/identity_governance_custom_task_extension_callout_data.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CustomExtensionData

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new identityGovernanceCustomTaskExtensionCalloutData and sets the default values.



25
26
27
28
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 25

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

Raises:

  • (StandardError)


34
35
36
37
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 34

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



42
43
44
45
46
47
48
49
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 42

def get_field_deserializers()
    return super.merge({
        "subject" => lambda {|n| @subject = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }) },
        "task" => lambda {|n| @task = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceTask.create_from_discriminator_value(pn) }) },
        "taskProcessingresult" => lambda {|n| @task_processingresult = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceTaskProcessingResult.create_from_discriminator_value(pn) }) },
        "workflow" => lambda {|n| @workflow = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceWorkflow.create_from_discriminator_value(pn) }) },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


55
56
57
58
59
60
61
62
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 55

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("subject", @subject)
    writer.write_object_value("task", @task)
    writer.write_object_value("taskProcessingresult", @task_processingresult)
    writer.write_object_value("workflow", @workflow)
end

#subjectObject

Gets the subject property value. The subject property

Returns:

  • a user



67
68
69
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 67

def subject
    return @subject
end

#subject=(value) ⇒ Object

Sets the subject property value. The subject property

Parameters:

  • value

    Value to set for the subject property.

Returns:

  • a void



75
76
77
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 75

def subject=(value)
    @subject = value
end

#taskObject

Gets the task property value. The task property

Returns:

  • a identity_governance_task



82
83
84
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 82

def task
    return @task
end

#task=(value) ⇒ Object

Sets the task property value. The task property

Parameters:

  • value

    Value to set for the task property.

Returns:

  • a void



90
91
92
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 90

def task=(value)
    @task = value
end

#task_processingresultObject

Gets the taskProcessingresult property value. The taskProcessingresult property

Returns:

  • a identity_governance_task_processing_result



97
98
99
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 97

def task_processingresult
    return @task_processingresult
end

#task_processingresult=(value) ⇒ Object

Sets the taskProcessingresult property value. The taskProcessingresult property

Parameters:

  • value

    Value to set for the taskProcessingresult property.

Returns:

  • a void



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

def task_processingresult=(value)
    @task_processingresult = value
end

#workflowObject

Gets the workflow property value. The workflow property

Returns:

  • a identity_governance_workflow



112
113
114
# File 'lib/models/identity_governance_custom_task_extension_callout_data.rb', line 112

def workflow
    return @workflow
end

#workflow=(value) ⇒ Object

Sets the workflow property value. The workflow property

Parameters:

  • value

    Value to set for the workflow property.

Returns:

  • a void



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

def workflow=(value)
    @workflow = value
end