Skip to content

Commit fb01ca9

Browse files
authored
Merge pull request #11233 from harness/get_key_count()-update
Update python-admin-api.md
2 parents 37ecd71 + a25b6ae commit fb01ca9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/feature-management-experimentation/api/wrappers/python-admin-api.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,20 @@ segDef = client.segment_definitions.find("employees", env.id, ws.id)
985985
print (segDef.name)
986986
```
987987

988+
`int get_key_count()`
989+
990+
Fetches key count of current segment definition object.
991+
992+
* Parameters: None
993+
* Return: integer
994+
995+
```python
996+
ws = client.workspaces.find("Defaults")
997+
env = client.environments.find("Production", ws.id)
998+
segDef = client.segment_definitions.find("employees", env.id, ws.id)
999+
print(str(segDef.get_key_count()))
1000+
```
1001+
9881002
`Array(string) get_keys()`
9891003

9901004
Fetches all keys of current segment definition object.
@@ -2524,4 +2538,4 @@ for cr in client.change_requests.list():
25242538
cr.update_status("APPROVED", "done")
25252539
```
25262540
2527-
For more information about rule-based segments, see the [README](https://github.com/splitio/python-api?tab=readme-ov-file#rule-based-segments).
2541+
For more information about rule-based segments, see the [README](https://github.com/splitio/python-api?tab=readme-ov-file#rule-based-segments).

0 commit comments

Comments
 (0)