google-serviceusage/src/main/java/bio/terra/cloudres/google/serviceusage/ServiceUsageCow.java
/** Create a {@link ServiceUsageCow} with some default configurations for convenience. */
Create a  ServiceUsageCow with some default configurations for convenience.
Create a ServiceUsageCow with some default configurations for convenience .
public static ServiceUsageCow create(
      ClientConfig clientConfig, GoogleCredentials googleCredentials)
      throws GeneralSecurityException, IOException {
    return new ServiceUsageCow(
        clientConfig,
        new ServiceUsage.Builder(
                Defaults.httpTransport(),
                Defaults.jsonFactory(),
                new HttpCredentialsAdapter(
                    googleCredentials.createScoped(ServiceUsageScopes.all())))
            .setApplicationName(clientConfig.getClientName()));
  }
public static ServiceUsageCow create ( ClientConfig clientConfig , GoogleCredentials googleCredentials ) throws GeneralSecurityException , IOException { return new ServiceUsageCow ( clientConfig , new ServiceUsage . Builder ( Defaults . httpTransport ( ) , Defaults . jsonFactory ( ) , new HttpCredentialsAdapter ( googleCredentials . createScoped ( ServiceUsageScopes . all ( ) ) ) ) . setApplicationName ( clientConfig . getClientName ( ) ) ) ; }
Create a {@link ServiceUsageCow} with some default configurations for convenience.
Create a { @link ServiceUsageCow } with some default configurations for convenience .