def METHOD_NAME(self, secret_type: SecretType, secret_value: bytes) -> None:
    if not self.secret:
        self.secret = Secret()
    self.secret.type = secret_type.value
    self.secret.secret = secret_value