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
1,457 changes: 1,248 additions & 209 deletions lib/services/keyvault/lib/keyVaultClient.d.ts

Large diffs are not rendered by default.

9,890 changes: 6,690 additions & 3,200 deletions lib/services/keyvault/lib/keyVaultClient.js

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions lib/services/keyvault/lib/models/backupCertificateResult.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The backup certificate result, containing the backup blob.
*
*/
class BackupCertificateResult {
/**
* Create a BackupCertificateResult.
* @member {buffer} [value] The backup blob containing the backed up
* certificate.
*/
constructor() {
}

/**
* Defines the metadata of BackupCertificateResult
*
* @returns {object} metadata of BackupCertificateResult
*
*/
mapper() {
return {
required: false,
serializedName: 'BackupCertificateResult',
type: {
name: 'Composite',
className: 'BackupCertificateResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: 'value',
type: {
name: 'Base64Url'
}
}
}
}
};
}
}

module.exports = BackupCertificateResult;
54 changes: 54 additions & 0 deletions lib/services/keyvault/lib/models/backupStorageResult.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The backup storage result, containing the backup blob.
*
*/
class BackupStorageResult {
/**
* Create a BackupStorageResult.
* @member {buffer} [value] The backup blob containing the backed up storage
* account.
*/
constructor() {
}

/**
* Defines the metadata of BackupStorageResult
*
* @returns {object} metadata of BackupStorageResult
*
*/
mapper() {
return {
required: false,
serializedName: 'BackupStorageResult',
type: {
name: 'Composite',
className: 'BackupStorageResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: 'value',
type: {
name: 'Base64Url'
}
}
}
}
};
}
}

module.exports = BackupStorageResult;
1 change: 1 addition & 0 deletions lib/services/keyvault/lib/models/certificateAttributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class CertificateAttributes extends models['Attributes'] {
},
recoveryLevel: {
required: false,
nullable: false,
readOnly: true,
serializedName: 'recoveryLevel',
type: {
Expand Down
10 changes: 9 additions & 1 deletion lib/services/keyvault/lib/models/certificateBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ class CertificateBundle {
* certificate.
* @member {boolean} [policy.keyProperties.exportable] Indicates if the
* private key can be exported.
* @member {string} [policy.keyProperties.keyType] The key type.
* @member {string} [policy.keyProperties.keyType] The type of key pair to be
* used for the certificate. Possible values include: 'EC', 'EC-HSM', 'RSA',
* 'RSA-HSM', 'oct'
* @member {number} [policy.keyProperties.keySize] The key size in bits. For
* 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', 'P-256K'
* @member {object} [policy.secretProperties] Properties of the secret
* backing a certificate.
* @member {string} [policy.secretProperties.contentType] The media type
Expand Down Expand Up @@ -68,6 +73,9 @@ class CertificateBundle {
* issuer object or reserved names; for example, 'Self' or 'Unknown'.
* @member {string} [policy.issuerParameters.certificateType] Type of
* certificate to be requested from the issuer provider.
* @member {boolean} [policy.issuerParameters.certificateTransparency]
* Indicates if the certificates generated under this policy should be
* published to certificate transparency logs.
* @member {object} [policy.attributes] The certificate attributes.
* @member {string} [policy.attributes.recoveryLevel] Reflects the deletion
* recovery level currently in effect for certificates in the current vault.
Expand Down
11 changes: 10 additions & 1 deletion lib/services/keyvault/lib/models/certificateCreateParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ class CertificateCreateParameters {
* backing a certificate.
* @member {boolean} [certificatePolicy.keyProperties.exportable] Indicates
* if the private key can be exported.
* @member {string} [certificatePolicy.keyProperties.keyType] The key type.
* @member {string} [certificatePolicy.keyProperties.keyType] The type of key
* pair to be used for the certificate. Possible values include: 'EC',
* 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'
* @member {number} [certificatePolicy.keyProperties.keySize] The key size in
* 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', 'P-256K'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down Expand Up @@ -67,6 +72,10 @@ class CertificateCreateParameters {
* 'Unknown'.
* @member {string} [certificatePolicy.issuerParameters.certificateType] Type
* of certificate to be requested from the issuer provider.
* @member {boolean}
* [certificatePolicy.issuerParameters.certificateTransparency] Indicates if
* the certificates generated under this policy should be published to
* certificate transparency logs.
* @member {object} [certificatePolicy.attributes] The certificate
* attributes.
* @member {string} [certificatePolicy.attributes.recoveryLevel] Reflects the
Expand Down
11 changes: 10 additions & 1 deletion lib/services/keyvault/lib/models/certificateImportParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ class CertificateImportParameters {
* backing a certificate.
* @member {boolean} [certificatePolicy.keyProperties.exportable] Indicates
* if the private key can be exported.
* @member {string} [certificatePolicy.keyProperties.keyType] The key type.
* @member {string} [certificatePolicy.keyProperties.keyType] The type of key
* pair to be used for the certificate. Possible values include: 'EC',
* 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'
* @member {number} [certificatePolicy.keyProperties.keySize] The key size in
* 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', 'P-256K'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down Expand Up @@ -72,6 +77,10 @@ class CertificateImportParameters {
* 'Unknown'.
* @member {string} [certificatePolicy.issuerParameters.certificateType] Type
* of certificate to be requested from the issuer provider.
* @member {boolean}
* [certificatePolicy.issuerParameters.certificateTransparency] Indicates if
* the certificates generated under this policy should be published to
* certificate transparency logs.
* @member {object} [certificatePolicy.attributes] The certificate
* attributes.
* @member {string} [certificatePolicy.attributes.recoveryLevel] Reflects the
Expand Down
3 changes: 3 additions & 0 deletions lib/services/keyvault/lib/models/certificateOperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class CertificateOperation {
* object or reserved names; for example, 'Self' or 'Unknown'.
* @member {string} [issuerParameters.certificateType] Type of certificate to
* be requested from the issuer provider.
* @member {boolean} [issuerParameters.certificateTransparency] Indicates if
* the certificates generated under this policy should be published to
* certificate transparency logs.
* @member {buffer} [csr] The certificate signing request (CSR) that is being
* used in the certificate operation.
* @member {boolean} [cancellationRequested] Indicates if cancellation was
Expand Down
10 changes: 9 additions & 1 deletion lib/services/keyvault/lib/models/certificatePolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ class CertificatePolicy {
* certificate.
* @member {boolean} [keyProperties.exportable] Indicates if the private key
* can be exported.
* @member {string} [keyProperties.keyType] The key type.
* @member {string} [keyProperties.keyType] The type of key pair to be used
* for the certificate. Possible values include: 'EC', 'EC-HSM', 'RSA',
* 'RSA-HSM', 'oct'
* @member {number} [keyProperties.keySize] The key size in bits. For
* 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', 'P-256K'
* @member {object} [secretProperties] Properties of the secret backing a
* certificate.
* @member {string} [secretProperties.contentType] The media type (MIME
Expand Down Expand Up @@ -57,6 +62,9 @@ class CertificatePolicy {
* object or reserved names; for example, 'Self' or 'Unknown'.
* @member {string} [issuerParameters.certificateType] Type of certificate to
* be requested from the issuer provider.
* @member {boolean} [issuerParameters.certificateTransparency] Indicates if
* the certificates generated under this policy should be published to
* certificate transparency logs.
* @member {object} [attributes] The certificate attributes.
* @member {string} [attributes.recoveryLevel] Reflects the deletion recovery
* level currently in effect for certificates in the current vault. If it
Expand Down
53 changes: 53 additions & 0 deletions lib/services/keyvault/lib/models/certificateRestoreParameters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The certificate restore parameters.
*
*/
class CertificateRestoreParameters {
/**
* Create a CertificateRestoreParameters.
* @member {buffer} certificateBundleBackup The backup blob associated with a
* certificate bundle.
*/
constructor() {
}

/**
* Defines the metadata of CertificateRestoreParameters
*
* @returns {object} metadata of CertificateRestoreParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'CertificateRestoreParameters',
type: {
name: 'Composite',
className: 'CertificateRestoreParameters',
modelProperties: {
certificateBundleBackup: {
required: true,
serializedName: 'value',
type: {
name: 'Base64Url'
}
}
}
}
};
}
}

module.exports = CertificateRestoreParameters;
11 changes: 10 additions & 1 deletion lib/services/keyvault/lib/models/certificateUpdateParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ class CertificateUpdateParameters {
* backing a certificate.
* @member {boolean} [certificatePolicy.keyProperties.exportable] Indicates
* if the private key can be exported.
* @member {string} [certificatePolicy.keyProperties.keyType] The key type.
* @member {string} [certificatePolicy.keyProperties.keyType] The type of key
* pair to be used for the certificate. Possible values include: 'EC',
* 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'
* @member {number} [certificatePolicy.keyProperties.keySize] The key size in
* 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', 'P-256K'
* @member {object} [certificatePolicy.secretProperties] Properties of the
* secret backing a certificate.
* @member {string} [certificatePolicy.secretProperties.contentType] The
Expand Down Expand Up @@ -67,6 +72,10 @@ class CertificateUpdateParameters {
* 'Unknown'.
* @member {string} [certificatePolicy.issuerParameters.certificateType] Type
* of certificate to be requested from the issuer provider.
* @member {boolean}
* [certificatePolicy.issuerParameters.certificateTransparency] Indicates if
* the certificates generated under this policy should be published to
* certificate transparency logs.
* @member {object} [certificatePolicy.attributes] The certificate
* attributes.
* @member {string} [certificatePolicy.attributes.recoveryLevel] Reflects the
Expand Down
Loading