#NEWLINE# def list_sinks( self , page_size = None , page_token = None ) : #NEWLINE# #INDENT# 'List sinks for the project associated with this client.\n\n        See:\n        https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks/list\n\n        :type page_size: int\n        :param page_size: maximum number of sinks to return, If not passed,\n                          defaults to a value set by the API.\n\n        :type page_token: string\n        :param page_token: opaque marker for the next "page" of sinks. If not\n                           passed, the API will return the first page of\n                           sinks.\n\n        :rtype: tuple, (list, str)\n        :returns: list of :class:`gcloud.logging.sink.Sink`, plus a\n                  "next page token" string:  if not None, indicates that\n                  more sinks can be retrieved with another call (pass that\n                  value as ``page_token``).\n        ' #NEWLINE# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( page_size is not None ) : #NEWLINE# #INDENT# params [ 'pageSize' ] = page_size #NEWLINE# #UNINDENT# if ( page_token is not None ) : #NEWLINE# #INDENT# params [ 'pageToken' ] = page_token #NEWLINE# #UNINDENT# path = ( '/projects/%s/sinks' % ( self . project , ) ) #NEWLINE# resp = self . connection . api_request ( method = 'GET' , path = path , query_params = params ) #NEWLINE# sinks = [ Sink . from_api_repr ( resource , self ) for resource in resp . get ( 'sinks' , ( ) ) ] #NEWLINE# return ( sinks , resp . get ( 'nextPageToken' ) )