mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-06 14:47:01 +02:00
60 lines
2.4 KiB
JavaScript
60 lines
2.4 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 AzureWriteRoleRequest interface.
|
|
*/
|
|
export function instanceOfAzureWriteRoleRequest(value) {
|
|
return true;
|
|
}
|
|
export function AzureWriteRoleRequestFromJSON(json) {
|
|
return AzureWriteRoleRequestFromJSONTyped(json, false);
|
|
}
|
|
export function AzureWriteRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
'applicationObjectId': json['application_object_id'] == null ? undefined : json['application_object_id'],
|
|
'azureGroups': json['azure_groups'] == null ? undefined : json['azure_groups'],
|
|
'azureRoles': json['azure_roles'] == null ? undefined : json['azure_roles'],
|
|
'explicitMaxTtl': json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'],
|
|
'maxTtl': json['max_ttl'] == null ? undefined : json['max_ttl'],
|
|
'permanentlyDelete': json['permanently_delete'] == null ? undefined : json['permanently_delete'],
|
|
'persistApp': json['persist_app'] == null ? undefined : json['persist_app'],
|
|
'signInAudience': json['sign_in_audience'] == null ? undefined : json['sign_in_audience'],
|
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
};
|
|
}
|
|
export function AzureWriteRoleRequestToJSON(json) {
|
|
return AzureWriteRoleRequestToJSONTyped(json, false);
|
|
}
|
|
export function AzureWriteRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
'application_object_id': value['applicationObjectId'],
|
|
'azure_groups': value['azureGroups'],
|
|
'azure_roles': value['azureRoles'],
|
|
'explicit_max_ttl': value['explicitMaxTtl'],
|
|
'max_ttl': value['maxTtl'],
|
|
'permanently_delete': value['permanentlyDelete'],
|
|
'persist_app': value['persistApp'],
|
|
'sign_in_audience': value['signInAudience'],
|
|
'tags': value['tags'],
|
|
'ttl': value['ttl'],
|
|
};
|
|
}
|