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

Function _findPageTokenName

googleapiclient/discovery.py:1637–1649  ·  view source on GitHub ↗

Search field names for one like a page token. Args: fields: container of string, names of fields. Returns: First name that is either 'pageToken' or 'nextPageToken' if one exists, otherwise None.

(fields)

Source from the content-addressed store, hash-verified

1635
1636
1637def _findPageTokenName(fields):
1638 """Search field names for one like a page token.
1639
1640 Args:
1641 fields: container of string, names of fields.
1642
1643 Returns:
1644 First name that is either 'pageToken' or 'nextPageToken' if one exists,
1645 otherwise None.
1646 """
1647 return next(
1648 (tokenName for tokenName in _PAGE_TOKEN_NAMES if tokenName in fields), None
1649 )
1650
1651
1652def _methodProperties(methodDesc, schema, name):

Callers 2

methodFunction · 0.85
_add_next_methodsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…