mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
52 lines
1.9 KiB
JavaScript
52 lines
1.9 KiB
JavaScript
/* 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.21.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/**
|
|
* Check if a given object implements the AwsReadStaticRolesNameResponse interface.
|
|
*/
|
|
export function instanceOfAwsReadStaticRolesNameResponse(value) {
|
|
return true;
|
|
}
|
|
export function AwsReadStaticRolesNameResponseFromJSON(json) {
|
|
return AwsReadStaticRolesNameResponseFromJSONTyped(json, false);
|
|
}
|
|
export function AwsReadStaticRolesNameResponseFromJSONTyped(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'],
|
|
'name': json['name'] == null ? undefined : json['name'],
|
|
'rotationPeriod': json['rotation_period'] == null ? undefined : json['rotation_period'],
|
|
'username': json['username'] == null ? undefined : json['username'],
|
|
};
|
|
}
|
|
export function AwsReadStaticRolesNameResponseToJSON(json) {
|
|
return AwsReadStaticRolesNameResponseToJSONTyped(json, false);
|
|
}
|
|
export function AwsReadStaticRolesNameResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'assume_role_arn': value['assumeRoleArn'],
|
|
'assume_role_session_name': value['assumeRoleSessionName'],
|
|
'external_id': value['externalId'],
|
|
'name': value['name'],
|
|
'rotation_period': value['rotationPeriod'],
|
|
'username': value['username'],
|
|
};
|
|
}
|