Class: MicrosoftGraph::Models::SecurityContainerEvidence

Inherits:
SecurityAlertEvidence show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_container_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_container_evidence

Raises:

  • (StandardError)


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

#argsObject

Gets the args property value. The list of arguments.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the args property.

Returns:

  • a void



42
43
44
# File 'lib/models/security_container_evidence.rb', line 42

def args=(value)
    @args = value
end

#commandObject

Gets the command property value. The list of commands.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the command property.

Returns:

  • a void



57
58
59
# File 'lib/models/security_container_evidence.rb', line 57

def command=(value)
    @command = value
end

#container_idObject

Gets the containerId property value. The container ID.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the containerId property.

Returns:

  • a void



80
81
82
# File 'lib/models/security_container_evidence.rb', line 80

def container_id=(value)
    @container_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#imageObject

Gets the image property value. The image used to run the container.

Returns:

  • a security_container_image_evidence



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.

Parameters:

  • value

    Value to set for the image property.

Returns:

  • a void



119
120
121
# File 'lib/models/security_container_evidence.rb', line 119

def image=(value)
    @image = value
end

#is_privilegedObject

Gets the isPrivileged property value. The privileged status.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isPrivileged property.

Returns:

  • a void



134
135
136
# File 'lib/models/security_container_evidence.rb', line 134

def is_privileged=(value)
    @is_privileged = value
end

#nameObject

Gets the name property value. The container name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



149
150
151
# File 'lib/models/security_container_evidence.rb', line 149

def name=(value)
    @name = value
end

#podObject

Gets the pod property value. The pod this container belongs to.

Returns:

  • a security_kubernetes_pod_evidence



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.

Parameters:

  • value

    Value to set for the pod property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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