
    tni                     >    d Z dededefdZdededefdZdefdZdS )	z< Runpod | API Wrapper | Mutations | Container Registry Auth nameusernamepasswordc                 |    | ||d}d                     d |                                D                       }d| dS )aL  
    Generate a GraphQL mutation string to save container registry authentication details.

    Args:
        name (str): The name of the container registry.
        username (str): The username for authentication.
        password (str): The password for authentication.

    Returns:
        str: The GraphQL mutation string.
    )r   r   r   , c              3   ,   K   | ]\  }}| d | dV  dS z: ""N .0keyvalues      i/var/www/html/gpu-tools/venv/lib/python3.11/site-packages/runpod/api/mutations/container_register_auth.py	<genexpr>z3generate_container_registry_auth.<locals>.<genexpr>   7      SS*#uS--U---SSSSSS    zB
    mutation SaveRegistryAuth {
        saveRegistryAuth(input: {9}) {
            id
            name
        }
    }
    joinitems)r   r   r   
input_dict	input_strs        r    generate_container_registry_authr      s]     H(KKJ 		SS
@P@P@R@RSSSSSI#,   r   registry_auth_idc                 |    | ||d}d                     d |                                D                       }d| dS )a\  
    Generate a GraphQL mutation string to update registry authentication details.

    Args:
        registry_auth_id (str): The id of the container registry authentication
        username (str): The username for authentication.
        password (str): The password for authentication.

    Returns:
        str: The GraphQL mutation string.
    )idr   r   r   c              3   ,   K   | ]\  }}| d | dV  dS r   r
   r   s      r   r   z1update_container_registry_auth.<locals>.<genexpr>0   r   r   zF
    mutation UpdateRegistryAuth {
        updateRegistryAuth(input: {r   r   )r   r   r   r   r   s        r   update_container_registry_authr       s]     )hHUUJ 		SS
@P@P@R@RSSSSSI%.   r   c                     d|  dS )z
    Generate a GraphQL mutation string to delete registry authentication details.

    Args:
        registry_auth_id (str): The id of the container registry authentication

    Returns:
        str: The GraphQL mutation string.
    zO
    mutation DeleteRegistryAuth {
        deleteRegistryAuth(registryAuthId: "z")
    }
    r
   )r   s    r   delete_container_registry_authr    <   s    -=   r   N)__doc__strr   r   r    r
   r   r   <module>r#      s    B B3 #     8S C SV    8S      r   