From 934869a10876735c1353cd2ec1c4b4be9243f1f5 Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Mon, 6 Jul 2026 00:07:07 +0000 Subject: [PATCH] feat(portainer-automation): add configuration properties --- .../config/PortainerAutomationProperties.java | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 portainer-automation/src/main/java/com/hithomelabs/portainer/config/PortainerAutomationProperties.java 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..fd2efb8 --- /dev/null +++ b/portainer-automation/src/main/java/com/hithomelabs/portainer/config/PortainerAutomationProperties.java @@ -0,0 +1,57 @@ +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; + } + } +}