def make_secure_channel(credentials, user_agent, host, extra_options=None):
 target = ('%s:%d' % (host, http_client.HTTPS_PORT))
 http_request = google_auth_httplib2.Request(http=httplib2.Http())
 user_agent_option = ('grpc.primary_user_agent', user_agent)
 if (extra_options is not None):
  options = ((user_agent_option,) + extra_options)
 else:
  options = (user_agent_option,)
 return google.auth.transport.grpc.secure_authorized_channel(credentials, http_request, target, options=options)

def make_secure_channel ( credentials , user_agent , host , extra_options = None ) : target = ( '%s:%d' % ( host , http_client . HTTPS_PORT ) ) http_request = google_auth_httplib2 . Request ( http = httplib2 . Http ( ) ) user_agent_option = ( 'grpc.primary_user_agent' , user_agent ) if ( extra_options is not None ) : options = ( ( user_agent_option , ) + extra_options ) else : options = ( user_agent_option , ) return google . auth . transport . grpc . secure_authorized_channel ( credentials , http_request , target , options = options )
makes a secure channel for an rpc service .