Class: MicrosoftGraph::Models::Certification
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Certification
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/certification.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#certification_details_url ⇒ Object
Gets the certificationDetailsUrl property value.
-
#certification_details_url=(value) ⇒ Object
Sets the certificationDetailsUrl property value.
-
#certification_expiration_date_time ⇒ Object
Gets the certificationExpirationDateTime property value.
-
#certification_expiration_date_time=(value) ⇒ Object
Sets the certificationExpirationDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new certification and sets the default values.
-
#is_certified_by_microsoft ⇒ Object
Gets the isCertifiedByMicrosoft property value.
-
#is_certified_by_microsoft=(value) ⇒ Object
Sets the isCertifiedByMicrosoft property value.
-
#is_publisher_attested ⇒ Object
Gets the isPublisherAttested property value.
-
#is_publisher_attested=(value) ⇒ Object
Sets the isPublisherAttested property value.
-
#last_certification_date_time ⇒ Object
Gets the lastCertificationDateTime property value.
-
#last_certification_date_time=(value) ⇒ Object
Sets the lastCertificationDateTime property value.
-
#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.
Constructor Details
#initialize ⇒ Object
Instantiates a new certification and sets the default values.
80 81 82 |
# File 'lib/models/certification.rb', line 80 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
88 89 90 91 |
# File 'lib/models/certification.rb', line 88 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Certification.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.
35 36 37 |
# File 'lib/models/certification.rb', line 35 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.
43 44 45 |
# File 'lib/models/certification.rb', line 43 def additional_data=(value) @additional_data = value end |
#certification_details_url ⇒ Object
Gets the certificationDetailsUrl property value. URL that shows certification details for the application.
50 51 52 |
# File 'lib/models/certification.rb', line 50 def certification_details_url return @certification_details_url end |
#certification_details_url=(value) ⇒ Object
Sets the certificationDetailsUrl property value. URL that shows certification details for the application.
58 59 60 |
# File 'lib/models/certification.rb', line 58 def certification_details_url=(value) @certification_details_url = value end |
#certification_expiration_date_time ⇒ Object
Gets the certificationExpirationDateTime property value. The timestamp when the current certification for the application will expire.
65 66 67 |
# File 'lib/models/certification.rb', line 65 def certification_expiration_date_time return @certification_expiration_date_time end |
#certification_expiration_date_time=(value) ⇒ Object
Sets the certificationExpirationDateTime property value. The timestamp when the current certification for the application will expire.
73 74 75 |
# File 'lib/models/certification.rb', line 73 def certification_expiration_date_time=(value) @certification_expiration_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
96 97 98 99 100 101 102 103 104 105 |
# File 'lib/models/certification.rb', line 96 def get_field_deserializers() return { "certificationDetailsUrl" => lambda {|n| @certification_details_url = n.get_string_value() }, "certificationExpirationDateTime" => lambda {|n| @certification_expiration_date_time = n.get_date_time_value() }, "isCertifiedByMicrosoft" => lambda {|n| @is_certified_by_microsoft = n.get_boolean_value() }, "isPublisherAttested" => lambda {|n| @is_publisher_attested = n.get_boolean_value() }, "lastCertificationDateTime" => lambda {|n| @last_certification_date_time = n.get_date_time_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#is_certified_by_microsoft ⇒ Object
Gets the isCertifiedByMicrosoft property value. Indicates whether the application is certified by Microsoft.
110 111 112 |
# File 'lib/models/certification.rb', line 110 def is_certified_by_microsoft return @is_certified_by_microsoft end |
#is_certified_by_microsoft=(value) ⇒ Object
Sets the isCertifiedByMicrosoft property value. Indicates whether the application is certified by Microsoft.
118 119 120 |
# File 'lib/models/certification.rb', line 118 def is_certified_by_microsoft=(value) @is_certified_by_microsoft = value end |
#is_publisher_attested ⇒ Object
Gets the isPublisherAttested property value. Indicates whether the application has been self-attested by the application developer or the publisher.
125 126 127 |
# File 'lib/models/certification.rb', line 125 def is_publisher_attested return @is_publisher_attested end |
#is_publisher_attested=(value) ⇒ Object
Sets the isPublisherAttested property value. Indicates whether the application has been self-attested by the application developer or the publisher.
133 134 135 |
# File 'lib/models/certification.rb', line 133 def is_publisher_attested=(value) @is_publisher_attested = value end |
#last_certification_date_time ⇒ Object
Gets the lastCertificationDateTime property value. The timestamp when the certification for the application was most recently added or updated.
140 141 142 |
# File 'lib/models/certification.rb', line 140 def last_certification_date_time return @last_certification_date_time end |
#last_certification_date_time=(value) ⇒ Object
Sets the lastCertificationDateTime property value. The timestamp when the certification for the application was most recently added or updated.
148 149 150 |
# File 'lib/models/certification.rb', line 148 def last_certification_date_time=(value) @last_certification_date_time = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
155 156 157 |
# File 'lib/models/certification.rb', line 155 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
163 164 165 |
# File 'lib/models/certification.rb', line 163 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
171 172 173 174 175 176 177 178 |
# File 'lib/models/certification.rb', line 171 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_date_time_value("certificationExpirationDateTime", @certification_expiration_date_time) writer.write_boolean_value("isPublisherAttested", @is_publisher_attested) writer.write_date_time_value("lastCertificationDateTime", @last_certification_date_time) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |