MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / _new_id

Method _new_id

googleapiclient/http.py:1397–1408  ·  view source on GitHub ↗

Create a new id. Auto incrementing number that avoids conflicts with ids already used. Returns: string, a new unique id.

(self)

Source from the content-addressed store, hash-verified

1395 return resp, content
1396
1397 def _new_id(self):
1398 """Create a new id.
1399
1400 Auto incrementing number that avoids conflicts with ids already used.
1401
1402 Returns:
1403 string, a new unique id.
1404 """
1405 self._last_auto_id += 1
1406 while str(self._last_auto_id) in self._requests:
1407 self._last_auto_id += 1
1408 return str(self._last_auto_id)
1409
1410 @util.positional(2)
1411 def add(self, request, callback=None, request_id=None):

Callers 2

addMethod · 0.95
test_new_idMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_new_idMethod · 0.76