Class: MicrosoftGraph::Models::SecurityContainerEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityContainerEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_container_evidence.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
-
#args ⇒ Object
Gets the args property value.
-
#args=(value) ⇒ Object
Sets the args property value.
-
#command ⇒ Object
Gets the command property value.
-
#command=(value) ⇒ Object
Sets the command property value.
-
#container_id ⇒ Object
Gets the containerId property value.
-
#container_id=(value) ⇒ Object
Sets the containerId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#image ⇒ Object
Gets the image property value.
-
#image=(value) ⇒ Object
Sets the image property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityContainerEvidence and sets the default values.
-
#is_privileged ⇒ Object
Gets the isPrivileged property value.
-
#is_privileged=(value) ⇒ Object
Sets the isPrivileged property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#pod ⇒ Object
Gets the pod property value.
-
#pod=(value) ⇒ Object
Sets the pod property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from SecurityAlertEvidence
#additional_data, #additional_data=, #created_date_time, #created_date_time=, #detailed_roles, #detailed_roles=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityContainerEvidence and sets the default values.
64 65 66 67 |
# File 'lib/models/security_container_evidence.rb', line 64 def initialize() super @odata_type = "#microsoft.graph.security.containerEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
88 89 90 91 |
# File 'lib/models/security_container_evidence.rb', line 88 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityContainerEvidence.new end |
Instance Method Details
#args ⇒ Object
Gets the args property value. The list of arguments.
34 35 36 |
# File 'lib/models/security_container_evidence.rb', line 34 def args return @args end |
#args=(value) ⇒ Object
Sets the args property value. The list of arguments.
42 43 44 |
# File 'lib/models/security_container_evidence.rb', line 42 def args=(value) @args = value end |
#command ⇒ Object
Gets the command property value. The list of commands.
49 50 51 |
# File 'lib/models/security_container_evidence.rb', line 49 def command return @command end |
#command=(value) ⇒ Object
Sets the command property value. The list of commands.
57 58 59 |
# File 'lib/models/security_container_evidence.rb', line 57 def command=(value) @command = value end |
#container_id ⇒ Object
Gets the containerId property value. The container ID.
72 73 74 |
# File 'lib/models/security_container_evidence.rb', line 72 def container_id return @container_id end |
#container_id=(value) ⇒ Object
Sets the containerId property value. The container ID.
80 81 82 |
# File 'lib/models/security_container_evidence.rb', line 80 def container_id=(value) @container_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/models/security_container_evidence.rb', line 96 def get_field_deserializers() return super.merge({ "args" => lambda {|n| @args = n.get_collection_of_primitive_values(String) }, "command" => lambda {|n| @command = n.get_collection_of_primitive_values(String) }, "containerId" => lambda {|n| @container_id = n.get_string_value() }, "image" => lambda {|n| @image = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityContainerImageEvidence.create_from_discriminator_value(pn) }) }, "isPrivileged" => lambda {|n| @is_privileged = n.get_boolean_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "pod" => lambda {|n| @pod = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityKubernetesPodEvidence.create_from_discriminator_value(pn) }) }, }) end |
#image ⇒ Object
Gets the image property value. The image used to run the container.
111 112 113 |
# File 'lib/models/security_container_evidence.rb', line 111 def image return @image end |
#image=(value) ⇒ Object
Sets the image property value. The image used to run the container.
119 120 121 |
# File 'lib/models/security_container_evidence.rb', line 119 def image=(value) @image = value end |
#is_privileged ⇒ Object
Gets the isPrivileged property value. The privileged status.
126 127 128 |
# File 'lib/models/security_container_evidence.rb', line 126 def is_privileged return @is_privileged end |
#is_privileged=(value) ⇒ Object
Sets the isPrivileged property value. The privileged status.
134 135 136 |
# File 'lib/models/security_container_evidence.rb', line 134 def is_privileged=(value) @is_privileged = value end |
#name ⇒ Object
Gets the name property value. The container name.
141 142 143 |
# File 'lib/models/security_container_evidence.rb', line 141 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The container name.
149 150 151 |
# File 'lib/models/security_container_evidence.rb', line 149 def name=(value) @name = value end |
#pod ⇒ Object
Gets the pod property value. The pod this container belongs to.
156 157 158 |
# File 'lib/models/security_container_evidence.rb', line 156 def pod return @pod end |
#pod=(value) ⇒ Object
Sets the pod property value. The pod this container belongs to.
164 165 166 |
# File 'lib/models/security_container_evidence.rb', line 164 def pod=(value) @pod = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/models/security_container_evidence.rb', line 172 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_primitive_values("args", @args) writer.write_collection_of_primitive_values("command", @command) writer.write_string_value("containerId", @container_id) writer.write_object_value("image", @image) writer.write_boolean_value("isPrivileged", @is_privileged) writer.write_string_value("name", @name) writer.write_object_value("pod", @pod) end |