/*
 * Copyright (C) 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.cloud.genomics.utils;

import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;

import java.io.*;

public class GenomicsAuth {
  /**
   * This is the main Genomics API scope that will be needed by nearly all clients.
   */
  public static final String GENOMICS_SCOPE = "https://www.googleapis.com/auth/genomics";

  private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();

  /**
   *
   * @param clientSecretsFilename The path to the client secrets file that will be loaded.
   * @return A GoogleClientSecrets object that can be used with a GoogleAuthorizationCodeFlow.
   * @throws java.io.FileNotFoundException if the client secrets file doesn't exist
   *     (this usually should be passed on to the user)
   * @throws java.io.IOException if the file couldn't be parsed into a GoogleClientSecrets object.
   */
  public static GoogleClientSecrets loadClientSecrets(String clientSecretsFilename)
      throws IOException {
    InputStream inputStream = new FileInputStream(new File(clientSecretsFilename));
    return GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(inputStream));
  }

}
@@ -913,20 +913,17 @@
 hat 
-will be need
+is requir
 ed b
@@ -935,22 +935,24 @@
 rly all 
-client
+API call
 s.%0A   */
@@ -1049,99 +1049,632 @@
 %0A%0A  
-private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();%0A%0A  /**
+/**%0A   * The BigQuery API scope is needed to export variants to BigQuery.%0A   */%0A  public static final String BIGQUERY_SCOPE = %22https://www.googleapis.com/auth/bigquery%22;%0A%0A  /**%0A   * The Devstorage API scope is needed to import from or export to Google Cloud Storage.%0A   */%0A  public static final String DEVSTORAGE_SCOPE =%0A      %22https://www.googleapis.com/auth/devstorage.read_write%22;%0A%0A  private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();%0A%0A  /**%0A   * Loads a client secrets file into an GoogleClientSecrets object that can be used to%0A   * send authorized requests to the Google Genomics API.
 %0A   
@@ -1948,64 +1948,9 @@
 xist
-%0A   *     (this usually should be passed on to the user)
+.
 %0A   

Add additional api scopes, clarify comments