Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmlutils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class ApiV2Endpoints(Enum):
SEARCH_APP = "/api/v2/projects/$project_id/applications?search_filter=$search_option&page_size=100000"
RUNTIME_ADDONS = "/api/v2/runtimeaddons?search_filter=$search_option"
RUNTIMES = "/api/v2/runtimes?page_size=$page_size&page_token=$page_token"
COLLABORATORS = "/api/v2/projects/$project_id/collaborators?page_size=$page_size&page_token=$page_token"
ADD_COLLABORATOR = "/api/v2/projects/$project_id/collaborators/$user_name"


class ApiV1Endpoints(Enum):
Expand Down
5 changes: 5 additions & 0 deletions cmlutils/directory_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def get_project_metadata_file_path(top_level_dir: str, project_name: str) -> str
"project-metadata.json",
)

def get_project_collaborators_file_path(top_level_dir: str, project_name: str) -> str:
return os.path.join(
get_project_metadata_dir_path(top_level_dir, project_name),
"project-collaborators.json",
)

def get_models_metadata_file_path(top_level_dir: str, project_name: str) -> str:
return os.path.join(
Expand Down
Loading