models.apps_config module¶
-
class
models.apps_config.
AppsConfig
(allow_external_traffic=None, allow_unresticted_view_access=None, apps_mode=None, apps_subnet=None, overcommit_memory_pct=None, reserved_cpu_millicores=None, reserved_memory_pct=None)[source]¶ Bases:
object
Implementation of the ‘AppsConfig’ model.
TODO: type model description here.
- Attributes:
allow_external_traffic (bool): Whether to allow pod external traffic. allow_unresticted_view_access (bool): Whether to allow apps
unrestricted view access.
- apps_mode (AppsModeEnum): Specifies the various modes for running
apps. ‘kDisabled’ specifies that apps are disabled. ‘kBareMetal’ specifies that apps could only run in containers on the node (no VM). ‘kVmOnly’ specifies that apps could only run in containers on a VM hosted by the node.
- apps_subnet (Subnet): Defines a Subnet (Subnetwork). The netmask can
be specified by setting netmaskBits or netmaskIp4. The netmask can only be set using netmaskIp4 if the IP address is an IPv4 address.
- overcommit_memory_pct (int): The system memory to overcommit for
apps.
- reserved_cpu_millicores (int): The CPU millicores to reserve for
apps.
reserved_memory_pct (int): The system memory to reserve for apps.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.