/** * 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'; /** * A principal that has been granted access to a shared conversation. */ export class ConversationPrincipalInfo { /** * Unique identifier of the user or group. */ 'id': string; /** * Whether the principal is an individual user or a group. */ 'type': ConversationPrincipalInfoTypeEnum; /** * Display name of the principal as shown in the UI. */ 'display_name': string; /** * Internal name of the principal. */ 'name': string; /** * Access level granted to the principal. Always `READ_ONLY` for shared conversations. */ 'permission': ConversationPrincipalInfoPermissionEnum; 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": "id", "baseName": "id", "type": "string", "format": "" }, { "name": "type", "baseName": "type", "type": "ConversationPrincipalInfoTypeEnum", "format": "" }, { "name": "display_name", "baseName": "display_name", "type": "string", "format": "" }, { "name": "name", "baseName": "name", "type": "string", "format": "" }, { "name": "permission", "baseName": "permission", "type": "ConversationPrincipalInfoPermissionEnum", "format": "" } ]; static getAttributeTypeMap() { return ConversationPrincipalInfo.attributeTypeMap; } public constructor() { } } export type ConversationPrincipalInfoTypeEnum = "USER" | "USER_GROUP" ; export type ConversationPrincipalInfoPermissionEnum = "READ_ONLY" | "MODIFY" | "NO_ACCESS" ;