mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 08:31:09 +02:00
51 lines
1.8 KiB
JavaScript
51 lines
1.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.instanceOfPoliciesWriteAclPolicy2Request = instanceOfPoliciesWriteAclPolicy2Request;
|
|
exports.PoliciesWriteAclPolicy2RequestFromJSON = PoliciesWriteAclPolicy2RequestFromJSON;
|
|
exports.PoliciesWriteAclPolicy2RequestFromJSONTyped = PoliciesWriteAclPolicy2RequestFromJSONTyped;
|
|
exports.PoliciesWriteAclPolicy2RequestToJSON = PoliciesWriteAclPolicy2RequestToJSON;
|
|
exports.PoliciesWriteAclPolicy2RequestToJSONTyped = PoliciesWriteAclPolicy2RequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the PoliciesWriteAclPolicy2Request interface.
|
|
*/
|
|
function instanceOfPoliciesWriteAclPolicy2Request(value) {
|
|
return true;
|
|
}
|
|
function PoliciesWriteAclPolicy2RequestFromJSON(json) {
|
|
return PoliciesWriteAclPolicy2RequestFromJSONTyped(json, false);
|
|
}
|
|
function PoliciesWriteAclPolicy2RequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'policy': json['policy'] == null ? undefined : json['policy'],
|
|
'rules': json['rules'] == null ? undefined : json['rules'],
|
|
};
|
|
}
|
|
function PoliciesWriteAclPolicy2RequestToJSON(json) {
|
|
return PoliciesWriteAclPolicy2RequestToJSONTyped(json, false);
|
|
}
|
|
function PoliciesWriteAclPolicy2RequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'policy': value['policy'],
|
|
'rules': value['rules'],
|
|
};
|
|
}
|