Class: MicrosoftGraph::Models::CertificateAuthority

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/certificate_authority.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a certificate_authority

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



45
46
47
# File 'lib/models/certificate_authority.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#certificateObject

Gets the certificate property value. Required. The base64 encoded string representing the public certificate.

Returns:

  • a base64url



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.

Parameters:

  • value

    Value to set for the certificate property.

Returns:

  • a void



60
61
62
# File 'lib/models/certificate_authority.rb', line 60

def certificate=(value)
    @certificate = value
end

#certificate_revocation_list_urlObject

Gets the certificateRevocationListUrl property value. The URL of the certificate revocation list.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the certificateRevocationListUrl property.

Returns:

  • a void



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_urlObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the deltaCertificateRevocationListUrl property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_authorityObject

Gets the isRootAuthority property value. Required. true if the trusted certificate is a root authority, false if the trusted certificate is an intermediate authority.

Returns:

  • a boolean



128
129
130
# File 'lib/models/certificate_authority.rb', line 128

def is_root_authority
    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.

Parameters:

  • value

    Value to set for the isRootAuthority property.

Returns:

  • a void



136
137
138
# File 'lib/models/certificate_authority.rb', line 136

def is_root_authority=(value)
    @is_root_authority = value
end

#issuerObject

Gets the issuer property value. The issuer of the certificate, calculated from the certificate value. Read-only.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the issuer property.

Returns:

  • a void



151
152
153
# File 'lib/models/certificate_authority.rb', line 151

def issuer=(value)
    @issuer = value
end

#issuer_skiObject

Gets the issuerSki property value. The subject key identifier of the certificate, calculated from the certificate value. Read-only.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the issuerSki property.

Returns:

  • a void



166
167
168
# File 'lib/models/certificate_authority.rb', line 166

def issuer_ski=(value)
    @issuer_ski = value
end

#odata_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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