Skip to content

Resource

Source code in docs_src/capo_api_gateway/types/resource.py
class Resource(TypedDict, closed=True):
    id: NotRequired["capo_api_gateway.types.string.String"]
    """<p>The resource's identifier.</p>"""
    parent_id: NotRequired["capo_api_gateway.types.string.String"]
    """<p>The parent resource's identifier.</p>"""
    path_part: NotRequired["capo_api_gateway.types.string.String"]
    """<p>The last path segment for this resource.</p>"""
    path: NotRequired["capo_api_gateway.types.string.String"]
    """<p>The full path for this resource.</p>"""
    resource_methods: NotRequired["capo_api_gateway.types.map_of_method.MapOfMethod"]
    """<p>Gets an API resource's method of a given HTTP verb.</p>"""

id instance-attribute

id: NotRequired[String]

The resource's identifier.

parent_id instance-attribute

parent_id: NotRequired[String]

The parent resource's identifier.

path instance-attribute

path: NotRequired[String]

The full path for this resource.

path_part instance-attribute

path_part: NotRequired[String]

The last path segment for this resource.

resource_methods instance-attribute

resource_methods: NotRequired[MapOfMethod]

Gets an API resource's method of a given HTTP verb.