import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
inference_registry_credentials = client.cloud.inference.registry_credentials.replace(
credential_name="docker-io",
project_id=1,
password="password",
registry_url="registry.example.com",
username="username",
)
print(inference_registry_credentials.project_id)