1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 15:55:23 +02:00

fix(settings): return the right value for public

This commit is contained in:
Chaim Lev-Ari 2024-06-10 17:50:25 +03:00
parent 7a8d39eab6
commit a4439e90ec

View file

@ -40,34 +40,80 @@ interface AuthenticatedResponse extends PublicSettingsResponse {
} }
interface EdgeAdminResponse extends AuthenticatedResponse { interface EdgeAdminResponse extends AuthenticatedResponse {
/** Only available for edge-admins */
Edge?: EdgeSettings; Edge?: EdgeSettings;
/** TrustOnFirstConnect makes Portainer accepting edge agent connection by default */ /**
* TrustOnFirstConnect makes Portainer accepting edge agent connection by default
*
* Only available for edge-admins
* */
TrustOnFirstConnect: boolean; TrustOnFirstConnect: boolean;
/** EnforceEdgeID makes Portainer store the Edge ID instead of accepting anyone */ /**
* EnforceEdgeID makes Portainer store the Edge ID instead of accepting anyone
*
* Only available for edge-admins
* */
EnforceEdgeID: boolean; EnforceEdgeID: boolean;
/** EdgePortainerUrl is the URL that is exposed to edge agents */ /**
* EdgePortainerUrl is the URL that is exposed to edge agents
*
* Only available for edge-admins
* */
EdgePortainerUrl: string; EdgePortainerUrl: string;
/** The default check in interval for edge agent (in seconds) */ /**
* The default check in interval for edge agent (in seconds)
*
* Only available for edge-admins
* */
EdgeAgentCheckinInterval: number; EdgeAgentCheckinInterval: number;
} }
interface AdminResponse extends EdgeAdminResponse { interface AdminResponse extends EdgeAdminResponse {
/** A list of label name & value that will be used to hide containers when querying containers */ /**
* A list of label name & value that will be used to hide containers when querying containers
*
* Only available for admins
* */
BlackListedLabels?: Pair[]; BlackListedLabels?: Pair[];
/** Only available for admins */
LDAPSettings?: LDAPSettings; LDAPSettings?: LDAPSettings;
/** Only available for admins */
OAuthSettings?: OAuthSettings; OAuthSettings?: OAuthSettings;
/** Only available for admins */
InternalAuthSettings?: InternalAuthSettings; InternalAuthSettings?: InternalAuthSettings;
/** Only available for admins */
openAMTConfiguration?: OpenAMTConfiguration; openAMTConfiguration?: OpenAMTConfiguration;
/** Only available for admins */
fdoConfiguration?: FDOConfiguration; fdoConfiguration?: FDOConfiguration;
/** The interval in which environment(endpoint) snapshots are created */ /**
* The interval in which environment(endpoint) snapshots are created
*
* Only available for admins
* */
SnapshotInterval: string; SnapshotInterval: string;
/** URL to the templates that will be displayed in the UI when navigating to App Templates */ /**
* URL to the templates that will be displayed in the UI when navigating to App Templates
*
* Only available for admins
* */
TemplatesURL: string; TemplatesURL: string;
/** The duration of a user session */ /**
* The duration of a user session
*
* Only available for admins
* */
UserSessionTimeout: string; UserSessionTimeout: string;
/** KubectlImage, defaults to portainer/kubectl-shell */ /**
* KubectlImage, defaults to portainer/kubectl-shell
*
* Only available for admins
* */
KubectlShellImage: string; KubectlShellImage: string;
/** Container environment parameter AGENT_SECRET */ /**
* Container environment parameter AGENT_SECRET
*
* Only available for admins
* */
AgentSecret: string; AgentSecret: string;
} }