-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.ts
99 lines (94 loc) · 3.11 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/**
* Segment Public API
* The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
*
* The version of the OpenAPI document: 58.2.0
* Contact: friends@segment.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { ReverseEtlCronScheduleConfig } from './reverseEtlCronScheduleConfig';
import { ReverseEtlDbtCloudScheduleConfig } from './reverseEtlDbtCloudScheduleConfig';
import { ReverseEtlPeriodicScheduleConfig } from './reverseEtlPeriodicScheduleConfig';
import { ReverseEtlSpecificTimeScheduleConfig } from './reverseEtlSpecificTimeScheduleConfig';
/**
* Config contains interval duration in case of periodic or day and hours in case of specific_days. Empty if strategy is MANUAL.
*/
export class Config {
/**
* Duration is specified as a string, EG: 15m, 3h25m30s.
*/
'interval': string;
/**
* Days of the week.
*/
'days': Array<number>;
/**
* Hours of the day.
*/
'hours': Array<number>;
/**
* Timezone respected by the cron string. Format must be in IANA Timezone Identifier. Example: \'America/Los_Angeles\'.
*/
'timezone': string;
/**
* 5 field cron string expression. The cron expression must be larger than 15 minutes.
*/
'spec': string;
/**
* The dbt Cloud job used to trigger a sync for a Reverse ETL Connection.
*/
'jobId': string;
/**
* The dbt Cloud account where the job belongs to.
*/
'accountId': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}> = [
{
name: 'interval',
baseName: 'interval',
type: 'string',
},
{
name: 'days',
baseName: 'days',
type: 'Array<number>',
},
{
name: 'hours',
baseName: 'hours',
type: 'Array<number>',
},
{
name: 'timezone',
baseName: 'timezone',
type: 'string',
},
{
name: 'spec',
baseName: 'spec',
type: 'string',
},
{
name: 'jobId',
baseName: 'jobId',
type: 'string',
},
{
name: 'accountId',
baseName: 'accountId',
type: 'string',
},
];
static getAttributeTypeMap() {
return Config.attributeTypeMap;
}
}