ruạṛ
a ���f�r � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dd � Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Z e jd=d<� �Z ed>d?� �Z!e!jd@d?� �Z!edAdB� �Z"e"jdCdB� �Z"edDdE� �Z#e#jdFdE� �Z#edGdH� �Z$e$jdIdH� �Z$edJdK� �Z%e%jdLdK� �Z%edMdN� �Z&e&jdOdN� �Z&edPdQ� �Z'e'jdRdQ� �Z'dSdT� Z(dUdV� Z)dWdX� Z*dYS )Z�ContainerInstancez� A container instance to host containers. If you delete a container instance, the record remains visible for a short period of time before being permanently removed. �CREATING�UPDATING�ACTIVE�INACTIVE�DELETING�DELETED�FAILED�ALWAYS�NEVER� ON_FAILUREc K s� ddddddddddddddddddd d dddd�| _ d ddddddddddddddddddd d!d"d#d�| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _ d$| _ d$| _d$| _d$| _ d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$| _d$S )%a� Initializes a new ContainerInstance object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this ContainerInstance. :type id: str :param display_name: The value to assign to the display_name property of this ContainerInstance. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this ContainerInstance. :type compartment_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ContainerInstance. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ContainerInstance. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this ContainerInstance. :type system_tags: dict(str, dict(str, object)) :param availability_domain: The value to assign to the availability_domain property of this ContainerInstance. :type availability_domain: str :param fault_domain: The value to assign to the fault_domain property of this ContainerInstance. :type fault_domain: str :param lifecycle_state: The value to assign to the lifecycle_state property of this ContainerInstance. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this ContainerInstance. :type lifecycle_details: str :param volumes: The value to assign to the volumes property of this ContainerInstance. :type volumes: list[oci.container_instances.models.ContainerVolume] :param volume_count: The value to assign to the volume_count property of this ContainerInstance. :type volume_count: int :param containers: The value to assign to the containers property of this ContainerInstance. :type containers: list[oci.container_instances.models.ContainerInstanceContainer] :param container_count: The value to assign to the container_count property of this ContainerInstance. :type container_count: int :param time_created: The value to assign to the time_created property of this ContainerInstance. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ContainerInstance. :type time_updated: datetime :param shape: The value to assign to the shape property of this ContainerInstance. :type shape: str :param shape_config: The value to assign to the shape_config property of this ContainerInstance. :type shape_config: oci.container_instances.models.ContainerInstanceShapeConfig :param vnics: The value to assign to the vnics property of this ContainerInstance. :type vnics: list[oci.container_instances.models.ContainerVnic] :param dns_config: The value to assign to the dns_config property of this ContainerInstance. :type dns_config: oci.container_instances.models.ContainerDnsConfig :param graceful_shutdown_timeout_in_seconds: The value to assign to the graceful_shutdown_timeout_in_seconds property of this ContainerInstance. :type graceful_shutdown_timeout_in_seconds: int :param image_pull_secrets: The value to assign to the image_pull_secrets property of this ContainerInstance. :type image_pull_secrets: list[oci.container_instances.models.ImagePullSecret] :param container_restart_policy: The value to assign to the container_restart_policy property of this ContainerInstance. Allowed values for this property are: "ALWAYS", "NEVER", "ON_FAILURE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type container_restart_policy: str �strzdict(str, str)zdict(str, dict(str, object))zlist[ContainerVolume]�intz list[ContainerInstanceContainer]ZdatetimeZContainerInstanceShapeConfigzlist[ContainerVnic]ZContainerDnsConfigzlist[ImagePullSecret])�id�display_name�compartment_id� freeform_tags�defined_tags�system_tags�availability_domain�fault_domain�lifecycle_state�lifecycle_details�volumes�volume_count� containers�container_count�time_created�time_updated�shape�shape_config�vnics� dns_config�$graceful_shutdown_timeout_in_seconds�image_pull_secrets�container_restart_policyr ZdisplayNameZ compartmentIdZfreeformTagsZdefinedTagsZ systemTagsZavailabilityDomainZfaultDomainZlifecycleStateZlifecycleDetailsr ZvolumeCountr ZcontainerCountZtimeCreatedZtimeUpdatedr# ZshapeConfigr% Z dnsConfigZ gracefulShutdownTimeoutInSecondsZimagePullSecretsZcontainerRestartPolicyN)Z swagger_typesZ attribute_map�_id� _display_name�_compartment_id�_freeform_tags� _defined_tags�_system_tags�_availability_domain� _fault_domain�_lifecycle_state�_lifecycle_details�_volumes� _volume_count�_containers�_container_count� _time_created� _time_updated�_shape� _shape_config�_vnics�_dns_config�%_graceful_shutdown_timeout_in_seconds�_image_pull_secrets�_container_restart_policy)�self�kwargs� rC �U/usr/lib/python3.9/site-packages/oci/container_instances/models/container_instance.py�__init__= s� g��zContainerInstance.__init__c C s | j S )z� **[Required]** Gets the id of this ContainerInstance. An OCID that cannot be changed. :return: The id of this ContainerInstance. :rtype: str �r* �rA rC rC rD r � s zContainerInstance.idc C s || _ dS )z� Sets the id of this ContainerInstance. An OCID that cannot be changed. :param id: The id of this ContainerInstance. :type: str NrF )rA r rC rC rD r � s c C s | j S )a **[Required]** Gets the display_name of this ContainerInstance. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The display_name of this ContainerInstance. :rtype: str �r+ rG rC rC rD r s zContainerInstance.display_namec C s || _ dS )a Sets the display_name of this ContainerInstance. A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param display_name: The display_name of this ContainerInstance. :type: str NrH )rA r rC rC rD r s c C s | j S )z� **[Required]** Gets the compartment_id of this ContainerInstance. The OCID of the compartment. :return: The compartment_id of this ContainerInstance. :rtype: str �r, rG rC rC rD r s z ContainerInstance.compartment_idc C s || _ dS )z� Sets the compartment_id of this ContainerInstance. The OCID of the compartment. :param compartment_id: The compartment_id of this ContainerInstance. :type: str NrI )rA r rC rC rD r + s c C s | j S )aI Gets the freeform_tags of this ContainerInstance. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :return: The freeform_tags of this ContainerInstance. :rtype: dict(str, str) �r- rG rC rC rD r 7 s zContainerInstance.freeform_tagsc C s || _ dS )aU Sets the freeform_tags of this ContainerInstance. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :param freeform_tags: The freeform_tags of this ContainerInstance. :type: dict(str, str) NrJ )rA r rC rC rD r D s c C s | j S )aD Gets the defined_tags of this ContainerInstance. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`. :return: The defined_tags of this ContainerInstance. :rtype: dict(str, dict(str, object)) �r. rG rC rC rD r Q s zContainerInstance.defined_tagsc C s || _ dS )aO Sets the defined_tags of this ContainerInstance. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`. :param defined_tags: The defined_tags of this ContainerInstance. :type: dict(str, dict(str, object)) NrK )rA r rC rC rD r ^ s c C s | j S )aA Gets the system_tags of this ContainerInstance. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. :return: The system_tags of this ContainerInstance. :rtype: dict(str, dict(str, object)) �r/ rG rC rC rD r k s zContainerInstance.system_tagsc C s || _ dS )aK Sets the system_tags of this ContainerInstance. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`. :param system_tags: The system_tags of this ContainerInstance. :type: dict(str, dict(str, object)) NrL )rA r rC rC rD r x s c C s | j S )z� **[Required]** Gets the availability_domain of this ContainerInstance. The availability domain to place the container instance. :return: The availability_domain of this ContainerInstance. :rtype: str �r0 rG rC rC rD r � s z%ContainerInstance.availability_domainc C s || _ dS )z� Sets the availability_domain of this ContainerInstance. The availability domain to place the container instance. :param availability_domain: The availability_domain of this ContainerInstance. :type: str NrM )rA r rC rC rD r � s c C s | j S )z� Gets the fault_domain of this ContainerInstance. The fault domain to place the container instance. :return: The fault_domain of this ContainerInstance. :rtype: str �r1 rG rC rC rD r � s zContainerInstance.fault_domainc C s || _ dS )z� Sets the fault_domain of this ContainerInstance. The fault domain to place the container instance. :param fault_domain: The fault_domain of this ContainerInstance. :type: str NrN )rA r rC rC rD r � s c C s | j S )a� **[Required]** Gets the lifecycle_state of this ContainerInstance. The current state of the container instance. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ContainerInstance. :rtype: str )r2 rG rC rC rD r � s z!ContainerInstance.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this ContainerInstance. The current state of the container instance. :param lifecycle_state: The lifecycle_state of this ContainerInstance. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r2 )rA r �allowed_valuesrC rC rD r � s c C s | j S )a* Gets the lifecycle_details of this ContainerInstance. A message that describes the current state of the container in more detail. Can be used to provide actionable information. :return: The lifecycle_details of this ContainerInstance. :rtype: str �r3 rG rC rC rD r � s z#ContainerInstance.lifecycle_detailsc C s || _ dS )a: Sets the lifecycle_details of this ContainerInstance. A message that describes the current state of the container in more detail. Can be used to provide actionable information. :param lifecycle_details: The lifecycle_details of this ContainerInstance. :type: str NrQ )rA r rC rC rD r � s c C s | j S )a5 Gets the volumes of this ContainerInstance. A volume is a directory with data that is accessible across multiple containers in a container instance. :return: The volumes of this ContainerInstance. :rtype: list[oci.container_instances.models.ContainerVolume] �r4 rG rC rC rD r � s zContainerInstance.volumesc C s || _ dS )a; Sets the volumes of this ContainerInstance. A volume is a directory with data that is accessible across multiple containers in a container instance. :param volumes: The volumes of this ContainerInstance. :type: list[oci.container_instances.models.ContainerVolume] NrR )rA r rC rC rD r � s c C s | j S )z� Gets the volume_count of this ContainerInstance. The number of volumes that are attached to the container instance. :return: The volume_count of this ContainerInstance. :rtype: int �r5 rG rC rC rD r s zContainerInstance.volume_countc C s || _ dS )z� Sets the volume_count of this ContainerInstance. The number of volumes that are attached to the container instance. :param volume_count: The volume_count of this ContainerInstance. :type: int NrS )rA r rC rC rD r s c C s | j S )a **[Required]** Gets the containers of this ContainerInstance. The containers on the container instance. :return: The containers of this ContainerInstance. :rtype: list[oci.container_instances.models.ContainerInstanceContainer] �r6 rG rC rC rD r s zContainerInstance.containersc C s || _ dS )a Sets the containers of this ContainerInstance. The containers on the container instance. :param containers: The containers of this ContainerInstance. :type: list[oci.container_instances.models.ContainerInstanceContainer] NrT )rA r rC rC rD r + s c C s | j S )z� **[Required]** Gets the container_count of this ContainerInstance. The number of containers on the container instance. :return: The container_count of this ContainerInstance. :rtype: int �r7 rG rC rC rD r 7 s z!ContainerInstance.container_countc C s || _ dS )z� Sets the container_count of this ContainerInstance. The number of containers on the container instance. :param container_count: The container_count of this ContainerInstance. :type: int NrU )rA r rC rC rD r C s c C s | j S )a4 **[Required]** Gets the time_created of this ContainerInstance. The time the container instance was created, in the format defined by `RFC 3339`__. __ https://tools.ietf.org/rfc/rfc3339 :return: The time_created of this ContainerInstance. :rtype: datetime �r8 rG rC rC rD r! O s zContainerInstance.time_createdc C s || _ dS )a0 Sets the time_created of this ContainerInstance. The time the container instance was created, in the format defined by `RFC 3339`__. __ https://tools.ietf.org/rfc/rfc3339 :param time_created: The time_created of this ContainerInstance. :type: datetime NrV )rA r! rC rC rD r! ] s c C s | j S )a% Gets the time_updated of this ContainerInstance. The time the container instance was updated, in the format defined by `RFC 3339`__. __ https://tools.ietf.org/rfc/rfc3339 :return: The time_updated of this ContainerInstance. :rtype: datetime �r9 rG rC rC rD r"