Class: MicrosoftGraph::Models::SecurityKubernetesNamespaceEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityKubernetesNamespaceEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_kubernetes_namespace_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
-
#cluster ⇒ Object
Gets the cluster property value.
-
#cluster=(value) ⇒ Object
Sets the cluster property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityKubernetesNamespaceEvidence 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.
-
#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 securityKubernetesNamespaceEvidence and sets the default values.
37 38 39 40 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 37 def initialize() super @odata_type = "#microsoft.graph.security.kubernetesNamespaceEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
46 47 48 49 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 46 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityKubernetesNamespaceEvidence.new end |
Instance Method Details
#cluster ⇒ Object
Gets the cluster property value. The namespace cluster.
22 23 24 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 22 def cluster return @cluster end |
#cluster=(value) ⇒ Object
Sets the cluster property value. The namespace cluster.
30 31 32 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 30 def cluster=(value) @cluster = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
54 55 56 57 58 59 60 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 54 def get_field_deserializers() return super.merge({ "cluster" => lambda {|n| @cluster = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityKubernetesClusterEvidence.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() }, }) end |
#labels ⇒ Object
Gets the labels property value. The labels for the Kubernetes pod.
65 66 67 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 65 def labels return @labels end |
#labels=(value) ⇒ Object
Sets the labels property value. The labels for the Kubernetes pod.
73 74 75 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 73 def labels=(value) @labels = value end |
#name ⇒ Object
Gets the name property value. The namespace name.
80 81 82 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 80 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The namespace name.
88 89 90 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 88 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/security_kubernetes_namespace_evidence.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("cluster", @cluster) writer.write_object_value("labels", @labels) writer.write_string_value("name", @name) end |