Class: MicrosoftGraph::Models::Process

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new process and sets the default values.



101
102
103
# File 'lib/models/process.rb', line 101

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 process

Raises:

  • (StandardError)


124
125
126
127
# File 'lib/models/process.rb', line 124

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

Instance Method Details

#account_nameObject

Gets the accountName property value. User account identifier (user account context the process ran under) for example, AccountName, SID, and so on.

Returns:

  • a string



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

def 
    return @account_name
end

#account_name=(value) ⇒ Object

Sets the accountName property value. User account identifier (user account context the process ran under) for example, AccountName, SID, and so on.

Parameters:

  • value

    Value to set for the accountName property.

Returns:

  • a void



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

def (value)
    @account_name = value
end

#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



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

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



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

def additional_data=(value)
    @additional_data = value
end

#command_lineObject

Gets the commandLine property value. The full process invocation commandline including all parameters.

Returns:

  • a string



86
87
88
# File 'lib/models/process.rb', line 86

def command_line
    return @command_line
end

#command_line=(value) ⇒ Object

Sets the commandLine property value. The full process invocation commandline including all parameters.

Parameters:

  • value

    Value to set for the commandLine property.

Returns:

  • a void



94
95
96
# File 'lib/models/process.rb', line 94

def command_line=(value)
    @command_line = value
end

#created_date_timeObject

Gets the createdDateTime property value. Time at which the process was started. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



108
109
110
# File 'lib/models/process.rb', line 108

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. Time at which the process was started. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



116
117
118
# File 'lib/models/process.rb', line 116

def created_date_time=(value)
    @created_date_time = value
end

#file_hashObject

Gets the fileHash property value. Complex type containing file hashes (cryptographic and location-sensitive).

Returns:

  • a file_hash



132
133
134
# File 'lib/models/process.rb', line 132

def file_hash
    return @file_hash
end

#file_hash=(value) ⇒ Object

Sets the fileHash property value. Complex type containing file hashes (cryptographic and location-sensitive).

Parameters:

  • value

    Value to set for the fileHash property.

Returns:

  • a void



140
141
142
# File 'lib/models/process.rb', line 140

def file_hash=(value)
    @file_hash = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/models/process.rb', line 147

def get_field_deserializers()
    return {
        "accountName" => lambda {|n| @account_name = n.get_string_value() },
        "commandLine" => lambda {|n| @command_line = n.get_string_value() },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "fileHash" => lambda {|n| @file_hash = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FileHash.create_from_discriminator_value(pn) }) },
        "integrityLevel" => lambda {|n| @integrity_level = n.get_enum_value(MicrosoftGraph::Models::ProcessIntegrityLevel) },
        "isElevated" => lambda {|n| @is_elevated = n.get_boolean_value() },
        "name" => lambda {|n| @name = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "parentProcessCreatedDateTime" => lambda {|n| @parent_process_created_date_time = n.get_date_time_value() },
        "parentProcessId" => lambda {|n| @parent_process_id = n.get_number_value() },
        "parentProcessName" => lambda {|n| @parent_process_name = n.get_string_value() },
        "path" => lambda {|n| @path = n.get_string_value() },
        "processId" => lambda {|n| @process_id = n.get_number_value() },
    }
end

#integrity_levelObject

Gets the integrityLevel property value. The integrity level of the process. Possible values are: unknown, untrusted, low, medium, high, system.

Returns:

  • a process_integrity_level



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

def integrity_level
    return @integrity_level
end

#integrity_level=(value) ⇒ Object

Sets the integrityLevel property value. The integrity level of the process. Possible values are: unknown, untrusted, low, medium, high, system.

Parameters:

  • value

    Value to set for the integrityLevel property.

Returns:

  • a void



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

def integrity_level=(value)
    @integrity_level = value
end

#is_elevatedObject

Gets the isElevated property value. True if the process is elevated.

Returns:

  • a boolean



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

def is_elevated
    return @is_elevated
end

#is_elevated=(value) ⇒ Object

Sets the isElevated property value. True if the process is elevated.

Parameters:

  • value

    Value to set for the isElevated property.

Returns:

  • a void



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

def is_elevated=(value)
    @is_elevated = value
end

#nameObject

Gets the name property value. The name of the process’ Image file.

Returns:

  • a string



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

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The name of the process’ Image file.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



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

def name=(value)
    @name = value
end

#odata_typeObject

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

Returns:

  • a string



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

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



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

def odata_type=(value)
    @odata_type = value
end

#parent_process_created_date_timeObject

Gets the parentProcessCreatedDateTime property value. DateTime at which the parent process was started. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



228
229
230
# File 'lib/models/process.rb', line 228

def parent_process_created_date_time
    return @parent_process_created_date_time
end

#parent_process_created_date_time=(value) ⇒ Object

Sets the parentProcessCreatedDateTime property value. DateTime at which the parent process was started. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the parentProcessCreatedDateTime property.

Returns:

  • a void



236
237
238
# File 'lib/models/process.rb', line 236

def parent_process_created_date_time=(value)
    @parent_process_created_date_time = value
end

#parent_process_idObject

Gets the parentProcessId property value. The Process ID (PID) of the parent process.

Returns:

  • a integer



243
244
245
# File 'lib/models/process.rb', line 243

def parent_process_id
    return @parent_process_id
end

#parent_process_id=(value) ⇒ Object

Sets the parentProcessId property value. The Process ID (PID) of the parent process.

Parameters:

  • value

    Value to set for the parentProcessId property.

Returns:

  • a void



251
252
253
# File 'lib/models/process.rb', line 251

def parent_process_id=(value)
    @parent_process_id = value
end

#parent_process_nameObject

Gets the parentProcessName property value. The name of the image file of the parent process.

Returns:

  • a string



258
259
260
# File 'lib/models/process.rb', line 258

def parent_process_name
    return @parent_process_name
end

#parent_process_name=(value) ⇒ Object

Sets the parentProcessName property value. The name of the image file of the parent process.

Parameters:

  • value

    Value to set for the parentProcessName property.

Returns:

  • a void



266
267
268
# File 'lib/models/process.rb', line 266

def parent_process_name=(value)
    @parent_process_name = value
end

#pathObject

Gets the path property value. Full path, including filename.

Returns:

  • a string



273
274
275
# File 'lib/models/process.rb', line 273

def path
    return @path
end

#path=(value) ⇒ Object

Sets the path property value. Full path, including filename.

Parameters:

  • value

    Value to set for the path property.

Returns:

  • a void



281
282
283
# File 'lib/models/process.rb', line 281

def path=(value)
    @path = value
end

#process_idObject

Gets the processId property value. The Process ID (PID) of the process.

Returns:

  • a integer



288
289
290
# File 'lib/models/process.rb', line 288

def process_id
    return @process_id
end

#process_id=(value) ⇒ Object

Sets the processId property value. The Process ID (PID) of the process.

Parameters:

  • value

    Value to set for the processId property.

Returns:

  • a void



296
297
298
# File 'lib/models/process.rb', line 296

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


304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/models/process.rb', line 304

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("accountName", @account_name)
    writer.write_string_value("commandLine", @command_line)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("fileHash", @file_hash)
    writer.write_enum_value("integrityLevel", @integrity_level)
    writer.write_boolean_value("isElevated", @is_elevated)
    writer.write_string_value("name", @name)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_date_time_value("parentProcessCreatedDateTime", @parent_process_created_date_time)
    writer.write_number_value("parentProcessId", @parent_process_id)
    writer.write_string_value("parentProcessName", @parent_process_name)
    writer.write_string_value("path", @path)
    writer.write_number_value("processId", @process_id)
    writer.write_additional_data(@additional_data)
end