Example usage for com.google.api.client.googleapis.services AbstractGoogleClientRequest getAbstractGoogleClient

List of usage examples for com.google.api.client.googleapis.services AbstractGoogleClientRequest getAbstractGoogleClient

Introduction

In this page you can find the example usage for com.google.api.client.googleapis.services AbstractGoogleClientRequest getAbstractGoogleClient.

Prototype

public AbstractGoogleClient getAbstractGoogleClient() 

Source Link

Document

Returns the Google client.

Usage

From source file:com.netflix.spinnaker.clouddriver.google.GoogleExecutorTraits.java

License:Apache License

default <T> T timeExecute(AbstractGoogleClientRequest<T> request, String api, String... tags)
        throws IOException {

    String account = AccountForClient.getAccount(request.getAbstractGoogleClient());
    String[] augmentedTags = new String[tags.length + 2];
    augmentedTags[0] = "account";
    augmentedTags[1] = account;/*from  ww w. j ava  2  s  . c om*/
    System.arraycopy(tags, 0, augmentedTags, 2, tags.length);

    return GoogleExecutor.timeExecute(getRegistry(), request, "google.api", api, augmentedTags);
}