/** * 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 { FeatureOrgInfo } from '../models/FeatureOrgInfo'; import { HttpFile } from '../http/http'; /** * Detail for a single feature. Fields are populated according to the scope of the search: cluster-admin (CLUSTER) responses populate assigned_orgs, is_org_aware, and (for non-org-aware features) feature_value; org-admin (ORG) responses populate element_type, element_config, and element_value. */ export class FeatureDetail { /** * Underlying unique feature ID. The dotted-path format (for example, `orion.embraceConfig.doIndexing`) is internal and subject to change without notice; use `feature_name` as the stable display identifier where possible. */ 'feature_id': string; /** * User-friendly feature name. Present when the feature declares one. */ 'feature_name'?: string | null; /** * Orgs currently assigned to this feature. Populated in the cluster-admin view. */ 'assigned_orgs'?: Array | null; /** * Whether the feature is Org-aware. Org-aware features are managed via per-Org assignment; non-org-aware features are cluster-level toggles. Populated in the cluster-admin view. */ 'is_org_aware'?: boolean | null; /** * Current cluster-level value of the feature. Populated in the cluster-admin view for non-org-aware features; null for Org-aware features. Values are always returned as strings; for boolean toggles this is `\"true\"` or `\"false\"`. */ 'feature_value'?: string | null; /** * UI element type hint for the feature. Populated in the org-admin view. */ 'element_type'?: string | null; /** * UI element configuration for the feature. Populated in the org-admin view. An opaque blob whose structure varies by `element_type`; a `label` string is the common envelope field. */ 'element_config'?: any | null; /** * Current value of the feature for the requested Org. Populated in the org-admin view. */ 'element_value'?: string | null; /** * Per-feature documentation URL, when available. */ 'docs_url'?: string | null; 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": "feature_id", "baseName": "feature_id", "type": "string", "format": "" }, { "name": "feature_name", "baseName": "feature_name", "type": "string", "format": "" }, { "name": "assigned_orgs", "baseName": "assigned_orgs", "type": "Array", "format": "" }, { "name": "is_org_aware", "baseName": "is_org_aware", "type": "boolean", "format": "" }, { "name": "feature_value", "baseName": "feature_value", "type": "string", "format": "" }, { "name": "element_type", "baseName": "element_type", "type": "string", "format": "" }, { "name": "element_config", "baseName": "element_config", "type": "any", "format": "" }, { "name": "element_value", "baseName": "element_value", "type": "string", "format": "" }, { "name": "docs_url", "baseName": "docs_url", "type": "string", "format": "" } ]; static getAttributeTypeMap() { return FeatureDetail.attributeTypeMap; } public constructor() { } }