class_docstr: Operations with repos
class_docstr_tok: ["Operations","with","repos"]
code: def __init__(self, api_client: APIClient, project: str):
      self._api_client = api_client
      self._project = project
  
file_path: dstack/src/dstack/api/_public/repos.py
imports: from pathlib import Path
  from typing import Optional, Union
  import giturlparse
  import requests
  from git import InvalidGitRepositoryError
  from dstack._internal.core.errors import ConfigurationError
  from dstack._internal.core.models.repos import LocalRepo, RemoteRepo
  from dstack._internal.core.models.repos.base import Repo, RepoType
  from dstack._internal.core.services.configs import ConfigManager
  from dstack._internal.core.services.repos import InvalidRepoCredentialsError, get_local_repo_credentials, load_repo
  from dstack._internal.utils.crypto import generate_rsa_key_pair
  from dstack._internal.utils.logging import get_logger
  from dstack._internal.utils.path import PathLike
  from dstack.api.server import APIClient
label_desc: Use image node_id 1 to create a new RepoCollection object  with example: obj = RepoCollection(api_client, project)