updateKeyProperties(name, keyVersion, options = {}) {
        return withTrace$4(`updateKeyProperties`, options, async (updatedOptions) => {
            const { enabled, notBefore, expiresOn: expires } = updatedOptions, remainingOptions = tslib.__rest(updatedOptions, ["enabled", "notBefore", "expiresOn"]);
            const unflattenedOptions = Object.assign(Object.assign({}, remainingOptions), { keyAttributes: {
                    enabled,
                    notBefore,
                    expires
                } });
            const response = await this.client.updateKey(this.vaultUrl, name, keyVersion, unflattenedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
/**
     * The updateKeyProperties method changes specified properties of an existing stored key. Properties that
     * are not specified in the request are left unchanged. The value of a key itself cannot be
     * changed. This operation requires the keys/set permission.
     *
     * Example usage:
     * ```ts
     * let keyName = "MyKey";
     * let client = new KeyClient(url, credentials);
     * let key = await client.getKey(keyName);
     * let result = await client.updateKeyProperties(keyName, key.properties.version, { enabled: false });
     * ```
     * Updates the properties associated with a specified key in a given key vault.
     * @param name - The name of the key.
     * @param keyVersion - The version of the key.
     * @param options - The optional parameters.
     */
The updateKeyProperties method changes specified properties of an existing stored key. Properties that
are not specified in the request are left unchanged. The value of a key itself cannot be
changed. This operation requires the keys/set permission.


The updateKeyProperties method changes specified properties of an existing stored key . Properties that are not specified in the request are left unchanged . The value of a key itself cannot be changed . This operation requires the keys / set permission .
updateKeyProperties(name, keyVersion, options = {}) {
        return withTrace$4(`updateKeyProperties`, options, async (updatedOptions) => {
            const { enabled, notBefore, expiresOn: expires } = updatedOptions, remainingOptions = tslib.__rest(updatedOptions, ["enabled", "notBefore", "expiresOn"]);
            const unflattenedOptions = Object.assign(Object.assign({}, remainingOptions), { keyAttributes: {
                    enabled,
                    notBefore,
                    expires
                } });
            const response = await this.client.updateKey(this.vaultUrl, name, keyVersion, unflattenedOptions);
            return getKeyFromKeyBundle(response);
        });
    }
updateKeyProperties ( name , keyVersion , options = { } ) { return withTrace$4 ( ` ` , options , async ( updatedOptions ) => { const { enabled , notBefore , expiresOn : expires } = updatedOptions , remainingOptions = tslib . __rest ( updatedOptions , [ "enabled" , "notBefore" , "expiresOn" ] ) ; const unflattenedOptions = Object . assign ( Object . assign ( { } , remainingOptions ) , { keyAttributes : { enabled , notBefore , expires } } ) ; const response = await this . client . updateKey ( this . vaultUrl , name , keyVersion , unflattenedOptions ) ; return getKeyFromKeyBundle ( response ) ; } ) ; }
The updateKeyProperties method changes specified properties of an existing stored key.
The updateKeyProperties method changes specified properties of an existing stored key .