Class: MicrosoftGraph::Models::WindowsInformationProtectionDataRecoveryCertificate
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::WindowsInformationProtectionDataRecoveryCertificate
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_information_protection_data_recovery_certificate.rb
Overview
Windows Information Protection DataRecoveryCertificate
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#certificate ⇒ Object
Gets the certificate property value.
-
#certificate=(value) ⇒ Object
Sets the certificate property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value.
-
#expiration_date_time=(value) ⇒ Object
Sets the expirationDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsInformationProtectionDataRecoveryCertificate and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#subject_name ⇒ Object
Gets the subjectName property value.
-
#subject_name=(value) ⇒ Object
Sets the subjectName property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsInformationProtectionDataRecoveryCertificate and sets the default values.
64 65 66 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 64 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
72 73 74 75 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsInformationProtectionDataRecoveryCertificate.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
34 35 36 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 34 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
42 43 44 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 42 def additional_data=(value) @additional_data = value end |
#certificate ⇒ Object
Gets the certificate property value. Data recovery Certificate
49 50 51 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 49 def certificate return @certificate end |
#certificate=(value) ⇒ Object
Sets the certificate property value. Data recovery Certificate
57 58 59 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 57 def certificate=(value) @certificate = value end |
#description ⇒ Object
Gets the description property value. Data recovery Certificate description
80 81 82 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 80 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Data recovery Certificate description
88 89 90 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 88 def description=(value) @description = value end |
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value. Data recovery Certificate expiration datetime
95 96 97 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 95 def expiration_date_time return @expiration_date_time end |
#expiration_date_time=(value) ⇒ Object
Sets the expirationDateTime property value. Data recovery Certificate expiration datetime
103 104 105 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 103 def expiration_date_time=(value) @expiration_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 110 def get_field_deserializers() return { "certificate" => lambda {|n| @certificate = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "subjectName" => lambda {|n| @subject_name = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
123 124 125 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 123 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
131 132 133 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 131 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
139 140 141 142 143 144 145 146 147 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 139 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("certificate", @certificate) writer.write_string_value("description", @description) writer.write_date_time_value("expirationDateTime", @expiration_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("subjectName", @subject_name) writer.write_additional_data(@additional_data) end |
#subject_name ⇒ Object
Gets the subjectName property value. Data recovery Certificate subject name
152 153 154 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 152 def subject_name return @subject_name end |
#subject_name=(value) ⇒ Object
Sets the subjectName property value. Data recovery Certificate subject name
160 161 162 |
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 160 def subject_name=(value) @subject_name = value end |