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

67 lines
2.8 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.instanceOfAzureWriteRoleRequest = instanceOfAzureWriteRoleRequest;
exports.AzureWriteRoleRequestFromJSON = AzureWriteRoleRequestFromJSON;
exports.AzureWriteRoleRequestFromJSONTyped = AzureWriteRoleRequestFromJSONTyped;
exports.AzureWriteRoleRequestToJSON = AzureWriteRoleRequestToJSON;
exports.AzureWriteRoleRequestToJSONTyped = AzureWriteRoleRequestToJSONTyped;
/**
* Check if a given object implements the AzureWriteRoleRequest interface.
*/
function instanceOfAzureWriteRoleRequest(value) {
return true;
}
function AzureWriteRoleRequestFromJSON(json) {
return AzureWriteRoleRequestFromJSONTyped(json, false);
}
function AzureWriteRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'applicationObjectId': json['application_object_id'] == null ? undefined : json['application_object_id'],
'azureGroups': json['azure_groups'] == null ? undefined : json['azure_groups'],
'azureRoles': json['azure_roles'] == null ? undefined : json['azure_roles'],
'explicitMaxTtl': json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'],
'maxTtl': json['max_ttl'] == null ? undefined : json['max_ttl'],
'permanentlyDelete': json['permanently_delete'] == null ? undefined : json['permanently_delete'],
'persistApp': json['persist_app'] == null ? undefined : json['persist_app'],
'signInAudience': json['sign_in_audience'] == null ? undefined : json['sign_in_audience'],
'tags': json['tags'] == null ? undefined : json['tags'],
'ttl': json['ttl'] == null ? undefined : json['ttl'],
};
}
function AzureWriteRoleRequestToJSON(json) {
return AzureWriteRoleRequestToJSONTyped(json, false);
}
function AzureWriteRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'application_object_id': value['applicationObjectId'],
'azure_groups': value['azureGroups'],
'azure_roles': value['azureRoles'],
'explicit_max_ttl': value['explicitMaxTtl'],
'max_ttl': value['maxTtl'],
'permanently_delete': value['permanentlyDelete'],
'persist_app': value['persistApp'],
'sign_in_audience': value['signInAudience'],
'tags': value['tags'],
'ttl': value['ttl'],
};
}