Class: MicrosoftGraph::Models::IdentityGovernanceRunSummary

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new identityGovernanceRunSummary and sets the default values.



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

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 identity_governance_run_summary

Raises:

  • (StandardError)


60
61
62
63
# File 'lib/models/identity_governance_run_summary.rb', line 60

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

Instance Method Details

#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



37
38
39
# File 'lib/models/identity_governance_run_summary.rb', line 37

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



45
46
47
# File 'lib/models/identity_governance_run_summary.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#failed_runsObject

Gets the failedRuns property value. The number of failed workflow runs.

Returns:

  • a integer



68
69
70
# File 'lib/models/identity_governance_run_summary.rb', line 68

def failed_runs
    return @failed_runs
end

#failed_runs=(value) ⇒ Object

Sets the failedRuns property value. The number of failed workflow runs.

Parameters:

  • value

    Value to set for the failedRuns property.

Returns:

  • a void



76
77
78
# File 'lib/models/identity_governance_run_summary.rb', line 76

def failed_runs=(value)
    @failed_runs = value
end

#failed_tasksObject

Gets the failedTasks property value. The number of failed tasks of a workflow.

Returns:

  • a integer



83
84
85
# File 'lib/models/identity_governance_run_summary.rb', line 83

def failed_tasks
    return @failed_tasks
end

#failed_tasks=(value) ⇒ Object

Sets the failedTasks property value. The number of failed tasks of a workflow.

Parameters:

  • value

    Value to set for the failedTasks property.

Returns:

  • a void



91
92
93
# File 'lib/models/identity_governance_run_summary.rb', line 91

def failed_tasks=(value)
    @failed_tasks = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/models/identity_governance_run_summary.rb', line 98

def get_field_deserializers()
    return {
        "failedRuns" => lambda {|n| @failed_runs = n.get_number_value() },
        "failedTasks" => lambda {|n| @failed_tasks = n.get_number_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "successfulRuns" => lambda {|n| @successful_runs = n.get_number_value() },
        "totalRuns" => lambda {|n| @total_runs = n.get_number_value() },
        "totalTasks" => lambda {|n| @total_tasks = n.get_number_value() },
        "totalUsers" => lambda {|n| @total_users = n.get_number_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



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

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



121
122
123
# File 'lib/models/identity_governance_run_summary.rb', line 121

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)


129
130
131
132
133
134
135
136
137
138
139
# File 'lib/models/identity_governance_run_summary.rb', line 129

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_number_value("failedRuns", @failed_runs)
    writer.write_number_value("failedTasks", @failed_tasks)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_number_value("successfulRuns", @successful_runs)
    writer.write_number_value("totalRuns", @total_runs)
    writer.write_number_value("totalTasks", @total_tasks)
    writer.write_number_value("totalUsers", @total_users)
    writer.write_additional_data(@additional_data)
end

#successful_runsObject

Gets the successfulRuns property value. The number of successful workflow runs.

Returns:

  • a integer



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

def successful_runs
    return @successful_runs
end

#successful_runs=(value) ⇒ Object

Sets the successfulRuns property value. The number of successful workflow runs.

Parameters:

  • value

    Value to set for the successfulRuns property.

Returns:

  • a void



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

def successful_runs=(value)
    @successful_runs = value
end

#total_runsObject

Gets the totalRuns property value. The total number of runs for a workflow.

Returns:

  • a integer



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

def total_runs
    return @total_runs
end

#total_runs=(value) ⇒ Object

Sets the totalRuns property value. The total number of runs for a workflow.

Parameters:

  • value

    Value to set for the totalRuns property.

Returns:

  • a void



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

def total_runs=(value)
    @total_runs = value
end

#total_tasksObject

Gets the totalTasks property value. The total number of tasks processed by a workflow.

Returns:

  • a integer



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

def total_tasks
    return @total_tasks
end

#total_tasks=(value) ⇒ Object

Sets the totalTasks property value. The total number of tasks processed by a workflow.

Parameters:

  • value

    Value to set for the totalTasks property.

Returns:

  • a void



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

def total_tasks=(value)
    @total_tasks = value
end

#total_usersObject

Gets the totalUsers property value. The total number of users processed by a workflow.

Returns:

  • a integer



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

def total_users
    return @total_users
end

#total_users=(value) ⇒ Object

Sets the totalUsers property value. The total number of users processed by a workflow.

Parameters:

  • value

    Value to set for the totalUsers property.

Returns:

  • a void



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

def total_users=(value)
    @total_users = value
end