cognite-toolkit 0.7.12__py3-none-any.whl → 0.7.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cognite_toolkit/_cdf_tk/commands/auth.py +19 -2
- cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml +1 -1
- cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml +1 -1
- cognite_toolkit/_resources/cdf.toml +1 -1
- cognite_toolkit/_version.py +1 -1
- {cognite_toolkit-0.7.12.dist-info → cognite_toolkit-0.7.13.dist-info}/METADATA +1 -1
- {cognite_toolkit-0.7.12.dist-info → cognite_toolkit-0.7.13.dist-info}/RECORD +10 -10
- {cognite_toolkit-0.7.12.dist-info → cognite_toolkit-0.7.13.dist-info}/WHEEL +0 -0
- {cognite_toolkit-0.7.12.dist-info → cognite_toolkit-0.7.13.dist-info}/entry_points.txt +0 -0
- {cognite_toolkit-0.7.12.dist-info → cognite_toolkit-0.7.13.dist-info}/licenses/LICENSE +0 -0
|
@@ -26,6 +26,7 @@ import questionary
|
|
|
26
26
|
from cognite.client.data_classes.capabilities import (
|
|
27
27
|
AssetsAcl,
|
|
28
28
|
Capability,
|
|
29
|
+
ExtractionConfigsAcl,
|
|
29
30
|
FunctionsAcl,
|
|
30
31
|
GroupsAcl,
|
|
31
32
|
ProjectsAcl,
|
|
@@ -46,6 +47,7 @@ from cognite_toolkit._cdf_tk.constants import (
|
|
|
46
47
|
TOOLKIT_DEMO_GROUP_NAME,
|
|
47
48
|
TOOLKIT_SERVICE_PRINCIPAL_GROUP_NAME,
|
|
48
49
|
)
|
|
50
|
+
from cognite_toolkit._cdf_tk.cruds import ExtractionPipelineConfigCRUD
|
|
49
51
|
from cognite_toolkit._cdf_tk.exceptions import (
|
|
50
52
|
AuthenticationError,
|
|
51
53
|
AuthorizationError,
|
|
@@ -434,8 +436,23 @@ class AuthCommand(ToolkitCommand):
|
|
|
434
436
|
crud = crud_cls.create_loader(client)
|
|
435
437
|
if crud.prerequisite_warning() is not None:
|
|
436
438
|
continue
|
|
437
|
-
|
|
438
|
-
|
|
439
|
+
if isinstance(crud, ExtractionPipelineConfigCRUD):
|
|
440
|
+
# The Extraction Pipeline Config CRUD requires special handling.
|
|
441
|
+
# The .get_required_capability is used in the DeployCommand as well. Since, there is no way to no
|
|
442
|
+
# the extraction pipeline ID or dataSetId from an ExtractionPipelineConfigWrite object, we do not
|
|
443
|
+
# check those there. If we returned the full capability, it would always have to be all scoped.
|
|
444
|
+
# That is too restrictive in the deploy command, so we return an empty list, essentially not checking
|
|
445
|
+
# anything there. Here, we want to add the all scoped capability, so that the Toolkit group gets the
|
|
446
|
+
# correct capability.
|
|
447
|
+
capabilities: list[Capability] = [
|
|
448
|
+
ExtractionConfigsAcl(
|
|
449
|
+
[ExtractionConfigsAcl.Action.Read, ExtractionConfigsAcl.Action.Write],
|
|
450
|
+
ExtractionConfigsAcl.Scope.All(),
|
|
451
|
+
)
|
|
452
|
+
]
|
|
453
|
+
else:
|
|
454
|
+
capability = crud_cls.get_required_capability(None, read_only=False)
|
|
455
|
+
capabilities = capability if isinstance(capability, list) else [capability]
|
|
439
456
|
for cap in capabilities:
|
|
440
457
|
if project_type == "DATA_MODELING_ONLY" and isinstance(cap, AssetsAcl | RelationshipsAcl):
|
|
441
458
|
continue
|
cognite_toolkit/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.7.
|
|
1
|
+
__version__ = "0.7.13"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognite_toolkit
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.13
|
|
4
4
|
Summary: Official Cognite Data Fusion tool for project templates and configuration deployment
|
|
5
5
|
Project-URL: Homepage, https://docs.cognite.com/cdf/deploy/cdf_toolkit/
|
|
6
6
|
Project-URL: Changelog, https://github.com/cognitedata/toolkit/releases
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
cognite_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
cognite_toolkit/_cdf.py,sha256=YoiPOMgf1Mufy7wNYWWSF3bNBTGqKr26Ey5kj38fCXU,6008
|
|
3
|
-
cognite_toolkit/_version.py,sha256=
|
|
3
|
+
cognite_toolkit/_version.py,sha256=Fe-AlRRBmJTrW5h9qmKZwxlbQxCFmsF1IZ1f-Wcdq64,23
|
|
4
4
|
cognite_toolkit/_cdf_tk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
cognite_toolkit/_cdf_tk/cdf_toml.py,sha256=VSWV9h44HusWIaKpWgjrOMrc3hDoPTTXBXlp6-NOrIM,9079
|
|
6
6
|
cognite_toolkit/_cdf_tk/constants.py,sha256=TplKm2J9pGRHq7nAnLI0caTMHetS04OIz3hfq-jvGzo,7236
|
|
@@ -114,7 +114,7 @@ cognite_toolkit/_cdf_tk/commands/_upload.py,sha256=jFt4NG2zEcUu8WUCgRQEoYDIs5C70
|
|
|
114
114
|
cognite_toolkit/_cdf_tk/commands/_utils.py,sha256=UxMJW5QYKts4om5n6x2Tq2ihvfO9gWjhQKeqZNFTlKg,402
|
|
115
115
|
cognite_toolkit/_cdf_tk/commands/_virtual_env.py,sha256=GFAid4hplixmj9_HkcXqU5yCLj-fTXm4cloGD6U2swY,2180
|
|
116
116
|
cognite_toolkit/_cdf_tk/commands/about.py,sha256=pEXNdCeJYONOalH8x-7QRsKLgj-9gdIqN16pPxA3bhg,9395
|
|
117
|
-
cognite_toolkit/_cdf_tk/commands/auth.py,sha256=
|
|
117
|
+
cognite_toolkit/_cdf_tk/commands/auth.py,sha256=TX_8YuVCjMVIQjEdfBE66bSDrojJhCnxf_jcT3-9wM8,32550
|
|
118
118
|
cognite_toolkit/_cdf_tk/commands/build_cmd.py,sha256=6m-lK0vccje1gaQ_fd68UvA4CbhuBszDapnHwu4VU_U,30897
|
|
119
119
|
cognite_toolkit/_cdf_tk/commands/clean.py,sha256=JNPIjNSiOJaP-cUhFzT8H3s30luA9lI39yH18QxHaYM,16603
|
|
120
120
|
cognite_toolkit/_cdf_tk/commands/collect.py,sha256=zBMKhhvjOpuASMnwP0eeHRI02tANcvFEZgv0CQO1ECc,627
|
|
@@ -303,13 +303,13 @@ cognite_toolkit/_repo_files/.gitignore,sha256=ip9kf9tcC5OguF4YF4JFEApnKYw0nG0vPi
|
|
|
303
303
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
|
|
304
304
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=brULcs8joAeBC_w_aoWjDDUHs3JheLMIR9ajPUK96nc,693
|
|
305
305
|
cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=OBFDhFWK1mlT4Dc6mDUE2Es834l8sAlYG50-5RxRtHk,723
|
|
306
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=
|
|
307
|
-
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=
|
|
308
|
-
cognite_toolkit/_resources/cdf.toml,sha256
|
|
306
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=oy7jCmKfX07v-uif4AfeJ9Xct6_6WUfKuQiv7QEUh7Q,667
|
|
307
|
+
cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=HWFe0EhESAuTGZ-dJUcufHPyL7iO2WIm45574MAny8M,2430
|
|
308
|
+
cognite_toolkit/_resources/cdf.toml,sha256=-3NgSkbtxigp-meTTWZnpYJeYqE6B8pce3H1pMw6oUA,475
|
|
309
309
|
cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
|
|
310
310
|
cognite_toolkit/demo/_base.py,sha256=6xKBUQpXZXGQ3fJ5f7nj7oT0s2n7OTAGIa17ZlKHZ5U,8052
|
|
311
|
-
cognite_toolkit-0.7.
|
|
312
|
-
cognite_toolkit-0.7.
|
|
313
|
-
cognite_toolkit-0.7.
|
|
314
|
-
cognite_toolkit-0.7.
|
|
315
|
-
cognite_toolkit-0.7.
|
|
311
|
+
cognite_toolkit-0.7.13.dist-info/METADATA,sha256=7zXrYmZNZ5RIDiCYqKEwZIscVF151ZrnjDg_1EojJs0,4501
|
|
312
|
+
cognite_toolkit-0.7.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
313
|
+
cognite_toolkit-0.7.13.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
|
|
314
|
+
cognite_toolkit-0.7.13.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
|
|
315
|
+
cognite_toolkit-0.7.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|