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

49 lines
1.6 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.instanceOfAppRoleReadRoleIdResponse = instanceOfAppRoleReadRoleIdResponse;
exports.AppRoleReadRoleIdResponseFromJSON = AppRoleReadRoleIdResponseFromJSON;
exports.AppRoleReadRoleIdResponseFromJSONTyped = AppRoleReadRoleIdResponseFromJSONTyped;
exports.AppRoleReadRoleIdResponseToJSON = AppRoleReadRoleIdResponseToJSON;
exports.AppRoleReadRoleIdResponseToJSONTyped = AppRoleReadRoleIdResponseToJSONTyped;
/**
* Check if a given object implements the AppRoleReadRoleIdResponse interface.
*/
function instanceOfAppRoleReadRoleIdResponse(value) {
return true;
}
function AppRoleReadRoleIdResponseFromJSON(json) {
return AppRoleReadRoleIdResponseFromJSONTyped(json, false);
}
function AppRoleReadRoleIdResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'roleId': json['role_id'] == null ? undefined : json['role_id'],
};
}
function AppRoleReadRoleIdResponseToJSON(json) {
return AppRoleReadRoleIdResponseToJSONTyped(json, false);
}
function AppRoleReadRoleIdResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'role_id': value['roleId'],
};
}