
    ]j                         d dl Z d dlmZ ddlmZ ddlmZmZ ddlm	Z	m
Z
 ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ  e j*                  e j,                  d      Z G d d      Z G d d      Zy)    N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)AsyncHttpResponseHttpResponse)jsonable_encoder)RequestOptions)construct_type)
LseProject)ProjectTemplate.c                    6   e Zd ZdefdZddddej                  e   dej                  e   de	ej                  e      fdZeeeeeeeeeedd	d
ededej                  ej                     dej                  e   dej                  e   dej                  e   dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   de	e   fdZdddedej                  e   de	e   fdZdddedej                  e   de	d   fdZeeeeeeeeeeeedddedej                  ej                     dej                  e   dej                  e   dej                  e   d
ej                  e   dej                  e   dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   de	e   fdZedddedededej                  e   dej                  e   de	e   fd Zy)!RawProjectTemplatesClientclient_wrapperc                    || _         y N_client_wrapperselfr   s     W/root/env/lib/python3.12/site-packages/label_studio_sdk/project_templates/raw_client.py__init__z"RawProjectTemplatesClient.__init__   
    -    Norderingrequest_optionsr   r   returnc                P   | j                   j                  j                  ddd|i|      }	 d|j                  cxk  rdk  rin nft	        j
                  t        j                  t           t        t        j                  t           |j                                     }t        ||      S |j                         }t        |j                  t        |j                        |	      # t        $ r6 t        |j                  t        |j                        |j                  	      w xY w)
a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a list of all project templates for an organization.

        Parameters
        ----------
        ordering : typing.Optional[str]
            Which field to use when ordering the results.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[typing.List[ProjectTemplate]]

        api/project-templates/GETr   methodparamsr      ,  type_object_responsedatastatus_codeheadersbody)r   httpx_clientrequestr/   typingcastListr   r   jsonr	   r   r   dictr0   textr   r   r   	_response_data_response_jsons         r   listzRawProjectTemplatesClient.list   s   2 ((55==$H , > 
		ti++1c1KK0"$kk/: ) 0 $YUCC&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts   A=C& +C& &?D%assignment_settings
created_bycustom_scriptdescriptionorganizationproject_settingsrequire_comment_on_skipreview_settings&show_unused_data_columns_to_annotatorstagsr   name
project_idr@   rA   rB   rC   rD   rE   rF   rG   rH   rI   c                2   | j                   j                  j                  dd|||||||||	|
||dddi|t              }	 d|j                  cxk  rdk  rGn nDt        j                  t        t        t        |j                         	            }t        ||
      S |j                         }t        |j                  t        |j                        |      # t        $ r6 t        |j                  t        |j                        |j                        w xY w)a`  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a project template for an organization.

        Parameters
        ----------
        name : str

        project_id : int

        assignment_settings : typing.Optional[typing.Any]
            general dict serialized assignment settings

        created_by : typing.Optional[int]

        custom_script : typing.Optional[str]
            custom script (Plugin) for projects created from this template

        description : typing.Optional[str]

        organization : typing.Optional[int]

        project_settings : typing.Optional[typing.Any]
            general dict serialized project settings

        require_comment_on_skip : typing.Optional[bool]
            flag to require comment on skip

        review_settings : typing.Optional[typing.Any]
            general dict serialized review settings

        show_unused_data_columns_to_annotators : typing.Optional[bool]

        tags : typing.Optional[typing.Any]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[ProjectTemplate]

        r!   POSTr@   rA   rB   rC   rJ   rD   rK   rE   rF   rG   rH   rI   content-typeapplication/jsonr$   r7   r0   r   omitr&   r'   r(   r+   r.   )r   r2   r3   OMITr/   r4   r5   r   r   r7   r	   r   r   r8   r0   r9   r   rJ   rK   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   r   r;   r<   r=   s                    r   createz RawProjectTemplatesClient.createG   s!   B ((55==$':(!.* ,($4+B#2:`  2 ,+ > 
	.	ti++1c1#"- ) 0 $YUCC&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts    AC C ?Dr   idc                   | j                   j                  j                  dt        |       d|      }	 d|j                  cxk  rdk  rGn nDt        j                  t        t        t        |j                                     }t        ||      S |j                         }t        |j                  t        |j                        |      # t        $ r6 t        |j                  t        |j                        |j                        w xY w)	a/  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[ProjectTemplate]

        r!   r"   r$   r   r&   r'   r(   r+   r.   )r   r2   r3   r
   r/   r4   r5   r   r   r7   r	   r   r   r8   r0   r9   r   rW   r   r;   r<   r=   s         r   getzRawProjectTemplatesClient.get   s    , ((55==$%5b%9$:;+ > 
	
	ti++1c1#"- ) 0 $YUCC&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts   AC C ?Dc                   | j                   j                  j                  dt        |       d|      }	 d|j                  cxk  rdk  rn nt        |d      S |j                         }t        |j                  t        |j                        |      # t        $ r6 t        |j                  t        |j                        |j                        w xY w)	a&  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Delete a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[None]
        r!   DELETErY   r&   r'   Nr+   r.   )r   r2   r3   r
   r/   r	   r7   r   r   r8   r0   r9   r   rW   r   r;   r=   s        r   deletez RawProjectTemplatesClient.delete   s    * ((55==$%5b%9$:;+ > 
	
	ti++1c1#YTBB&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts   $B B ?Cr@   rA   rB   rC   rJ   rD   rK   rE   rF   rG   rH   rI   r   c                J   | j                   j                  j                  dt        |       d||||||||	|
|||dddi|t              }	 d|j
                  cxk  rdk  rGn nDt        j                  t        t        t        |j                         	            }t        ||
      S |j                         }t        |j
                  t        |j                        |      # t        $ r6 t        |j
                  t        |j                        |j                         w xY w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Update the details of a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        assignment_settings : typing.Optional[typing.Any]
            general dict serialized assignment settings

        created_by : typing.Optional[int]

        custom_script : typing.Optional[str]
            custom script (Plugin) for projects created from this template

        description : typing.Optional[str]

        name : typing.Optional[str]

        organization : typing.Optional[int]

        project_id : typing.Optional[int]

        project_settings : typing.Optional[typing.Any]
            general dict serialized project settings

        require_comment_on_skip : typing.Optional[bool]
            flag to require comment on skip

        review_settings : typing.Optional[typing.Any]
            general dict serialized review settings

        show_unused_data_columns_to_annotators : typing.Optional[bool]

        tags : typing.Optional[typing.Any]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[ProjectTemplate]

        r!   PATCHrN   rO   rP   rQ   r&   r'   r(   r+   r.   )r   r2   r3   r
   rS   r/   r4   r5   r   r   r7   r	   r   r   r8   r0   r9   r   rW   r@   rA   rB   rC   rJ   rD   rK   rE   rF   rG   rH   rI   r   r;   r<   r=   s                     r   updatez RawProjectTemplatesClient.update   s/   H ((55==$%5b%9$:;':(!.* ,($4+B#2:`  2 ,+ > 
	.	ti++1c1#"- ) 0 $YUCC&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts   AC# (C# #?D"rC   r   titleworkspace_idc                :   | j                   j                  j                  dt        |       dd|||dddi|t              }	 d|j
                  cxk  rd	k  rGn nDt        j                  t        t        t        |j                         
            }t        ||      S |j                         }t        |j
                  t        |j                        |      # t        $ r6 t        |j
                  t        |j                        |j                         w xY w)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a project from a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        title : str
            The title of the project to be created from the template.

        workspace_id : int
            A unique integer value identifying the workspace in which to create the project.

        description : typing.Optional[str]
            A description for the project.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        HttpResponse[LseProject]
            Project created successfully
        r!   /create-projectrM   rC   rf   rg   rO   rP   rQ   r&   r'   r(   r+   r.   )r   r2   r3   r
   rS   r/   r4   r5   r   r   r7   r	   r   r   r8   r0   r9   	r   rW   rf   rg   rC   r   r;   r<   r=   s	            r   create_project_from_templatez6RawProjectTemplatesClient.create_project_from_templated  s   N ((55==$%5b%9$:/J* ,  2 , > 
		ti++1c1"( ) 0 $YUCC&^^-N 9#8#8$yGXGXBY`noo  	ty'<'<d9K\K\F]dmdrdrss	ts   AC  C ?D)__name__
__module____qualname__r   r   r4   Optionalstrr   r	   r6   r   r>   rS   intAnyboolrU   r[   r_   rd   r   rl    r   r   r   r      s   .*; . 37ko.p!??3/.pIOYgIh.p	fkk/2	3.pj <@+/.2,0-18<9=7;HL,0;?ep ep 	ep
 $__VZZ8ep OOC(ep s+ep __S)ep ooc*ep !//&**5ep "(!6ep  4ep 170Eep oofjj)ep  8ep  
o	&!epN RV (pc (pv~/N (pZfgvZw (pT UY  p  p&//.2Q  p]ijn]o  pL <@+/.2,0%)-1+/8<9=7;HL,0;?!hphp $__VZZ8	hp
 OOC(hp s+hp __S)hp ooc"hp ooc*hp OOC(hp !//&**5hp "(!6hp  4hp 170Ehp oofjj)hp   8!hp" 
o	&#hp` -1;?BpBp 	Bp
 Bp __S)Bp  8Bp 
j	!Bpr   r   c                    6   e Zd ZdefdZddddej                  e   dej                  e   de	ej                  e      fdZeeeeeeeeeedd	d
ededej                  ej                     dej                  e   dej                  e   dej                  e   dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   de	e   fdZdddedej                  e   de	e   fdZdddedej                  e   de	d   fdZeeeeeeeeeeeedddedej                  ej                     dej                  e   dej                  e   dej                  e   d
ej                  e   dej                  e   dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   dej                  ej                     dej                  e   de	e   fdZedddedededej                  e   dej                  e   de	e   fd Zy)!AsyncRawProjectTemplatesClientr   c                    || _         y r   r   r   s     r   r   z'AsyncRawProjectTemplatesClient.__init__  r   r   Nr   r   r   r   c                l  K   | j                   j                  j                  ddd|i|       d{   }	 d|j                  cxk  rdk  rin nft	        j
                  t        j                  t           t        t        j                  t           |j                                     }t        ||	      S |j                         }t        |j                  t        |j                        |
      7 # t        $ r6 t        |j                  t        |j                        |j                  
      w xY ww)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a list of all project templates for an organization.

        Parameters
        ----------
        ordering : typing.Optional[str]
            Which field to use when ordering the results.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[typing.List[ProjectTemplate]]

        r!   r"   r   r#   Nr&   r'   r(   r+   r.   )r   r2   r3   r/   r4   r5   r6   r   r   r7   r   r   r   r8   r0   r9   r:   s         r   r>   z#AsyncRawProjectTemplatesClient.list  s    2 ..;;CC$H , D 
 
		ti++1c1KK0"$kk/: ) 0 ))%HH&^^-N 9#8#8$yGXGXBY`noo+
&  	ty'<'<d9K\K\F]dmdrdrss	ts3   /D4C0D4A=C2 4D45C2 ,D42?D11D4r?   rJ   rK   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   c                N  K   | j                   j                  j                  dd|||||||||	|
||dddi|t               d{   }	 d|j                  cxk  rd	k  rGn nDt        j                  t        t        t        |j                         
            }t        ||      S |j                         }t        |j                  t        |j                        |      7 # t        $ r6 t        |j                  t        |j                        |j                        w xY ww)ae  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a project template for an organization.

        Parameters
        ----------
        name : str

        project_id : int

        assignment_settings : typing.Optional[typing.Any]
            general dict serialized assignment settings

        created_by : typing.Optional[int]

        custom_script : typing.Optional[str]
            custom script (Plugin) for projects created from this template

        description : typing.Optional[str]

        organization : typing.Optional[int]

        project_settings : typing.Optional[typing.Any]
            general dict serialized project settings

        require_comment_on_skip : typing.Optional[bool]
            flag to require comment on skip

        review_settings : typing.Optional[typing.Any]
            general dict serialized review settings

        show_unused_data_columns_to_annotators : typing.Optional[bool]

        tags : typing.Optional[typing.Any]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[ProjectTemplate]

        r!   rM   rN   rO   rP   rQ   Nr&   r'   r(   r+   r.   )r   r2   r3   rS   r/   r4   r5   r   r   r7   r   r   r   r8   r0   r9   rT   s                    r   rU   z%AsyncRawProjectTemplatesClient.create  s1    B ..;;CC$':(!.* ,($4+B#2:`  2 ,+ D 
 
	.	ti++1c1#"- ) 0 ))%HH&^^-N 9#8#8$yGXGXBY`nooI
D  	ty'<'<d9K\K\F]dmdrdrss	ts7   AD%C!D%
AC# %D%&C# 6,D%#?D""D%rV   rW   c                :  K   | j                   j                  j                  dt        |       d|       d{   }	 d|j                  cxk  rdk  rGn nDt        j                  t        t        t        |j                                     }t        ||      S |j                         }t        |j                  t        |j                        |	      7 # t        $ r6 t        |j                  t        |j                        |j                  	      w xY ww)
a4  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Get a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[ProjectTemplate]

        r!   r"   rY   Nr&   r'   r(   r+   r.   )r   r2   r3   r
   r/   r4   r5   r   r   r7   r   r   r   r8   r0   r9   rZ   s         r   r[   z"AsyncRawProjectTemplatesClient.getD  s    0 ..;;CC$%5b%9$:;+ D 
 
	
	ti++1c1#"- ) 0 ))%HH&^^-N 9#8#8$yGXGXBY`noo%
   	ty'<'<d9K\K\F]dmdrdrss	ts4   8DCD AC DC ,,D?DDc                  K   | j                   j                  j                  dt        |       d|       d{   }	 d|j                  cxk  rdk  rn nt        |d      S |j                         }t        |j                  t        |j                        |      7 e# t        $ r6 t        |j                  t        |j                        |j                        w xY ww)	a+  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Delete a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[None]
        r!   r]   rY   Nr&   r'   r+   r.   )r   r2   r3   r
   r/   r   r7   r   r   r8   r0   r9   r^   s        r   r_   z%AsyncRawProjectTemplatesClient.deletep  s     . ..;;CC$%5b%9$:;+ D 
 
	
	ti++1c1()$GG&^^-N 9#8#8$yGXGXBY`noo
  	ty'<'<d9K\K\F]dmdrdrss	ts3   8C$B C$ $B" $C$%B" 5,C$"?C!!C$r`   c                f  K   | j                   j                  j                  dt        |       d||||||||	|
|||dddi|t               d{   }	 d|j
                  cxk  rd	k  rGn nDt        j                  t        t        t        |j                         
            }t        ||      S |j                         }t        |j
                  t        |j                        |      7 # t        $ r6 t        |j
                  t        |j                        |j                         w xY ww)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Update the details of a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        assignment_settings : typing.Optional[typing.Any]
            general dict serialized assignment settings

        created_by : typing.Optional[int]

        custom_script : typing.Optional[str]
            custom script (Plugin) for projects created from this template

        description : typing.Optional[str]

        name : typing.Optional[str]

        organization : typing.Optional[int]

        project_id : typing.Optional[int]

        project_settings : typing.Optional[typing.Any]
            general dict serialized project settings

        require_comment_on_skip : typing.Optional[bool]
            flag to require comment on skip

        review_settings : typing.Optional[typing.Any]
            general dict serialized review settings

        show_unused_data_columns_to_annotators : typing.Optional[bool]

        tags : typing.Optional[typing.Any]

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[ProjectTemplate]

        r!   rb   rN   rO   rP   rQ   Nr&   r'   r(   r+   r.   )r   r2   r3   r
   rS   r/   r4   r5   r   r   r7   r   r   r   r8   r0   r9   rc   s                     r   rd   z%AsyncRawProjectTemplatesClient.update  s?    H ..;;CC$%5b%9$:;':(!.* ,($4+B#2:`  2 ,+ D 
 
	.	ti++1c1#"- ) 0 ))%HH&^^-N 9#8#8$yGXGXBY`nooI
D  	ty'<'<d9K\K\F]dmdrdrss	ts7   AD1C-D1AC/ 1D12C/ ,D1/?D..D1re   rf   rg   c                V  K   | j                   j                  j                  dt        |       dd|||dddi|t               d{   }	 d	|j
                  cxk  rd
k  rGn nDt        j                  t        t        t        |j                                     }t        ||      S |j                         }t        |j
                  t        |j                        |      7 # t        $ r6 t        |j
                  t        |j                        |j                         w xY ww)a  
        <Card href="https://humansignal.com/goenterprise">
                <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
                <p style="margin-top: 10px; font-size: 14px;">
                    This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
                </p>
            </Card>
        Create a project from a specific project template by ID for an organization.

        Parameters
        ----------
        id : int

        title : str
            The title of the project to be created from the template.

        workspace_id : int
            A unique integer value identifying the workspace in which to create the project.

        description : typing.Optional[str]
            A description for the project.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        AsyncHttpResponse[LseProject]
            Project created successfully
        r!   ri   rM   rj   rO   rP   rQ   Nr&   r'   r(   r+   r.   )r   r2   r3   r
   rS   r/   r4   r5   r   r   r7   r   r   r   r8   r0   r9   rk   s	            r   rl   z;AsyncRawProjectTemplatesClient.create_project_from_template  s$    N ..;;CC$%5b%9$:/J* ,  2 , D 
 
		ti++1c1"( ) 0 ))%HH&^^-N 9#8#8$yGXGXBY`noo7
2  	ty'<'<d9K\K\F]dmdrdrss	ts7   AD)C%	D)AC' )D)*C' :,D)'?D&&D))rm   rn   ro   r   r   r4   rp   rq   r   r   r6   r   r>   rS   rr   rs   rt   rU   r[   r_   rd   r   rl   ru   r   r   rw   rw     s   .*< . 37ko.p!??3/.pIOYgIh.p	6;;7	8.pj <@+/.2,0-18<9=7;HL,0;?ep ep 	ep
 $__VZZ8ep OOC(ep s+ep __S)ep ooc*ep !//&**5ep "(!6ep  4ep 170Eep oofjj)ep  8ep  
?	+!epP NR*p*p+1??>+J*p	?	+*pZ NR"p"p+1??>+J"p	4	 "pP <@+/.2,0%)-1+/8<9=7;HL,0;?!hphp $__VZZ8	hp
 OOC(hp s+hp __S)hp ooc"hp ooc*hp OOC(hp !//&**5hp "(!6hp  4hp 170Ehp oofjj)hp   8!hp" 
?	+#hp` -1;?BpBp 	Bp
 Bp __S)Bp  8Bp 
:	&Bpr   rw   )r4   json.decoderr   core.api_errorr   core.client_wrapperr   r   core.http_responser   r	   core.jsonable_encoderr
   core.request_optionsr   core.unchecked_base_modelr   types.lse_projectr   types.project_templater   r5   rs   rS   r   rw   ru   r   r   <module>r      sZ     ( % G @ 4 1 6 * 4 v{{6::s#Sp SplWp Wpr   