createKey(name, keyType, options) {
        let unflattenedOptions = {};
        if (options) {
            const { enabled, notBefore, expiresOn: expires } = options, remainingOptions = tslib.__rest(options, ["enabled", "notBefore", "expiresOn"]);
            unflattenedOptions = Object.assign(Object.assign({}, remainingOptions), { keyAttributes: {
                    enabled,
                    notBefore,
                    expires
                } });
        }
        return withTrace$4("createKey", unflattenedOptions, async (updatedOptions) => {
            const response = await this.client.createKey(this.vaultUrl, name, keyType, updatedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
/**
     * The create key operation can be used to create any key type in Azure Key Vault. If the named key
     * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create
     * permission.
     *
     * Example usage:
     * ```ts
     * let client = new KeyClient(url, credentials);
     * // Create an elliptic-curve key:
     * let result = await client.createKey("MyKey", "EC");
     * ```
     * Creates a new key, stores it, then returns key parameters and properties to the client.
     * @param name - The name of the key.
     * @param keyType - The type of the key. One of the following: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'.
     * @param options - The optional parameters.
     */
The create key operation can be used to create any key type in Azure Key Vault. If the named key
already exists, Azure Key Vault creates a new version of the key. It requires the keys/create
permission.


The create key operation can be used to create any key type in Azure Key Vault . If the named key already exists Azure Key Vault creates a new version of the key . It requires the keys / create permission .
createKey(name, keyType, options) {
        let unflattenedOptions = {};
        if (options) {
            const { enabled, notBefore, expiresOn: expires } = options, remainingOptions = tslib.__rest(options, ["enabled", "notBefore", "expiresOn"]);
            unflattenedOptions = Object.assign(Object.assign({}, remainingOptions), { keyAttributes: {
                    enabled,
                    notBefore,
                    expires
                } });
        }
        return withTrace$4("createKey", unflattenedOptions, async (updatedOptions) => {
            const response = await this.client.createKey(this.vaultUrl, name, keyType, updatedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
createKey ( name , keyType , options ) { let unflattenedOptions = { } ; if ( options ) { const { enabled , notBefore , expiresOn : expires } = options , remainingOptions = tslib . __rest ( options , [ "enabled" , "notBefore" , "expiresOn" ] ) ; unflattenedOptions = Object . assign ( Object . assign ( { } , remainingOptions ) , { keyAttributes : { enabled , notBefore , expires } } ) ; } return withTrace$4 ( "createKey" , unflattenedOptions , async ( updatedOptions ) => { const response = await this . client . createKey ( this . vaultUrl , name , keyType , updatedOptions ) ; return getKeyFromKeyBundle ( response ) ; } ) ; }
The create key operation can be used to create any key type in Azure Key Vault.
The create key operation can be used to create any key type in Azure Key Vault .