Skip to content

Commit 11ac697

Browse files
feat: fix(moq): render MoQ via explicit custom casing (RT-603)
* fix(moq): render MoQ via explicit custom casing (RT-603) The moq token was 'initialism: true', which renders MOQ. MoQ (Media over QUIC) is a mixed-case acronym, so use an explicit casing block (like DDoS): pascal/capital = MoQ, camel/snake = moq. Fixes the API docs/SDK rendering 'Moq'. (cherry picked from commit bbc15361ceba0c208977f40ba6e689e1611fc39d)
1 parent ec9a675 commit 11ac697

6 files changed

Lines changed: 54 additions & 54 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2409
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-64c75bcb4da367adfd4f8ef4a3f56ba72319441f8192961275c5908530d96b6a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-dfb646d2d43385c312e319a5f5c0d09c4f8b41d89e4486cd58acc970bfe74223.yml
33
openapi_spec_hash: 5f2a1a80ef585c73c6b546c4075d18f8
4-
config_hash: bbf6df558b7c0807286a2085dd306dde
4+
config_hash: 517f3639f0355eae78476ce617456698

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ from cloudflare.types import (
211211

212212
# [Calls](src/cloudflare/resources/calls/api.md)
213213

214-
# [Moq](src/cloudflare/resources/moq/api.md)
214+
# [MoQ](src/cloudflare/resources/moq/api.md)
215215

216216
# [CloudforceOne](src/cloudflare/resources/cloudforce_one/api.md)
217217

src/cloudflare/_client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
from .resources.dns.dns import DNSResource, AsyncDNSResource
165165
from .resources.iam.iam import IAMResource, AsyncIAMResource
166166
from .resources.ips.ips import IPsResource, AsyncIPsResource
167-
from .resources.moq.moq import MoqResource, AsyncMoqResource
167+
from .resources.moq.moq import MoQResource, AsyncMoQResource
168168
from .resources.rum.rum import RUMResource, AsyncRUMResource
169169
from .resources.ssl.ssl import SSLResource, AsyncSSLResource
170170
from .resources.argo.argo import ArgoResource, AsyncArgoResource
@@ -968,10 +968,10 @@ def calls(self) -> CallsResource:
968968
return CallsResource(self)
969969

970970
@cached_property
971-
def moq(self) -> MoqResource:
972-
from .resources.moq import MoqResource
971+
def moq(self) -> MoQResource:
972+
from .resources.moq import MoQResource
973973

974-
return MoqResource(self)
974+
return MoQResource(self)
975975

976976
@cached_property
977977
def cloudforce_one(self) -> CloudforceOneResource:
@@ -1926,10 +1926,10 @@ def calls(self) -> AsyncCallsResource:
19261926
return AsyncCallsResource(self)
19271927

19281928
@cached_property
1929-
def moq(self) -> AsyncMoqResource:
1930-
from .resources.moq import AsyncMoqResource
1929+
def moq(self) -> AsyncMoQResource:
1930+
from .resources.moq import AsyncMoQResource
19311931

1932-
return AsyncMoqResource(self)
1932+
return AsyncMoQResource(self)
19331933

19341934
@cached_property
19351935
def cloudforce_one(self) -> AsyncCloudforceOneResource:
@@ -2808,10 +2808,10 @@ def calls(self) -> calls.CallsResourceWithRawResponse:
28082808
return CallsResourceWithRawResponse(self._client.calls)
28092809

28102810
@cached_property
2811-
def moq(self) -> moq.MoqResourceWithRawResponse:
2812-
from .resources.moq import MoqResourceWithRawResponse
2811+
def moq(self) -> moq.MoQResourceWithRawResponse:
2812+
from .resources.moq import MoQResourceWithRawResponse
28132813

2814-
return MoqResourceWithRawResponse(self._client.moq)
2814+
return MoQResourceWithRawResponse(self._client.moq)
28152815

28162816
@cached_property
28172817
def cloudforce_one(self) -> cloudforce_one.CloudforceOneResourceWithRawResponse:
@@ -3517,10 +3517,10 @@ def calls(self) -> calls.AsyncCallsResourceWithRawResponse:
35173517
return AsyncCallsResourceWithRawResponse(self._client.calls)
35183518

35193519
@cached_property
3520-
def moq(self) -> moq.AsyncMoqResourceWithRawResponse:
3521-
from .resources.moq import AsyncMoqResourceWithRawResponse
3520+
def moq(self) -> moq.AsyncMoQResourceWithRawResponse:
3521+
from .resources.moq import AsyncMoQResourceWithRawResponse
35223522

3523-
return AsyncMoqResourceWithRawResponse(self._client.moq)
3523+
return AsyncMoQResourceWithRawResponse(self._client.moq)
35243524

35253525
@cached_property
35263526
def cloudforce_one(self) -> cloudforce_one.AsyncCloudforceOneResourceWithRawResponse:
@@ -4226,10 +4226,10 @@ def calls(self) -> calls.CallsResourceWithStreamingResponse:
42264226
return CallsResourceWithStreamingResponse(self._client.calls)
42274227

42284228
@cached_property
4229-
def moq(self) -> moq.MoqResourceWithStreamingResponse:
4230-
from .resources.moq import MoqResourceWithStreamingResponse
4229+
def moq(self) -> moq.MoQResourceWithStreamingResponse:
4230+
from .resources.moq import MoQResourceWithStreamingResponse
42314231

4232-
return MoqResourceWithStreamingResponse(self._client.moq)
4232+
return MoQResourceWithStreamingResponse(self._client.moq)
42334233

42344234
@cached_property
42354235
def cloudforce_one(self) -> cloudforce_one.CloudforceOneResourceWithStreamingResponse:
@@ -4943,10 +4943,10 @@ def calls(self) -> calls.AsyncCallsResourceWithStreamingResponse:
49434943
return AsyncCallsResourceWithStreamingResponse(self._client.calls)
49444944

49454945
@cached_property
4946-
def moq(self) -> moq.AsyncMoqResourceWithStreamingResponse:
4947-
from .resources.moq import AsyncMoqResourceWithStreamingResponse
4946+
def moq(self) -> moq.AsyncMoQResourceWithStreamingResponse:
4947+
from .resources.moq import AsyncMoQResourceWithStreamingResponse
49484948

4949-
return AsyncMoqResourceWithStreamingResponse(self._client.moq)
4949+
return AsyncMoQResourceWithStreamingResponse(self._client.moq)
49504950

49514951
@cached_property
49524952
def cloudforce_one(self) -> cloudforce_one.AsyncCloudforceOneResourceWithStreamingResponse:
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from .moq import (
4-
MoqResource,
5-
AsyncMoqResource,
6-
MoqResourceWithRawResponse,
7-
AsyncMoqResourceWithRawResponse,
8-
MoqResourceWithStreamingResponse,
9-
AsyncMoqResourceWithStreamingResponse,
4+
MoQResource,
5+
AsyncMoQResource,
6+
MoQResourceWithRawResponse,
7+
AsyncMoQResourceWithRawResponse,
8+
MoQResourceWithStreamingResponse,
9+
AsyncMoQResourceWithStreamingResponse,
1010
)
1111
from .relays import (
1212
RelaysResource,
@@ -24,10 +24,10 @@
2424
"AsyncRelaysResourceWithRawResponse",
2525
"RelaysResourceWithStreamingResponse",
2626
"AsyncRelaysResourceWithStreamingResponse",
27-
"MoqResource",
28-
"AsyncMoqResource",
29-
"MoqResourceWithRawResponse",
30-
"AsyncMoqResourceWithRawResponse",
31-
"MoqResourceWithStreamingResponse",
32-
"AsyncMoqResourceWithStreamingResponse",
27+
"MoQResource",
28+
"AsyncMoQResource",
29+
"MoQResourceWithRawResponse",
30+
"AsyncMoQResourceWithRawResponse",
31+
"MoQResourceWithStreamingResponse",
32+
"AsyncMoQResourceWithStreamingResponse",
3333
]

src/cloudflare/resources/moq/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Moq
1+
# MoQ
22

33
## Relays
44

src/cloudflare/resources/moq/moq.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,88 +13,88 @@
1313
AsyncRelaysResourceWithStreamingResponse,
1414
)
1515

16-
__all__ = ["MoqResource", "AsyncMoqResource"]
16+
__all__ = ["MoQResource", "AsyncMoQResource"]
1717

1818

19-
class MoqResource(SyncAPIResource):
19+
class MoQResource(SyncAPIResource):
2020
@cached_property
2121
def relays(self) -> RelaysResource:
2222
return RelaysResource(self._client)
2323

2424
@cached_property
25-
def with_raw_response(self) -> MoqResourceWithRawResponse:
25+
def with_raw_response(self) -> MoQResourceWithRawResponse:
2626
"""
2727
This property can be used as a prefix for any HTTP method call to return
2828
the raw response object instead of the parsed content.
2929
3030
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
3131
"""
32-
return MoqResourceWithRawResponse(self)
32+
return MoQResourceWithRawResponse(self)
3333

3434
@cached_property
35-
def with_streaming_response(self) -> MoqResourceWithStreamingResponse:
35+
def with_streaming_response(self) -> MoQResourceWithStreamingResponse:
3636
"""
3737
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
3838
3939
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
4040
"""
41-
return MoqResourceWithStreamingResponse(self)
41+
return MoQResourceWithStreamingResponse(self)
4242

4343

44-
class AsyncMoqResource(AsyncAPIResource):
44+
class AsyncMoQResource(AsyncAPIResource):
4545
@cached_property
4646
def relays(self) -> AsyncRelaysResource:
4747
return AsyncRelaysResource(self._client)
4848

4949
@cached_property
50-
def with_raw_response(self) -> AsyncMoqResourceWithRawResponse:
50+
def with_raw_response(self) -> AsyncMoQResourceWithRawResponse:
5151
"""
5252
This property can be used as a prefix for any HTTP method call to return
5353
the raw response object instead of the parsed content.
5454
5555
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
5656
"""
57-
return AsyncMoqResourceWithRawResponse(self)
57+
return AsyncMoQResourceWithRawResponse(self)
5858

5959
@cached_property
60-
def with_streaming_response(self) -> AsyncMoqResourceWithStreamingResponse:
60+
def with_streaming_response(self) -> AsyncMoQResourceWithStreamingResponse:
6161
"""
6262
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
6363
6464
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
6565
"""
66-
return AsyncMoqResourceWithStreamingResponse(self)
66+
return AsyncMoQResourceWithStreamingResponse(self)
6767

6868

69-
class MoqResourceWithRawResponse:
70-
def __init__(self, moq: MoqResource) -> None:
69+
class MoQResourceWithRawResponse:
70+
def __init__(self, moq: MoQResource) -> None:
7171
self._moq = moq
7272

7373
@cached_property
7474
def relays(self) -> RelaysResourceWithRawResponse:
7575
return RelaysResourceWithRawResponse(self._moq.relays)
7676

7777

78-
class AsyncMoqResourceWithRawResponse:
79-
def __init__(self, moq: AsyncMoqResource) -> None:
78+
class AsyncMoQResourceWithRawResponse:
79+
def __init__(self, moq: AsyncMoQResource) -> None:
8080
self._moq = moq
8181

8282
@cached_property
8383
def relays(self) -> AsyncRelaysResourceWithRawResponse:
8484
return AsyncRelaysResourceWithRawResponse(self._moq.relays)
8585

8686

87-
class MoqResourceWithStreamingResponse:
88-
def __init__(self, moq: MoqResource) -> None:
87+
class MoQResourceWithStreamingResponse:
88+
def __init__(self, moq: MoQResource) -> None:
8989
self._moq = moq
9090

9191
@cached_property
9292
def relays(self) -> RelaysResourceWithStreamingResponse:
9393
return RelaysResourceWithStreamingResponse(self._moq.relays)
9494

9595

96-
class AsyncMoqResourceWithStreamingResponse:
97-
def __init__(self, moq: AsyncMoqResource) -> None:
96+
class AsyncMoQResourceWithStreamingResponse:
97+
def __init__(self, moq: AsyncMoQResource) -> None:
9898
self._moq = moq
9999

100100
@cached_property

0 commit comments

Comments
 (0)