Class: MicrosoftGraph::Models::SecurityKubernetesPodEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityKubernetesPodEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_kubernetes_pod_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
-
#containers ⇒ Object
Gets the containers property value.
-
#containers=(value) ⇒ Object
Sets the containers property value.
-
#controller ⇒ Object
Gets the controller property value.
-
#controller=(value) ⇒ Object
Sets the controller property value.
-
#ephemeral_containers ⇒ Object
Gets the ephemeralContainers property value.
-
#ephemeral_containers=(value) ⇒ Object
Sets the ephemeralContainers property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#init_containers ⇒ Object
Gets the initContainers property value.
-
#init_containers=(value) ⇒ Object
Sets the initContainers property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityKubernetesPodEvidence and sets the default values.
-
#labels ⇒ Object
Gets the labels property value.
-
#labels=(value) ⇒ Object
Sets the labels property value.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#namespace ⇒ Object
Gets the namespace property value.
-
#namespace=(value) ⇒ Object
Sets the namespace property value.
-
#pod_ip ⇒ Object
Gets the podIp property value.
-
#pod_ip=(value) ⇒ Object
Sets the podIp property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service_account ⇒ Object
Gets the serviceAccount property value.
-
#service_account=(value) ⇒ Object
Sets the serviceAccount property value.
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 securityKubernetesPodEvidence and sets the default values.
40 41 42 43 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 40 def initialize() super @odata_type = "#microsoft.graph.security.kubernetesPodEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
79 80 81 82 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 79 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityKubernetesPodEvidence.new end |
Instance Method Details
#containers ⇒ Object
Gets the containers property value. The list of pod containers which are not init or ephemeral containers.
48 49 50 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 48 def containers return @containers end |
#containers=(value) ⇒ Object
Sets the containers property value. The list of pod containers which are not init or ephemeral containers.
56 57 58 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 56 def containers=(value) @containers = value end |
#controller ⇒ Object
Gets the controller property value. The pod controller.
63 64 65 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 63 def controller return @controller end |
#controller=(value) ⇒ Object
Sets the controller property value. The pod controller.
71 72 73 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 71 def controller=(value) @controller = value end |
#ephemeral_containers ⇒ Object
Gets the ephemeralContainers property value. The list of pod ephemeral containers.
87 88 89 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 87 def ephemeral_containers return @ephemeral_containers end |
#ephemeral_containers=(value) ⇒ Object
Sets the ephemeralContainers property value. The list of pod ephemeral containers.
95 96 97 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 95 def ephemeral_containers=(value) @ephemeral_containers = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 102 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 |
#init_containers ⇒ Object
Gets the initContainers property value. The list of pod init containers.
119 120 121 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 119 def init_containers return @init_containers end |
#init_containers=(value) ⇒ Object
Sets the initContainers property value. The list of pod init containers.
127 128 129 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 127 def init_containers=(value) @init_containers = value end |
#labels ⇒ Object
Gets the labels property value. The pod labels.
134 135 136 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 134 def labels return @labels end |
#labels=(value) ⇒ Object
Sets the labels property value. The pod labels.
142 143 144 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 142 def labels=(value) @labels = value end |
#name ⇒ Object
Gets the name property value. The pod name.
149 150 151 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 149 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The pod name.
157 158 159 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 157 def name=(value) @name = value end |
#namespace ⇒ Object
Gets the namespace property value. The pod namespace.
164 165 166 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 164 def namespace return @namespace end |
#namespace=(value) ⇒ Object
Sets the namespace property value. The pod namespace.
172 173 174 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 172 def namespace=(value) @namespace = value end |
#pod_ip ⇒ Object
Gets the podIp property value. The pod IP.
179 180 181 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 179 def pod_ip return @pod_ip end |
#pod_ip=(value) ⇒ Object
Sets the podIp property value. The pod IP.
187 188 189 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 187 def pod_ip=(value) @pod_ip = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 195 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 |
#service_account ⇒ Object
Gets the serviceAccount property value. The pod service account.
212 213 214 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 212 def service_account return @service_account end |
#service_account=(value) ⇒ Object
Sets the serviceAccount property value. The pod service account.
220 221 222 |
# File 'lib/models/security_kubernetes_pod_evidence.rb', line 220 def service_account=(value) @service_account = value end |