Skip to content

Commit 2e755bc

Browse files
authored
Merge pull request #137 from britive/v3.2.0-beta.1
v3.2.0-beta.1
2 parents 4393405 + d974ed8 commit 2e755bc

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log (v2.8.1+)
22

3-
## v3.2.0-beta.0 [2025-01-13]
3+
## v3.2.0-beta.1 [2025-01-15]
44

55
__What's New:__
66

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ they exist.
8888
* Identity Attributes
8989
* Identity Providers
9090
* My Access (access granted to the given identity (user or service))
91+
* My Approvals
92+
* My Requests
9193
* My Resources (access granted to the given identity (user or service))
9294
* My Secrets (access granted to the given identity (user or service))
9395
* Notifications
@@ -194,7 +196,7 @@ import json
194196

195197
britive = Britive() # source needed data from environment variables
196198

197-
print(json.dumps(britive.users.list(), indent=2, default=str))
199+
print(json.dumps(britive.identity_management.users.list(), indent=2, default=str))
198200
```
199201

200202
### Provide Needed Authentication Information in the Script
@@ -205,7 +207,7 @@ import json
205207

206208
britive = Britive(tenant='example', token='...') # source token and tenant locally (not from environment variables)
207209

208-
print(json.dumps(britive.users.list(), indent=2, default=str))
210+
print(json.dumps(britive.identity_management.users.list(), indent=2, default=str))
209211
```
210212

211213
### Create API Token for a Service Identity
@@ -216,7 +218,7 @@ import json
216218

217219
britive = Britive() # source needed data from environment variables
218220

219-
print(json.dumps(britive.service_identity_tokens.create(service_identity_id='abc123'), indent=2, default=str))
221+
print(json.dumps(britive.identity_management.service_identity_tokens.create(service_identity_id='abc123'), indent=2, default=str))
220222
```
221223

222224
### Run a Report (JSON and CSV output)
@@ -243,13 +245,13 @@ from britive.britive import Britive
243245

244246
b = Britive()
245247

246-
policy = b.profiles.policies.build(
248+
policy = b.application_management.profiles.policies.build(
247249
name='example',
248250
users=['user@domain.com'],
249251
approval_notification_medium='Email',
250252
approver_users=['approver@domain.com'],
251253
time_to_approve=10
252254
)
253255

254-
b.profiles.policies.create(profile_id='...', policy=policy)
256+
b.application_management.profiles.policies.create(profile_id='...', policy=policy)
255257
```

src/britive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.2.0-beta.0'
1+
__version__ = '3.2.0-beta.1'

src/britive/my_requests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ def request_approval(
260260

261261
return self._request_approval(
262262
justification=justification,
263-
profile_name=profile_id,
264-
entity_name=environment_id,
263+
profile_id=profile_id,
264+
entity_id=environment_id,
265265
entity_type='environments',
266266
block_until_disposition=block_until_disposition,
267267
max_wait_time=max_wait_time,
@@ -352,8 +352,8 @@ def request_approval(
352352

353353
return self._request_approval(
354354
justification=justification,
355-
profile_name=profile_id,
356-
entity_name=resource_id,
355+
profile_id=profile_id,
356+
entity_id=resource_id,
357357
entity_type='resource',
358358
block_until_disposition=block_until_disposition,
359359
max_wait_time=max_wait_time,

0 commit comments

Comments
 (0)