Class: MicrosoftGraph::Models::SecurityKubernetesServiceAccountEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityKubernetesServiceAccountEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_kubernetes_service_account_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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityKubernetesServiceAccountEvidence and sets the default values.
-
#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.
-
#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 securityKubernetesServiceAccountEvidence and sets the default values.
19 20 21 22 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.security.kubernetesServiceAccountEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityKubernetesServiceAccountEvidence.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
36 37 38 39 40 41 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 36 def get_field_deserializers() return super.merge({ "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) }) }, }) end |
#name ⇒ Object
Gets the name property value. The service account name.
46 47 48 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 46 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The service account name.
54 55 56 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 54 def name=(value) @name = value end |
#namespace ⇒ Object
Gets the namespace property value. The service account namespace.
61 62 63 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 61 def namespace return @namespace end |
#namespace=(value) ⇒ Object
Sets the namespace property value. The service account namespace.
69 70 71 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 69 def namespace=(value) @namespace = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/security_kubernetes_service_account_evidence.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("name", @name) writer.write_object_value("namespace", @namespace) end |