require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative './models'

module MicrosoftGraph
    module Models
        class SecurityKubernetesPodEvidence < MicrosoftGraph::Models::SecurityAlertEvidence
            include MicrosoftKiotaAbstractions::Parsable
            ## 
            # The list of pod containers which are not init or ephemeral containers.
            @containers
            ## 
            # The pod controller.
            @controller
            ## 
            # The list of pod ephemeral containers.
            @ephemeral_containers
            ## 
            # The list of pod init containers.
            @init_containers
            ## 
            # The pod labels.
            @labels
            ## 
            # The pod name.
            @name
            ## 
            # The pod namespace.
            @namespace
            ## 
            # The pod IP.
            @pod_ip
            ## 
            # The pod service account.
            @service_account
            ## 
            ## Instantiates a new securityKubernetesPodEvidence and sets the default values.
            ## @return a void
            ## 
            def initialize()
                super
                @odata_type = "#microsoft.graph.security.kubernetesPodEvidence"
            end
            ## 
            ## Gets the containers property value. The list of pod containers which are not init or ephemeral containers.
            ## @return a security_container_evidence
            ## 
            def containers
                return @containers
            end
            ## 
            ## Sets the containers property value. The list of pod containers which are not init or ephemeral containers.
            ## @param value Value to set for the containers property.
            ## @return a void
            ## 
            def containers=(value)
                @containers = value
            end
            ## 
            ## Gets the controller property value. The pod controller.
            ## @return a security_kubernetes_controller_evidence
            ## 
            def controller
                return @controller
            end
            ## 
            ## Sets the controller property value. The pod controller.
            ## @param value Value to set for the controller property.
            ## @return a void
            ## 
            def controller=(value)
                @controller = value
            end
            ## 
            ## Creates a new instance of the appropriate class based on discriminator value
            ## @param parse_node The parse node to use to read the discriminator value and create the object
            ## @return a security_kubernetes_pod_evidence
            ## 
            def self.create_from_discriminator_value(parse_node)
                raise StandardError, 'parse_node cannot be null' if parse_node.nil?
                return SecurityKubernetesPodEvidence.new
            end
            ## 
            ## Gets the ephemeralContainers property value. The list of pod ephemeral containers.
            ## @return a security_container_evidence
            ## 
            def ephemeral_containers
                return @ephemeral_containers
            end
            ## 
            ## Sets the ephemeralContainers property value. The list of pod ephemeral containers.
            ## @param value Value to set for the ephemeralContainers property.
            ## @return a void
            ## 
            def ephemeral_containers=(value)
                @ephemeral_containers = value
            end
            ## 
            ## The deserialization information for the current model
            ## @return a i_dictionary
            ## 
            def get_field_deserializers()
                return super.merge({
                    "containers" => lambda {|n| @containers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityContainerEvidence.create_from_discriminator_value(pn) }) },
                    "controller" => lambda {|n| @controller = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityKubernetesControllerEvidence.create_from_discriminator_value(pn) }) },
                    "ephemeralContainers" => lambda {|n| @ephemeral_containers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityContainerEvidence.create_from_discriminator_value(pn) }) },
                    "initContainers" => lambda {|n| @init_containers = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityContainerEvidence.create_from_discriminator_value(pn) }) },
                    "labels" => lambda {|n| @labels = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityDictionary.create_from_discriminator_value(pn) }) },
                    "name" => lambda {|n| @name = n.get_string_value() },
                    "namespace" => lambda {|n| @namespace = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityKubernetesNamespaceEvidence.create_from_discriminator_value(pn) }) },
                    "podIp" => lambda {|n| @pod_ip = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityIpEvidence.create_from_discriminator_value(pn) }) },
                    "serviceAccount" => lambda {|n| @service_account = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityKubernetesServiceAccountEvidence.create_from_discriminator_value(pn) }) },
                })
            end
            ## 
            ## Gets the initContainers property value. The list of pod init containers.
            ## @return a security_container_evidence
            ## 
            def init_containers
                return @init_containers
            end
            ## 
            ## Sets the initContainers property value. The list of pod init containers.
            ## @param value Value to set for the initContainers property.
            ## @return a void
            ## 
            def init_containers=(value)
                @init_containers = value
            end
            ## 
            ## Gets the labels property value. The pod labels.
            ## @return a security_dictionary
            ## 
            def labels
                return @labels
            end
            ## 
            ## Sets the labels property value. The pod labels.
            ## @param value Value to set for the labels property.
            ## @return a void
            ## 
            def labels=(value)
                @labels = value
            end
            ## 
            ## Gets the name property value. The pod name.
            ## @return a string
            ## 
            def name
                return @name
            end
            ## 
            ## Sets the name property value. The pod name.
            ## @param value Value to set for the name property.
            ## @return a void
            ## 
            def name=(value)
                @name = value
            end
            ## 
            ## Gets the namespace property value. The pod namespace.
            ## @return a security_kubernetes_namespace_evidence
            ## 
            def namespace
                return @namespace
            end
            ## 
            ## Sets the namespace property value. The pod namespace.
            ## @param value Value to set for the namespace property.
            ## @return a void
            ## 
            def namespace=(value)
                @namespace = value
            end
            ## 
            ## Gets the podIp property value. The pod IP.
            ## @return a security_ip_evidence
            ## 
            def pod_ip
                return @pod_ip
            end
            ## 
            ## Sets the podIp property value. The pod IP.
            ## @param value Value to set for the podIp property.
            ## @return a void
            ## 
            def pod_ip=(value)
                @pod_ip = value
            end
            ## 
            ## Serializes information the current object
            ## @param writer Serialization writer to use to serialize this model
            ## @return a void
            ## 
            def serialize(writer)
                raise StandardError, 'writer cannot be null' if writer.nil?
                super
                writer.write_collection_of_object_values("containers", @containers)
                writer.write_object_value("controller", @controller)
                writer.write_collection_of_object_values("ephemeralContainers", @ephemeral_containers)
                writer.write_collection_of_object_values("initContainers", @init_containers)
                writer.write_object_value("labels", @labels)
                writer.write_string_value("name", @name)
                writer.write_object_value("namespace", @namespace)
                writer.write_object_value("podIp", @pod_ip)
                writer.write_object_value("serviceAccount", @service_account)
            end
            ## 
            ## Gets the serviceAccount property value. The pod service account.
            ## @return a security_kubernetes_service_account_evidence
            ## 
            def service_account
                return @service_account
            end
            ## 
            ## Sets the serviceAccount property value. The pod service account.
            ## @param value Value to set for the serviceAccount property.
            ## @return a void
            ## 
            def service_account=(value)
                @service_account = value
            end
        end
    end
end
