ruạṛ
a ���f�O � @ 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 ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z edd� �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-� �Zd/d0� Zd1d2� Zd3d4� Zd5S )6�ConfigurationSourceProvidera The properties that define a configuration source provider. For more information, see `Managing Configuration Source Providers`__. __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Tasks/managingconfigurationsourceproviders.htm �ACTIVE�$BITBUCKET_CLOUD_USERNAME_APPPASSWORD�BITBUCKET_SERVER_ACCESS_TOKEN�GITLAB_ACCESS_TOKEN�GITHUB_ACCESS_TOKENc K s� ddddddddddddd�| _ ddd d ddd dddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )a Initializes a new ConfigurationSourceProvider 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.resource_manager.models.GithubAccessTokenConfigurationSourceProvider` * :class:`~oci.resource_manager.models.GitlabAccessTokenConfigurationSourceProvider` * :class:`~oci.resource_manager.models.BitbucketServerAccessTokenConfigurationSourceProvider` * :class:`~oci.resource_manager.models.BitbucketCloudUsernameAppPasswordConfigurationSourceProvider` 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 ConfigurationSourceProvider. :type id: str :param compartment_id: The value to assign to the compartment_id property of this ConfigurationSourceProvider. :type compartment_id: str :param display_name: The value to assign to the display_name property of this ConfigurationSourceProvider. :type display_name: str :param description: The value to assign to the description property of this ConfigurationSourceProvider. :type description: str :param time_created: The value to assign to the time_created property of this ConfigurationSourceProvider. :type time_created: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this ConfigurationSourceProvider. Allowed values for this property are: "ACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param config_source_provider_type: The value to assign to the config_source_provider_type property of this ConfigurationSourceProvider. Allowed values for this property are: "BITBUCKET_CLOUD_USERNAME_APPPASSWORD", "BITBUCKET_SERVER_ACCESS_TOKEN", "GITLAB_ACCESS_TOKEN", "GITHUB_ACCESS_TOKEN", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type config_source_provider_type: str :param private_server_config_details: The value to assign to the private_server_config_details property of this ConfigurationSourceProvider. :type private_server_config_details: oci.resource_manager.models.PrivateServerConfigDetails :param username: The value to assign to the username property of this ConfigurationSourceProvider. :type username: str :param secret_id: The value to assign to the secret_id property of this ConfigurationSourceProvider. :type secret_id: str :param freeform_tags: The value to assign to the freeform_tags property of this ConfigurationSourceProvider. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this ConfigurationSourceProvider. :type defined_tags: dict(str, dict(str, object)) �strZdatetimeZPrivateServerConfigDetailszdict(str, str)zdict(str, dict(str, object)))�id�compartment_id�display_name�description�time_created�lifecycle_state�config_source_provider_type�private_server_config_details�username� secret_id� freeform_tags�defined_tagsr Z compartmentIdZdisplayNamer ZtimeCreatedZlifecycleState�configSourceProviderTypeZprivateServerConfigDetailsr ZsecretIdZfreeformTagsZdefinedTagsN)Z swagger_typesZ attribute_map�_id�_compartment_id� _display_name�_description� _time_created�_lifecycle_state�_config_source_provider_type�_private_server_config_details� _username� _secret_id�_freeform_tags� _defined_tags)�self�kwargs� r( �]/usr/lib/python3.9/site-packages/oci/resource_manager/models/configuration_source_provider.py�__init__* sL B��z$ConfigurationSourceProvider.__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 Z,GithubAccessTokenConfigurationSourceProviderr Z,GitlabAccessTokenConfigurationSourceProviderr Z5BitbucketServerAccessTokenConfigurationSourceProviderr Z<BitbucketCloudUsernameAppPasswordConfigurationSourceProviderr Nr( )Zobject_dictionary�typer( r( r) �get_subtype� s z'ConfigurationSourceProvider.get_subtypec C s | j S )a( Gets the id of this ConfigurationSourceProvider. The `OCID`__ of the configuration source provider. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this ConfigurationSourceProvider. :rtype: str �r �r&