Skip to content

Commit d64e16c

Browse files
chore(internal): codegen related update
1 parent 6ad6dc6 commit d64e16c

7 files changed

Lines changed: 50 additions & 0 deletions

File tree

src/unlayer/_client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,21 @@ def convert(self) -> ConvertResource:
115115

116116
@cached_property
117117
def projects(self) -> ProjectsResource:
118+
"""Project details and configuration."""
118119
from .resources.projects import ProjectsResource
119120

120121
return ProjectsResource(self)
121122

122123
@cached_property
123124
def templates(self) -> TemplatesResource:
125+
"""Template management and retrieval."""
124126
from .resources.templates import TemplatesResource
125127

126128
return TemplatesResource(self)
127129

128130
@cached_property
129131
def workspaces(self) -> WorkspacesResource:
132+
"""Workspace access and management."""
130133
from .resources.workspaces import WorkspacesResource
131134

132135
return WorkspacesResource(self)
@@ -345,18 +348,21 @@ def convert(self) -> AsyncConvertResource:
345348

346349
@cached_property
347350
def projects(self) -> AsyncProjectsResource:
351+
"""Project details and configuration."""
348352
from .resources.projects import AsyncProjectsResource
349353

350354
return AsyncProjectsResource(self)
351355

352356
@cached_property
353357
def templates(self) -> AsyncTemplatesResource:
358+
"""Template management and retrieval."""
354359
from .resources.templates import AsyncTemplatesResource
355360

356361
return AsyncTemplatesResource(self)
357362

358363
@cached_property
359364
def workspaces(self) -> AsyncWorkspacesResource:
365+
"""Workspace access and management."""
360366
from .resources.workspaces import AsyncWorkspacesResource
361367

362368
return AsyncWorkspacesResource(self)
@@ -515,18 +521,21 @@ def convert(self) -> convert.ConvertResourceWithRawResponse:
515521

516522
@cached_property
517523
def projects(self) -> projects.ProjectsResourceWithRawResponse:
524+
"""Project details and configuration."""
518525
from .resources.projects import ProjectsResourceWithRawResponse
519526

520527
return ProjectsResourceWithRawResponse(self._client.projects)
521528

522529
@cached_property
523530
def templates(self) -> templates.TemplatesResourceWithRawResponse:
531+
"""Template management and retrieval."""
524532
from .resources.templates import TemplatesResourceWithRawResponse
525533

526534
return TemplatesResourceWithRawResponse(self._client.templates)
527535

528536
@cached_property
529537
def workspaces(self) -> workspaces.WorkspacesResourceWithRawResponse:
538+
"""Workspace access and management."""
530539
from .resources.workspaces import WorkspacesResourceWithRawResponse
531540

532541
return WorkspacesResourceWithRawResponse(self._client.workspaces)
@@ -546,18 +555,21 @@ def convert(self) -> convert.AsyncConvertResourceWithRawResponse:
546555

547556
@cached_property
548557
def projects(self) -> projects.AsyncProjectsResourceWithRawResponse:
558+
"""Project details and configuration."""
549559
from .resources.projects import AsyncProjectsResourceWithRawResponse
550560

551561
return AsyncProjectsResourceWithRawResponse(self._client.projects)
552562

553563
@cached_property
554564
def templates(self) -> templates.AsyncTemplatesResourceWithRawResponse:
565+
"""Template management and retrieval."""
555566
from .resources.templates import AsyncTemplatesResourceWithRawResponse
556567

557568
return AsyncTemplatesResourceWithRawResponse(self._client.templates)
558569

559570
@cached_property
560571
def workspaces(self) -> workspaces.AsyncWorkspacesResourceWithRawResponse:
572+
"""Workspace access and management."""
561573
from .resources.workspaces import AsyncWorkspacesResourceWithRawResponse
562574

563575
return AsyncWorkspacesResourceWithRawResponse(self._client.workspaces)
@@ -577,18 +589,21 @@ def convert(self) -> convert.ConvertResourceWithStreamingResponse:
577589

578590
@cached_property
579591
def projects(self) -> projects.ProjectsResourceWithStreamingResponse:
592+
"""Project details and configuration."""
580593
from .resources.projects import ProjectsResourceWithStreamingResponse
581594

582595
return ProjectsResourceWithStreamingResponse(self._client.projects)
583596

584597
@cached_property
585598
def templates(self) -> templates.TemplatesResourceWithStreamingResponse:
599+
"""Template management and retrieval."""
586600
from .resources.templates import TemplatesResourceWithStreamingResponse
587601

588602
return TemplatesResourceWithStreamingResponse(self._client.templates)
589603

590604
@cached_property
591605
def workspaces(self) -> workspaces.WorkspacesResourceWithStreamingResponse:
606+
"""Workspace access and management."""
592607
from .resources.workspaces import WorkspacesResourceWithStreamingResponse
593608

594609
return WorkspacesResourceWithStreamingResponse(self._client.workspaces)
@@ -608,18 +623,21 @@ def convert(self) -> convert.AsyncConvertResourceWithStreamingResponse:
608623

609624
@cached_property
610625
def projects(self) -> projects.AsyncProjectsResourceWithStreamingResponse:
626+
"""Project details and configuration."""
611627
from .resources.projects import AsyncProjectsResourceWithStreamingResponse
612628

613629
return AsyncProjectsResourceWithStreamingResponse(self._client.projects)
614630

615631
@cached_property
616632
def templates(self) -> templates.AsyncTemplatesResourceWithStreamingResponse:
633+
"""Template management and retrieval."""
617634
from .resources.templates import AsyncTemplatesResourceWithStreamingResponse
618635

619636
return AsyncTemplatesResourceWithStreamingResponse(self._client.templates)
620637

621638
@cached_property
622639
def workspaces(self) -> workspaces.AsyncWorkspacesResourceWithStreamingResponse:
640+
"""Workspace access and management."""
623641
from .resources.workspaces import AsyncWorkspacesResourceWithStreamingResponse
624642

625643
return AsyncWorkspacesResourceWithStreamingResponse(self._client.workspaces)

src/unlayer/resources/convert/convert.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
class ConvertResource(SyncAPIResource):
2828
@cached_property
2929
def full_to_simple(self) -> FullToSimpleResource:
30+
"""Design schema conversion between Full and Simple formats."""
3031
return FullToSimpleResource(self._client)
3132

3233
@cached_property
3334
def simple_to_full(self) -> SimpleToFullResource:
35+
"""Design schema conversion between Full and Simple formats."""
3436
return SimpleToFullResource(self._client)
3537

3638
@cached_property
@@ -56,10 +58,12 @@ def with_streaming_response(self) -> ConvertResourceWithStreamingResponse:
5658
class AsyncConvertResource(AsyncAPIResource):
5759
@cached_property
5860
def full_to_simple(self) -> AsyncFullToSimpleResource:
61+
"""Design schema conversion between Full and Simple formats."""
5962
return AsyncFullToSimpleResource(self._client)
6063

6164
@cached_property
6265
def simple_to_full(self) -> AsyncSimpleToFullResource:
66+
"""Design schema conversion between Full and Simple formats."""
6367
return AsyncSimpleToFullResource(self._client)
6468

6569
@cached_property
@@ -88,10 +92,12 @@ def __init__(self, convert: ConvertResource) -> None:
8892

8993
@cached_property
9094
def full_to_simple(self) -> FullToSimpleResourceWithRawResponse:
95+
"""Design schema conversion between Full and Simple formats."""
9196
return FullToSimpleResourceWithRawResponse(self._convert.full_to_simple)
9297

9398
@cached_property
9499
def simple_to_full(self) -> SimpleToFullResourceWithRawResponse:
100+
"""Design schema conversion between Full and Simple formats."""
95101
return SimpleToFullResourceWithRawResponse(self._convert.simple_to_full)
96102

97103

@@ -101,10 +107,12 @@ def __init__(self, convert: AsyncConvertResource) -> None:
101107

102108
@cached_property
103109
def full_to_simple(self) -> AsyncFullToSimpleResourceWithRawResponse:
110+
"""Design schema conversion between Full and Simple formats."""
104111
return AsyncFullToSimpleResourceWithRawResponse(self._convert.full_to_simple)
105112

106113
@cached_property
107114
def simple_to_full(self) -> AsyncSimpleToFullResourceWithRawResponse:
115+
"""Design schema conversion between Full and Simple formats."""
108116
return AsyncSimpleToFullResourceWithRawResponse(self._convert.simple_to_full)
109117

110118

@@ -114,10 +122,12 @@ def __init__(self, convert: ConvertResource) -> None:
114122

115123
@cached_property
116124
def full_to_simple(self) -> FullToSimpleResourceWithStreamingResponse:
125+
"""Design schema conversion between Full and Simple formats."""
117126
return FullToSimpleResourceWithStreamingResponse(self._convert.full_to_simple)
118127

119128
@cached_property
120129
def simple_to_full(self) -> SimpleToFullResourceWithStreamingResponse:
130+
"""Design schema conversion between Full and Simple formats."""
121131
return SimpleToFullResourceWithStreamingResponse(self._convert.simple_to_full)
122132

123133

@@ -127,8 +137,10 @@ def __init__(self, convert: AsyncConvertResource) -> None:
127137

128138
@cached_property
129139
def full_to_simple(self) -> AsyncFullToSimpleResourceWithStreamingResponse:
140+
"""Design schema conversion between Full and Simple formats."""
130141
return AsyncFullToSimpleResourceWithStreamingResponse(self._convert.full_to_simple)
131142

132143
@cached_property
133144
def simple_to_full(self) -> AsyncSimpleToFullResourceWithStreamingResponse:
145+
"""Design schema conversion between Full and Simple formats."""
134146
return AsyncSimpleToFullResourceWithStreamingResponse(self._convert.simple_to_full)

src/unlayer/resources/convert/full_to_simple.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525

2626
class FullToSimpleResource(SyncAPIResource):
27+
"""Design schema conversion between Full and Simple formats."""
28+
2729
@cached_property
2830
def with_raw_response(self) -> FullToSimpleResourceWithRawResponse:
2931
"""
@@ -91,6 +93,8 @@ def create(
9193

9294

9395
class AsyncFullToSimpleResource(AsyncAPIResource):
96+
"""Design schema conversion between Full and Simple formats."""
97+
9498
@cached_property
9599
def with_raw_response(self) -> AsyncFullToSimpleResourceWithRawResponse:
96100
"""

src/unlayer/resources/convert/simple_to_full.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525

2626
class SimpleToFullResource(SyncAPIResource):
27+
"""Design schema conversion between Full and Simple formats."""
28+
2729
@cached_property
2830
def with_raw_response(self) -> SimpleToFullResourceWithRawResponse:
2931
"""
@@ -86,6 +88,8 @@ def create(
8688

8789

8890
class AsyncSimpleToFullResource(AsyncAPIResource):
91+
"""Design schema conversion between Full and Simple formats."""
92+
8993
@cached_property
9094
def with_raw_response(self) -> AsyncSimpleToFullResourceWithRawResponse:
9195
"""

src/unlayer/resources/projects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121

2222
class ProjectsResource(SyncAPIResource):
23+
"""Project details and configuration."""
24+
2325
@cached_property
2426
def with_raw_response(self) -> ProjectsResourceWithRawResponse:
2527
"""
@@ -74,6 +76,8 @@ def retrieve(
7476

7577

7678
class AsyncProjectsResource(AsyncAPIResource):
79+
"""Project details and configuration."""
80+
7781
@cached_property
7882
def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse:
7983
"""

src/unlayer/resources/templates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727

2828
class TemplatesResource(SyncAPIResource):
29+
"""Template management and retrieval."""
30+
2931
@cached_property
3032
def with_raw_response(self) -> TemplatesResourceWithRawResponse:
3133
"""
@@ -148,6 +150,8 @@ def list(
148150

149151

150152
class AsyncTemplatesResource(AsyncAPIResource):
153+
"""Template management and retrieval."""
154+
151155
@cached_property
152156
def with_raw_response(self) -> AsyncTemplatesResourceWithRawResponse:
153157
"""

src/unlayer/resources/workspaces.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222

2323
class WorkspacesResource(SyncAPIResource):
24+
"""Workspace access and management."""
25+
2426
@cached_property
2527
def with_raw_response(self) -> WorkspacesResourceWithRawResponse:
2628
"""
@@ -100,6 +102,8 @@ def list(
100102

101103

102104
class AsyncWorkspacesResource(AsyncAPIResource):
105+
"""Workspace access and management."""
106+
103107
@cached_property
104108
def with_raw_response(self) -> AsyncWorkspacesResourceWithRawResponse:
105109
"""

0 commit comments

Comments
 (0)