Class: MicrosoftGraph::Models::WindowsInformationProtectionDataRecoveryCertificate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a windows_information_protection_data_recovery_certificate

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#certificateObject

Gets the certificate property value. Data recovery Certificate

Returns:

  • a base64url



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

Parameters:

  • value

    Value to set for the certificate property.

Returns:

  • a void



57
58
59
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 57

def certificate=(value)
    @certificate = value
end

#descriptionObject

Gets the description property value. Data recovery Certificate description

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



88
89
90
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 88

def description=(value)
    @description = value
end

#expiration_date_timeObject

Gets the expirationDateTime property value. Data recovery Certificate expiration datetime

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the expirationDateTime property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_nameObject

Gets the subjectName property value. Data recovery Certificate subject name

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the subjectName property.

Returns:

  • a void



160
161
162
# File 'lib/models/windows_information_protection_data_recovery_certificate.rb', line 160

def subject_name=(value)
    @subject_name = value
end