/**
 * Vault Service Key Management API
 * API for managing and performing operations with keys and vaults. (For the API for managing secrets, see the Vault Service
Secret Management API. For the API for retrieving secrets, see the Vault Service Secret Retrieval API.)

 * OpenAPI spec version: release
 * Contact: sparta_kms_us_grp@oracle.com
 *
 * 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" ) ; export interface GenerateKeyDetails { /**
     * Information that can be used to provide an encryption context for the encrypted data.
     * The length of the string representation of the associated data must be fewer than 4096
     * characters.
     *
     */ "associatedData" ? : { [ key ] : string ; } ; /**
     * If true, the generated key is also returned unencrypted.
     */ "includePlaintextKey" : boolean ; /**
     * The OCID of the master encryption key to encrypt the generated data encryption key with.
     */ "keyId" : string ; "keyShape" : model . KeyShape ; /**
     * Information that provides context for audit logging. You can provide this additional
     * data by formatting it as key-value pairs to include in audit logs when audit logging is enabled.
     *
     */ "loggingContext" ? : { [ key ] : string ; } ; } export namespace GenerateKeyDetails { export function getJsonObj ( obj ) { const jsonObj = { ... obj , ... { "keyShape" : obj . keyShape ? model . KeyShape . getJsonObj ( obj . keyShape ) : undefined } } ; return jsonObj ; } export function getDeserializedJsonObj ( obj ) { const jsonObj = { ... obj , ... { "keyShape" : obj . keyShape ? model . KeyShape . getDeserializedJsonObj ( obj . keyShape ) : undefined } } ; return jsonObj ; } }