Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions lib/services/keyvault/lib/lib/keyVaultClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3523,6 +3523,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -3640,6 +3644,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -3786,6 +3794,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -3913,6 +3925,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -4192,6 +4208,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if the
* same key pair will be used on certificate renewal.
*
* @param {string} [certificatePolicy.keyProperties.curve] Elliptic curve name.
* For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
*
Expand Down Expand Up @@ -4299,6 +4319,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if the
* same key pair will be used on certificate renewal.
*
* @param {string} [certificatePolicy.keyProperties.curve] Elliptic curve name.
* For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
*
Expand Down Expand Up @@ -4433,6 +4457,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -4555,6 +4583,10 @@ export default class KeyVaultClient extends AzureServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down
48 changes: 48 additions & 0 deletions lib/services/keyvault/lib/lib/keyVaultClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -7030,6 +7030,10 @@ function _deleteCertificateIssuer(vaultBaseUrl, issuerName, options, callback) {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -7316,6 +7320,10 @@ function _createCertificate(vaultBaseUrl, certificateName, options, callback) {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -7913,6 +7921,10 @@ function _getCertificatePolicy(vaultBaseUrl, certificateName, options, callback)
* @param {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if the
* same key pair will be used on certificate renewal.
*
* @param {string} [certificatePolicy.keyProperties.curve] Elliptic curve name.
* For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
*
Expand Down Expand Up @@ -8167,6 +8179,10 @@ function _updateCertificatePolicy(vaultBaseUrl, certificateName, certificatePoli
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -20145,6 +20161,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -20274,6 +20294,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -20435,6 +20459,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -20574,6 +20602,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -20922,6 +20954,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if the
* same key pair will be used on certificate renewal.
*
* @param {string} [certificatePolicy.keyProperties.curve] Elliptic curve name.
* For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
*
Expand Down Expand Up @@ -21041,6 +21077,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if the
* same key pair will be used on certificate renewal.
*
* @param {string} [certificatePolicy.keyProperties.curve] Elliptic curve name.
* For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
*
Expand Down Expand Up @@ -21190,6 +21230,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down Expand Up @@ -21324,6 +21368,10 @@ class KeyVaultClient extends ServiceClient {
* @param {boolean} [options.certificatePolicy.keyProperties.reuseKey]
* Indicates if the same key pair will be used on certificate renewal.
*
* @param {string} [options.certificatePolicy.keyProperties.curve] Elliptic
* curve name. For valid values, see JsonWebKeyCurveName. Possible values
* include: 'P-256', 'P-384', 'P-521', 'SECP256K1'
*
* @param {object} [options.certificatePolicy.secretProperties] Properties of
* the secret backing a certificate.
*
Expand Down
3 changes: 3 additions & 0 deletions lib/services/keyvault/lib/lib/models/certificateBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class CertificateBundle {
* example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [policy.keyProperties.reuseKey] Indicates if the same
* key pair will be used on certificate renewal.
* @member {string} [policy.keyProperties.curve] Elliptic curve name. For
* valid values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
* @member {object} [policy.secretProperties] Properties of the secret
* backing a certificate.
* @member {string} [policy.secretProperties.contentType] The media type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class CertificateCreateParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class CertificateImportParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down
3 changes: 3 additions & 0 deletions lib/services/keyvault/lib/lib/models/certificatePolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class CertificatePolicy {
* example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [keyProperties.reuseKey] Indicates if the same key pair
* will be used on certificate renewal.
* @member {string} [keyProperties.curve] Elliptic curve name. For valid
* values, see JsonWebKeyCurveName. Possible values include: 'P-256',
* 'P-384', 'P-521', 'SECP256K1'
* @member {object} [secretProperties] Properties of the secret backing a
* certificate.
* @member {string} [secretProperties.contentType] The media type (MIME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class CertificateUpdateParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down
19 changes: 19 additions & 0 deletions lib/services/keyvault/lib/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,16 @@ export interface CertificateIssuerItem {
* 4096 for RSA.
* @member {boolean} [reuseKey] Indicates if the same key pair will be used on
* certificate renewal.
* @member {string} [curve] Elliptic curve name. For valid values, see
* JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
* 'SECP256K1'
*/
export interface KeyProperties {
exportable?: boolean;
keyType?: string;
keySize?: number;
reuseKey?: boolean;
curve?: string;
}

/**
Expand Down Expand Up @@ -568,6 +572,9 @@ export interface IssuerParameters {
* 2048, 3072, or 4096 for RSA.
* @member {boolean} [keyProperties.reuseKey] Indicates if the same key pair
* will be used on certificate renewal.
* @member {string} [keyProperties.curve] Elliptic curve name. For valid
* values, see JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384',
* 'P-521', 'SECP256K1'
* @member {object} [secretProperties] Properties of the secret backing a
* certificate.
* @member {string} [secretProperties.contentType] The media type (MIME type).
Expand Down Expand Up @@ -637,6 +644,9 @@ export interface CertificatePolicy {
* example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [policy.keyProperties.reuseKey] Indicates if the same key
* pair will be used on certificate renewal.
* @member {string} [policy.keyProperties.curve] Elliptic curve name. For valid
* values, see JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384',
* 'P-521', 'SECP256K1'
* @member {object} [policy.secretProperties] Properties of the secret backing
* a certificate.
* @member {string} [policy.secretProperties.contentType] The media type (MIME
Expand Down Expand Up @@ -1162,6 +1172,9 @@ export interface SecretUpdateParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The media
Expand Down Expand Up @@ -1250,6 +1263,9 @@ export interface CertificateCreateParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The media
Expand Down Expand Up @@ -1335,6 +1351,9 @@ export interface CertificateImportParameters {
* bits. For example: 2048, 3072, or 4096 for RSA.
* @member {boolean} [certificatePolicy.keyProperties.reuseKey] Indicates if
* the same key pair will be used on certificate renewal.
* @member {string} [certificatePolicy.keyProperties.curve] Elliptic curve
* name. For valid values, see JsonWebKeyCurveName. Possible values include:
* 'P-256', 'P-384', 'P-521', 'SECP256K1'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The media
Expand Down
10 changes: 10 additions & 0 deletions lib/services/keyvault/lib/lib/models/keyProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class KeyProperties {
* or 4096 for RSA.
* @member {boolean} [reuseKey] Indicates if the same key pair will be used
* on certificate renewal.
* @member {string} [curve] Elliptic curve name. For valid values, see
* JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521',
* 'SECP256K1'
*/
constructor() {
}
Expand Down Expand Up @@ -69,6 +72,13 @@ class KeyProperties {
type: {
name: 'Boolean'
}
},
curve: {
required: false,
serializedName: 'crv',
type: {
name: 'String'
}
}
}
}
Expand Down