Search in sources :

Example 6 with GcsProperties

use of com.netflix.spinnaker.front50.config.GcsProperties in project halyard by spinnaker.

the class GCSValidator method getGoogleCloudStorageProperties.

public GcsProperties getGoogleCloudStorageProperties(GcsPersistentStore n) {
    GcsProperties gcsProperties = new GcsProperties();
    Path jsonPath = validatingFileDecryptPath(n.getJsonPath());
    gcsProperties.setJsonPath(jsonPath.toString());
    gcsProperties.setProject(n.getProject());
    gcsProperties.setBucket(n.getBucket());
    gcsProperties.setBucketLocation(n.getBucketLocation());
    return gcsProperties;
}
Also used : Path(java.nio.file.Path) GcsProperties(com.netflix.spinnaker.front50.config.GcsProperties)

Aggregations

GcsProperties (com.netflix.spinnaker.front50.config.GcsProperties)4 GcsStorageService (com.netflix.spinnaker.front50.model.GcsStorageService)4 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)3 Credentials (com.google.auth.Credentials)2 Storage (com.google.cloud.storage.Storage)2 Path (java.nio.file.Path)2 ExecutorService (java.util.concurrent.ExecutorService)2 GoogleNamedAccountCredentials (com.netflix.spinnaker.clouddriver.google.security.GoogleNamedAccountCredentials)1 Pipeline (com.netflix.spinnaker.front50.api.model.pipeline.Pipeline)1 PipelineMixins (com.netflix.spinnaker.front50.jackson.mixins.PipelineMixins)1 DefaultObjectKeyLoader (com.netflix.spinnaker.front50.model.DefaultObjectKeyLoader)1 ObjectKeyLoader (com.netflix.spinnaker.front50.model.ObjectKeyLoader)1 DefaultApplicationPermissionDAO (com.netflix.spinnaker.front50.model.application.DefaultApplicationPermissionDAO)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1