@RequestMapping(value = "/account/{accountName:.+}", method = RequestMethod.GET) DaemonTask<Halconfig, Account> account(@PathVariable String deploymentName, @PathVariable String providerName, @PathVariable String accountName, @ModelAttribute ValidationSettings validationSettings) { return GenericGetRequest.<Account>builder() .getter(() -> accountService.getProviderAccount(deploymentName, providerName, accountName)) .validator(() -> accountService.validateAccount(deploymentName, providerName, accountName)) .description("Get " + accountName + " account") .build() .execute(validationSettings); }
bindings.put("openstack.default.account", openstackProvider.getPrimaryAccount()); if (openstackProvider.getPrimaryAccount() != null) { OpenstackAccount openstackAccount = (OpenstackAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "openstack", openstackProvider.getPrimaryAccount()); String firstRegion = openstackAccount.getRegions().get(0); bindings.put("openstack.default.region", firstRegion); bindings.put("aws.default.account", awsProvider.getPrimaryAccount()); if (awsProvider.getPrimaryAccount() != null) { AwsAccount awsAccount = (AwsAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "aws", awsProvider.getPrimaryAccount()); AwsProvider.AwsRegion firstRegion = awsAccount.getRegions().get(0); if (firstRegion != null) {
bindings.put("openstack.default.account", openstackProvider.getPrimaryAccount()); if (openstackProvider.getPrimaryAccount() != null) { OpenstackAccount openstackAccount = (OpenstackAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "openstack", openstackProvider.getPrimaryAccount()); String firstRegion = openstackAccount.getRegions().get(0); bindings.put("openstack.default.region", firstRegion); bindings.put("aws.default.account", awsProvider.getPrimaryAccount()); if (awsProvider.getPrimaryAccount() != null) { AwsAccount awsAccount = (AwsAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "aws", awsProvider.getPrimaryAccount()); List<AwsProvider.AwsRegion> regionList = awsAccount.getRegions(); if (!regionList.isEmpty() && regionList.get(0) != null) {
.map(ref -> (DockerRegistryAccount) accountService.getProviderAccount(deploymentName, DOCKER_REGISTRY, ref.getAccountName())) .collect(Collectors.toList());
.map(ref -> (DockerRegistryAccount) accountService.getProviderAccount(deploymentName, DOCKER_REGISTRY, ref.getAccountName())) .collect(Collectors.toList());