def make_gax_metrics_api(client):
 channel = make_secure_channel(client._connection.credentials, DEFAULT_USER_AGENT, MetricsServiceV2Client.SERVICE_ADDRESS)
 generated = MetricsServiceV2Client(channel=channel)
 return _MetricsAPI(generated, client)

def make_gax_metrics_api ( client ) : channel = make_secure_channel ( client . _connection . credentials , DEFAULT_USER_AGENT , MetricsServiceV2Client . SERVICE_ADDRESS ) generated = MetricsServiceV2Client ( channel = channel ) return _MetricsAPI ( generated , client )
create an instance of the gax metrics api .