    def create(
        self,
        name: str,
        type: str,
        cluster: str | None = None,
        description: str | None = None,
        path: str | None = None,
        key_vals: t.List[t.Tuple[str, str]] = [],
    ) -> Secret:
        """
        Create a new secret.

        Args:
            name (str | None): Name of the secret.
            description (str | None): Description of the secret.
            type (str | None): Type of the secret.
            cluster (str | None): Cluster name where the secret is created.
            path (str | None): Path of the secret.
            key_vals (List[Tuple[str, str]]): List of key-value pairs for the secret content.

        Returns:
            SecretInfo: A SecretInfo object representing the created secret.
        """
        secret_schema = CreateSecretSchema(
            name=name,
            content=SecretContentSchema(
                type=type,
                path=path,
                items=[
                    SecretItem(key=key_val[0], value=key_val[1]) for key_val in key_vals
                ],
            ),
            description=description,
        )
        secret = self._client.v1.create_secret(secret_schema, cluster)
        return Secret.from_secret_schema(secret)
Create a new secret.

Args:
name (str | None): Name of the secret.
description (str | None): Description of the secret.
type (str | None): Type of the secret.
cluster (str | None): Cluster name where the secret is created.
path (str | None): Path of the secret.
key_vals (List[Tuple[str, str]]): List of key-value pairs for the secret content.

Returns:
SecretInfo: A SecretInfo object representing the created secret.
src/bentoml/_internal/cloud/secret.py