@@ -0,0 +1,1760 @@
+/*%0A * Copyright 2017 Google, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.netflix.spinnaker.clouddriver.appengine.storage.controllers;%0A%0Aimport com.netflix.spinnaker.clouddriver.appengine.storage.config.StorageConfigurationProperties;%0A%0Aimport groovy.util.logging.Slf4j;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A@Slf4j%0A@RestController%0A@RequestMapping(%22/appengine/storage%22)%0Aclass AppengineStorageController %7B%0A%0A  @Autowired(required = false)%0A  StorageConfigurationProperties storageAccountInfo;%0A%0A  @RequestMapping(value = %22/list%22, method = RequestMethod.GET)%0A  List%3CString%3E list() %7B%0A    if (storageAccountInfo == null) %7B%0A      return new ArrayList();%0A    %7D%0A    List%3CString%3E results = new ArrayList%3CString%3E(storageAccountInfo.getAccounts().size());%0A    for (StorageConfigurationProperties.ManagedAccount account : storageAccountInfo.getAccounts()) %7B%0A        results.add(account.getName());%0A    %7D%0A    return results;%0A  %7D%0A%7D%0A

Add AppengineStorageController to list accounts (#1957)