ruạṛ
a ���fz � @ 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 ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z e dd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )� TargetDetailszH Details of target member of a Exadata Fleet Update Collection. �DATABASE� VMCLUSTER�CLOUDVMCLUSTERc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new TargetDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.fleet_software_update.models.VmClusterTargetSummary` * :class:`~oci.fleet_software_update.models.CloudVmClusterTargetSummary` * :class:`~oci.fleet_software_update.models.DatabaseTargetSummary` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param entity_type: The value to assign to the entity_type property of this TargetDetails. Allowed values for this property are: "DATABASE", "VMCLUSTER", "CLOUDVMCLUSTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str :param id: The value to assign to the id property of this TargetDetails. :type id: str :param compartment_id: The value to assign to the compartment_id property of this TargetDetails. :type compartment_id: str �str)�entity_type�id�compartment_id� entityTyper Z compartmentIdN)Z swagger_typesZ attribute_map�_entity_type�_id�_compartment_id)�self�kwargs� r �S/usr/lib/python3.9/site-packages/oci/fleet_software_update/models/target_details.py�__init__ s ��zTargetDetails.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZVmClusterTargetSummaryr ZCloudVmClusterTargetSummaryr ZDatabaseTargetSummaryr Nr )Zobject_dictionary�typer r r �get_subtypeH s zTargetDetails.get_subtypec C s | j S )a� **[Required]** Gets the entity_type of this TargetDetails. Resource EntityType for the target in the Exadata Fleet Update Collection. Allowed values for this property are: "DATABASE", "VMCLUSTER", "CLOUDVMCLUSTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The entity_type of this TargetDetails. :rtype: str )r �r r r r r [ s zTargetDetails.entity_typec C s g d�}t ||�sd}|| _dS )z� Sets the entity_type of this TargetDetails. Resource EntityType for the target in the Exadata Fleet Update Collection. :param entity_type: The entity_type of this TargetDetails. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r j s c C s | j S )z� Gets the id of this TargetDetails. OCID of the target resource in the Exadata Fleet Update Collection. :return: The id of this TargetDetails. :rtype: str �r r r r r r y s zTargetDetails.idc C s || _ dS )z� Sets the id of this TargetDetails. OCID of the target resource in the Exadata Fleet Update Collection. :param id: The id of this TargetDetails. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the compartment_id of this TargetDetails. Compartment identifier of the target. :return: The compartment_id of this TargetDetails. :rtype: str �r r r r r r � s zTargetDetails.compartment_idc C s || _ dS )z� Sets the compartment_id of this TargetDetails. Compartment identifier of the target. :param compartment_id: The compartment_id of this TargetDetails. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zTargetDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zTargetDetails.__eq__c C s | |k S r r r r r r �__ne__� s zTargetDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZENTITY_TYPE_DATABASEZENTITY_TYPE_VMCLUSTERZENTITY_TYPE_CLOUDVMCLUSTERr �staticmethodr �propertyr �setterr r r r! r"