parameters: (self,
                 project,
                 zone,
                 instance_group,
                 port,
                 job_name='worker',
                 credentials='default',
                 service=None)
docstring: Creates a new GceClusterResolver object.
  
      This takes in a few parameters and creates a GceClusterResolver project. It
      will then use these parameters to query the GCE API for the IP addresses of
      each instance in the instance group.
  
      Args:
        project: Name of the GCE project
        zone: Zone of the GCE instance group
        instance_group: Name of the GCE instance group
        port: Port of the listening TensorFlow server (default: 8470)
        job_name: Name of the TensorFlow job this set of instances belongs to
        credentials: GCE Credentials. If nothing is specified, this defaults to
          GoogleCredentials.get_application_default()
        service: The GCE API object returned by the googleapiclient.discovery
          function. (Default: discovery.build('compute', 'v1')). If you specify a
          custom service object, then the credentials parameter will be ignored.
  
      Raises:
        ImportError: If the googleapiclient is not installed.
docstring_summary: Creates a new GceClusterResolver object.
docstring_tokens: Creates a new GceClusterResolver object .
function: def __init__(self,
                 project,
                 zone,
                 instance_group,
                 port,
                 job_name='worker',
                 credentials='default',
                 service=None):
      """Creates a new GceClusterResolver object.
  
      This takes in a few parameters and creates a GceClusterResolver project. It
      will then use these parameters to query the GCE API for the IP addresses of
      each instance in the instance group.
  
      Args:
        project: Name of the GCE project
        zone: Zone of the GCE instance group
        instance_group: Name of the GCE instance group
        port: Port of the listening TensorFlow server (default: 8470)
        job_name: Name of the TensorFlow job this set of instances belongs to
        credentials: GCE Credentials. If nothing is specified, this defaults to
          GoogleCredentials.get_application_default()
        service: The GCE API object returned by the googleapiclient.discovery
          function. (Default: discovery.build('compute', 'v1')). If you specify a
          custom service object, then the credentials parameter will be ignored.
  
      Raises:
        ImportError: If the googleapiclient is not installed.
      """
      self._project = project
      self._zone = zone
      self._instance_group = instance_group
      self._job_name = job_name
      self._port = port
      self._credentials = credentials
  
      if credentials == 'default':
        if _GOOGLE_API_CLIENT_INSTALLED:
          self._credentials = GoogleCredentials.get_application_default()
  
      if service is None:
        if not _GOOGLE_API_CLIENT_INSTALLED:
          raise ImportError('googleapiclient must be installed before using the '
                            'GCE cluster resolver')
        self._service = discovery.build(
            'compute', 'v1',
            credentials=self._credentials)
      else:
        self._service = service
function_tokens: def __init__ ( self , project , zone , instance_group , port , job_name = 'worker' , credentials = 'default' , service = None ) : self . _project = project self . _zone = zone self . _instance_group = instance_group self . _job_name = job_name self . _port = port self . _credentials = credentials if credentials == 'default' : if _GOOGLE_API_CLIENT_INSTALLED : self . _credentials = GoogleCredentials . get_application_default ( ) if service is None : if not _GOOGLE_API_CLIENT_INSTALLED : raise ImportError ( 'googleapiclient must be installed before using the ' 'GCE cluster resolver' ) self . _service = discovery . build ( 'compute' , 'v1' , credentials = self . _credentials ) else : self . _service = service