ruạṛ
a N��ff � @ 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 @ sj e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z dd� Zdd� Zdd� ZdS )�AuthorizationDetailsz� Details of the source environment from which you want to migrate applications to Oracle Cloud Infrastructure. It also contains access credentials. �OCIC�INTERNAL_COMPUTE�OCC� OCIC_IDCS�IMPORTc K s ddi| _ ddi| _d| _dS )a� Initializes a new AuthorizationDetails 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.application_migration.models.OccAuthorizationDetails` * :class:`~oci.application_migration.models.InternalAuthorizationDetails` * :class:`~oci.application_migration.models.OcicAuthorizationTokenDetails` * :class:`~oci.application_migration.models.OcicAuthorizationDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this AuthorizationDetails. Allowed values for this property are: "OCIC", "INTERNAL_COMPUTE", "OCC", "OCIC_IDCS", "IMPORT" :type type: str �type�strN)� swagger_types� attribute_map�_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/application_migration/models/authorization_details.py�__init__% s ��zAuthorizationDetails.__init__c C s@ | d }|dkrdS |dkr dS |dkr,dS |dkr8d S d S dS )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 �OccAuthorizationDetailsr �InternalAuthorizationDetailsr �OcicAuthorizationTokenDetailsr �OcicAuthorizationDetailsr Nr )�object_dictionaryr r r r �get_subtypeA s z AuthorizationDetails.get_subtypec C s | j S )as **[Required]** Gets the type of this AuthorizationDetails. Type of the source environment from which you are migrating applications to Oracle Cloud Infrastructure. Allowed values for this property are: "OCIC", "INTERNAL_COMPUTE", "OCC", "OCIC_IDCS", "IMPORT" :return: The type of this AuthorizationDetails. :rtype: str )r �r r r r r W s zAuthorizationDetails.typec C s* g d�}t ||�s td�|���|| _dS )z� Sets the type of this AuthorizationDetails. Type of the source environment from which you are migrating applications to Oracle Cloud Infrastructure. :param type: The type of this AuthorizationDetails. :type: str )r r r r r z4Invalid value for `type`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r e s ��c C s t | �S �N)r r r r r �__repr__w s zAuthorizationDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__z s zAuthorizationDetails.__eq__c C s | |k S r r r# r r r �__ne__� s zAuthorizationDetails.__ne__N)�__name__� __module__�__qualname__�__doc__� TYPE_OCIC�TYPE_INTERNAL_COMPUTE�TYPE_OCC�TYPE_OCIC_IDCS�TYPE_IMPORTr �staticmethodr �propertyr �setterr! r% r&