Class: MicrosoftGraph::Models::Process
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Process
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/process.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#account_name ⇒ Object
Gets the accountName property value.
-
#account_name=(value) ⇒ Object
Sets the accountName property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#command_line ⇒ Object
Gets the commandLine property value.
-
#command_line=(value) ⇒ Object
Sets the commandLine property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#file_hash ⇒ Object
Gets the fileHash property value.
-
#file_hash=(value) ⇒ Object
Sets the fileHash property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new process and sets the default values.
-
#integrity_level ⇒ Object
Gets the integrityLevel property value.
-
#integrity_level=(value) ⇒ Object
Sets the integrityLevel property value.
-
#is_elevated ⇒ Object
Gets the isElevated property value.
-
#is_elevated=(value) ⇒ Object
Sets the isElevated property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#parent_process_created_date_time ⇒ Object
Gets the parentProcessCreatedDateTime property value.
-
#parent_process_created_date_time=(value) ⇒ Object
Sets the parentProcessCreatedDateTime property value.
-
#parent_process_id ⇒ Object
Gets the parentProcessId property value.
-
#parent_process_id=(value) ⇒ Object
Sets the parentProcessId property value.
-
#parent_process_name ⇒ Object
Gets the parentProcessName property value.
-
#parent_process_name=(value) ⇒ Object
Sets the parentProcessName property value.
-
#path ⇒ Object
Gets the path property value.
-
#path=(value) ⇒ Object
Sets the path property value.
-
#process_id ⇒ Object
Gets the processId property value.
-
#process_id=(value) ⇒ Object
Sets the processId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
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
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_name ⇒ Object
Gets the accountName property value. User account identifier (user account context the process ran under) for example, AccountName, SID, and so on.
56 57 58 |
# File 'lib/models/process.rb', line 56 def account_name 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.
64 65 66 |
# File 'lib/models/process.rb', line 64 def account_name=(value) @account_name = value end |
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
79 80 81 |
# File 'lib/models/process.rb', line 79 def additional_data=(value) @additional_data = value end |
#command_line ⇒ Object
Gets the commandLine property value. The full process invocation commandline including all parameters.
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.
94 95 96 |
# File 'lib/models/process.rb', line 94 def command_line=(value) @command_line = value end |
#created_date_time ⇒ Object
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.
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.
116 117 118 |
# File 'lib/models/process.rb', line 116 def created_date_time=(value) @created_date_time = value end |
#file_hash ⇒ Object
Gets the fileHash property value. Complex type containing file hashes (cryptographic and location-sensitive).
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).
140 141 142 |
# File 'lib/models/process.rb', line 140 def file_hash=(value) @file_hash = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_level ⇒ Object
Gets the integrityLevel property value. The integrity level of the process. Possible values are: unknown, untrusted, low, medium, high, system.
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.
176 177 178 |
# File 'lib/models/process.rb', line 176 def integrity_level=(value) @integrity_level = value end |
#is_elevated ⇒ Object
Gets the isElevated property value. True if the process is elevated.
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.
191 192 193 |
# File 'lib/models/process.rb', line 191 def is_elevated=(value) @is_elevated = value end |
#name ⇒ Object
Gets the name property value. The name of the process’ Image file.
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.
206 207 208 |
# File 'lib/models/process.rb', line 206 def name=(value) @name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
221 222 223 |
# File 'lib/models/process.rb', line 221 def odata_type=(value) @odata_type = value end |
#parent_process_created_date_time ⇒ Object
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.
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.
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_id ⇒ Object
Gets the parentProcessId property value. The Process ID (PID) of the parent process.
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.
251 252 253 |
# File 'lib/models/process.rb', line 251 def parent_process_id=(value) @parent_process_id = value end |
#parent_process_name ⇒ Object
Gets the parentProcessName property value. The name of the image file of the parent process.
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.
266 267 268 |
# File 'lib/models/process.rb', line 266 def parent_process_name=(value) @parent_process_name = value end |
#path ⇒ Object
Gets the path property value. Full path, including filename.
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.
281 282 283 |
# File 'lib/models/process.rb', line 281 def path=(value) @path = value end |
#process_id ⇒ Object
Gets the processId property value. The Process ID (PID) of the process.
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.
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
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 |