We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34519e4 commit 131bd4eCopy full SHA for 131bd4e
scim2_cli/query.py
@@ -3,7 +3,10 @@
3
import click
4
from click import ClickException
5
from scim2_client import SCIMClientError
6
+from scim2_models import ResourceType
7
+from scim2_models import Schema
8
from scim2_models import SearchRequest
9
+from scim2_models import ServiceProviderConfig
10
from sphinx_click.rst_to_ansi_formatter import make_rst_to_ansi_formatter
11
12
from .utils import DOC_URL
@@ -77,6 +80,9 @@ def query_cli(
77
80
echo '{"startIndex": 50, "count": 10}' | query user
78
81
79
82
"""
83
+ for model in (Schema, ResourceType, ServiceProviderConfig):
84
+ ctx.obj["resource_models"][model.__name__.lower()] = model
85
+
86
if resource_type:
87
try:
88
resource_type = ctx.obj["resource_models"][resource_type]
0 commit comments