Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_ephemeral_container.py812 linesDownload Raw Back to models
1# coding: utf-82 3"""4    Kubernetes5 6    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E5017 8    The version of the OpenAPI document: release-1.359    Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re  # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1EphemeralContainer(object):22    """NOTE: This class is auto generated by OpenAPI Generator.23    Ref: https://openapi-generator.tech24 25    Do not edit the class manually.26    """27 28    """29    Attributes:30      openapi_types (dict): The key is attribute name31                            and the value is attribute type.32      attribute_map (dict): The key is attribute name33                            and the value is json key in definition.34    """35    openapi_types = {36        'args': 'list[str]',37        'command': 'list[str]',38        'env': 'list[V1EnvVar]',39        'env_from': 'list[V1EnvFromSource]',40        'image': 'str',41        'image_pull_policy': 'str',42        'lifecycle': 'V1Lifecycle',43        'liveness_probe': 'V1Probe',44        'name': 'str',45        'ports': 'list[V1ContainerPort]',46        'readiness_probe': 'V1Probe',47        'resize_policy': 'list[V1ContainerResizePolicy]',48        'resources': 'V1ResourceRequirements',49        'restart_policy': 'str',50        'restart_policy_rules': 'list[V1ContainerRestartRule]',51        'security_context': 'V1SecurityContext',52        'startup_probe': 'V1Probe',53        'stdin': 'bool',54        'stdin_once': 'bool',55        'target_container_name': 'str',56        'termination_message_path': 'str',57        'termination_message_policy': 'str',58        'tty': 'bool',59        'volume_devices': 'list[V1VolumeDevice]',60        'volume_mounts': 'list[V1VolumeMount]',61        'working_dir': 'str'62    }63 64    attribute_map = {65        'args': 'args',66        'command': 'command',67        'env': 'env',68        'env_from': 'envFrom',69        'image': 'image',70        'image_pull_policy': 'imagePullPolicy',71        'lifecycle': 'lifecycle',72        'liveness_probe': 'livenessProbe',73        'name': 'name',74        'ports': 'ports',75        'readiness_probe': 'readinessProbe',76        'resize_policy': 'resizePolicy',77        'resources': 'resources',78        'restart_policy': 'restartPolicy',79        'restart_policy_rules': 'restartPolicyRules',80        'security_context': 'securityContext',81        'startup_probe': 'startupProbe',82        'stdin': 'stdin',83        'stdin_once': 'stdinOnce',84        'target_container_name': 'targetContainerName',85        'termination_message_path': 'terminationMessagePath',86        'termination_message_policy': 'terminationMessagePolicy',87        'tty': 'tty',88        'volume_devices': 'volumeDevices',89        'volume_mounts': 'volumeMounts',90        'working_dir': 'workingDir'91    }92 93    def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, restart_policy_rules=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, target_container_name=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None):  # noqa: E50194        """V1EphemeralContainer - a model defined in OpenAPI"""  # noqa: E50195        if local_vars_configuration is None:96            local_vars_configuration = Configuration()97        self.local_vars_configuration = local_vars_configuration98 99        self._args = None100        self._command = None101        self._env = None102        self._env_from = None103        self._image = None104        self._image_pull_policy = None105        self._lifecycle = None106        self._liveness_probe = None107        self._name = None108        self._ports = None109        self._readiness_probe = None110        self._resize_policy = None111        self._resources = None112        self._restart_policy = None113        self._restart_policy_rules = None114        self._security_context = None115        self._startup_probe = None116        self._stdin = None117        self._stdin_once = None118        self._target_container_name = None119        self._termination_message_path = None120        self._termination_message_policy = None121        self._tty = None122        self._volume_devices = None123        self._volume_mounts = None124        self._working_dir = None125        self.discriminator = None126 127        if args is not None:128            self.args = args129        if command is not None:130            self.command = command131        if env is not None:132            self.env = env133        if env_from is not None:134            self.env_from = env_from135        if image is not None:136            self.image = image137        if image_pull_policy is not None:138            self.image_pull_policy = image_pull_policy139        if lifecycle is not None:140            self.lifecycle = lifecycle141        if liveness_probe is not None:142            self.liveness_probe = liveness_probe143        self.name = name144        if ports is not None:145            self.ports = ports146        if readiness_probe is not None:147            self.readiness_probe = readiness_probe148        if resize_policy is not None:149            self.resize_policy = resize_policy150        if resources is not None:151            self.resources = resources152        if restart_policy is not None:153            self.restart_policy = restart_policy154        if restart_policy_rules is not None:155            self.restart_policy_rules = restart_policy_rules156        if security_context is not None:157            self.security_context = security_context158        if startup_probe is not None:159            self.startup_probe = startup_probe160        if stdin is not None:161            self.stdin = stdin162        if stdin_once is not None:163            self.stdin_once = stdin_once164        if target_container_name is not None:165            self.target_container_name = target_container_name166        if termination_message_path is not None:167            self.termination_message_path = termination_message_path168        if termination_message_policy is not None:169            self.termination_message_policy = termination_message_policy170        if tty is not None:171            self.tty = tty172        if volume_devices is not None:173            self.volume_devices = volume_devices174        if volume_mounts is not None:175            self.volume_mounts = volume_mounts176        if working_dir is not None:177            self.working_dir = working_dir178 179    @property180    def args(self):181        """Gets the args of this V1EphemeralContainer.  # noqa: E501182 183        Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell  # noqa: E501184 185        :return: The args of this V1EphemeralContainer.  # noqa: E501186        :rtype: list[str]187        """188        return self._args189 190    @args.setter191    def args(self, args):192        """Sets the args of this V1EphemeralContainer.193 194        Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell  # noqa: E501195 196        :param args: The args of this V1EphemeralContainer.  # noqa: E501197        :type: list[str]198        """199 200        self._args = args201 202    @property203    def command(self):204        """Gets the command of this V1EphemeralContainer.  # noqa: E501205 206        Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell  # noqa: E501207 208        :return: The command of this V1EphemeralContainer.  # noqa: E501209        :rtype: list[str]210        """211        return self._command212 213    @command.setter214    def command(self, command):215        """Sets the command of this V1EphemeralContainer.216 217        Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell  # noqa: E501218 219        :param command: The command of this V1EphemeralContainer.  # noqa: E501220        :type: list[str]221        """222 223        self._command = command224 225    @property226    def env(self):227        """Gets the env of this V1EphemeralContainer.  # noqa: E501228 229        List of environment variables to set in the container. Cannot be updated.  # noqa: E501230 231        :return: The env of this V1EphemeralContainer.  # noqa: E501232        :rtype: list[V1EnvVar]233        """234        return self._env235 236    @env.setter237    def env(self, env):238        """Sets the env of this V1EphemeralContainer.239 240        List of environment variables to set in the container. Cannot be updated.  # noqa: E501241 242        :param env: The env of this V1EphemeralContainer.  # noqa: E501243        :type: list[V1EnvVar]244        """245 246        self._env = env247 248    @property249    def env_from(self):250        """Gets the env_from of this V1EphemeralContainer.  # noqa: E501251 252        List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.  # noqa: E501253 254        :return: The env_from of this V1EphemeralContainer.  # noqa: E501255        :rtype: list[V1EnvFromSource]256        """257        return self._env_from258 259    @env_from.setter260    def env_from(self, env_from):261        """Sets the env_from of this V1EphemeralContainer.262 263        List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.  # noqa: E501264 265        :param env_from: The env_from of this V1EphemeralContainer.  # noqa: E501266        :type: list[V1EnvFromSource]267        """268 269        self._env_from = env_from270 271    @property272    def image(self):273        """Gets the image of this V1EphemeralContainer.  # noqa: E501274 275        Container image name. More info: https://kubernetes.io/docs/concepts/containers/images  # noqa: E501276 277        :return: The image of this V1EphemeralContainer.  # noqa: E501278        :rtype: str279        """280        return self._image281 282    @image.setter283    def image(self, image):284        """Sets the image of this V1EphemeralContainer.285 286        Container image name. More info: https://kubernetes.io/docs/concepts/containers/images  # noqa: E501287 288        :param image: The image of this V1EphemeralContainer.  # noqa: E501289        :type: str290        """291 292        self._image = image293 294    @property295    def image_pull_policy(self):296        """Gets the image_pull_policy of this V1EphemeralContainer.  # noqa: E501297 298        Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images  # noqa: E501299 300        :return: The image_pull_policy of this V1EphemeralContainer.  # noqa: E501301        :rtype: str302        """303        return self._image_pull_policy304 305    @image_pull_policy.setter306    def image_pull_policy(self, image_pull_policy):307        """Sets the image_pull_policy of this V1EphemeralContainer.308 309        Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images  # noqa: E501310 311        :param image_pull_policy: The image_pull_policy of this V1EphemeralContainer.  # noqa: E501312        :type: str313        """314 315        self._image_pull_policy = image_pull_policy316 317    @property318    def lifecycle(self):319        """Gets the lifecycle of this V1EphemeralContainer.  # noqa: E501320 321 322        :return: The lifecycle of this V1EphemeralContainer.  # noqa: E501323        :rtype: V1Lifecycle324        """325        return self._lifecycle326 327    @lifecycle.setter328    def lifecycle(self, lifecycle):329        """Sets the lifecycle of this V1EphemeralContainer.330 331 332        :param lifecycle: The lifecycle of this V1EphemeralContainer.  # noqa: E501333        :type: V1Lifecycle334        """335 336        self._lifecycle = lifecycle337 338    @property339    def liveness_probe(self):340        """Gets the liveness_probe of this V1EphemeralContainer.  # noqa: E501341 342 343        :return: The liveness_probe of this V1EphemeralContainer.  # noqa: E501344        :rtype: V1Probe345        """346        return self._liveness_probe347 348    @liveness_probe.setter349    def liveness_probe(self, liveness_probe):350        """Sets the liveness_probe of this V1EphemeralContainer.351 352 353        :param liveness_probe: The liveness_probe of this V1EphemeralContainer.  # noqa: E501354        :type: V1Probe355        """356 357        self._liveness_probe = liveness_probe358 359    @property360    def name(self):361        """Gets the name of this V1EphemeralContainer.  # noqa: E501362 363        Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.  # noqa: E501364 365        :return: The name of this V1EphemeralContainer.  # noqa: E501366        :rtype: str367        """368        return self._name369 370    @name.setter371    def name(self, name):372        """Sets the name of this V1EphemeralContainer.373 374        Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.  # noqa: E501375 376        :param name: The name of this V1EphemeralContainer.  # noqa: E501377        :type: str378        """379        if self.local_vars_configuration.client_side_validation and name is None:  # noqa: E501380            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501381 382        self._name = name383 384    @property385    def ports(self):386        """Gets the ports of this V1EphemeralContainer.  # noqa: E501387 388        Ports are not allowed for ephemeral containers.  # noqa: E501389 390        :return: The ports of this V1EphemeralContainer.  # noqa: E501391        :rtype: list[V1ContainerPort]392        """393        return self._ports394 395    @ports.setter396    def ports(self, ports):397        """Sets the ports of this V1EphemeralContainer.398 399        Ports are not allowed for ephemeral containers.  # noqa: E501400 401        :param ports: The ports of this V1EphemeralContainer.  # noqa: E501402        :type: list[V1ContainerPort]403        """404 405        self._ports = ports406 407    @property408    def readiness_probe(self):409        """Gets the readiness_probe of this V1EphemeralContainer.  # noqa: E501410 411 412        :return: The readiness_probe of this V1EphemeralContainer.  # noqa: E501413        :rtype: V1Probe414        """415        return self._readiness_probe416 417    @readiness_probe.setter418    def readiness_probe(self, readiness_probe):419        """Sets the readiness_probe of this V1EphemeralContainer.420 421 422        :param readiness_probe: The readiness_probe of this V1EphemeralContainer.  # noqa: E501423        :type: V1Probe424        """425 426        self._readiness_probe = readiness_probe427 428    @property429    def resize_policy(self):430        """Gets the resize_policy of this V1EphemeralContainer.  # noqa: E501431 432        Resources resize policy for the container.  # noqa: E501433 434        :return: The resize_policy of this V1EphemeralContainer.  # noqa: E501435        :rtype: list[V1ContainerResizePolicy]436        """437        return self._resize_policy438 439    @resize_policy.setter440    def resize_policy(self, resize_policy):441        """Sets the resize_policy of this V1EphemeralContainer.442 443        Resources resize policy for the container.  # noqa: E501444 445        :param resize_policy: The resize_policy of this V1EphemeralContainer.  # noqa: E501446        :type: list[V1ContainerResizePolicy]447        """448 449        self._resize_policy = resize_policy450 451    @property452    def resources(self):453        """Gets the resources of this V1EphemeralContainer.  # noqa: E501454 455 456        :return: The resources of this V1EphemeralContainer.  # noqa: E501457        :rtype: V1ResourceRequirements458        """459        return self._resources460 461    @resources.setter462    def resources(self, resources):463        """Sets the resources of this V1EphemeralContainer.464 465 466        :param resources: The resources of this V1EphemeralContainer.  # noqa: E501467        :type: V1ResourceRequirements468        """469 470        self._resources = resources471 472    @property473    def restart_policy(self):474        """Gets the restart_policy of this V1EphemeralContainer.  # noqa: E501475 476        Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.  # noqa: E501477 478        :return: The restart_policy of this V1EphemeralContainer.  # noqa: E501479        :rtype: str480        """481        return self._restart_policy482 483    @restart_policy.setter484    def restart_policy(self, restart_policy):485        """Sets the restart_policy of this V1EphemeralContainer.486 487        Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.  # noqa: E501488 489        :param restart_policy: The restart_policy of this V1EphemeralContainer.  # noqa: E501490        :type: str491        """492 493        self._restart_policy = restart_policy494 495    @property496    def restart_policy_rules(self):497        """Gets the restart_policy_rules of this V1EphemeralContainer.  # noqa: E501498 499        Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.  # noqa: E501500 501        :return: The restart_policy_rules of this V1EphemeralContainer.  # noqa: E501502        :rtype: list[V1ContainerRestartRule]503        """504        return self._restart_policy_rules505 506    @restart_policy_rules.setter507    def restart_policy_rules(self, restart_policy_rules):508        """Sets the restart_policy_rules of this V1EphemeralContainer.509 510        Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.  # noqa: E501511 512        :param restart_policy_rules: The restart_policy_rules of this V1EphemeralContainer.  # noqa: E501513        :type: list[V1ContainerRestartRule]514        """515 516        self._restart_policy_rules = restart_policy_rules517 518    @property519    def security_context(self):520        """Gets the security_context of this V1EphemeralContainer.  # noqa: E501521 522 523        :return: The security_context of this V1EphemeralContainer.  # noqa: E501524        :rtype: V1SecurityContext525        """526        return self._security_context527 528    @security_context.setter529    def security_context(self, security_context):530        """Sets the security_context of this V1EphemeralContainer.531 532 533        :param security_context: The security_context of this V1EphemeralContainer.  # noqa: E501534        :type: V1SecurityContext535        """536 537        self._security_context = security_context538 539    @property540    def startup_probe(self):541        """Gets the startup_probe of this V1EphemeralContainer.  # noqa: E501542 543 544        :return: The startup_probe of this V1EphemeralContainer.  # noqa: E501545        :rtype: V1Probe546        """547        return self._startup_probe548 549    @startup_probe.setter550    def startup_probe(self, startup_probe):551        """Sets the startup_probe of this V1EphemeralContainer.552 553 554        :param startup_probe: The startup_probe of this V1EphemeralContainer.  # noqa: E501555        :type: V1Probe556        """557 558        self._startup_probe = startup_probe559 560    @property561    def stdin(self):562        """Gets the stdin of this V1EphemeralContainer.  # noqa: E501563 564        Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.  # noqa: E501565 566        :return: The stdin of this V1EphemeralContainer.  # noqa: E501567        :rtype: bool568        """569        return self._stdin570 571    @stdin.setter572    def stdin(self, stdin):573        """Sets the stdin of this V1EphemeralContainer.574 575        Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.  # noqa: E501576 577        :param stdin: The stdin of this V1EphemeralContainer.  # noqa: E501578        :type: bool579        """580 581        self._stdin = stdin582 583    @property584    def stdin_once(self):585        """Gets the stdin_once of this V1EphemeralContainer.  # noqa: E501586 587        Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false  # noqa: E501588 589        :return: The stdin_once of this V1EphemeralContainer.  # noqa: E501590        :rtype: bool591        """592        return self._stdin_once593 594    @stdin_once.setter595    def stdin_once(self, stdin_once):596        """Sets the stdin_once of this V1EphemeralContainer.597 598        Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false  # noqa: E501599 600        :param stdin_once: The stdin_once of this V1EphemeralContainer.  # noqa: E501601        :type: bool602        """603 604        self._stdin_once = stdin_once605 606    @property607    def target_container_name(self):608        """Gets the target_container_name of this V1EphemeralContainer.  # noqa: E501609 610        If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.  The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.  # noqa: E501611 612        :return: The target_container_name of this V1EphemeralContainer.  # noqa: E501613        :rtype: str614        """615        return self._target_container_name616 617    @target_container_name.setter618    def target_container_name(self, target_container_name):619        """Sets the target_container_name of this V1EphemeralContainer.620 621        If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.  The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.  # noqa: E501622 623        :param target_container_name: The target_container_name of this V1EphemeralContainer.  # noqa: E501624        :type: str625        """626 627        self._target_container_name = target_container_name628 629    @property630    def termination_message_path(self):631        """Gets the termination_message_path of this V1EphemeralContainer.  # noqa: E501632 633        Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.  # noqa: E501634 635        :return: The termination_message_path of this V1EphemeralContainer.  # noqa: E501636        :rtype: str637        """638        return self._termination_message_path639 640    @termination_message_path.setter641    def termination_message_path(self, termination_message_path):642        """Sets the termination_message_path of this V1EphemeralContainer.643 644        Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.  # noqa: E501645 646        :param termination_message_path: The termination_message_path of this V1EphemeralContainer.  # noqa: E501647        :type: str648        """649 650        self._termination_message_path = termination_message_path651 652    @property653    def termination_message_policy(self):654        """Gets the termination_message_policy of this V1EphemeralContainer.  # noqa: E501655 656        Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.  # noqa: E501657 658        :return: The termination_message_policy of this V1EphemeralContainer.  # noqa: E501659        :rtype: str660        """661        return self._termination_message_policy662 663    @termination_message_policy.setter664    def termination_message_policy(self, termination_message_policy):665        """Sets the termination_message_policy of this V1EphemeralContainer.666 667        Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.  # noqa: E501668 669        :param termination_message_policy: The termination_message_policy of this V1EphemeralContainer.  # noqa: E501670        :type: str671        """672 673        self._termination_message_policy = termination_message_policy674 675    @property676    def tty(self):677        """Gets the tty of this V1EphemeralContainer.  # noqa: E501678 679        Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.  # noqa: E501680 681        :return: The tty of this V1EphemeralContainer.  # noqa: E501682        :rtype: bool683        """684        return self._tty685 686    @tty.setter687    def tty(self, tty):688        """Sets the tty of this V1EphemeralContainer.689 690        Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.  # noqa: E501691 692        :param tty: The tty of this V1EphemeralContainer.  # noqa: E501693        :type: bool694        """695 696        self._tty = tty697 698    @property699    def volume_devices(self):700        """Gets the volume_devices of this V1EphemeralContainer.  # noqa: E501701 702        volumeDevices is the list of block devices to be used by the container.  # noqa: E501703 704        :return: The volume_devices of this V1EphemeralContainer.  # noqa: E501705        :rtype: list[V1VolumeDevice]706        """707        return self._volume_devices708 709    @volume_devices.setter710    def volume_devices(self, volume_devices):711        """Sets the volume_devices of this V1EphemeralContainer.712 713        volumeDevices is the list of block devices to be used by the container.  # noqa: E501714 715        :param volume_devices: The volume_devices of this V1EphemeralContainer.  # noqa: E501716        :type: list[V1VolumeDevice]717        """718 719        self._volume_devices = volume_devices720 721    @property722    def volume_mounts(self):723        """Gets the volume_mounts of this V1EphemeralContainer.  # noqa: E501724 725        Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.  # noqa: E501726 727        :return: The volume_mounts of this V1EphemeralContainer.  # noqa: E501728        :rtype: list[V1VolumeMount]729        """730        return self._volume_mounts731 732    @volume_mounts.setter733    def volume_mounts(self, volume_mounts):734        """Sets the volume_mounts of this V1EphemeralContainer.735 736        Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.  # noqa: E501737 738        :param volume_mounts: The volume_mounts of this V1EphemeralContainer.  # noqa: E501739        :type: list[V1VolumeMount]740        """741 742        self._volume_mounts = volume_mounts743 744    @property745    def working_dir(self):746        """Gets the working_dir of this V1EphemeralContainer.  # noqa: E501747 748        Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.  # noqa: E501749 750        :return: The working_dir of this V1EphemeralContainer.  # noqa: E501751        :rtype: str752        """753        return self._working_dir754 755    @working_dir.setter756    def working_dir(self, working_dir):757        """Sets the working_dir of this V1EphemeralContainer.758 759        Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.  # noqa: E501760 761        :param working_dir: The working_dir of this V1EphemeralContainer.  # noqa: E501762        :type: str763        """764 765        self._working_dir = working_dir766 767    def to_dict(self):768        """Returns the model properties as a dict"""769        result = {}770 771        for attr, _ in six.iteritems(self.openapi_types):772            value = getattr(self, attr)773            if isinstance(value, list):774                result[attr] = list(map(775                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,776                    value777                ))778            elif hasattr(value, "to_dict"):779                result[attr] = value.to_dict()780            elif isinstance(value, dict):781                result[attr] = dict(map(782                    lambda item: (item[0], item[1].to_dict())783                    if hasattr(item[1], "to_dict") else item,784                    value.items()785                ))786            else:787                result[attr] = value788 789        return result790 791    def to_str(self):792        """Returns the string representation of the model"""793        return pprint.pformat(self.to_dict())794 795    def __repr__(self):796        """For `print` and `pprint`"""797        return self.to_str()798 799    def __eq__(self, other):800        """Returns true if both objects are equal"""801        if not isinstance(other, V1EphemeralContainer):802            return False803 804        return self.to_dict() == other.to_dict()805 806    def __ne__(self, other):807        """Returns true if both objects are not equal"""808        if not isinstance(other, V1EphemeralContainer):809            return True810 811        return self.to_dict() != other.to_dict()812 
codekingpro/portable-devtools · Team Ai