mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 06:37:02 +02:00
80 lines
3.9 KiB
JavaScript
80 lines
3.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 AzureWriteAuthRoleRequest interface.
|
|
*/
|
|
export function instanceOfAzureWriteAuthRoleRequest(value) {
|
|
return true;
|
|
}
|
|
export function AzureWriteAuthRoleRequestFromJSON(json) {
|
|
return AzureWriteAuthRoleRequestFromJSONTyped(json, false);
|
|
}
|
|
export function AzureWriteAuthRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'boundGroupIds': json['bound_group_ids'] == null ? undefined : json['bound_group_ids'],
|
|
'boundLocations': json['bound_locations'] == null ? undefined : json['bound_locations'],
|
|
'boundResourceGroups': json['bound_resource_groups'] == null ? undefined : json['bound_resource_groups'],
|
|
'boundScaleSets': json['bound_scale_sets'] == null ? undefined : json['bound_scale_sets'],
|
|
'boundServicePrincipalIds': json['bound_service_principal_ids'] == null ? undefined : json['bound_service_principal_ids'],
|
|
'boundSubscriptionIds': json['bound_subscription_ids'] == null ? undefined : json['bound_subscription_ids'],
|
|
'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'],
|
|
};
|
|
}
|
|
export function AzureWriteAuthRoleRequestToJSON(json) {
|
|
return AzureWriteAuthRoleRequestToJSONTyped(json, false);
|
|
}
|
|
export function AzureWriteAuthRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'bound_group_ids': value['boundGroupIds'],
|
|
'bound_locations': value['boundLocations'],
|
|
'bound_resource_groups': value['boundResourceGroups'],
|
|
'bound_scale_sets': value['boundScaleSets'],
|
|
'bound_service_principal_ids': value['boundServicePrincipalIds'],
|
|
'bound_subscription_ids': value['boundSubscriptionIds'],
|
|
'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'],
|
|
};
|
|
}
|