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

46 lines
1.6 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 GoogleCloudWriteImpersonatedAccountRequest interface.
*/
export function instanceOfGoogleCloudWriteImpersonatedAccountRequest(value) {
return true;
}
export function GoogleCloudWriteImpersonatedAccountRequestFromJSON(json) {
return GoogleCloudWriteImpersonatedAccountRequestFromJSONTyped(json, false);
}
export function GoogleCloudWriteImpersonatedAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'serviceAccountEmail': json['service_account_email'] == null ? undefined : json['service_account_email'],
'tokenScopes': json['token_scopes'] == null ? undefined : json['token_scopes'],
'ttl': json['ttl'] == null ? undefined : json['ttl'],
};
}
export function GoogleCloudWriteImpersonatedAccountRequestToJSON(json) {
return GoogleCloudWriteImpersonatedAccountRequestToJSONTyped(json, false);
}
export function GoogleCloudWriteImpersonatedAccountRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'service_account_email': value['serviceAccountEmail'],
'token_scopes': value['tokenScopes'],
'ttl': value['ttl'],
};
}