Skip to content

iter_describe_tapes

iter_describe_tapes(
    gateway_arn: GatewayARN,
    *,
    config_overrides: Optional[StorageGatewayClientConfig] = None,
    tape_ar_ns: Optional[TapeARNs] = None,
    marker: Optional[Marker] = None,
    limit: Optional[PositiveIntObject] = None,
) -> Iterator[Tape]
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
def iter_describe_tapes(
    self,
    gateway_arn: "capo_storage_gateway.types.gateway_arn.GatewayARN",
    *,
    config_overrides: Optional[StorageGatewayClientConfig] = None,
    tape_ar_ns: Optional["capo_storage_gateway.types.tape_ar_ns.TapeARNs"] = None,
    marker: Optional["capo_storage_gateway.types.marker.Marker"] = None,
    limit: Optional[
        "capo_storage_gateway.types.positive_int_object.PositiveIntObject"
    ] = None,
) -> "Iterator[capo_storage_gateway.types.tape.Tape]":
    _token = marker
    while True:
        _response = self.describe_tapes(
            gateway_arn,
            config_overrides=config_overrides,
            tape_ar_ns=tape_ar_ns,
            marker=_token,
            limit=limit,
        )
        _page = _resolve_path(_response, ("tapes",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break