"""Constants and defaults for gcplocal."""

DEFAULT_HOST = "0.0.0.0"
DEFAULT_PORT = 8400

DEFAULT_PROJECT = "gcplocal-project"
DEFAULT_REGION = "us-central1"
DEFAULT_ZONE = "us-central1-a"

COMPUTE_API_VERSION = "v1"
COMPUTE_API_PREFIX = f"/compute/{COMPUTE_API_VERSION}"

STORAGE_API_VERSION = "v1"
STORAGE_API_PREFIX = f"/storage/{STORAGE_API_VERSION}"

IAM_API_VERSION = "v1"
IAM_API_PREFIX = f"/{IAM_API_VERSION}"

PUBSUB_API_VERSION = "v1"
PUBSUB_API_PREFIX = f"/{PUBSUB_API_VERSION}"

CRM_API_VERSION = "v1"
CRM_API_PREFIX = f"/{CRM_API_VERSION}"

SQLADMIN_API_VERSION = "v1beta4"
SQLADMIN_API_PREFIX = f"/sql/{SQLADMIN_API_VERSION}"

OPERATION_DONE_IMMEDIATELY = True

SUPPORTED_SERVICES = [
    "compute",
    "storage",
    "iam",
    "pubsub",
    "cloudresourcemanager",
    "sqladmin",
]

SERVICE_ENDPOINT_MAP = {
    "compute": "compute_custom_endpoint",
    "storage": "storage_custom_endpoint",
    "iam": "iam_custom_endpoint",
    "pubsub": "pubsub_custom_endpoint",
    "cloudresourcemanager": "cloud_resource_manager_custom_endpoint",
    "sqladmin": "sql_custom_endpoint",
}
