Example #1
0
    def __init__(self,
            method: Callable[[service.ListKeyRingsRequest],
                service.ListKeyRingsResponse],
            request: service.ListKeyRingsRequest,
            response: service.ListKeyRingsResponse):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (:class:`~.service.ListKeyRingsRequest`):
                The initial request object.
            response (:class:`~.service.ListKeyRingsResponse`):
                The initial response object.
        """
        self._method = method
        self._request = service.ListKeyRingsRequest(request)
        self._response = response
Example #2
0
    def __init__(self,
                 method: Callable[..., service.ListKeyRingsResponse],
                 request: service.ListKeyRingsRequest,
                 response: service.ListKeyRingsResponse,
                 *,
                 metadata: Sequence[Tuple[str, str]] = ()):
        """Instantiate the pager.

        Args:
            method (Callable): The method that was originally called, and
                which instantiated this pager.
            request (google.cloud.kms_v1.types.ListKeyRingsRequest):
                The initial request object.
            response (google.cloud.kms_v1.types.ListKeyRingsResponse):
                The initial response object.
            metadata (Sequence[Tuple[str, str]]): Strings which should be
                sent along with the request as metadata.
        """
        self._method = method
        self._request = service.ListKeyRingsRequest(request)
        self._response = response
        self._metadata = metadata