/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { PlatformApiKeyModeEnum } from './PlatformApiKeyModeEnum'; /** * Serializer for PlatformApiKey's */ export type PlatformApiKey = { /** * Username that created token */ readonly username: string; /** * Name of the token. Used by the user to identify the token. */ name: string; readonly key: string; /** * The platform key */ platform_key?: string; /** * When token expires */ readonly expires: string; /** * Optional duration until key expires. Format: [DD] [HH:[MM:]]ss[.uuuuuu] */ expires_in?: string | null; /** * When token was created */ readonly created: string; /** * How permissions resolve: 'owner' (default) uses the owner's RBAC permissions; 'token_policies' uses the policies/groups this token is associated with * * * `owner` - Owner permissions * * `token_policies` - Token policies */ mode?: PlatformApiKeyModeEnum; /** * RbacPolicy IDs to associate with this token (mode=token_policies) */ policies_to_add?: Array; /** * RbacPolicy IDs to disassociate from this token (mode=token_policies) */ policies_to_remove?: Array; /** * RbacGroup IDs to associate with this token (mode=token_policies) */ groups_to_add?: Array; /** * RbacGroup IDs to disassociate from this token (mode=token_policies) */ groups_to_remove?: Array; };