mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
70 lines
3.2 KiB
JavaScript
70 lines
3.2 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 AzureConfigureAuthRequest interface.
|
|
*/
|
|
export function instanceOfAzureConfigureAuthRequest(value) {
|
|
return true;
|
|
}
|
|
export function AzureConfigureAuthRequestFromJSON(json) {
|
|
return AzureConfigureAuthRequestFromJSONTyped(json, false);
|
|
}
|
|
export function AzureConfigureAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'clientId': json['client_id'] == null ? undefined : json['client_id'],
|
|
'clientSecret': json['client_secret'] == null ? undefined : json['client_secret'],
|
|
'disableAutomatedRotation': json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'],
|
|
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
'identityTokenAudience': json['identity_token_audience'] == null ? undefined : json['identity_token_audience'],
|
|
'identityTokenTtl': json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'],
|
|
'maxRetries': json['max_retries'] == null ? undefined : json['max_retries'],
|
|
'maxRetryDelay': json['max_retry_delay'] == null ? undefined : json['max_retry_delay'],
|
|
'resource': json['resource'] == null ? undefined : json['resource'],
|
|
'retryDelay': json['retry_delay'] == null ? undefined : json['retry_delay'],
|
|
'rootPasswordTtl': json['root_password_ttl'] == null ? undefined : json['root_password_ttl'],
|
|
'rotationPeriod': json['rotation_period'] == null ? undefined : json['rotation_period'],
|
|
'rotationSchedule': json['rotation_schedule'] == null ? undefined : json['rotation_schedule'],
|
|
'rotationWindow': json['rotation_window'] == null ? undefined : json['rotation_window'],
|
|
'tenantId': json['tenant_id'] == null ? undefined : json['tenant_id'],
|
|
};
|
|
}
|
|
export function AzureConfigureAuthRequestToJSON(json) {
|
|
return AzureConfigureAuthRequestToJSONTyped(json, false);
|
|
}
|
|
export function AzureConfigureAuthRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'client_id': value['clientId'],
|
|
'client_secret': value['clientSecret'],
|
|
'disable_automated_rotation': value['disableAutomatedRotation'],
|
|
'environment': value['environment'],
|
|
'identity_token_audience': value['identityTokenAudience'],
|
|
'identity_token_ttl': value['identityTokenTtl'],
|
|
'max_retries': value['maxRetries'],
|
|
'max_retry_delay': value['maxRetryDelay'],
|
|
'resource': value['resource'],
|
|
'retry_delay': value['retryDelay'],
|
|
'root_password_ttl': value['rootPasswordTtl'],
|
|
'rotation_period': value['rotationPeriod'],
|
|
'rotation_schedule': value['rotationSchedule'],
|
|
'rotation_window': value['rotationWindow'],
|
|
'tenant_id': value['tenantId'],
|
|
};
|
|
}
|