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
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
"image": "mcr.microsoft.com/devcontainers/python:2-3.9-trixie",

"postCreateCommand": ["bash",".devcontainer/post-create.sh"]

}
4 changes: 4 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

pip install pipenv
pipenv install --dev
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @coveo/dx
* @coveo/dxui
11 changes: 9 additions & 2 deletions src/push_api_clientpy/platformclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,17 @@ def pushFileContainerContent(self, sourceId: str, fileContainer: FileContainer):
return self.session.put(url=url, params=queryParams, headers=self.__headers())

def __basePushURL(self):
return f'https://api-{self.region}.cloud.coveo.com/push/v1/organizations/{self.organizationid}'
if self.region == "us":
return f'https://api.cloud.coveo.com/push/v1/organizations/{self.organizationid}'
else:
return f'https://api-{self.region}.cloud.coveo.com/push/v1/organizations/{self.organizationid}'


def __basePlatformURL(self):
return f'https://platform-{self.region}.cloud.coveo.com/rest/organizations/{self.organizationid}'
if self.region == "us":
return f'https://platform.cloud.coveo.com/rest/organizations/{self.organizationid}'
else:
return f'https://platform-{self.region}.cloud.coveo.com/rest/organizations/{self.organizationid}'

def __baseSourceURL(self):
return f'{self.__basePlatformURL()}/sources'
Expand Down