vault/ui/api-client/dist/models/KubernetesWriteAuthRoleRequest.js
Jordan Reimer 5905f43e1f
[UI] Check-in Built API Client (#29955)
* removes dist from api-client gitignore

* ignores api-client/dist directory for eslint and prettier

* builds api client
2025-03-19 11:50:15 -06:00

89 lines
4.5 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.instanceOfKubernetesWriteAuthRoleRequest = instanceOfKubernetesWriteAuthRoleRequest;
exports.KubernetesWriteAuthRoleRequestFromJSON = KubernetesWriteAuthRoleRequestFromJSON;
exports.KubernetesWriteAuthRoleRequestFromJSONTyped = KubernetesWriteAuthRoleRequestFromJSONTyped;
exports.KubernetesWriteAuthRoleRequestToJSON = KubernetesWriteAuthRoleRequestToJSON;
exports.KubernetesWriteAuthRoleRequestToJSONTyped = KubernetesWriteAuthRoleRequestToJSONTyped;
/**
* Check if a given object implements the KubernetesWriteAuthRoleRequest interface.
*/
function instanceOfKubernetesWriteAuthRoleRequest(value) {
return true;
}
function KubernetesWriteAuthRoleRequestFromJSON(json) {
return KubernetesWriteAuthRoleRequestFromJSONTyped(json, false);
}
function KubernetesWriteAuthRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
aliasNameSource: json['alias_name_source'] == null ? undefined : json['alias_name_source'],
audience: json['audience'] == null ? undefined : json['audience'],
boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'],
boundServiceAccountNames: json['bound_service_account_names'] == null ? undefined : json['bound_service_account_names'],
boundServiceAccountNamespaceSelector: json['bound_service_account_namespace_selector'] == null
? undefined
: json['bound_service_account_namespace_selector'],
boundServiceAccountNamespaces: json['bound_service_account_namespaces'] == null ? undefined : json['bound_service_account_namespaces'],
maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'],
numUses: json['num_uses'] == null ? undefined : json['num_uses'],
period: json['period'] == null ? undefined : json['period'],
policies: json['policies'] == null ? undefined : json['policies'],
tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'],
tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'],
tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'],
tokenNoDefaultPolicy: json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'],
tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'],
tokenPeriod: json['token_period'] == null ? undefined : json['token_period'],
tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'],
tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'],
tokenType: json['token_type'] == null ? undefined : json['token_type'],
ttl: json['ttl'] == null ? undefined : json['ttl'],
};
}
function KubernetesWriteAuthRoleRequestToJSON(json) {
return KubernetesWriteAuthRoleRequestToJSONTyped(json, false);
}
function KubernetesWriteAuthRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
alias_name_source: value['aliasNameSource'],
audience: value['audience'],
bound_cidrs: value['boundCidrs'],
bound_service_account_names: value['boundServiceAccountNames'],
bound_service_account_namespace_selector: value['boundServiceAccountNamespaceSelector'],
bound_service_account_namespaces: value['boundServiceAccountNamespaces'],
max_ttl: value['maxTtl'],
num_uses: value['numUses'],
period: value['period'],
policies: value['policies'],
token_bound_cidrs: value['tokenBoundCidrs'],
token_explicit_max_ttl: value['tokenExplicitMaxTtl'],
token_max_ttl: value['tokenMaxTtl'],
token_no_default_policy: value['tokenNoDefaultPolicy'],
token_num_uses: value['tokenNumUses'],
token_period: value['tokenPeriod'],
token_policies: value['tokenPolicies'],
token_ttl: value['tokenTtl'],
token_type: value['tokenType'],
ttl: value['ttl'],
};
}