a *Nay @sddlmZddlmZmZmZddlmZm Z m Z m Z gdZ Gddde e eZ Gddde eZGd d d e e eZGd d d e eZd S)) exceptions)RequiredOptional RESTManager RESTObject) CreateMixin CRUDMixinObjectDeleteMixin SaveMixin) GroupClusterGroupClusterManagerProjectClusterProjectClusterManagerc@s eZdZdS)r N__name__ __module__ __qualname__rru/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/clusters.pyr sr c@sFeZdZdZeZddiZedddZeddZ e e j d d Z d S) r z/groups/%(group_id)s/clustersZgroup_ididnameplatform_kubernetes_attributesdomainZenabledZmanagedenvironment_scoperequiredoptionalrrZmanagement_project_idrrrcKs"d|j}tj||fd|i|SaLCreate a new object. Args: data (dict): Parameters to send to the server to create the resource **kwargs: Extra options to send to the server (e.g. sudo or 'ref_name', 'stage', 'name', 'all') Raises: GitlabAuthenticationError: If authentication is not correct GitlabCreateError: If the server cannot perform the request Returns: RESTObject: A new instance of the manage object class build with the data sent by the server z%s/userpathr!rcreateselfdatakwargsr!rrrr##s zGroupClusterManager.createN)rrr_pathr _obj_cls_from_parent_attrsr _create_attrs _update_attrsexc on_http_errorGitlabStopErrorr#rrrrr s r c@s eZdZdS)r Nrrrrrr 9sr c@sFeZdZdZeZddiZedddZeddZ e e j d d Z d S) r z!/projects/%(project_id)s/clustersZ project_idrrrrrrcKs"d|j}tj||fd|i|Sr r"r$rrrr#Os zProjectClusterManager.createN)rrrr(r r)r*rr+r,r-r.r/r#rrrrr =s r N)Zgitlabrr-Z gitlab.baserrrZ gitlab.mixinsrrrr __all__r r r r rrrrs (