ruạṛ
a N��f� � @ 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 @ sv e Zd ZdZdZdZdZdZdZdZ dZ d Zd d� Ze dd � �Zedd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�BuildRunSourcez; The source from which the build run is triggered. �MANUAL�GITHUB�GITLAB� GITLAB_SERVER�BITBUCKET_CLOUD�BITBUCKET_SERVER�DEVOPS_CODE_REPOSITORY�VBSc K s ddi| _ ddi| _d| _dS )a$ Initializes a new BuildRunSource 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.devops.models.GitlabServerBuildRunSource` * :class:`~oci.devops.models.BitbucketServerBuildRunSource` * :class:`~oci.devops.models.GithubBuildRunSource` * :class:`~oci.devops.models.DevopsCodeRepositoryBuildRunSource` * :class:`~oci.devops.models.VbsBuildRunSource` * :class:`~oci.devops.models.ManualBuildRunSource` * :class:`~oci.devops.models.BitbucketCloudBuildRunSource` * :class:`~oci.devops.models.GitlabBuildRunSource` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source_type: The value to assign to the source_type property of this BuildRunSource. Allowed values for this property are: "MANUAL", "GITHUB", "GITLAB", "GITLAB_SERVER", "BITBUCKET_CLOUD", "BITBUCKET_SERVER", "DEVOPS_CODE_REPOSITORY", "VBS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_type: str �source_type�str� sourceTypeN)� swagger_types� attribute_map�_source_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/build_run_source.py�__init__0 s ��zBuildRunSource.__init__c C sp | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S |dkr\dS |dkrhdS dS 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 �GitlabServerBuildRunSourcer �BitbucketServerBuildRunSourcer �GithubBuildRunSourcer �"DevopsCodeRepositoryBuildRunSourcer �VbsBuildRunSourcer �ManualBuildRunSourcer �BitbucketCloudBuildRunSourcer �GitlabBuildRunSourcer Nr )�object_dictionary�typer r r �get_subtypeQ s$ zBuildRunSource.get_subtypec C s | j S )a� **[Required]** Gets the source_type of this BuildRunSource. The source from which the build run is triggered. Allowed values for this property are: "MANUAL", "GITHUB", "GITLAB", "GITLAB_SERVER", "BITBUCKET_CLOUD", "BITBUCKET_SERVER", "DEVOPS_CODE_REPOSITORY", "VBS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The source_type of this BuildRunSource. :rtype: str )r �r r r r r s s zBuildRunSource.source_typec C s g d�}t ||�sd}|| _dS )z� Sets the source_type of this BuildRunSource. The source from which the build run is triggered. :param source_type: The source_type of this BuildRunSource. :type: str )r r r r r r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r � s c C s t | �S �N)r r% r r r �__repr__� s zBuildRunSource.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zBuildRunSource.__eq__c C s | |k S r( r r+ r r r �__ne__� s zBuildRunSource.__ne__N)�__name__� __module__�__qualname__�__doc__�SOURCE_TYPE_MANUAL�SOURCE_TYPE_GITHUB�SOURCE_TYPE_GITLAB�SOURCE_TYPE_GITLAB_SERVER�SOURCE_TYPE_BITBUCKET_CLOUD�SOURCE_TYPE_BITBUCKET_SERVER�"SOURCE_TYPE_DEVOPS_CODE_REPOSITORY�SOURCE_TYPE_VBSr �staticmethodr$ �propertyr �setterr) r- r. r r r r r s&