/**
 * Certificates Service Management API
 * API for managing certificates.
 * OpenAPI spec version: 20210224
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import * as model from "../model" ; import common = require ( "oci-common" ) ; /**
 * The metadata details of the certificate authority (CA). This summary object does not contain the CA contents.
 */ export interface CertificateAuthoritySummary { /**
     * The OCID of the certificate authority (CA).
     */ "id" : string ; /**
     * The OCID of the parent CA which issued this CA. If this is the root CA, then this value is the same as the `id`.
     *
     */ "issuerCertificateAuthorityId" ? : string ; /**
     * A user-friendly name for the CA. Names are unique within a compartment. Avoid entering confidential information. Valid characters include uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
     */ "name" : string ; /**
     * A brief description of the CA.
     */ "description" ? : string ; /**
     * A property indicating when the CA was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
     * Example: `2019-04-03T21:10:29.600Z`
     *
     */ "timeCreated" : Date ; /**
     * An optional property indicating when to delete the CA version, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
     * Example: `2019-04-03T21:10:29.600Z`
     *
     */ "timeOfDeletion" ? : Date ; /**
     * The OCID of the Oracle Cloud Infrastructure Vault key used to encrypt the CA.
     */ "kmsKeyId" ? : string ; /**
     * The current lifecycle state of the CA.
     */ "lifecycleState" : model . CertificateAuthorityLifecycleState ; /**
     * The OCID of the compartment under which the CA is created.
     */ "compartmentId" : string ; /**
     * An optional list of rules that control how the CA is used and managed.
     */ "certificateAuthorityRules" ? : Array < model . CertificateAuthorityRule > ; "currentVersionSummary" ? : model . CertificateAuthorityVersionSummary ; "subject" ? : model . CertificateSubject ; /**
     * The origin of the CA.
     */ "configType" : model . CertificateAuthorityConfigType ; /**
     * The algorithm used to sign public key certificates that the CA issues.
     */ "signingAlgorithm" ? : model . SignatureAlgorithm ; /**
     * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
     * Example: `{\"bar-key\": \"value\"}`
     *
     */ "freeformTags" ? : { [ key ] : string ; } ; /**
     * Usage of predefined tag keys. These predefined keys are scoped to namespaces.
     * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
     *
     */ "definedTags" ? : { [ key ] : { [ key ] : any ; } ; } ; } export namespace CertificateAuthoritySummary { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "certificateAuthorityRules" : obj . certificateAuthorityRules ? obj . certificateAuthorityRules . map ( item => { return model . CertificateAuthorityRule . getJsonObj ( item ) ; } ) : undefined , "currentVersionSummary" : obj . currentVersionSummary ? model . CertificateAuthorityVersionSummary . getJsonObj ( obj . currentVersionSummary ) : undefined , "subject" : obj . subject ? model . CertificateSubject . getJsonObj ( obj . subject ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "certificateAuthorityRules" : obj . certificateAuthorityRules ? obj . certificateAuthorityRules . map ( item => { return model . CertificateAuthorityRule . getDeserializedJsonObj ( item ) ; } ) : undefined , "currentVersionSummary" : obj . currentVersionSummary ? model . CertificateAuthorityVersionSummary . getDeserializedJsonObj ( obj . currentVersionSummary ) : undefined , "subject" : obj . subject ? model . CertificateSubject . getDeserializedJsonObj ( obj . subject ) : undefined } } ; return jsonObj ; } }