Skip to content

Commit 4e0402e

Browse files
committed
refactor:docs/tests updates to align with sdk
1 parent cdf2ee8 commit 4e0402e

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Below is the list of application types in which a 2 part format is acceptable.
180180
The list can be generated (assuming the caller has the required permissions) on demand with the following command.
181181

182182
```sh
183-
pybritive api applications.catalog \
183+
pybritive api application_management.applications.catalog \
184184
--query '[*].{"application type": name,"2 part format allowed":requiresHierarchicalModel}' \
185185
--format table
186186
```
@@ -403,16 +403,16 @@ Usage examples of: (`pybritive api method --parameter1 value1 --parameter2 value
403403

404404
```sh
405405
# list all users in the britive tenant
406-
pybritive api users.list
406+
pybritive api identity_management.users.list
407407

408408
# create a tag
409-
pybritive api tags.create --name testtag --description "test tag"
409+
pybritive api identity_management.tags.create --name testtag --description "test tag"
410410

411411
# list all users and output just the email address of each user via jmespath query
412-
pybritive api users.list --query '[].email'
412+
pybritive api identity_management.users.list --query '[].email'
413413

414414
# create a profile
415-
pybritive api profiles.create --application-id <id> --name testprofile
415+
pybritive api application_management.profiles.create --application-id <id> --name testprofile
416416

417417
# create a secret
418418
pybritive api secrets_manager.secrets.create --name test --vault-id <id> --value '{"Note": {"secret1": "abc"}}'

src/pybritive/commands/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def api(ctx, query, output_format, tenant, token, silent, passphrase, federation
3333
3434
* generic: pybritive api method --parameter1 value1 --parameter2 value2 [--parameterX valueX]
3535
36-
* pybritive api users.list
36+
* pybritive api identity_management.users.list
3737
38-
* pybritive api tags.create --name testtag --description "test tag"
38+
* pybritive api identity_management.tags.create --name testtag --description "test tag"
3939
40-
* pybritive api users.list --query '[].email'
40+
* pybritive api identity_management.users.list --query '[].email'
4141
42-
* pybritive api profiles.create --application-id <id> --name testprofile
42+
* pybritive api application_management.profiles.create --application-id <id> --name testprofile
4343
4444
"""
4545
parameters = {ctx.args[i][2:]: ctx.args[i + 1] for i in range(0, len(ctx.args), 2)}

tests/test_0500_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ def common_asserts(result, substring=None, exit_code=0):
77

88

99
def test_api(runner, cli):
10-
result = runner.invoke(cli, 'api users.list'.split(' '))
10+
result = runner.invoke(cli, 'api identity_management.users.list'.split(' '))
1111
common_asserts(result, ['userId', 'status', 'email', 'identityProvider'])

0 commit comments

Comments
 (0)