Skip to content

Commit

Permalink
Added Instance.WelcomeMessage property
Browse files Browse the repository at this point in the history
  • Loading branch information
p0t4t0sandwich committed Sep 16, 2024
1 parent 315c1b8 commit 04e5c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ampapi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ class Instance():
:type ContainerSwapMB: int
:param UseHostModeNetwork: Whether the container uses host mode network
:type UseHostModeNetwork: bool
:param WelcomeMessage: The instance's welcome message
:type: str
"""
InstanceID: UUID
TargetID: UUID
Expand Down Expand Up @@ -417,8 +419,9 @@ class Instance():
DisplayImageSource: str
ContainerSwapMB: int
UseHostModeNetwork: bool
WelcomeMessage: str

def __init__(self, InstanceID: UUID, TargetID: UUID, InstanceName: str, FriendlyName: str, Module: str, AMPVersion: AMPVersionAlias, IsHTTPS: bool, IP: str, Port: int, Daemon: bool, DaemonAutostart: bool, ExcludeFromFirewall: bool, Running: bool, AppState: State, Tags: list[str], DiskUsageMB: int, ReleaseStream: str, ManagementMode: str, Suspended: bool, IsContainerInstance: bool, ContainerMemoryMB: int, ContainerMemoryPolicy: str, ContainerCPUs: int, ApplicationEndpoints: list[EndpointInfo], DeploymentArgs: dict[str, str], Metrics: dict[str, Metric] = {}, DisplayImageSource: str = "", Description: str = "", ModuleDisplayName: str = "", SpecificDockerImage: str = "", ContainerSwapMB: int = 0, UseHostModeNetwork: bool = False) -> None:
def __init__(self, InstanceID: UUID, TargetID: UUID, InstanceName: str, FriendlyName: str, Module: str, AMPVersion: AMPVersionAlias, IsHTTPS: bool, IP: str, Port: int, Daemon: bool, DaemonAutostart: bool, ExcludeFromFirewall: bool, Running: bool, AppState: State, Tags: list[str], DiskUsageMB: int, ReleaseStream: str, ManagementMode: str, Suspended: bool, IsContainerInstance: bool, ContainerMemoryMB: int, ContainerMemoryPolicy: str, ContainerCPUs: int, ApplicationEndpoints: list[EndpointInfo], DeploymentArgs: dict[str, str], Metrics: dict[str, Metric] = {}, DisplayImageSource: str = "", Description: str = "", ModuleDisplayName: str = "", SpecificDockerImage: str = "", ContainerSwapMB: int = 0, UseHostModeNetwork: bool = False, WelcomeMessage: str = "") -> None:
"""
Initializes the Instance object
Author: p0t4t0sandwich
Expand Down Expand Up @@ -455,6 +458,7 @@ def __init__(self, InstanceID: UUID, TargetID: UUID, InstanceName: str, Friendly
self.SpecificDockerImage = SpecificDockerImage
self.ContainerSwapMB = ContainerSwapMB
self.UseHostModeNetwork = UseHostModeNetwork
self.WelcomeMessage = WelcomeMessage

class GlibcInfo():
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ampapi
version = 1.3.19
version = 1.3.20
author = Dylan Sperrer - p0t4t0sandwich - thepotatoking3452
author_email = [email protected]
description = An API that allows you to communicate with AMP installations from within Python.
Expand Down

0 comments on commit 04e5c5d

Please sign in to comment.