vault/ui/api-client/dist/esm/models/GoogleCloudKmsConfigureRequest.js

44 lines
1.4 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.20.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 GoogleCloudKmsConfigureRequest interface.
*/
export function instanceOfGoogleCloudKmsConfigureRequest(value) {
return true;
}
export function GoogleCloudKmsConfigureRequestFromJSON(json) {
return GoogleCloudKmsConfigureRequestFromJSONTyped(json, false);
}
export function GoogleCloudKmsConfigureRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'credentials': json['credentials'] == null ? undefined : json['credentials'],
'scopes': json['scopes'] == null ? undefined : json['scopes'],
};
}
export function GoogleCloudKmsConfigureRequestToJSON(json) {
return GoogleCloudKmsConfigureRequestToJSONTyped(json, false);
}
export function GoogleCloudKmsConfigureRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'credentials': value['credentials'],
'scopes': value['scopes'],
};
}