a Nfq @s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d d Z e d d Z ed dZejddZeddZejddZeddZejddZeddZejddZddZddZddZdS) BuildSourcez4 Build source required for the Build stage. GITHUBGITLAB GITLAB_SERVERBITBUCKET_CLOUDBITBUCKET_SERVERDEVOPS_CODE_REPOSITORYVBScKs<ddddd|_ddddd|_d|_d|_d|_d|_dS)a\ Initializes a new BuildSource 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.VbsBuildSource` * :class:`~oci.devops.models.BitbucketServerBuildSource` * :class:`~oci.devops.models.GithubBuildSource` * :class:`~oci.devops.models.BitbucketCloudBuildSource` * :class:`~oci.devops.models.GitlabServerBuildSource` * :class:`~oci.devops.models.DevopsCodeRepositoryBuildSource` * :class:`~oci.devops.models.GitlabBuildSource` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this BuildSource. :type name: str :param connection_type: The value to assign to the connection_type property of this BuildSource. Allowed values for this property are: "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 connection_type: str :param repository_url: The value to assign to the repository_url property of this BuildSource. :type repository_url: str :param branch: The value to assign to the branch property of this BuildSource. :type branch: str str)nameconnection_typerepository_urlbranchrconnectionType repositoryUrlrN) swagger_types attribute_map_name_connection_type_repository_url_branch)selfkwargsr/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/build_source.py__init__,s#zBuildSource.__init__cCsd|d}|dkrdS|dkr dS|dkr,dS|dkr8d S|d krDd S|d krPd S|dkr\dSdSdS)z Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. rr VbsBuildSourcer BitbucketServerBuildSourcerGithubBuildSourcer BitbucketCloudBuildSourcer GitlabServerBuildSourcer DevopsCodeRepositoryBuildSourcerGitlabBuildSourcerNr)object_dictionarytyperrr get_subtypeas zBuildSource.get_subtypecCs|jS)a@ **[Required]** Gets the name of this BuildSource. Name of the build source. This must be unique within a build source collection. The name can be used by customers to locate the working directory pertinent to this repository. :return: The name of this BuildSource. :rtype: str rrrrrrs zBuildSource.namecCs ||_dS)a4 Sets the name of this BuildSource. Name of the build source. This must be unique within a build source collection. The name can be used by customers to locate the working directory pertinent to this repository. :param name: The name of this BuildSource. :type: str Nr*)rrrrrrs cCs|jS)a **[Required]** Gets the connection_type of this BuildSource. The type of source provider. Allowed values for this property are: "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 connection_type of this BuildSource. :rtype: str )rr+rrrrs zBuildSource.connection_typecCs gd}t||sd}||_dS)z Sets the connection_type of this BuildSource. The type of source provider. :param connection_type: The connection_type of this BuildSource. :type: str )rrr r r r r UNKNOWN_ENUM_VALUEN)rr)rrallowed_valuesrrrrs  cCs|jS)z **[Required]** Gets the repository_url of this BuildSource. URL for the repository. :return: The repository_url of this BuildSource. :rtype: str rr+rrrrs zBuildSource.repository_urlcCs ||_dS)z Sets the repository_url of this BuildSource. URL for the repository. :param repository_url: The repository_url of this BuildSource. :type: str Nr.)rrrrrrs cCs|jS)z **[Required]** Gets the branch of this BuildSource. Branch name. :return: The branch of this BuildSource. :rtype: str rr+rrrrs zBuildSource.branchcCs ||_dS)z Sets the branch of this BuildSource. Branch name. :param branch: The branch of this BuildSource. :type: str Nr/)rrrrrrs cCst|SN)rr+rrr__repr__szBuildSource.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherrrr__eq__szBuildSource.__eq__cCs ||k Sr0rr3rrr__ne__szBuildSource.__ne__N)__name__ __module__ __qualname____doc__CONNECTION_TYPE_GITHUBCONNECTION_TYPE_GITLABCONNECTION_TYPE_GITLAB_SERVERCONNECTION_TYPE_BITBUCKET_CLOUD CONNECTION_TYPE_BITBUCKET_SERVER&CONNECTION_TYPE_DEVOPS_CODE_REPOSITORYCONNECTION_TYPE_VBSr staticmethodr)propertyrsetterrrrr1r5r6rrrrr s<5         rN)oci.utilrrroci.decoratorsrobjectrrrrrs