/** * ThoughtSpot Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HttpFile } from '../http/http'; /** * Input reference to a principal (user or group) used when granting or revoking access to a shared resource. */ export class PrincipalRefInput { /** * Unique identifier of the user or group. */ 'principal_identifier': string; /** * Whether the principal is an individual user or a group. */ 'principal_type': PrincipalRefInputPrincipalTypeEnum; static readonly discriminator: string | undefined = undefined; static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "principal_identifier", "baseName": "principal_identifier", "type": "string", "format": "" }, { "name": "principal_type", "baseName": "principal_type", "type": "PrincipalRefInputPrincipalTypeEnum", "format": "" } ]; static getAttributeTypeMap() { return PrincipalRefInput.attributeTypeMap; } public constructor() { } } export type PrincipalRefInputPrincipalTypeEnum = "USER" | "USER_GROUP" ;