Skip to content

GetObjectResponse

Source code in docs_src/capo_mediastore_data/types/get_object_response.py
class GetObjectResponse(TypedDict, closed=True):
    body: "capo_mediastore_data.types.payload_blob.PayloadBlob"
    """<p>The bytes of the object. </p>"""
    cache_control: NotRequired[
        "capo_mediastore_data.types.string_primitive.StringPrimitive"
    ]
    """<p>An optional <code>CacheControl</code> header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9</a>.</p> <p>Headers with a custom user-defined value are also accepted.</p>"""
    content_range: NotRequired[
        "capo_mediastore_data.types.content_range_pattern.ContentRangePattern"
    ]
    """<p>The range of bytes to retrieve.</p>"""
    content_length: NotRequired[
        "capo_mediastore_data.types.non_negative_long.NonNegativeLong"
    ]
    """<p>The length of the object in bytes.</p>"""
    content_type: NotRequired["capo_mediastore_data.types.content_type.ContentType"]
    """<p>The content type of the object.</p>"""
    e_tag: NotRequired["capo_mediastore_data.types.e_tag.ETag"]
    """<p>The ETag that represents a unique instance of the object.</p>"""
    last_modified: NotRequired["capo_mediastore_data.types.time_stamp.TimeStamp"]
    """<p>The date and time that the object was last modified.</p>"""
    status_code: "capo_mediastore_data.types.status_code.statusCode"
    """<p>The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.</p>"""

body instance-attribute

The bytes of the object.

cache_control instance-attribute

cache_control: NotRequired[StringPrimitive]

An optional CacheControl header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

Headers with a custom user-defined value are also accepted.

content_length instance-attribute

content_length: NotRequired[NonNegativeLong]

The length of the object in bytes.

content_range instance-attribute

content_range: NotRequired[ContentRangePattern]

The range of bytes to retrieve.

content_type instance-attribute

content_type: NotRequired[ContentType]

The content type of the object.

e_tag instance-attribute

e_tag: NotRequired[ETag]

The ETag that represents a unique instance of the object.

last_modified instance-attribute

last_modified: NotRequired[TimeStamp]

The date and time that the object was last modified.

status_code instance-attribute

status_code: statusCode

The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.