mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
54 lines
2.0 KiB
JavaScript
54 lines
2.0 KiB
JavaScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* HashiCorp Vault API
|
|
* HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.
|
|
*
|
|
* The version of the OpenAPI document: 1.21.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the GoogleCloudKmsWriteKeyRequest interface.
|
|
*/
|
|
export function instanceOfGoogleCloudKmsWriteKeyRequest(value) {
|
|
return true;
|
|
}
|
|
export function GoogleCloudKmsWriteKeyRequestFromJSON(json) {
|
|
return GoogleCloudKmsWriteKeyRequestFromJSONTyped(json, false);
|
|
}
|
|
export function GoogleCloudKmsWriteKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'algorithm': json['algorithm'] == null ? undefined : json['algorithm'],
|
|
'cryptoKey': json['crypto_key'] == null ? undefined : json['crypto_key'],
|
|
'keyRing': json['key_ring'] == null ? undefined : json['key_ring'],
|
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
'protectionLevel': json['protection_level'] == null ? undefined : json['protection_level'],
|
|
'purpose': json['purpose'] == null ? undefined : json['purpose'],
|
|
'rotationPeriod': json['rotation_period'] == null ? undefined : json['rotation_period'],
|
|
};
|
|
}
|
|
export function GoogleCloudKmsWriteKeyRequestToJSON(json) {
|
|
return GoogleCloudKmsWriteKeyRequestToJSONTyped(json, false);
|
|
}
|
|
export function GoogleCloudKmsWriteKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'algorithm': value['algorithm'],
|
|
'crypto_key': value['cryptoKey'],
|
|
'key_ring': value['keyRing'],
|
|
'labels': value['labels'],
|
|
'protection_level': value['protectionLevel'],
|
|
'purpose': value['purpose'],
|
|
'rotation_period': value['rotationPeriod'],
|
|
};
|
|
}
|