/** * 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 { PermissionsMetadataTypeInput } from '../models/PermissionsMetadataTypeInput'; import { PrincipalsInput } from '../models/PrincipalsInput'; import { HttpFile } from '../http/http'; export class FetchPermissionsOfPrincipalsRequest { /** * GUID or name of the user or group. */ 'principals': Array; /** * Metadata objects for which you want to fetch permission details. If not specified, the API returns permission details for all metadata objects that the specified users and groups can access. */ 'metadata'?: Array; /** * The starting record number from where the records should be included for each metadata type. */ 'record_offset'?: number; /** * The number of records that should be included for each metadata type. */ 'record_size'?: number; /** * When no metadata objects input is passed, metadata objects of this type are fetched. */ 'default_metadata_type'?: FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum; static readonly discriminator: string | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "principals", "baseName": "principals", "type": "Array", "format": "" }, { "name": "metadata", "baseName": "metadata", "type": "Array", "format": "" }, { "name": "record_offset", "baseName": "record_offset", "type": "number", "format": "int32" }, { "name": "record_size", "baseName": "record_size", "type": "number", "format": "int32" }, { "name": "default_metadata_type", "baseName": "default_metadata_type", "type": "FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum", "format": "" } ]; static getAttributeTypeMap() { return FetchPermissionsOfPrincipalsRequest.attributeTypeMap; } public constructor() { } } export type FetchPermissionsOfPrincipalsRequestDefaultMetadataTypeEnum = "ALL" | "LIVEBOARD" | "ANSWER" | "LOGICAL_TABLE" | "LOGICAL_COLUMN" | "CONNECTION" ;