generated from kestra-io/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to new StorageInterface
- Loading branch information
1 parent
3a6f71e
commit e3b2bc2
Showing
5 changed files
with
66 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
package io.kestra.storage.gcs; | ||
|
||
import io.micronaut.context.annotation.ConfigurationProperties; | ||
import lombok.Getter; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import jakarta.inject.Singleton; | ||
public interface GcsConfig { | ||
|
||
@Singleton | ||
@Getter | ||
@ConfigurationProperties("kestra.storage.gcs") | ||
public class GcsConfig { | ||
String bucket; | ||
@JsonProperty | ||
@NotNull | ||
@NotBlank | ||
String getBucket(); | ||
|
||
String serviceAccount; | ||
@JsonProperty | ||
String getServiceAccount(); | ||
|
||
String projectId; | ||
@JsonProperty | ||
String getProjectId(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/main/java/io/kestra/storage/gcs/GcsStorageEnabled.java
This file was deleted.
Oops, something went wrong.