Skip to content

Commit aada6c0

Browse files
committed
fix from merge conflict
1 parent 4b8ec7e commit aada6c0

File tree

14 files changed

+271
-309
lines changed

14 files changed

+271
-309
lines changed

src/workos/audit_logs/_resource.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def list_action_schemas(
193193
request_options=request_options,
194194
)
195195

196-
def create_action_schemas(
196+
def create_schema(
197197
self,
198198
action_name: str,
199199
*,
@@ -239,7 +239,7 @@ def create_action_schemas(
239239
request_options=request_options,
240240
)
241241

242-
def create_events(
242+
def create_event(
243243
self,
244244
*,
245245
organization_id: str,
@@ -287,7 +287,7 @@ def create_events(
287287
request_options=request_options,
288288
)
289289

290-
def create_exports(
290+
def create_export(
291291
self,
292292
*,
293293
organization_id: str,
@@ -548,7 +548,7 @@ async def list_action_schemas(
548548
request_options=request_options,
549549
)
550550

551-
async def create_action_schemas(
551+
async def create_schema(
552552
self,
553553
action_name: str,
554554
*,
@@ -594,7 +594,7 @@ async def create_action_schemas(
594594
request_options=request_options,
595595
)
596596

597-
async def create_events(
597+
async def create_event(
598598
self,
599599
*,
600600
organization_id: str,
@@ -642,7 +642,7 @@ async def create_events(
642642
request_options=request_options,
643643
)
644644

645-
async def create_exports(
645+
async def create_export(
646646
self,
647647
*,
648648
organization_id: str,

src/workos/authorization/_resource.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Authorization:
2828
def __init__(self, client: "WorkOSClient") -> None:
2929
self._client = client
3030

31-
def check_organization_membership(
31+
def check(
3232
self,
3333
organization_membership_id: str,
3434
*,
@@ -195,7 +195,7 @@ def list_organization_membership_role_assignments(
195195
request_options=request_options,
196196
)
197197

198-
def create_organization_membership_role_assignments(
198+
def assign_role(
199199
self,
200200
organization_membership_id: str,
201201
*,
@@ -246,7 +246,7 @@ def create_organization_membership_role_assignments(
246246
request_options=request_options,
247247
)
248248

249-
def delete_organization_membership_role_assignments(
249+
def remove_role(
250250
self,
251251
organization_membership_id: str,
252252
*,
@@ -353,7 +353,7 @@ def list_organization_roles(
353353
request_options=request_options,
354354
)
355355

356-
def create_organization_roles(
356+
def create_organization_role(
357357
self,
358358
organization_id: str,
359359
*,
@@ -898,7 +898,7 @@ def list_resources(
898898
request_options=request_options,
899899
)
900900

901-
def create_resources(
901+
def create_resource(
902902
self,
903903
*,
904904
external_id: str,
@@ -1148,7 +1148,7 @@ def list_memberships_for_resource(
11481148
request_options=request_options,
11491149
)
11501150

1151-
def list_roles(
1151+
def list_environment_roles(
11521152
self,
11531153
*,
11541154
request_options: Optional[RequestOptions] = None,
@@ -1173,7 +1173,7 @@ def list_roles(
11731173
request_options=request_options,
11741174
)
11751175

1176-
def create_roles(
1176+
def create_environment_role(
11771177
self,
11781178
*,
11791179
slug: str,
@@ -1224,7 +1224,7 @@ def create_roles(
12241224
request_options=request_options,
12251225
)
12261226

1227-
def get_role(
1227+
def get_environment_role(
12281228
self,
12291229
slug: str,
12301230
*,
@@ -1255,7 +1255,7 @@ def get_role(
12551255
request_options=request_options,
12561256
)
12571257

1258-
def update_role(
1258+
def update_environment_role(
12591259
self,
12601260
slug: str,
12611261
*,
@@ -1301,7 +1301,7 @@ def update_role(
13011301
request_options=request_options,
13021302
)
13031303

1304-
def add_role_permission(
1304+
def add_environment_role_permission(
13051305
self,
13061306
slug: str,
13071307
*,
@@ -1340,7 +1340,7 @@ def add_role_permission(
13401340
request_options=request_options,
13411341
)
13421342

1343-
def set_role_permissions(
1343+
def set_environment_role_permissions(
13441344
self,
13451345
slug: str,
13461346
*,
@@ -1426,7 +1426,7 @@ def list_permissions(
14261426
request_options=request_options,
14271427
)
14281428

1429-
def create_permissions(
1429+
def create_permission(
14301430
self,
14311431
*,
14321432
slug: str,
@@ -1585,7 +1585,7 @@ class AsyncAuthorization:
15851585
def __init__(self, client: "AsyncWorkOSClient") -> None:
15861586
self._client = client
15871587

1588-
async def check_organization_membership(
1588+
async def check(
15891589
self,
15901590
organization_membership_id: str,
15911591
*,
@@ -1752,7 +1752,7 @@ async def list_organization_membership_role_assignments(
17521752
request_options=request_options,
17531753
)
17541754

1755-
async def create_organization_membership_role_assignments(
1755+
async def assign_role(
17561756
self,
17571757
organization_membership_id: str,
17581758
*,
@@ -1803,7 +1803,7 @@ async def create_organization_membership_role_assignments(
18031803
request_options=request_options,
18041804
)
18051805

1806-
async def delete_organization_membership_role_assignments(
1806+
async def remove_role(
18071807
self,
18081808
organization_membership_id: str,
18091809
*,
@@ -1910,7 +1910,7 @@ async def list_organization_roles(
19101910
request_options=request_options,
19111911
)
19121912

1913-
async def create_organization_roles(
1913+
async def create_organization_role(
19141914
self,
19151915
organization_id: str,
19161916
*,
@@ -2455,7 +2455,7 @@ async def list_resources(
24552455
request_options=request_options,
24562456
)
24572457

2458-
async def create_resources(
2458+
async def create_resource(
24592459
self,
24602460
*,
24612461
external_id: str,
@@ -2705,7 +2705,7 @@ async def list_memberships_for_resource(
27052705
request_options=request_options,
27062706
)
27072707

2708-
async def list_roles(
2708+
async def list_environment_roles(
27092709
self,
27102710
*,
27112711
request_options: Optional[RequestOptions] = None,
@@ -2730,7 +2730,7 @@ async def list_roles(
27302730
request_options=request_options,
27312731
)
27322732

2733-
async def create_roles(
2733+
async def create_environment_role(
27342734
self,
27352735
*,
27362736
slug: str,
@@ -2781,7 +2781,7 @@ async def create_roles(
27812781
request_options=request_options,
27822782
)
27832783

2784-
async def get_role(
2784+
async def get_environment_role(
27852785
self,
27862786
slug: str,
27872787
*,
@@ -2812,7 +2812,7 @@ async def get_role(
28122812
request_options=request_options,
28132813
)
28142814

2815-
async def update_role(
2815+
async def update_environment_role(
28162816
self,
28172817
slug: str,
28182818
*,
@@ -2858,7 +2858,7 @@ async def update_role(
28582858
request_options=request_options,
28592859
)
28602860

2861-
async def add_role_permission(
2861+
async def add_environment_role_permission(
28622862
self,
28632863
slug: str,
28642864
*,
@@ -2897,7 +2897,7 @@ async def add_role_permission(
28972897
request_options=request_options,
28982898
)
28992899

2900-
async def set_role_permissions(
2900+
async def set_environment_role_permissions(
29012901
self,
29022902
slug: str,
29032903
*,
@@ -2983,7 +2983,7 @@ async def list_permissions(
29832983
request_options=request_options,
29842984
)
29852985

2986-
async def create_permissions(
2986+
async def create_permission(
29872987
self,
29882988
*,
29892989
slug: str,

src/workos/directory_sync/_resource.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def delete_directory(
133133
request_options=request_options,
134134
)
135135

136-
def list_directory_groups(
136+
def list_groups(
137137
self,
138138
*,
139139
limit: Optional[int] = None,
@@ -188,7 +188,7 @@ def list_directory_groups(
188188
request_options=request_options,
189189
)
190190

191-
def get_directory_group(
191+
def get_group(
192192
self,
193193
id: str,
194194
*,
@@ -219,7 +219,7 @@ def get_directory_group(
219219
request_options=request_options,
220220
)
221221

222-
def list_directory_users(
222+
def list_users(
223223
self,
224224
*,
225225
limit: Optional[int] = None,
@@ -274,7 +274,7 @@ def list_directory_users(
274274
request_options=request_options,
275275
)
276276

277-
def get_directory_user(
277+
def get_user(
278278
self,
279279
id: str,
280280
*,
@@ -426,7 +426,7 @@ async def delete_directory(
426426
request_options=request_options,
427427
)
428428

429-
async def list_directory_groups(
429+
async def list_groups(
430430
self,
431431
*,
432432
limit: Optional[int] = None,
@@ -481,7 +481,7 @@ async def list_directory_groups(
481481
request_options=request_options,
482482
)
483483

484-
async def get_directory_group(
484+
async def get_group(
485485
self,
486486
id: str,
487487
*,
@@ -512,7 +512,7 @@ async def get_directory_group(
512512
request_options=request_options,
513513
)
514514

515-
async def list_directory_users(
515+
async def list_users(
516516
self,
517517
*,
518518
limit: Optional[int] = None,
@@ -567,7 +567,7 @@ async def list_directory_users(
567567
request_options=request_options,
568568
)
569569

570-
async def get_directory_user(
570+
async def get_user(
571571
self,
572572
id: str,
573573
*,

src/workos/feature_flags/_resource.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def enable_feature_flag(
162162
request_options=request_options,
163163
)
164164

165-
def create_feature_flag_target(
165+
def add_flag_target(
166166
self,
167167
resource_id: str,
168168
slug: str,
@@ -192,7 +192,7 @@ def create_feature_flag_target(
192192
request_options=request_options,
193193
)
194194

195-
def delete_feature_flag_target(
195+
def remove_flag_target(
196196
self,
197197
resource_id: str,
198198
slug: str,
@@ -466,7 +466,7 @@ async def enable_feature_flag(
466466
request_options=request_options,
467467
)
468468

469-
async def create_feature_flag_target(
469+
async def add_flag_target(
470470
self,
471471
resource_id: str,
472472
slug: str,
@@ -496,7 +496,7 @@ async def create_feature_flag_target(
496496
request_options=request_options,
497497
)
498498

499-
async def delete_feature_flag_target(
499+
async def remove_flag_target(
500500
self,
501501
resource_id: str,
502502
slug: str,

src/workos/organizations/_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def list_organizations(
7474
request_options=request_options,
7575
)
7676

77-
def create_organizations(
77+
def create_organization(
7878
self,
7979
*,
8080
name: str,
@@ -373,7 +373,7 @@ async def list_organizations(
373373
request_options=request_options,
374374
)
375375

376-
async def create_organizations(
376+
async def create_organization(
377377
self,
378378
*,
379379
name: str,

0 commit comments

Comments
 (0)