mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 00:51:08 +02:00
* removes dist from api-client gitignore * ignores api-client/dist directory for eslint and prettier * builds api client
57 lines
2.3 KiB
JavaScript
57 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.instanceOfAwsWriteStaticRolesNameRequest = instanceOfAwsWriteStaticRolesNameRequest;
|
|
exports.AwsWriteStaticRolesNameRequestFromJSON = AwsWriteStaticRolesNameRequestFromJSON;
|
|
exports.AwsWriteStaticRolesNameRequestFromJSONTyped = AwsWriteStaticRolesNameRequestFromJSONTyped;
|
|
exports.AwsWriteStaticRolesNameRequestToJSON = AwsWriteStaticRolesNameRequestToJSON;
|
|
exports.AwsWriteStaticRolesNameRequestToJSONTyped = AwsWriteStaticRolesNameRequestToJSONTyped;
|
|
/**
|
|
* Check if a given object implements the AwsWriteStaticRolesNameRequest interface.
|
|
*/
|
|
function instanceOfAwsWriteStaticRolesNameRequest(value) {
|
|
return true;
|
|
}
|
|
function AwsWriteStaticRolesNameRequestFromJSON(json) {
|
|
return AwsWriteStaticRolesNameRequestFromJSONTyped(json, false);
|
|
}
|
|
function AwsWriteStaticRolesNameRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
assumeRoleArn: json['assume_role_arn'] == null ? undefined : json['assume_role_arn'],
|
|
assumeRoleSessionName: json['assume_role_session_name'] == null ? undefined : json['assume_role_session_name'],
|
|
externalId: json['external_id'] == null ? undefined : json['external_id'],
|
|
rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'],
|
|
username: json['username'] == null ? undefined : json['username'],
|
|
};
|
|
}
|
|
function AwsWriteStaticRolesNameRequestToJSON(json) {
|
|
return AwsWriteStaticRolesNameRequestToJSONTyped(json, false);
|
|
}
|
|
function AwsWriteStaticRolesNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
assume_role_arn: value['assumeRoleArn'],
|
|
assume_role_session_name: value['assumeRoleSessionName'],
|
|
external_id: value['externalId'],
|
|
rotation_period: value['rotationPeriod'],
|
|
username: value['username'],
|
|
};
|
|
}
|