@@ -34,25 +34,25 @@ var summary string
3434
3535// Config holds the set of configuration for the bigquery extractor
3636type Config struct {
37- ProjectID string `mapstructure:"project_id" validate:"required"`
37+ ProjectID string `json:"project_id" yaml:"project_id" mapstructure:"project_id" validate:"required"`
3838 // ServiceAccountBase64 takes precedence over ServiceAccountJSON field
39- ServiceAccountBase64 string `mapstructure:"service_account_base64"`
40- ServiceAccountJSON string `mapstructure:"service_account_json"`
41- MaxPageSize int `mapstructure:"max_page_size"`
42- TablePattern string `mapstructure:"table_pattern"`
43- Exclude Exclude `mapstructure:"exclude"`
44- IncludeColumnProfile bool `mapstructure:"include_column_profile"`
45- MaxPreviewRows int `mapstructure:"max_preview_rows" default:"30"`
46- IsCollectTableUsage bool `mapstructure:"collect_table_usage" default:"false"`
47- UsagePeriodInDay int64 `mapstructure:"usage_period_in_day" default:"7"`
48- UsageProjectIDs []string `mapstructure:"usage_project_ids"`
39+ ServiceAccountBase64 string `json:"service_account_base64" yaml:"service_account_base64" mapstructure:"service_account_base64"`
40+ ServiceAccountJSON string `json:"service_account_json" yaml:"service_account_json" mapstructure:"service_account_json"`
41+ MaxPageSize int `json:"max_page_size" yaml:"max_page_size" mapstructure:"max_page_size"`
42+ TablePattern string `json:"table_pattern" yaml:"table_pattern" mapstructure:"table_pattern"`
43+ Exclude Exclude `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
44+ IncludeColumnProfile bool `json:"include_column_profile" yaml:"include_column_profile" mapstructure:"include_column_profile"`
45+ MaxPreviewRows int `json:"max_preview_rows" yaml:"max_preview_rows" mapstructure:"max_preview_rows" default:"30"`
46+ IsCollectTableUsage bool `json:"collect_table_usage" yaml:"collect_table_usage" mapstructure:"collect_table_usage" default:"false"`
47+ UsagePeriodInDay int64 `json:"usage_period_in_day" yaml:"usage_period_in_day" mapstructure:"usage_period_in_day" default:"7"`
48+ UsageProjectIDs []string `json:"usage_project_ids" yaml:"usage_project_ids" mapstructure:"usage_project_ids"`
4949}
5050
5151type Exclude struct {
5252 // list of datasetIDs
53- Datasets []string `mapstructure:"datasets"`
53+ Datasets []string `json:"datasets" yaml:"datasets" mapstructure:"datasets"`
5454 // list of tableNames in format - datasetID.tableID
55- Tables []string `mapstructure:"tables"`
55+ Tables []string `json:"tables" yaml:"tables" mapstructure:"tables"`
5656}
5757
5858const (
0 commit comments