/** * 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 { UpdateCalendarRequestTableReference } from '../models/UpdateCalendarRequestTableReference'; import { HttpFile } from '../http/http'; export class UpdateCalendarRequest { /** * Type of update operation. */ 'update_method'?: UpdateCalendarRequestUpdateMethodEnum; 'table_reference': UpdateCalendarRequestTableReference; /** * Start date for the calendar in `MM/dd/yyyy` format. This parameter is mandatory if `update_method` is set as `FROM_INPUT_PARAMS`. */ 'start_date'?: string; /** * End date for the calendar in `MM/dd/yyyy` format. This parameter is mandatory if `update_method` is set as `FROM_INPUT_PARAMS`. */ 'end_date'?: string; /** * Type of the calendar. */ 'calendar_type'?: UpdateCalendarRequestCalendarTypeEnum; /** * Specify the month in which the fiscal or custom calendar year should start. For example, if you set `month_offset` to \"April\", the custom calendar will treat \"April\" as the first month of the year, and the related attributes such as quarters and start date will be based on this offset. The default value is `January`, which represents the standard calendar year (January to December). */ 'month_offset'?: UpdateCalendarRequestMonthOffsetEnum; /** * Specify the starting day of the week */ 'start_day_of_week'?: UpdateCalendarRequestStartDayOfWeekEnum; /** * Prefix to add before the quarter. */ 'quarter_name_prefix'?: string; /** * Prefix to add before the year. */ 'year_name_prefix'?: string; static readonly discriminator: string | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "update_method", "baseName": "update_method", "type": "UpdateCalendarRequestUpdateMethodEnum", "format": "" }, { "name": "table_reference", "baseName": "table_reference", "type": "UpdateCalendarRequestTableReference", "format": "" }, { "name": "start_date", "baseName": "start_date", "type": "string", "format": "" }, { "name": "end_date", "baseName": "end_date", "type": "string", "format": "" }, { "name": "calendar_type", "baseName": "calendar_type", "type": "UpdateCalendarRequestCalendarTypeEnum", "format": "" }, { "name": "month_offset", "baseName": "month_offset", "type": "UpdateCalendarRequestMonthOffsetEnum", "format": "" }, { "name": "start_day_of_week", "baseName": "start_day_of_week", "type": "UpdateCalendarRequestStartDayOfWeekEnum", "format": "" }, { "name": "quarter_name_prefix", "baseName": "quarter_name_prefix", "type": "string", "format": "" }, { "name": "year_name_prefix", "baseName": "year_name_prefix", "type": "string", "format": "" } ]; static getAttributeTypeMap() { return UpdateCalendarRequest.attributeTypeMap; } public constructor() { } } export type UpdateCalendarRequestUpdateMethodEnum = "FROM_INPUT_PARAMS" | "FROM_EXISTING_TABLE" ; export type UpdateCalendarRequestCalendarTypeEnum = "MONTH_OFFSET" | "FOUR_FOUR_FIVE" | "FOUR_FIVE_FOUR" | "FIVE_FOUR_FOUR" ; export type UpdateCalendarRequestMonthOffsetEnum = "January" | "February" | "March" | "April" | "May" | "June" | "July" | "August" | "September" | "October" | "November" | "December" ; export type UpdateCalendarRequestStartDayOfWeekEnum = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" ;