10
10
from cloudflare import Cloudflare , AsyncCloudflare
11
11
from tests .utils import assert_matches_type
12
12
from cloudflare .pagination import SyncV4PagePaginationArray , AsyncV4PagePaginationArray
13
- from cloudflare .types .shared import IamMember
13
+ from cloudflare .types .shared import Member
14
14
from cloudflare .types .accounts import (
15
15
MemberListResponse ,
16
16
UserWithInviteCode ,
@@ -102,7 +102,7 @@ def test_method_update(self, client: Cloudflare) -> None:
102
102
{"id" : "3536bcfad5faccb999b47003c79917fb" },
103
103
],
104
104
)
105
- assert_matches_type (IamMember , member , path = ["response" ])
105
+ assert_matches_type (Member , member , path = ["response" ])
106
106
107
107
@pytest .mark .skip ()
108
108
@parametrize
@@ -120,7 +120,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
120
120
assert response .is_closed is True
121
121
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
122
122
member = response .parse ()
123
- assert_matches_type (IamMember , member , path = ["response" ])
123
+ assert_matches_type (Member , member , path = ["response" ])
124
124
125
125
@pytest .mark .skip ()
126
126
@parametrize
@@ -138,7 +138,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
138
138
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
139
139
140
140
member = response .parse ()
141
- assert_matches_type (IamMember , member , path = ["response" ])
141
+ assert_matches_type (Member , member , path = ["response" ])
142
142
143
143
assert cast (Any , response .is_closed ) is True
144
144
@@ -260,7 +260,7 @@ def test_method_get(self, client: Cloudflare) -> None:
260
260
"4536bcfad5faccb111b47003c79917fa" ,
261
261
account_id = {},
262
262
)
263
- assert_matches_type (IamMember , member , path = ["response" ])
263
+ assert_matches_type (Member , member , path = ["response" ])
264
264
265
265
@pytest .mark .skip ()
266
266
@parametrize
@@ -273,7 +273,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
273
273
assert response .is_closed is True
274
274
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
275
275
member = response .parse ()
276
- assert_matches_type (IamMember , member , path = ["response" ])
276
+ assert_matches_type (Member , member , path = ["response" ])
277
277
278
278
@pytest .mark .skip ()
279
279
@parametrize
@@ -286,7 +286,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
286
286
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
287
287
288
288
member = response .parse ()
289
- assert_matches_type (IamMember , member , path = ["response" ])
289
+ assert_matches_type (Member , member , path = ["response" ])
290
290
291
291
assert cast (Any , response .is_closed ) is True
292
292
@@ -382,7 +382,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
382
382
{"id" : "3536bcfad5faccb999b47003c79917fb" },
383
383
],
384
384
)
385
- assert_matches_type (IamMember , member , path = ["response" ])
385
+ assert_matches_type (Member , member , path = ["response" ])
386
386
387
387
@pytest .mark .skip ()
388
388
@parametrize
@@ -400,7 +400,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
400
400
assert response .is_closed is True
401
401
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
402
402
member = await response .parse ()
403
- assert_matches_type (IamMember , member , path = ["response" ])
403
+ assert_matches_type (Member , member , path = ["response" ])
404
404
405
405
@pytest .mark .skip ()
406
406
@parametrize
@@ -418,7 +418,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
418
418
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
419
419
420
420
member = await response .parse ()
421
- assert_matches_type (IamMember , member , path = ["response" ])
421
+ assert_matches_type (Member , member , path = ["response" ])
422
422
423
423
assert cast (Any , response .is_closed ) is True
424
424
@@ -540,7 +540,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
540
540
"4536bcfad5faccb111b47003c79917fa" ,
541
541
account_id = {},
542
542
)
543
- assert_matches_type (IamMember , member , path = ["response" ])
543
+ assert_matches_type (Member , member , path = ["response" ])
544
544
545
545
@pytest .mark .skip ()
546
546
@parametrize
@@ -553,7 +553,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
553
553
assert response .is_closed is True
554
554
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
555
555
member = await response .parse ()
556
- assert_matches_type (IamMember , member , path = ["response" ])
556
+ assert_matches_type (Member , member , path = ["response" ])
557
557
558
558
@pytest .mark .skip ()
559
559
@parametrize
@@ -566,7 +566,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
566
566
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
567
567
568
568
member = await response .parse ()
569
- assert_matches_type (IamMember , member , path = ["response" ])
569
+ assert_matches_type (Member , member , path = ["response" ])
570
570
571
571
assert cast (Any , response .is_closed ) is True
572
572
0 commit comments