
    tni                     j    d Z 	 	 	 	 	 	 	 	 	 	 	 dd	ed
ededededededededededefdZded
efdZdS )z. Runpod | API Wrapper | Mutations | Endpoints 	AMPERE_16N   QUEUE_DELAY          Fnametemplate_idgpu_idsnetwork_volume_id	locationsidle_timeoutscaler_typescaler_valueworkers_minworkers_maxallowed_cuda_versions	gpu_countc                     g }|
r| dz   } |                     d|  d           |                     d| d           |                     d| d           ||                     d| d           n|                     d           ||                     d	| d           n|                     d
           |                     d|            |                     d| d           |                     d|            |                     d|            |                     d|	            |r|                     d| d           ||                     d|            d                    |          }d| dS )zBGenerate a string for a GraphQL mutation to create a new endpoint.z-fbzname: ""templateId: "z	gpuIds: "NznetworkVolumeId: "znetworkVolumeId: ""zlocations: "zlocations: ""zidleTimeout: zscalerType: "zscalerValue: zworkersMin: zworkersMax: zallowedCudaVersions: "z
gpuCount: , zK
    mutation {
        saveEndpoint(
            input: {
                aU  
            }
        ) {
            id
            name
            templateId
            gpuIds
            networkVolumeId
            locations
            idleTimeout
            scalerType
            scalerValue
            workersMin
            workersMax
            allowedCudaVersions
            gpuCount
        }
    }
    appendjoin)r   r	   r
   r   r   r   r   r   r   r   	flashbootr   r   input_fieldsinput_fields_strings                  [/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/runpod/api/mutations/endpoints.pygenerate_endpoint_mutationr      s     L  e|)$)))***6666777.G.../// $E1BEEEFFFF1222797778888O,,,66677766667776667774{445554{44555 OM5JMMMNNN444555 ))L11 %	       endpoint_idc                     g }|                     d| d           |                     d|  d           d                    |          }d| d}|S )zSGenerate a string for a GraphQL mutation to update an existing endpoint's template.r   r   zendpointId: "r   z7
    mutation {
        updateEndpointTemplate(input: {z?}) {
            id
            templateId
        }
    }
    r   )r!   r	   r   r   results        r   !update_endpoint_template_mutationr$   T   s}    L 66667776666777 ))L11)<  F Mr    )r   NNr   r   r   r   r   FNN)__doc__strintr   r$    r    r   <module>r)      s    4 4 !$!%J J
JJ J 	J
 J J J J J J J J J J J\3 S      r    