/* 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. */ /** * @export * @enum {string} */ export var SamlWriteRoleNameRequestBoundAttributesTypeEnum; (function (SamlWriteRoleNameRequestBoundAttributesTypeEnum) { SamlWriteRoleNameRequestBoundAttributesTypeEnum["STRING"] = "string"; SamlWriteRoleNameRequestBoundAttributesTypeEnum["GLOB"] = "glob"; })(SamlWriteRoleNameRequestBoundAttributesTypeEnum || (SamlWriteRoleNameRequestBoundAttributesTypeEnum = {})); /** * @export * @enum {string} */ export var SamlWriteRoleNameRequestBoundSubjectsTypeEnum; (function (SamlWriteRoleNameRequestBoundSubjectsTypeEnum) { SamlWriteRoleNameRequestBoundSubjectsTypeEnum["STRING"] = "string"; SamlWriteRoleNameRequestBoundSubjectsTypeEnum["GLOB"] = "glob"; })(SamlWriteRoleNameRequestBoundSubjectsTypeEnum || (SamlWriteRoleNameRequestBoundSubjectsTypeEnum = {})); /** * Check if a given object implements the SamlWriteRoleNameRequest interface. */ export function instanceOfSamlWriteRoleNameRequest(value) { return true; } export function SamlWriteRoleNameRequestFromJSON(json) { return SamlWriteRoleNameRequestFromJSONTyped(json, false); } export function SamlWriteRoleNameRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'boundAttributes': json['bound_attributes'] == null ? undefined : json['bound_attributes'], 'boundAttributesType': json['bound_attributes_type'] == null ? undefined : json['bound_attributes_type'], 'boundSubjects': json['bound_subjects'] == null ? undefined : json['bound_subjects'], 'boundSubjectsType': json['bound_subjects_type'] == null ? undefined : json['bound_subjects_type'], 'groupsAttribute': json['groups_attribute'] == null ? undefined : json['groups_attribute'], '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'], }; } export function SamlWriteRoleNameRequestToJSON(json) { return SamlWriteRoleNameRequestToJSONTyped(json, false); } export function SamlWriteRoleNameRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'bound_attributes': value['boundAttributes'], 'bound_attributes_type': value['boundAttributesType'], 'bound_subjects': value['boundSubjects'], 'bound_subjects_type': value['boundSubjectsType'], 'groups_attribute': value['groupsAttribute'], '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'], }; }