@@ -44,7 +44,7 @@ def __init__(self, gax_api):
4444 self ._gax_api = gax_api
4545
4646 def list_entries (self , projects , filter_ = '' , order_by = '' ,
47- page_size = 0 , page_token = INITIAL_PAGE ):
47+ page_size = 0 , page_token = None ):
4848 """Return a page of log entry resources.
4949
5050 :type projects: list of strings
@@ -73,6 +73,8 @@ def list_entries(self, projects, filter_='', order_by='',
7373 if not None, indicates that more entries can be retrieved
7474 with another call (pass that value as ``page_token``).
7575 """
76+ if page_token is None :
77+ page_token = INITIAL_PAGE
7678 options = CallOptions (page_token = page_token )
7779 page_iter = self ._gax_api .list_log_entries (
7880 projects , filter_ , order_by , page_size , options )
@@ -135,7 +137,7 @@ class _SinksAPI(object):
135137 def __init__ (self , gax_api ):
136138 self ._gax_api = gax_api
137139
138- def list_sinks (self , project , page_size = 0 , page_token = INITIAL_PAGE ):
140+ def list_sinks (self , project , page_size = 0 , page_token = None ):
139141 """List sinks for the project associated with this client.
140142
141143 :type project: string
@@ -155,6 +157,8 @@ def list_sinks(self, project, page_size=0, page_token=INITIAL_PAGE):
155157 if not None, indicates that more sinks can be retrieved
156158 with another call (pass that value as ``page_token``).
157159 """
160+ if page_token is None :
161+ page_token = INITIAL_PAGE
158162 options = CallOptions (page_token = page_token )
159163 path = 'projects/%s' % (project ,)
160164 page_iter = self ._gax_api .list_sinks (path , page_size , options )
@@ -279,7 +283,7 @@ class _MetricsAPI(object):
279283 def __init__ (self , gax_api ):
280284 self ._gax_api = gax_api
281285
282- def list_metrics (self , project , page_size = 0 , page_token = INITIAL_PAGE ):
286+ def list_metrics (self , project , page_size = 0 , page_token = None ):
283287 """List metrics for the project associated with this client.
284288
285289 :type project: string
@@ -299,6 +303,8 @@ def list_metrics(self, project, page_size=0, page_token=INITIAL_PAGE):
299303 if not None, indicates that more metrics can be retrieved
300304 with another call (pass that value as ``page_token``).
301305 """
306+ if page_token is None :
307+ page_token = INITIAL_PAGE
302308 options = CallOptions (page_token = page_token )
303309 path = 'projects/%s' % (project ,)
304310 page_iter = self ._gax_api .list_log_metrics (path , page_size , options )
0 commit comments