@@ -52,6 +52,7 @@ def create(
5252 content_type : Literal ["unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ],
5353 name : str ,
5454 metadata : Optional [Dict [str , str ]] | Omit = omit ,
55+ ttl_ms : Optional [int ] | Omit = omit ,
5556 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5657 # The extra values given here take precedence over values defined on the client or passed to this method.
5758 extra_headers : Headers | None = None ,
@@ -72,6 +73,9 @@ def create(
7273
7374 metadata: User defined metadata to attach to the object for organization.
7475
76+ ttl_ms: Optional lifetime of the object in milliseconds, after which the object is
77+ automatically deleted. Time starts ticking after the object is created.
78+
7579 extra_headers: Send extra headers
7680
7781 extra_query: Add additional query parameters to the request
@@ -89,6 +93,7 @@ def create(
8993 "content_type" : content_type ,
9094 "name" : name ,
9195 "metadata" : metadata ,
96+ "ttl_ms" : ttl_ms ,
9297 },
9398 object_create_params .ObjectCreateParams ,
9499 ),
@@ -138,12 +143,12 @@ def retrieve(
138143 def list (
139144 self ,
140145 * ,
141- content_type : str | Omit = omit ,
146+ content_type : Literal [ "unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ] | Omit = omit ,
142147 limit : int | Omit = omit ,
143148 name : str | Omit = omit ,
144149 search : str | Omit = omit ,
145150 starting_after : str | Omit = omit ,
146- state : str | Omit = omit ,
151+ state : Literal [ "UPLOADING" , "READ_ONLY" , "DELETED" , "ERROR" ] | Omit = omit ,
147152 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
148153 # The extra values given here take precedence over values defined on the client or passed to this method.
149154 extra_headers : Headers | None = None ,
@@ -155,17 +160,17 @@ def list(
155160 List all Objects for the authenticated account with pagination support.
156161
157162 Args:
158- content_type: Filter objects by content type.
163+ content_type: Filter storage objects by content type.
159164
160165 limit: The limit of items to return. Default is 20.
161166
162- name: Filter objects by name (partial match supported).
167+ name: Filter storage objects by name (partial match supported).
163168
164169 search: Search by object ID or name.
165170
166171 starting_after: Load the next page of data starting after the item with the given ID.
167172
168- state: Filter objects by state (UPLOADING, READ_ONLY, DELETED) .
173+ state: Filter storage objects by state.
169174
170175 extra_headers: Send extra headers
171176
@@ -328,12 +333,12 @@ def download(
328333 def list_public (
329334 self ,
330335 * ,
331- content_type : str | Omit = omit ,
336+ content_type : Literal [ "unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ] | Omit = omit ,
332337 limit : int | Omit = omit ,
333338 name : str | Omit = omit ,
334339 search : str | Omit = omit ,
335340 starting_after : str | Omit = omit ,
336- state : str | Omit = omit ,
341+ state : Literal [ "UPLOADING" , "READ_ONLY" , "DELETED" , "ERROR" ] | Omit = omit ,
337342 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
338343 # The extra values given here take precedence over values defined on the client or passed to this method.
339344 extra_headers : Headers | None = None ,
@@ -345,17 +350,17 @@ def list_public(
345350 List all public Objects with pagination support.
346351
347352 Args:
348- content_type: Filter objects by content type.
353+ content_type: Filter storage objects by content type.
349354
350355 limit: The limit of items to return. Default is 20.
351356
352- name: Filter objects by name (partial match supported).
357+ name: Filter storage objects by name (partial match supported).
353358
354359 search: Search by object ID or name.
355360
356361 starting_after: Load the next page of data starting after the item with the given ID.
357362
358- state: Filter objects by state (UPLOADING, READ_ONLY, DELETED) .
363+ state: Filter storage objects by state.
359364
360365 extra_headers: Send extra headers
361366
@@ -415,6 +420,7 @@ async def create(
415420 content_type : Literal ["unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ],
416421 name : str ,
417422 metadata : Optional [Dict [str , str ]] | Omit = omit ,
423+ ttl_ms : Optional [int ] | Omit = omit ,
418424 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
419425 # The extra values given here take precedence over values defined on the client or passed to this method.
420426 extra_headers : Headers | None = None ,
@@ -435,6 +441,9 @@ async def create(
435441
436442 metadata: User defined metadata to attach to the object for organization.
437443
444+ ttl_ms: Optional lifetime of the object in milliseconds, after which the object is
445+ automatically deleted. Time starts ticking after the object is created.
446+
438447 extra_headers: Send extra headers
439448
440449 extra_query: Add additional query parameters to the request
@@ -452,6 +461,7 @@ async def create(
452461 "content_type" : content_type ,
453462 "name" : name ,
454463 "metadata" : metadata ,
464+ "ttl_ms" : ttl_ms ,
455465 },
456466 object_create_params .ObjectCreateParams ,
457467 ),
@@ -501,12 +511,12 @@ async def retrieve(
501511 def list (
502512 self ,
503513 * ,
504- content_type : str | Omit = omit ,
514+ content_type : Literal [ "unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ] | Omit = omit ,
505515 limit : int | Omit = omit ,
506516 name : str | Omit = omit ,
507517 search : str | Omit = omit ,
508518 starting_after : str | Omit = omit ,
509- state : str | Omit = omit ,
519+ state : Literal [ "UPLOADING" , "READ_ONLY" , "DELETED" , "ERROR" ] | Omit = omit ,
510520 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
511521 # The extra values given here take precedence over values defined on the client or passed to this method.
512522 extra_headers : Headers | None = None ,
@@ -518,17 +528,17 @@ def list(
518528 List all Objects for the authenticated account with pagination support.
519529
520530 Args:
521- content_type: Filter objects by content type.
531+ content_type: Filter storage objects by content type.
522532
523533 limit: The limit of items to return. Default is 20.
524534
525- name: Filter objects by name (partial match supported).
535+ name: Filter storage objects by name (partial match supported).
526536
527537 search: Search by object ID or name.
528538
529539 starting_after: Load the next page of data starting after the item with the given ID.
530540
531- state: Filter objects by state (UPLOADING, READ_ONLY, DELETED) .
541+ state: Filter storage objects by state.
532542
533543 extra_headers: Send extra headers
534544
@@ -691,12 +701,12 @@ async def download(
691701 def list_public (
692702 self ,
693703 * ,
694- content_type : str | Omit = omit ,
704+ content_type : Literal [ "unspecified" , "text" , "binary" , "gzip" , "tar" , "tgz" ] | Omit = omit ,
695705 limit : int | Omit = omit ,
696706 name : str | Omit = omit ,
697707 search : str | Omit = omit ,
698708 starting_after : str | Omit = omit ,
699- state : str | Omit = omit ,
709+ state : Literal [ "UPLOADING" , "READ_ONLY" , "DELETED" , "ERROR" ] | Omit = omit ,
700710 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
701711 # The extra values given here take precedence over values defined on the client or passed to this method.
702712 extra_headers : Headers | None = None ,
@@ -708,17 +718,17 @@ def list_public(
708718 List all public Objects with pagination support.
709719
710720 Args:
711- content_type: Filter objects by content type.
721+ content_type: Filter storage objects by content type.
712722
713723 limit: The limit of items to return. Default is 20.
714724
715- name: Filter objects by name (partial match supported).
725+ name: Filter storage objects by name (partial match supported).
716726
717727 search: Search by object ID or name.
718728
719729 starting_after: Load the next page of data starting after the item with the given ID.
720730
721- state: Filter objects by state (UPLOADING, READ_ONLY, DELETED) .
731+ state: Filter storage objects by state.
722732
723733 extra_headers: Send extra headers
724734
0 commit comments