prelude-cli-beta 1412__py3-none-any.whl → 1413__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.
Potentially problematic release.
This version of prelude-cli-beta might be problematic. Click here for more details.
- prelude_cli_beta/views/scm.py +13 -1
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/METADATA +2 -2
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/RECORD +7 -7
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/WHEEL +0 -0
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/entry_points.txt +0 -0
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/licenses/LICENSE +0 -0
- {prelude_cli_beta-1412.dist-info → prelude_cli_beta-1413.dist-info}/top_level.txt +0 -0
prelude_cli_beta/views/scm.py
CHANGED
|
@@ -10,6 +10,7 @@ from prelude_sdk_beta.models.codes import (
|
|
|
10
10
|
Control,
|
|
11
11
|
ControlCategory,
|
|
12
12
|
PartnerEvents,
|
|
13
|
+
PolicyType,
|
|
13
14
|
RunCode,
|
|
14
15
|
SCMCategory,
|
|
15
16
|
)
|
|
@@ -121,6 +122,16 @@ def evaluation_summary(
|
|
|
121
122
|
)
|
|
122
123
|
@click.option("--instance_id", required=True, help="instance ID of the partner")
|
|
123
124
|
@click.option("--odata_filter", help="OData filter string", default=None)
|
|
125
|
+
@click.option(
|
|
126
|
+
"-p",
|
|
127
|
+
"--policy_type",
|
|
128
|
+
help="Policy types to filter by",
|
|
129
|
+
multiple=True,
|
|
130
|
+
default=[],
|
|
131
|
+
type=click.Choice(
|
|
132
|
+
[p.name for p in PolicyType if p != PolicyType.INVALID], case_sensitive=False
|
|
133
|
+
),
|
|
134
|
+
)
|
|
124
135
|
@click.option(
|
|
125
136
|
"-q",
|
|
126
137
|
"--techniques",
|
|
@@ -130,13 +141,14 @@ def evaluation_summary(
|
|
|
130
141
|
)
|
|
131
142
|
@click.pass_obj
|
|
132
143
|
@pretty_print
|
|
133
|
-
def evaluation(controller, partner, instance_id, odata_filter, techniques):
|
|
144
|
+
def evaluation(controller, partner, instance_id, odata_filter, policy_type, techniques):
|
|
134
145
|
"""Get policy evaluation for given partner"""
|
|
135
146
|
with Spinner(description="Getting policy evaluation"):
|
|
136
147
|
return controller.evaluation(
|
|
137
148
|
partner=Control[partner],
|
|
138
149
|
instance_id=instance_id,
|
|
139
150
|
filter=odata_filter,
|
|
151
|
+
policy_types=",".join(policy_type),
|
|
140
152
|
techniques=techniques,
|
|
141
153
|
)
|
|
142
154
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prelude-cli-beta
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1413
|
|
4
4
|
Summary: For interacting with the Prelude SDK
|
|
5
5
|
Home-page: https://github.com/preludeorg
|
|
6
6
|
Author: Prelude Research
|
|
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: prelude-sdk-beta==
|
|
14
|
+
Requires-Dist: prelude-sdk-beta==1413
|
|
15
15
|
Requires-Dist: click>8
|
|
16
16
|
Requires-Dist: rich
|
|
17
17
|
Requires-Dist: python-dateutil
|
|
@@ -10,11 +10,11 @@ prelude_cli_beta/views/generate.py,sha256=zkdzBaBO7K5tXarnKfzZjo9-WaG5i80y1ZbQk0
|
|
|
10
10
|
prelude_cli_beta/views/iam.py,sha256=J8y6kJGbQkEexcia69q6vLJ3aEhLyUFteCylTptBHBQ,10013
|
|
11
11
|
prelude_cli_beta/views/jobs.py,sha256=2FeiJxHrw4zfgtUJq_bEoG84i_9TqZ5w6CulA80WoNA,1455
|
|
12
12
|
prelude_cli_beta/views/partner.py,sha256=16zXcX5ZhiNZqKSXG9ePPGB9K3A-OgrVIdJGDJhB6f0,6379
|
|
13
|
-
prelude_cli_beta/views/scm.py,sha256=
|
|
13
|
+
prelude_cli_beta/views/scm.py,sha256=cHEGpLGpHvs3KGgHawqdTELCYTD3-E_mznRKwLjjj8c,21931
|
|
14
14
|
prelude_cli_beta/views/shared.py,sha256=ZKvY8N1Vi6RtEbJli5PDzJ9R6L_bX2F27n1tm6Knvgs,1101
|
|
15
|
-
prelude_cli_beta-
|
|
16
|
-
prelude_cli_beta-
|
|
17
|
-
prelude_cli_beta-
|
|
18
|
-
prelude_cli_beta-
|
|
19
|
-
prelude_cli_beta-
|
|
20
|
-
prelude_cli_beta-
|
|
15
|
+
prelude_cli_beta-1413.dist-info/licenses/LICENSE,sha256=ttdT5omfN6LNmtQoIjUhkkFhz6i44SDMRNwKrbfyTf8,1069
|
|
16
|
+
prelude_cli_beta-1413.dist-info/METADATA,sha256=of-jV_DMikKFhF_BbQkqitU2C31Sl99YhbVQL0p8QjA,993
|
|
17
|
+
prelude_cli_beta-1413.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
prelude_cli_beta-1413.dist-info/entry_points.txt,sha256=WowrC6fz2D6S8S-5OY0g-bxUGGSZZ_Z6KzSXXd34pC4,88
|
|
19
|
+
prelude_cli_beta-1413.dist-info/top_level.txt,sha256=j50aCGsQamLMiQh9PcolDBCAeUJzi9y08e0i9Gqshkk,17
|
|
20
|
+
prelude_cli_beta-1413.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|