Skip to content

Commit 9ab962f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#382)
1 parent 8af5567 commit 9ab962f

File tree

466 files changed

+2506
-12310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

466 files changed

+2506
-12310
lines changed

tests/api_resources/accounts/test_members.py

+8-44
Large diffs are not rendered by default.

tests/api_resources/accounts/test_roles.py

-16
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@
1919
class TestRoles:
2020
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2121

22-
@pytest.mark.skip()
2322
@parametrize
2423
def test_method_list(self, client: Cloudflare) -> None:
2524
role = client.accounts.roles.list(
2625
account_id="string",
2726
)
2827
assert_matches_type(SyncSinglePage[Role], role, path=["response"])
2928

30-
@pytest.mark.skip()
3129
@parametrize
3230
def test_raw_response_list(self, client: Cloudflare) -> None:
3331
response = client.accounts.roles.with_raw_response.list(
@@ -39,7 +37,6 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
3937
role = response.parse()
4038
assert_matches_type(SyncSinglePage[Role], role, path=["response"])
4139

42-
@pytest.mark.skip()
4340
@parametrize
4441
def test_streaming_response_list(self, client: Cloudflare) -> None:
4542
with client.accounts.roles.with_streaming_response.list(
@@ -53,15 +50,13 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
5350

5451
assert cast(Any, response.is_closed) is True
5552

56-
@pytest.mark.skip()
5753
@parametrize
5854
def test_path_params_list(self, client: Cloudflare) -> None:
5955
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
6056
client.accounts.roles.with_raw_response.list(
6157
account_id="",
6258
)
6359

64-
@pytest.mark.skip()
6560
@parametrize
6661
def test_method_get(self, client: Cloudflare) -> None:
6762
role = client.accounts.roles.get(
@@ -70,7 +65,6 @@ def test_method_get(self, client: Cloudflare) -> None:
7065
)
7166
assert_matches_type(RoleGetResponse, role, path=["response"])
7267

73-
@pytest.mark.skip()
7468
@parametrize
7569
def test_raw_response_get(self, client: Cloudflare) -> None:
7670
response = client.accounts.roles.with_raw_response.get(
@@ -83,7 +77,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
8377
role = response.parse()
8478
assert_matches_type(RoleGetResponse, role, path=["response"])
8579

86-
@pytest.mark.skip()
8780
@parametrize
8881
def test_streaming_response_get(self, client: Cloudflare) -> None:
8982
with client.accounts.roles.with_streaming_response.get(
@@ -98,7 +91,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
9891

9992
assert cast(Any, response.is_closed) is True
10093

101-
@pytest.mark.skip()
10294
@parametrize
10395
def test_path_params_get(self, client: Cloudflare) -> None:
10496
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -111,15 +103,13 @@ def test_path_params_get(self, client: Cloudflare) -> None:
111103
class TestAsyncRoles:
112104
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
113105

114-
@pytest.mark.skip()
115106
@parametrize
116107
async def test_method_list(self, async_client: AsyncCloudflare) -> None:
117108
role = await async_client.accounts.roles.list(
118109
account_id="string",
119110
)
120111
assert_matches_type(AsyncSinglePage[Role], role, path=["response"])
121112

122-
@pytest.mark.skip()
123113
@parametrize
124114
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
125115
response = await async_client.accounts.roles.with_raw_response.list(
@@ -131,7 +121,6 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
131121
role = await response.parse()
132122
assert_matches_type(AsyncSinglePage[Role], role, path=["response"])
133123

134-
@pytest.mark.skip()
135124
@parametrize
136125
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
137126
async with async_client.accounts.roles.with_streaming_response.list(
@@ -145,15 +134,13 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
145134

146135
assert cast(Any, response.is_closed) is True
147136

148-
@pytest.mark.skip()
149137
@parametrize
150138
async def test_path_params_list(self, async_client: AsyncCloudflare) -> None:
151139
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
152140
await async_client.accounts.roles.with_raw_response.list(
153141
account_id="",
154142
)
155143

156-
@pytest.mark.skip()
157144
@parametrize
158145
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
159146
role = await async_client.accounts.roles.get(
@@ -162,7 +149,6 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
162149
)
163150
assert_matches_type(RoleGetResponse, role, path=["response"])
164151

165-
@pytest.mark.skip()
166152
@parametrize
167153
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
168154
response = await async_client.accounts.roles.with_raw_response.get(
@@ -175,7 +161,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
175161
role = await response.parse()
176162
assert_matches_type(RoleGetResponse, role, path=["response"])
177163

178-
@pytest.mark.skip()
179164
@parametrize
180165
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
181166
async with async_client.accounts.roles.with_streaming_response.get(
@@ -190,7 +175,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
190175

191176
assert cast(Any, response.is_closed) is True
192177

193-
@pytest.mark.skip()
194178
@parametrize
195179
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
196180
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/acm/test_total_tls.py

-18
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
class TestTotalTLS:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip()
2120
@parametrize
2221
def test_method_create(self, client: Cloudflare) -> None:
2322
total_tls = client.acm.total_tls.create(
@@ -26,7 +25,6 @@ def test_method_create(self, client: Cloudflare) -> None:
2625
)
2726
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
2827

29-
@pytest.mark.skip()
3028
@parametrize
3129
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3230
total_tls = client.acm.total_tls.create(
@@ -36,7 +34,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
3634
)
3735
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
3836

39-
@pytest.mark.skip()
4037
@parametrize
4138
def test_raw_response_create(self, client: Cloudflare) -> None:
4239
response = client.acm.total_tls.with_raw_response.create(
@@ -49,7 +46,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
4946
total_tls = response.parse()
5047
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
5148

52-
@pytest.mark.skip()
5349
@parametrize
5450
def test_streaming_response_create(self, client: Cloudflare) -> None:
5551
with client.acm.total_tls.with_streaming_response.create(
@@ -64,7 +60,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
6460

6561
assert cast(Any, response.is_closed) is True
6662

67-
@pytest.mark.skip()
6863
@parametrize
6964
def test_path_params_create(self, client: Cloudflare) -> None:
7065
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
@@ -73,15 +68,13 @@ def test_path_params_create(self, client: Cloudflare) -> None:
7368
enabled=True,
7469
)
7570

76-
@pytest.mark.skip()
7771
@parametrize
7872
def test_method_get(self, client: Cloudflare) -> None:
7973
total_tls = client.acm.total_tls.get(
8074
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
8175
)
8276
assert_matches_type(TotalTLSGetResponse, total_tls, path=["response"])
8377

84-
@pytest.mark.skip()
8578
@parametrize
8679
def test_raw_response_get(self, client: Cloudflare) -> None:
8780
response = client.acm.total_tls.with_raw_response.get(
@@ -93,7 +86,6 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
9386
total_tls = response.parse()
9487
assert_matches_type(TotalTLSGetResponse, total_tls, path=["response"])
9588

96-
@pytest.mark.skip()
9789
@parametrize
9890
def test_streaming_response_get(self, client: Cloudflare) -> None:
9991
with client.acm.total_tls.with_streaming_response.get(
@@ -107,7 +99,6 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
10799

108100
assert cast(Any, response.is_closed) is True
109101

110-
@pytest.mark.skip()
111102
@parametrize
112103
def test_path_params_get(self, client: Cloudflare) -> None:
113104
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
@@ -119,7 +110,6 @@ def test_path_params_get(self, client: Cloudflare) -> None:
119110
class TestAsyncTotalTLS:
120111
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
121112

122-
@pytest.mark.skip()
123113
@parametrize
124114
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
125115
total_tls = await async_client.acm.total_tls.create(
@@ -128,7 +118,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
128118
)
129119
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
130120

131-
@pytest.mark.skip()
132121
@parametrize
133122
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
134123
total_tls = await async_client.acm.total_tls.create(
@@ -138,7 +127,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
138127
)
139128
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
140129

141-
@pytest.mark.skip()
142130
@parametrize
143131
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
144132
response = await async_client.acm.total_tls.with_raw_response.create(
@@ -151,7 +139,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
151139
total_tls = await response.parse()
152140
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])
153141

154-
@pytest.mark.skip()
155142
@parametrize
156143
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
157144
async with async_client.acm.total_tls.with_streaming_response.create(
@@ -166,7 +153,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
166153

167154
assert cast(Any, response.is_closed) is True
168155

169-
@pytest.mark.skip()
170156
@parametrize
171157
async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
172158
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
@@ -175,15 +161,13 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
175161
enabled=True,
176162
)
177163

178-
@pytest.mark.skip()
179164
@parametrize
180165
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
181166
total_tls = await async_client.acm.total_tls.get(
182167
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
183168
)
184169
assert_matches_type(TotalTLSGetResponse, total_tls, path=["response"])
185170

186-
@pytest.mark.skip()
187171
@parametrize
188172
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
189173
response = await async_client.acm.total_tls.with_raw_response.get(
@@ -195,7 +179,6 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
195179
total_tls = await response.parse()
196180
assert_matches_type(TotalTLSGetResponse, total_tls, path=["response"])
197181

198-
@pytest.mark.skip()
199182
@parametrize
200183
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
201184
async with async_client.acm.total_tls.with_streaming_response.get(
@@ -209,7 +192,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
209192

210193
assert cast(Any, response.is_closed) is True
211194

212-
@pytest.mark.skip()
213195
@parametrize
214196
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
215197
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):

tests/api_resources/addressing/address_maps/test_accounts.py

-16
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
class TestAccounts:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip()
2120
@parametrize
2221
def test_method_update(self, client: Cloudflare) -> None:
2322
account = client.addressing.address_maps.accounts.update(
@@ -27,7 +26,6 @@ def test_method_update(self, client: Cloudflare) -> None:
2726
)
2827
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
2928

30-
@pytest.mark.skip()
3129
@parametrize
3230
def test_raw_response_update(self, client: Cloudflare) -> None:
3331
response = client.addressing.address_maps.accounts.with_raw_response.update(
@@ -41,7 +39,6 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
4139
account = response.parse()
4240
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
4341

44-
@pytest.mark.skip()
4542
@parametrize
4643
def test_streaming_response_update(self, client: Cloudflare) -> None:
4744
with client.addressing.address_maps.accounts.with_streaming_response.update(
@@ -57,7 +54,6 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
5754

5855
assert cast(Any, response.is_closed) is True
5956

60-
@pytest.mark.skip()
6157
@parametrize
6258
def test_path_params_update(self, client: Cloudflare) -> None:
6359
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -74,7 +70,6 @@ def test_path_params_update(self, client: Cloudflare) -> None:
7470
body={},
7571
)
7672

77-
@pytest.mark.skip()
7873
@parametrize
7974
def test_method_delete(self, client: Cloudflare) -> None:
8075
account = client.addressing.address_maps.accounts.delete(
@@ -83,7 +78,6 @@ def test_method_delete(self, client: Cloudflare) -> None:
8378
)
8479
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
8580

86-
@pytest.mark.skip()
8781
@parametrize
8882
def test_raw_response_delete(self, client: Cloudflare) -> None:
8983
response = client.addressing.address_maps.accounts.with_raw_response.delete(
@@ -96,7 +90,6 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
9690
account = response.parse()
9791
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
9892

99-
@pytest.mark.skip()
10093
@parametrize
10194
def test_streaming_response_delete(self, client: Cloudflare) -> None:
10295
with client.addressing.address_maps.accounts.with_streaming_response.delete(
@@ -111,7 +104,6 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
111104

112105
assert cast(Any, response.is_closed) is True
113106

114-
@pytest.mark.skip()
115107
@parametrize
116108
def test_path_params_delete(self, client: Cloudflare) -> None:
117109
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -130,7 +122,6 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
130122
class TestAsyncAccounts:
131123
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
132124

133-
@pytest.mark.skip()
134125
@parametrize
135126
async def test_method_update(self, async_client: AsyncCloudflare) -> None:
136127
account = await async_client.addressing.address_maps.accounts.update(
@@ -140,7 +131,6 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
140131
)
141132
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
142133

143-
@pytest.mark.skip()
144134
@parametrize
145135
async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
146136
response = await async_client.addressing.address_maps.accounts.with_raw_response.update(
@@ -154,7 +144,6 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
154144
account = await response.parse()
155145
assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
156146

157-
@pytest.mark.skip()
158147
@parametrize
159148
async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None:
160149
async with async_client.addressing.address_maps.accounts.with_streaming_response.update(
@@ -170,7 +159,6 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
170159

171160
assert cast(Any, response.is_closed) is True
172161

173-
@pytest.mark.skip()
174162
@parametrize
175163
async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
176164
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -187,7 +175,6 @@ async def test_path_params_update(self, async_client: AsyncCloudflare) -> None:
187175
body={},
188176
)
189177

190-
@pytest.mark.skip()
191178
@parametrize
192179
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
193180
account = await async_client.addressing.address_maps.accounts.delete(
@@ -196,7 +183,6 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
196183
)
197184
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
198185

199-
@pytest.mark.skip()
200186
@parametrize
201187
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
202188
response = await async_client.addressing.address_maps.accounts.with_raw_response.delete(
@@ -209,7 +195,6 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
209195
account = await response.parse()
210196
assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
211197

212-
@pytest.mark.skip()
213198
@parametrize
214199
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
215200
async with async_client.addressing.address_maps.accounts.with_streaming_response.delete(
@@ -224,7 +209,6 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
224209

225210
assert cast(Any, response.is_closed) is True
226211

227-
@pytest.mark.skip()
228212
@parametrize
229213
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
230214
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)