vault/ui/api-client/dist/models/GoogleCloudWriteStaticAccountRequest.js

55 lines
2.3 KiB
JavaScript

"use strict";
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfGoogleCloudWriteStaticAccountRequest = instanceOfGoogleCloudWriteStaticAccountRequest;
exports.GoogleCloudWriteStaticAccountRequestFromJSON = GoogleCloudWriteStaticAccountRequestFromJSON;
exports.GoogleCloudWriteStaticAccountRequestFromJSONTyped = GoogleCloudWriteStaticAccountRequestFromJSONTyped;
exports.GoogleCloudWriteStaticAccountRequestToJSON = GoogleCloudWriteStaticAccountRequestToJSON;
exports.GoogleCloudWriteStaticAccountRequestToJSONTyped = GoogleCloudWriteStaticAccountRequestToJSONTyped;
/**
* Check if a given object implements the GoogleCloudWriteStaticAccountRequest interface.
*/
function instanceOfGoogleCloudWriteStaticAccountRequest(value) {
return true;
}
function GoogleCloudWriteStaticAccountRequestFromJSON(json) {
return GoogleCloudWriteStaticAccountRequestFromJSONTyped(json, false);
}
function GoogleCloudWriteStaticAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'bindings': json['bindings'] == null ? undefined : json['bindings'],
'secretType': json['secret_type'] == null ? undefined : json['secret_type'],
'serviceAccountEmail': json['service_account_email'] == null ? undefined : json['service_account_email'],
'tokenScopes': json['token_scopes'] == null ? undefined : json['token_scopes'],
};
}
function GoogleCloudWriteStaticAccountRequestToJSON(json) {
return GoogleCloudWriteStaticAccountRequestToJSONTyped(json, false);
}
function GoogleCloudWriteStaticAccountRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bindings': value['bindings'],
'secret_type': value['secretType'],
'service_account_email': value['serviceAccountEmail'],
'token_scopes': value['tokenScopes'],
};
}