def __init__(self, method: Callable[..., Awaitable[backup.ListBackupsResponse]], request: backup.ListBackupsRequest, response: backup.ListBackupsResponse, *, metadata: Sequence[Tuple[str, str]] = ()): """Instantiate the pager. Args: method (Callable): The method that was originally called, and which instantiated this pager. request (:class:`~.backup.ListBackupsRequest`): The initial request object. response (:class:`~.backup.ListBackupsResponse`): 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 = backup.ListBackupsRequest(request) self._response = response self._metadata = metadata
def __init__(self, method: Callable[..., backup.ListBackupsResponse], request: backup.ListBackupsRequest, response: backup.ListBackupsResponse, *, 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.spanner_admin_database_v1.types.ListBackupsRequest): The initial request object. response (google.cloud.spanner_admin_database_v1.types.ListBackupsResponse): 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 = backup.ListBackupsRequest(request) self._response = response self._metadata = metadata
def __init__( self, method, request, response, **_3to2kwargs ): if 'metadata' in _3to2kwargs: metadata = _3to2kwargs['metadata']; del _3to2kwargs['metadata'] else: metadata = () """Instantiate the pager. Args: method (Callable): The method that was originally called, and which instantiated this pager. request (:class:`~.backup.ListBackupsRequest`): The initial request object. response (:class:`~.backup.ListBackupsResponse`): 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 = backup.ListBackupsRequest(request) self._response = response self._metadata = metadata