Class: MicrosoftGraph::Models::IdentityGovernanceWorkflowTemplate

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



43
44
45
# File 'lib/models/identity_governance_workflow_template.rb', line 43

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_workflow_template

Raises:

  • (StandardError)


51
52
53
54
# File 'lib/models/identity_governance_workflow_template.rb', line 51

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

Instance Method Details

#categoryObject

Gets the category property value. The category property

Returns:

  • a identity_governance_lifecycle_workflow_category



28
29
30
# File 'lib/models/identity_governance_workflow_template.rb', line 28

def category
    return @category
end

#category=(value) ⇒ Object

Sets the category property value. The category property

Parameters:

  • value

    Value to set for the category property.

Returns:

  • a void



36
37
38
# File 'lib/models/identity_governance_workflow_template.rb', line 36

def category=(value)
    @category = value
end

#descriptionObject

Gets the description property value. The description of the workflowTemplate.

Returns:

  • a string



59
60
61
# File 'lib/models/identity_governance_workflow_template.rb', line 59

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description of the workflowTemplate.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



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

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The display name of the workflowTemplate.Supports $filter(eq, ne) and $orderby.

Returns:

  • a string



74
75
76
# File 'lib/models/identity_governance_workflow_template.rb', line 74

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the workflowTemplate.Supports $filter(eq, ne) and $orderby.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



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

def display_name=(value)
    @display_name = value
end

#execution_conditionsObject

Gets the executionConditions property value. Conditions describing when to execute the workflow and the criteria to identify in-scope subject set.

Returns:

  • a identity_governance_workflow_execution_conditions



89
90
91
# File 'lib/models/identity_governance_workflow_template.rb', line 89

def execution_conditions
    return @execution_conditions
end

#execution_conditions=(value) ⇒ Object

Sets the executionConditions property value. Conditions describing when to execute the workflow and the criteria to identify in-scope subject set.

Parameters:

  • value

    Value to set for the executionConditions property.

Returns:

  • a void



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

def execution_conditions=(value)
    @execution_conditions = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



104
105
106
107
108
109
110
111
112
# File 'lib/models/identity_governance_workflow_template.rb', line 104

def get_field_deserializers()
    return super.merge({
        "category" => lambda {|n| @category = n.get_enum_value(MicrosoftGraph::Models::IdentityGovernanceLifecycleWorkflowCategory) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "executionConditions" => lambda {|n| @execution_conditions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceWorkflowExecutionConditions.create_from_discriminator_value(pn) }) },
        "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IdentityGovernanceTask.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)


118
119
120
121
122
123
124
125
126
# File 'lib/models/identity_governance_workflow_template.rb', line 118

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("category", @category)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("executionConditions", @execution_conditions)
    writer.write_collection_of_object_values("tasks", @tasks)
end

#tasksObject

Gets the tasks property value. Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default.

Returns:

  • a identity_governance_task



131
132
133
# File 'lib/models/identity_governance_workflow_template.rb', line 131

def tasks
    return @tasks
end

#tasks=(value) ⇒ Object

Sets the tasks property value. Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default.

Parameters:

  • value

    Value to set for the tasks property.

Returns:

  • a void



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

def tasks=(value)
    @tasks = value
end