Class: MicrosoftGraph::Models::CertificateAuthority
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::CertificateAuthority
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/certificate_authority.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.
-
#certificate ⇒ Object
Gets the certificate property value.
-
#certificate=(value) ⇒ Object
Sets the certificate property value.
-
#certificate_revocation_list_url ⇒ Object
Gets the certificateRevocationListUrl property value.
-
#certificate_revocation_list_url=(value) ⇒ Object
Sets the certificateRevocationListUrl property value.
-
#delta_certificate_revocation_list_url ⇒ Object
Gets the deltaCertificateRevocationListUrl property value.
-
#delta_certificate_revocation_list_url=(value) ⇒ Object
Sets the deltaCertificateRevocationListUrl property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new certificateAuthority and sets the default values.
-
#is_root_authority ⇒ Object
Gets the isRootAuthority property value.
-
#is_root_authority=(value) ⇒ Object
Sets the isRootAuthority property value.
-
#issuer ⇒ Object
Gets the issuer property value.
-
#issuer=(value) ⇒ Object
Sets the issuer property value.
-
#issuer_ski ⇒ Object
Gets the issuerSki property value.
-
#issuer_ski=(value) ⇒ Object
Sets the issuerSki 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 certificateAuthority and sets the default values.
82 83 84 |
# File 'lib/models/certificate_authority.rb', line 82 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
90 91 92 93 |
# File 'lib/models/certificate_authority.rb', line 90 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return CertificateAuthority.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.
37 38 39 |
# File 'lib/models/certificate_authority.rb', line 37 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.
45 46 47 |
# File 'lib/models/certificate_authority.rb', line 45 def additional_data=(value) @additional_data = value end |
#certificate ⇒ Object
Gets the certificate property value. Required. The base64 encoded string representing the public certificate.
52 53 54 |
# File 'lib/models/certificate_authority.rb', line 52 def certificate return @certificate end |
#certificate=(value) ⇒ Object
Sets the certificate property value. Required. The base64 encoded string representing the public certificate.
60 61 62 |
# File 'lib/models/certificate_authority.rb', line 60 def certificate=(value) @certificate = value end |
#certificate_revocation_list_url ⇒ Object
Gets the certificateRevocationListUrl property value. The URL of the certificate revocation list.
67 68 69 |
# File 'lib/models/certificate_authority.rb', line 67 def certificate_revocation_list_url return @certificate_revocation_list_url end |
#certificate_revocation_list_url=(value) ⇒ Object
Sets the certificateRevocationListUrl property value. The URL of the certificate revocation list.
75 76 77 |
# File 'lib/models/certificate_authority.rb', line 75 def certificate_revocation_list_url=(value) @certificate_revocation_list_url = value end |
#delta_certificate_revocation_list_url ⇒ Object
Gets the deltaCertificateRevocationListUrl property value. The URL contains the list of all revoked certificates since the last time a full certificate revocaton list was created.
98 99 100 |
# File 'lib/models/certificate_authority.rb', line 98 def delta_certificate_revocation_list_url return @delta_certificate_revocation_list_url end |
#delta_certificate_revocation_list_url=(value) ⇒ Object
Sets the deltaCertificateRevocationListUrl property value. The URL contains the list of all revoked certificates since the last time a full certificate revocaton list was created.
106 107 108 |
# File 'lib/models/certificate_authority.rb', line 106 def delta_certificate_revocation_list_url=(value) @delta_certificate_revocation_list_url = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/models/certificate_authority.rb', line 113 def get_field_deserializers() return { "certificate" => lambda {|n| @certificate = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "certificateRevocationListUrl" => lambda {|n| @certificate_revocation_list_url = n.get_string_value() }, "deltaCertificateRevocationListUrl" => lambda {|n| @delta_certificate_revocation_list_url = n.get_string_value() }, "isRootAuthority" => lambda {|n| @is_root_authority = n.get_boolean_value() }, "issuer" => lambda {|n| @issuer = n.get_string_value() }, "issuerSki" => lambda {|n| @issuer_ski = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#is_root_authority ⇒ Object
Gets the isRootAuthority property value. Required. true if the trusted certificate is a root authority, false if the trusted certificate is an intermediate authority.
128 129 130 |
# File 'lib/models/certificate_authority.rb', line 128 def return @is_root_authority end |
#is_root_authority=(value) ⇒ Object
Sets the isRootAuthority property value. Required. true if the trusted certificate is a root authority, false if the trusted certificate is an intermediate authority.
136 137 138 |
# File 'lib/models/certificate_authority.rb', line 136 def (value) @is_root_authority = value end |
#issuer ⇒ Object
Gets the issuer property value. The issuer of the certificate, calculated from the certificate value. Read-only.
143 144 145 |
# File 'lib/models/certificate_authority.rb', line 143 def issuer return @issuer end |
#issuer=(value) ⇒ Object
Sets the issuer property value. The issuer of the certificate, calculated from the certificate value. Read-only.
151 152 153 |
# File 'lib/models/certificate_authority.rb', line 151 def issuer=(value) @issuer = value end |
#issuer_ski ⇒ Object
Gets the issuerSki property value. The subject key identifier of the certificate, calculated from the certificate value. Read-only.
158 159 160 |
# File 'lib/models/certificate_authority.rb', line 158 def issuer_ski return @issuer_ski end |
#issuer_ski=(value) ⇒ Object
Sets the issuerSki property value. The subject key identifier of the certificate, calculated from the certificate value. Read-only.
166 167 168 |
# File 'lib/models/certificate_authority.rb', line 166 def issuer_ski=(value) @issuer_ski = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
173 174 175 |
# File 'lib/models/certificate_authority.rb', line 173 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
181 182 183 |
# File 'lib/models/certificate_authority.rb', line 181 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/models/certificate_authority.rb', line 189 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("certificate", @certificate) writer.write_string_value("certificateRevocationListUrl", @certificate_revocation_list_url) writer.write_string_value("deltaCertificateRevocationListUrl", @delta_certificate_revocation_list_url) writer.write_boolean_value("isRootAuthority", @is_root_authority) writer.write_string_value("issuer", @issuer) writer.write_string_value("issuerSki", @issuer_ski) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |