| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/devops/models/__pycache__/ |
Upload File : |
a
���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)Z
swagger_typesZ
attribute_map�_source_type)�self�kwargs� r �F/usr/lib/python3.9/site-packages/oci/devops/models/build_run_source.py�__init__2 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
ZGitlabServerBuildRunSourcer ZBitbucketServerBuildRunSourcer ZGithubBuildRunSourcer
Z"DevopsCodeRepositoryBuildRunSourcer ZVbsBuildRunSourcer ZManualBuildRunSourcer ZBitbucketCloudBuildRunSourcer ZGitlabBuildRunSourcer Nr )Zobject_dictionary�typer r r �get_subtypeS 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 u 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 ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_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__ZSOURCE_TYPE_MANUALZSOURCE_TYPE_GITHUBZSOURCE_TYPE_GITLABZSOURCE_TYPE_GITLAB_SERVERZSOURCE_TYPE_BITBUCKET_CLOUDZSOURCE_TYPE_BITBUCKET_SERVERZ"SOURCE_TYPE_DEVOPS_CODE_REPOSITORYZSOURCE_TYPE_VBSr �staticmethodr �propertyr �setterr r r! r r r r r s&