Skip to content

Commit e84583b

Browse files
authored
Merge pull request #91 from imagekit-developer/stainless/release
Release SDK updates
2 parents 6760d17 + ec709a5 commit e84583b

8 files changed

Lines changed: 126 additions & 30 deletions

File tree

src/imagekitio/resources/accounts/origins.py

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def create(
5757
base_url_for_canonical_header: str | Omit = omit,
5858
include_canonical_header: bool | Omit = omit,
5959
prefix: str | Omit = omit,
60+
use_iam_role: bool | Omit = omit,
6061
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6162
# The extra values given here take precedence over values defined on the client or passed to this method.
6263
extra_headers: Headers | None = None,
@@ -70,20 +71,23 @@ def create(
7071
Creates a new origin and returns the origin object.
7172
7273
Args:
73-
access_key: Access key for the bucket.
74+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
7475
7576
bucket: S3 bucket name.
7677
7778
name: Display name of the origin.
7879
79-
secret_key: Secret key for the bucket.
80+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
8081
8182
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
8283
8384
include_canonical_header: Whether to send a Canonical header.
8485
8586
prefix: Path prefix inside the bucket.
8687
88+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
89+
`true`, send an empty string for both `accessKey` and `secretKey`.
90+
8791
extra_headers: Send extra headers
8892
8993
extra_query: Add additional query parameters to the request
@@ -161,6 +165,7 @@ def create(
161165
base_url_for_canonical_header: str | Omit = omit,
162166
include_canonical_header: bool | Omit = omit,
163167
prefix: str | Omit = omit,
168+
use_iam_role: bool | Omit = omit,
164169
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
165170
# The extra values given here take precedence over values defined on the client or passed to this method.
166171
extra_headers: Headers | None = None,
@@ -174,20 +179,23 @@ def create(
174179
Creates a new origin and returns the origin object.
175180
176181
Args:
177-
access_key: Access key for the bucket.
182+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
178183
179184
bucket: S3 bucket name.
180185
181186
name: Display name of the origin.
182187
183-
secret_key: Secret key for the bucket.
188+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
184189
185190
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
186191
187192
include_canonical_header: Whether to send a Canonical header.
188193
189194
prefix: Path prefix inside the bucket.
190195
196+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
197+
`true`, send an empty string for both `accessKey` and `secretKey`.
198+
191199
extra_headers: Send extra headers
192200
193201
extra_query: Add additional query parameters to the request
@@ -439,6 +447,7 @@ def create(
439447
base_url_for_canonical_header: str | Omit = omit,
440448
include_canonical_header: bool | Omit = omit,
441449
prefix: str | Omit = omit,
450+
use_iam_role: bool | Omit = omit,
442451
endpoint: str | Omit = omit,
443452
s3_force_path_style: bool | Omit = omit,
444453
base_url: str | Omit = omit,
@@ -473,6 +482,7 @@ def create(
473482
"base_url_for_canonical_header": base_url_for_canonical_header,
474483
"include_canonical_header": include_canonical_header,
475484
"prefix": prefix,
485+
"use_iam_role": use_iam_role,
476486
"endpoint": endpoint,
477487
"s3_force_path_style": s3_force_path_style,
478488
"base_url": base_url,
@@ -509,6 +519,7 @@ def update(
509519
base_url_for_canonical_header: str | Omit = omit,
510520
include_canonical_header: bool | Omit = omit,
511521
prefix: str | Omit = omit,
522+
use_iam_role: bool | Omit = omit,
512523
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
513524
# The extra values given here take precedence over values defined on the client or passed to this method.
514525
extra_headers: Headers | None = None,
@@ -525,20 +536,23 @@ def update(
525536
id: Unique identifier for the origin. This is generated by ImageKit when you create
526537
a new origin.
527538
528-
access_key: Access key for the bucket.
539+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
529540
530541
bucket: S3 bucket name.
531542
532543
name: Display name of the origin.
533544
534-
secret_key: Secret key for the bucket.
545+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
535546
536547
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
537548
538549
include_canonical_header: Whether to send a Canonical header.
539550
540551
prefix: Path prefix inside the bucket.
541552
553+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
554+
`true`, send an empty string for both `accessKey` and `secretKey`.
555+
542556
extra_headers: Send extra headers
543557
544558
extra_query: Add additional query parameters to the request
@@ -621,6 +635,7 @@ def update(
621635
base_url_for_canonical_header: str | Omit = omit,
622636
include_canonical_header: bool | Omit = omit,
623637
prefix: str | Omit = omit,
638+
use_iam_role: bool | Omit = omit,
624639
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
625640
# The extra values given here take precedence over values defined on the client or passed to this method.
626641
extra_headers: Headers | None = None,
@@ -637,20 +652,23 @@ def update(
637652
id: Unique identifier for the origin. This is generated by ImageKit when you create
638653
a new origin.
639654
640-
access_key: Access key for the bucket.
655+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
641656
642657
bucket: S3 bucket name.
643658
644659
name: Display name of the origin.
645660
646-
secret_key: Secret key for the bucket.
661+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
647662
648663
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
649664
650665
include_canonical_header: Whether to send a Canonical header.
651666
652667
prefix: Path prefix inside the bucket.
653668
669+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
670+
`true`, send an empty string for both `accessKey` and `secretKey`.
671+
654672
extra_headers: Send extra headers
655673
656674
extra_query: Add additional query parameters to the request
@@ -923,6 +941,7 @@ def update(
923941
base_url_for_canonical_header: str | Omit = omit,
924942
include_canonical_header: bool | Omit = omit,
925943
prefix: str | Omit = omit,
944+
use_iam_role: bool | Omit = omit,
926945
endpoint: str | Omit = omit,
927946
s3_force_path_style: bool | Omit = omit,
928947
base_url: str | Omit = omit,
@@ -959,6 +978,7 @@ def update(
959978
"base_url_for_canonical_header": base_url_for_canonical_header,
960979
"include_canonical_header": include_canonical_header,
961980
"prefix": prefix,
981+
"use_iam_role": use_iam_role,
962982
"endpoint": endpoint,
963983
"s3_force_path_style": s3_force_path_style,
964984
"base_url": base_url,
@@ -1119,6 +1139,7 @@ async def create(
11191139
base_url_for_canonical_header: str | Omit = omit,
11201140
include_canonical_header: bool | Omit = omit,
11211141
prefix: str | Omit = omit,
1142+
use_iam_role: bool | Omit = omit,
11221143
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11231144
# The extra values given here take precedence over values defined on the client or passed to this method.
11241145
extra_headers: Headers | None = None,
@@ -1132,20 +1153,23 @@ async def create(
11321153
Creates a new origin and returns the origin object.
11331154
11341155
Args:
1135-
access_key: Access key for the bucket.
1156+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
11361157
11371158
bucket: S3 bucket name.
11381159
11391160
name: Display name of the origin.
11401161
1141-
secret_key: Secret key for the bucket.
1162+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
11421163
11431164
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
11441165
11451166
include_canonical_header: Whether to send a Canonical header.
11461167
11471168
prefix: Path prefix inside the bucket.
11481169
1170+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
1171+
`true`, send an empty string for both `accessKey` and `secretKey`.
1172+
11491173
extra_headers: Send extra headers
11501174
11511175
extra_query: Add additional query parameters to the request
@@ -1223,6 +1247,7 @@ async def create(
12231247
base_url_for_canonical_header: str | Omit = omit,
12241248
include_canonical_header: bool | Omit = omit,
12251249
prefix: str | Omit = omit,
1250+
use_iam_role: bool | Omit = omit,
12261251
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
12271252
# The extra values given here take precedence over values defined on the client or passed to this method.
12281253
extra_headers: Headers | None = None,
@@ -1236,20 +1261,23 @@ async def create(
12361261
Creates a new origin and returns the origin object.
12371262
12381263
Args:
1239-
access_key: Access key for the bucket.
1264+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
12401265
12411266
bucket: S3 bucket name.
12421267
12431268
name: Display name of the origin.
12441269
1245-
secret_key: Secret key for the bucket.
1270+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
12461271
12471272
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
12481273
12491274
include_canonical_header: Whether to send a Canonical header.
12501275
12511276
prefix: Path prefix inside the bucket.
12521277
1278+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
1279+
`true`, send an empty string for both `accessKey` and `secretKey`.
1280+
12531281
extra_headers: Send extra headers
12541282
12551283
extra_query: Add additional query parameters to the request
@@ -1501,6 +1529,7 @@ async def create(
15011529
base_url_for_canonical_header: str | Omit = omit,
15021530
include_canonical_header: bool | Omit = omit,
15031531
prefix: str | Omit = omit,
1532+
use_iam_role: bool | Omit = omit,
15041533
endpoint: str | Omit = omit,
15051534
s3_force_path_style: bool | Omit = omit,
15061535
base_url: str | Omit = omit,
@@ -1535,6 +1564,7 @@ async def create(
15351564
"base_url_for_canonical_header": base_url_for_canonical_header,
15361565
"include_canonical_header": include_canonical_header,
15371566
"prefix": prefix,
1567+
"use_iam_role": use_iam_role,
15381568
"endpoint": endpoint,
15391569
"s3_force_path_style": s3_force_path_style,
15401570
"base_url": base_url,
@@ -1571,6 +1601,7 @@ async def update(
15711601
base_url_for_canonical_header: str | Omit = omit,
15721602
include_canonical_header: bool | Omit = omit,
15731603
prefix: str | Omit = omit,
1604+
use_iam_role: bool | Omit = omit,
15741605
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
15751606
# The extra values given here take precedence over values defined on the client or passed to this method.
15761607
extra_headers: Headers | None = None,
@@ -1587,20 +1618,23 @@ async def update(
15871618
id: Unique identifier for the origin. This is generated by ImageKit when you create
15881619
a new origin.
15891620
1590-
access_key: Access key for the bucket.
1621+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
15911622
15921623
bucket: S3 bucket name.
15931624
15941625
name: Display name of the origin.
15951626
1596-
secret_key: Secret key for the bucket.
1627+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
15971628
15981629
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
15991630
16001631
include_canonical_header: Whether to send a Canonical header.
16011632
16021633
prefix: Path prefix inside the bucket.
16031634
1635+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
1636+
`true`, send an empty string for both `accessKey` and `secretKey`.
1637+
16041638
extra_headers: Send extra headers
16051639
16061640
extra_query: Add additional query parameters to the request
@@ -1683,6 +1717,7 @@ async def update(
16831717
base_url_for_canonical_header: str | Omit = omit,
16841718
include_canonical_header: bool | Omit = omit,
16851719
prefix: str | Omit = omit,
1720+
use_iam_role: bool | Omit = omit,
16861721
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
16871722
# The extra values given here take precedence over values defined on the client or passed to this method.
16881723
extra_headers: Headers | None = None,
@@ -1699,20 +1734,23 @@ async def update(
16991734
id: Unique identifier for the origin. This is generated by ImageKit when you create
17001735
a new origin.
17011736
1702-
access_key: Access key for the bucket.
1737+
access_key: Access key for the bucket. When `useIAMRole` is `true`, send an empty string.
17031738
17041739
bucket: S3 bucket name.
17051740
17061741
name: Display name of the origin.
17071742
1708-
secret_key: Secret key for the bucket.
1743+
secret_key: Secret key for the bucket. When `useIAMRole` is `true`, send an empty string.
17091744
17101745
base_url_for_canonical_header: URL used in the Canonical header (if enabled).
17111746
17121747
include_canonical_header: Whether to send a Canonical header.
17131748
17141749
prefix: Path prefix inside the bucket.
17151750
1751+
use_iam_role: Use IAM role for authentication instead of access/secret keys. When set to
1752+
`true`, send an empty string for both `accessKey` and `secretKey`.
1753+
17161754
extra_headers: Send extra headers
17171755
17181756
extra_query: Add additional query parameters to the request
@@ -1985,6 +2023,7 @@ async def update(
19852023
base_url_for_canonical_header: str | Omit = omit,
19862024
include_canonical_header: bool | Omit = omit,
19872025
prefix: str | Omit = omit,
2026+
use_iam_role: bool | Omit = omit,
19882027
endpoint: str | Omit = omit,
19892028
s3_force_path_style: bool | Omit = omit,
19902029
base_url: str | Omit = omit,
@@ -2021,6 +2060,7 @@ async def update(
20212060
"base_url_for_canonical_header": base_url_for_canonical_header,
20222061
"include_canonical_header": include_canonical_header,
20232062
"prefix": prefix,
2063+
"use_iam_role": use_iam_role,
20242064
"endpoint": endpoint,
20252065
"s3_force_path_style": s3_force_path_style,
20262066
"base_url": base_url,

src/imagekitio/types/accounts/origin_create_params.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class S3(TypedDict, total=False):
2424
access_key: Required[Annotated[str, PropertyInfo(alias="accessKey")]]
25-
"""Access key for the bucket."""
25+
"""Access key for the bucket. When `useIAMRole` is `true`, send an empty string."""
2626

2727
bucket: Required[str]
2828
"""S3 bucket name."""
@@ -31,7 +31,7 @@ class S3(TypedDict, total=False):
3131
"""Display name of the origin."""
3232

3333
secret_key: Required[Annotated[str, PropertyInfo(alias="secretKey")]]
34-
"""Secret key for the bucket."""
34+
"""Secret key for the bucket. When `useIAMRole` is `true`, send an empty string."""
3535

3636
type: Required[Literal["S3"]]
3737

@@ -44,6 +44,12 @@ class S3(TypedDict, total=False):
4444
prefix: str
4545
"""Path prefix inside the bucket."""
4646

47+
use_iam_role: Annotated[bool, PropertyInfo(alias="useIAMRole")]
48+
"""Use IAM role for authentication instead of access/secret keys.
49+
50+
When set to `true`, send an empty string for both `accessKey` and `secretKey`.
51+
"""
52+
4753

4854
class S3Compatible(TypedDict, total=False):
4955
access_key: Required[Annotated[str, PropertyInfo(alias="accessKey")]]
@@ -78,7 +84,7 @@ class S3Compatible(TypedDict, total=False):
7884

7985
class CloudinaryBackup(TypedDict, total=False):
8086
access_key: Required[Annotated[str, PropertyInfo(alias="accessKey")]]
81-
"""Access key for the bucket."""
87+
"""Access key for the bucket. When `useIAMRole` is `true`, send an empty string."""
8288

8389
bucket: Required[str]
8490
"""S3 bucket name."""
@@ -87,7 +93,7 @@ class CloudinaryBackup(TypedDict, total=False):
8793
"""Display name of the origin."""
8894

8995
secret_key: Required[Annotated[str, PropertyInfo(alias="secretKey")]]
90-
"""Secret key for the bucket."""
96+
"""Secret key for the bucket. When `useIAMRole` is `true`, send an empty string."""
9197

9298
type: Required[Literal["CLOUDINARY_BACKUP"]]
9399

@@ -100,6 +106,12 @@ class CloudinaryBackup(TypedDict, total=False):
100106
prefix: str
101107
"""Path prefix inside the bucket."""
102108

109+
use_iam_role: Annotated[bool, PropertyInfo(alias="useIAMRole")]
110+
"""Use IAM role for authentication instead of access/secret keys.
111+
112+
When set to `true`, send an empty string for both `accessKey` and `secretKey`.
113+
"""
114+
103115

104116
class WebFolder(TypedDict, total=False):
105117
base_url: Required[Annotated[str, PropertyInfo(alias="baseUrl")]]

0 commit comments

Comments
 (0)