def set_secret(self, name: str, value: Any) -> None:
    '\n        Set a secret with the given name and value.\n\n        Args:\n            - name (str): the name of the secret; used for retrieving the secret\n                during task runs\n            - value (Any): the value of the secret\n\n        Raises:\n            - ClientError: if the GraphQL mutation is bad for any reason\n            - ValueError: if the secret-setting was unsuccessful\n        '
    mutation = {'mutation($input: set_secret_input!)': {'set_secret(input: $input)': {'success'}}}
    result = self.graphql(mutation, variables=dict(input=dict(name=name, value=value)))
    if (not result.data.set_secret.success):
        raise ValueError('Setting secret failed.')
Set a secret with the given name and value.

Args:
    - name (str): the name of the secret; used for retrieving the secret
        during task runs
    - value (Any): the value of the secret

Raises:
    - ClientError: if the GraphQL mutation is bad for any reason
    - ValueError: if the secret-setting was unsuccessful
def set_secret(self, name: str, value: Any) -> None:
    '\n        Set a secret with the given name and value.\n\n        Args:\n            - name (str): the name of the secret; used for retrieving the secret\n                during task runs\n            - value (Any): the value of the secret\n\n        Raises:\n            - ClientError: if the GraphQL mutation is bad for any reason\n            - ValueError: if the secret-setting was unsuccessful\n        '
    mutation = {'mutation($input: set_secret_input!)': {'set_secret(input: $input)': {'success'}}}
    result = self.graphql(mutation, variables=dict(input=dict(name=name, value=value)))
    if (not result.data.set_secret.success):
        raise ValueError('Setting secret failed.')