This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
config_template.yaml
127 lines (105 loc) · 4.77 KB
/
config_template.yaml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
google_application_credentials: 'bcon_robot.json'
# Ignore any runtime errors when processing the invoices
# (Incorrect product, missing columns etc).
ignore_runtime_errors: True
log_dir: '/var/tmp/bcon'
# Select sharepoint or drive. The corresponding section below will need to be populated.
invoice_storage: 'drive'
bigquery:
# Replace <cloud project> below and make sure the dataset exists.
tables:
dash_ui: <cloud project>.bcon.dash_ui
dash_invoice_report: <cloud project>.bcon.dash_invoice_report
reports: <cloud project>.bcon.reports
invoices: <cloud project>.bcon.invoices
invoice_entries: <cloud project>.bcon.invoice_entries
admin_users: <cloud project>.bcon.admin_users
user_perms: <cloud project>.bcon.user_perms
# CM tables
cm_dash_ui: <cloud project>.bcon.cm_dash_ui
cm_dash_invoice_report: <cloud project>.bcon.cm_dash_invoice_report
cm_reports: <cloud project>.bcon.cm_reports
cm_user_perms: <cloud project>.bcon.cm_user_perms
cm_advertiser_accounts: <cloud project>.bcon.cm_advertiser_accounts
cm_user_perms_advertiser: <cloud project>.bcon.cm_user_perms_advertiser
sharepoint:
user: <sharepoint user id>
pass: <sharepoint password>
# The following columns are available in the spreadsheet below.
#
# Full URL with domain to the sharepoint site.
# Ex: 'https://abc.sharepoint.com/sites/mysite/Page'
#
# Relative URL of the site starting from '/sites'.
# Ex: '/sites/mysite/Page'.
#
# Root folder under the URL.
# Ex: 'invoice_folder'.
#
# Path to the folder inside the root folder where the invoices are stored.
# Ex: 'path/to/the/folder'.
#
# Path to the folder where the processed invoices are moved to.
# Ex: '/path/to/the/folder/completed'.
sheet_id: '1r71fFRflRobhhSUJsS-ojZ1jFdiYSAx2cS3mZJPdN5k'
range: 'Sharepoint!A:E'
# Where to store and process the downloaded invoices.
download_path: '/tmp/bcon/invoice_files'
extract_path: '/tmp/bcon/invoice_extract'
# Use for testing. Setting this to False will not delete the downloaded invoices.
# This allows to run the sharepoint loader as the files will persist locally.
delete_downloaded_files: True
# Use for testing. Setting this to False will not mark the sharepoint
# files as completed.
mark_sharepoint_files_completed: True
drive:
sheet_id: '1r71fFRflRobhhSUJsS-ojZ1jFdiYSAx2cS3mZJPdN5k'
range: 'Drive!A:E'
# Where to store and process the downloaded invoices.
download_path: '/tmp/bcon/invoice_files'
extract_path: '/tmp/bcon/invoice_extract'
# Use for testing. Setting this to False will not delete the downloaded invoices.
# This allows to run the sharepoint loader as the files will persist locally.
delete_downloaded_files: True
# Use for testing. Setting this to False will not mark the sharepoint
# files as completed.
mark_drive_files_completed: True
sheets:
-
# Google sheets id.
# Ex: '1uXYi_0ogCzZJGvGkO6ZEY6VcOO5eIL4CVWbyyYUTwXE'.
sheet_id: <sheet id>
# Range for the partners.
# Ex: 'Sheet1!A:A'.
partners_range: <range>
# Range for the admin users.
# Ex: 'Sheet2!A:A'.
admin_users_range: <range>
-
sheet_id: <sheet id>
partners_range: <range>
admin_users_range: <range>
dv360:
# If set to True, will try to use the current users credentials.
# If set to False, will try to use service account specified under
# google_application_credentials (see above).
#
# WARNING: Always set to False when deploying.
# Only reason to set this to True is for testing.
use_user_credentials: False
cm:
use_user_credentials: False
report_name: 'B-Con reconciliation report'