tools/traffic_annotation/scripts/update_annotations_doc.py
def _initialize_service(self, credentials):
    """Initializes the Google Docs API services.

    Args:
      credentials: OAuth2Credentials user credentials.
        The path to the user's credentials.

    Returns:
      googleapiclient.discovery.Resource Doc API service, v1.
    """
    http = credentials.authorize(httplib2.Http())
    return discovery.build("docs", "v1", http=http)
Initializes the Google Docs API services.

    Args:
      credentials: OAuth2Credentials user credentials.
        The path to the user's credentials.

    Returns:
      googleapiclient.discovery.Resource Doc API service, v1.
    
Initializes the Google Docs API services.
Initializes the Google Docs API services .
def _initialize_service(self, credentials):
    http = credentials.authorize(httplib2.Http())
    return discovery.build("docs", "v1", http=http)
def _initialize_service ( self , credentials ) : http = credentials . authorize ( httplib2 . Http ( ) ) return discovery . build ( "docs" , "v1" , http = http )
Initializes the Google Docs API services.
Initializes the Google Docs API services .
"""Initializes the Google Docs API services.

    Args:
      credentials: OAuth2Credentials user credentials.
        The path to the user's credentials.

    Returns:
      googleapiclient.discovery.Resource Doc API service, v1.
    """
googleapiclient.discovery.Resource Doc API service, v1.
googleapiclient . discovery . Resource Doc API service v1 .
self
credentials
OAuth2Credentials user credentials.
The path to the user's credentials.
OAuth2Credentials user credentials . The path to the user ' s credentials .