diff --git a/portainer-automation/src/main/java/com/hithomelabs/portainer/config/PortainerAutomationProperties.java b/portainer-automation/src/main/java/com/hithomelabs/portainer/config/PortainerAutomationProperties.java new file mode 100644 index 0000000..8628909 --- /dev/null +++ b/portainer-automation/src/main/java/com/hithomelabs/portainer/config/PortainerAutomationProperties.java @@ -0,0 +1,55 @@ +package com.hithomelabs.portainer.config; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +@ConfigurationProperties(prefix = "portainer") +public class PortainerAutomationProperties { + private String baseUrl; + private String apiKey; + private Long endpointId; + private Service service = new Service(); + + public String getBaseUrl() { + return baseUrl; + } + + public void setBaseUrl(String baseUrl) { + this.baseUrl = baseUrl; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public Long getEndpointId() { + return endpointId; + } + + public void setEndpointId(Long endpointId) { + this.endpointId = endpointId; + } + + public Service getService() { + return service; + } + + public void setService(Service service) { + this.service = service; + } + + public static class Service { + private String apiKey; + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + } +}