Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 1b02ff2 commit 271a315
Show file tree
Hide file tree
Showing 466 changed files with 2,506 additions and 12,310 deletions.
52 changes: 8 additions & 44 deletions tests/api_resources/accounts/test_members.py

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions tests/api_resources/accounts/test_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
class TestRoles:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

assert cast(Any, response.is_closed) is True

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

@pytest.mark.skip()
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
role = client.accounts.roles.get(
Expand All @@ -70,7 +65,6 @@ def test_method_get(self, client: Cloudflare) -> None:
)
assert_matches_type(RoleGetResponse, role, path=["response"])

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
Expand Down
18 changes: 0 additions & 18 deletions tests/api_resources/acm/test_total_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class TestTotalTLS:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip()
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
total_tls = client.acm.total_tls.create(
Expand All @@ -26,7 +25,6 @@ def test_method_create(self, client: Cloudflare) -> None:
)
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])

@pytest.mark.skip()
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
total_tls = client.acm.total_tls.create(
Expand All @@ -36,7 +34,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
)
assert_matches_type(TotalTLSCreateResponse, total_tls, path=["response"])

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"):
Expand Down
16 changes: 0 additions & 16 deletions tests/api_resources/addressing/address_maps/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class TestAccounts:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

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

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

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

assert cast(Any, response.is_closed) is True

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

0 comments on commit 271a315

Please sign in to comment.