You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gooddata-pipelines/README.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# GoodData Pipelines
2
2
3
-
A highlevel library for automating the lifecycle of GoodData Cloud (GDC).
3
+
A high-level library for automating the lifecycle of GoodData Cloud (GDC).
4
4
5
-
You can use the package to manage following resoursec in GDC:
5
+
You can use the package to manage following resources in GDC:
6
6
7
7
1. Provisioning (create, update, delete)
8
8
- User profiles
@@ -14,7 +14,7 @@ You can use the package to manage following resoursec in GDC:
14
14
1._[PLANNED]:_ Custom fields management
15
15
- extend the Logical Data Model of a child workspace
16
16
17
-
In case you are not interested in incorporating a library in your own program, but would like to use a ready-made script, consider having a look at [GoodData Productivity Tools](https://github.com/gooddata/gooddata-productivity-tools).
17
+
In case you are not interested in incorporating a library in your own program but would like to use a ready-made script, consider having a look at [GoodData Productivity Tools](https://github.com/gooddata/gooddata-productivity-tools).
18
18
19
19
## Provisioning
20
20
@@ -31,23 +31,20 @@ import os
31
31
from csv import DictReader
32
32
from pathlib import Path
33
33
34
-
# Import the Entity Provisioner class and corresponing model from gooddata_pipelines library
34
+
# Import the Entity Provisioner class and corresponding model from gooddata_pipelines library
35
35
from gooddata_pipelines import UserFullLoad, UserProvisioner
36
+
from gooddata_pipelines.logger.logger import LogObserver
36
37
37
-
# Optional: you can set up logging and subscribe it to the Provisioner
38
-
from utils.logger import setup_logging
39
-
40
-
setup_logging()
38
+
# Optionally, subscribe a standard Python logger to the LogObserver
39
+
import logging
41
40
logger = logging.getLogger(__name__)
41
+
LogObserver().subscribe(logger)
42
42
43
43
# Create the Provisioner instance - you can also create the instance from a GDC yaml profile
Readymade scripts covering the basic use cases can be found here in the [GoodData Productivity Tools](https://github.com/gooddata/gooddata-productivity-tools) repository
60
+
Ready-made scripts covering the basic use cases can be found here in the [GoodData Productivity Tools](https://github.com/gooddata/gooddata-productivity-tools) repository
0 commit comments