Skip to content

Commit 2df93ec

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 2233305
1 parent 652957a commit 2df93ec

4 files changed

Lines changed: 46 additions & 66 deletions

File tree

src/imagekitio/resources/named_transformations.py

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,15 @@ def create(
6767
You can create up to 250 named transformations per account.
6868
6969
Args:
70-
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. Must contain
71-
only alphanumeric characters or `_` (no hyphens), and be unique for your
72-
account. Name matching is case-sensitive.
70+
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
71+
case-sensitive, contains only alphanumeric characters or `_` (underscore), and
72+
is unique across all named transformations for your account.
7373
74-
transformation: The transformation string this name refers to, for example
75-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
76-
is validated. The string must be a valid ImageKit transformation and cannot
77-
itself reference another named transformation (no nesting). Learn more about the
78-
[transformation syntax](https://imagekit.io/docs/transformations).
74+
transformation: The transformation string this named transformation refers to. Learn more about
75+
the [transformation string syntax](https://imagekit.io/docs/transformations).
7976
80-
enabled: Whether the named transformation is currently enabled. When this is set to
81-
`false`, requests using such disabled named transformations fail at delivery
82-
time.
77+
enabled: Whether the named transformation is currently enabled. When set to `false`,
78+
requests using this named transformation fail at delivery time.
8379
8480
extra_headers: Send extra headers
8581
@@ -135,15 +131,12 @@ def update(
135131
enabled: Whether the named transformation is enabled. Omit to leave the current value
136132
unchanged.
137133
138-
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. Must contain
139-
only alphanumeric characters or `_` (no hyphens), and be unique for your
140-
account. Name matching is case-sensitive.
134+
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
135+
case-sensitive, contains only alphanumeric characters or `_` (underscore), and
136+
is unique across all named transformations for your account.
141137
142-
transformation: The transformation string this name refers to, for example
143-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
144-
is validated. The string must be a valid ImageKit transformation and cannot
145-
itself reference another named transformation (no nesting). Learn more about the
146-
[transformation syntax](https://imagekit.io/docs/transformations).
138+
transformation: The transformation string this named transformation refers to. Learn more about
139+
the [transformation string syntax](https://imagekit.io/docs/transformations).
147140
148141
extra_headers: Send extra headers
149142
@@ -310,19 +303,15 @@ async def create(
310303
You can create up to 250 named transformations per account.
311304
312305
Args:
313-
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. Must contain
314-
only alphanumeric characters or `_` (no hyphens), and be unique for your
315-
account. Name matching is case-sensitive.
306+
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
307+
case-sensitive, contains only alphanumeric characters or `_` (underscore), and
308+
is unique across all named transformations for your account.
316309
317-
transformation: The transformation string this name refers to, for example
318-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
319-
is validated. The string must be a valid ImageKit transformation and cannot
320-
itself reference another named transformation (no nesting). Learn more about the
321-
[transformation syntax](https://imagekit.io/docs/transformations).
310+
transformation: The transformation string this named transformation refers to. Learn more about
311+
the [transformation string syntax](https://imagekit.io/docs/transformations).
322312
323-
enabled: Whether the named transformation is currently enabled. When this is set to
324-
`false`, requests using such disabled named transformations fail at delivery
325-
time.
313+
enabled: Whether the named transformation is currently enabled. When set to `false`,
314+
requests using this named transformation fail at delivery time.
326315
327316
extra_headers: Send extra headers
328317
@@ -378,15 +367,12 @@ async def update(
378367
enabled: Whether the named transformation is enabled. Omit to leave the current value
379368
unchanged.
380369
381-
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. Must contain
382-
only alphanumeric characters or `_` (no hyphens), and be unique for your
383-
account. Name matching is case-sensitive.
370+
name: Alias for the transformation string, used in URLs as `tr:n-<name>`. This is
371+
case-sensitive, contains only alphanumeric characters or `_` (underscore), and
372+
is unique across all named transformations for your account.
384373
385-
transformation: The transformation string this name refers to, for example
386-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
387-
is validated. The string must be a valid ImageKit transformation and cannot
388-
itself reference another named transformation (no nesting). Learn more about the
389-
[transformation syntax](https://imagekit.io/docs/transformations).
374+
transformation: The transformation string this named transformation refers to. Learn more about
375+
the [transformation string syntax](https://imagekit.io/docs/transformations).
390376
391377
extra_headers: Send extra headers
392378

src/imagekitio/types/named_transformation_create_params.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,20 @@ class NamedTransformationCreateParams(TypedDict, total=False):
1111
name: Required[str]
1212
"""Alias for the transformation string, used in URLs as `tr:n-<name>`.
1313
14-
Must contain only alphanumeric characters or `_` (no hyphens), and be unique for
15-
your account. Name matching is case-sensitive.
14+
This is case-sensitive, contains only alphanumeric characters or `_`
15+
(underscore), and is unique across all named transformations for your account.
1616
"""
1717

1818
transformation: Required[str]
19-
"""
20-
The transformation string this name refers to, for example
21-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
22-
is validated. The string must be a valid ImageKit transformation and cannot
23-
itself reference another named transformation (no nesting). Learn more about the
24-
[transformation syntax](https://imagekit.io/docs/transformations).
19+
"""The transformation string this named transformation refers to.
20+
21+
Learn more about the
22+
[transformation string syntax](https://imagekit.io/docs/transformations).
2523
"""
2624

2725
enabled: bool
2826
"""Whether the named transformation is currently enabled.
2927
30-
When this is set to `false`, requests using such disabled named transformations
31-
fail at delivery time.
28+
When set to `false`, requests using this named transformation fail at delivery
29+
time.
3230
"""

src/imagekitio/types/named_transformation_update_params.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ class NamedTransformationUpdateParams(TypedDict, total=False):
1717
name: str
1818
"""Alias for the transformation string, used in URLs as `tr:n-<name>`.
1919
20-
Must contain only alphanumeric characters or `_` (no hyphens), and be unique for
21-
your account. Name matching is case-sensitive.
20+
This is case-sensitive, contains only alphanumeric characters or `_`
21+
(underscore), and is unique across all named transformations for your account.
2222
"""
2323

2424
transformation: str
25-
"""
26-
The transformation string this name refers to, for example
27-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
28-
is validated. The string must be a valid ImageKit transformation and cannot
29-
itself reference another named transformation (no nesting). Learn more about the
30-
[transformation syntax](https://imagekit.io/docs/transformations).
25+
"""The transformation string this named transformation refers to.
26+
27+
Learn more about the
28+
[transformation string syntax](https://imagekit.io/docs/transformations).
3129
"""

src/imagekitio/types/shared/named_transformation.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,20 @@ class NamedTransformation(BaseModel):
2424
enabled: Optional[bool] = None
2525
"""Whether the named transformation is currently enabled.
2626
27-
When this is set to `false`, requests using such disabled named transformations
28-
fail at delivery time.
27+
When set to `false`, requests using this named transformation fail at delivery
28+
time.
2929
"""
3030

3131
name: Optional[str] = None
3232
"""Alias for the transformation string, used in URLs as `tr:n-<name>`.
3333
34-
Must contain only alphanumeric characters or `_` (no hyphens), and be unique for
35-
your account. Name matching is case-sensitive.
34+
This is case-sensitive, contains only alphanumeric characters or `_`
35+
(underscore), and is unique across all named transformations for your account.
3636
"""
3737

3838
transformation: Optional[str] = None
39-
"""
40-
The transformation string this name refers to, for example
41-
`w-150,h-150,fo-center,cm-resize`. The `tr:` prefix is optional; if present, it
42-
is validated. The string must be a valid ImageKit transformation and cannot
43-
itself reference another named transformation (no nesting). Learn more about the
44-
[transformation syntax](https://imagekit.io/docs/transformations).
39+
"""The transformation string this named transformation refers to.
40+
41+
Learn more about the
42+
[transformation string syntax](https://imagekit.io/docs/transformations).
4543
"""

0 commit comments

Comments
 (0)